| <html lang="en"> |
| <head> |
| <title>Language Independent Options - Using the GNU Compiler Collection (GCC)</title> |
| <meta http-equiv="Content-Type" content="text/html"> |
| <meta name="description" content="Using the GNU Compiler Collection (GCC)"> |
| <meta name="generator" content="makeinfo 4.13"> |
| <link title="Top" rel="start" href="index.html#Top"> |
| <link rel="up" href="Invoking-GCC.html#Invoking-GCC" title="Invoking GCC"> |
| <link rel="prev" href="Objective_002dC-and-Objective_002dC_002b_002b-Dialect-Options.html#Objective_002dC-and-Objective_002dC_002b_002b-Dialect-Options" title="Objective-C and Objective-C++ Dialect Options"> |
| <link rel="next" href="Warning-Options.html#Warning-Options" title="Warning Options"> |
| <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage"> |
| <!-- |
| Copyright (C) 1988-2013 Free Software Foundation, Inc. |
| |
| Permission is granted to copy, distribute and/or modify this document |
| under the terms of the GNU Free Documentation License, Version 1.3 or |
| any later version published by the Free Software Foundation; with the |
| Invariant Sections being ``Funding Free Software'', the Front-Cover |
| Texts being (a) (see below), and with the Back-Cover Texts being (b) |
| (see below). A copy of the license is included in the section entitled |
| ``GNU Free Documentation License''. |
| |
| (a) The FSF's Front-Cover Text is: |
| |
| A GNU Manual |
| |
| (b) The FSF's Back-Cover Text is: |
| |
| You have freedom to copy and modify this GNU Manual, like GNU |
| software. Copies published by the Free Software Foundation raise |
| funds for GNU development.--> |
| <meta http-equiv="Content-Style-Type" content="text/css"> |
| <style type="text/css"><!-- |
| pre.display { font-family:inherit } |
| pre.format { font-family:inherit } |
| pre.smalldisplay { font-family:inherit; font-size:smaller } |
| pre.smallformat { font-family:inherit; font-size:smaller } |
| pre.smallexample { font-size:smaller } |
| pre.smalllisp { font-size:smaller } |
| span.sc { font-variant:small-caps } |
| span.roman { font-family:serif; font-weight:normal; } |
| span.sansserif { font-family:sans-serif; font-weight:normal; } |
| --></style> |
| </head> |
| <body> |
| <div class="node"> |
| <a name="Language-Independent-Options"></a> |
| <p> |
| Next: <a rel="next" accesskey="n" href="Warning-Options.html#Warning-Options">Warning Options</a>, |
| Previous: <a rel="previous" accesskey="p" href="Objective_002dC-and-Objective_002dC_002b_002b-Dialect-Options.html#Objective_002dC-and-Objective_002dC_002b_002b-Dialect-Options">Objective-C and Objective-C++ Dialect Options</a>, |
| Up: <a rel="up" accesskey="u" href="Invoking-GCC.html#Invoking-GCC">Invoking GCC</a> |
| <hr> |
| </div> |
| |
| <h3 class="section">3.7 Options to Control Diagnostic Messages Formatting</h3> |
| |
| <p><a name="index-options-to-control-diagnostics-formatting-234"></a><a name="index-diagnostic-messages-235"></a><a name="index-message-formatting-236"></a> |
| Traditionally, diagnostic messages have been formatted irrespective of |
| the output device's aspect (e.g. its width, <small class="dots">...</small>). You can use the |
| options described below |
| to control the formatting algorithm for diagnostic messages, |
| e.g. how many characters per line, how often source location |
| information should be reported. Note that some language front ends may not |
| honor these options. |
| |
| <dl> |
| <dt><code>-fmessage-length=</code><var>n</var><dd><a name="index-fmessage_002dlength-237"></a>Try to format error messages so that they fit on lines of about <var>n</var> |
| characters. The default is 72 characters for <samp><span class="command">g++</span></samp> and 0 for the rest of |
| the front ends supported by GCC. If <var>n</var> is zero, then no |
| line-wrapping is done; each error message appears on a single |
| line. |
| |
| <br><dt><code>-fdiagnostics-show-location=once</code><dd><a name="index-fdiagnostics_002dshow_002dlocation-238"></a>Only meaningful in line-wrapping mode. Instructs the diagnostic messages |
| reporter to emit source location information <em>once</em>; that is, in |
| case the message is too long to fit on a single physical line and has to |
| be wrapped, the source location won't be emitted (as prefix) again, |
| over and over, in subsequent continuation lines. This is the default |
| behavior. |
| |
| <br><dt><code>-fdiagnostics-show-location=every-line</code><dd>Only meaningful in line-wrapping mode. Instructs the diagnostic |
| messages reporter to emit the same source location information (as |
| prefix) for physical lines that result from the process of breaking |
| a message which is too long to fit on a single line. |
| |
| <br><dt><code>-fno-diagnostics-show-option</code><dd><a name="index-fno_002ddiagnostics_002dshow_002doption-239"></a><a name="index-fdiagnostics_002dshow_002doption-240"></a>By default, each diagnostic emitted includes text indicating the |
| command-line option that directly controls the diagnostic (if such an |
| option is known to the diagnostic machinery). Specifying the |
| <samp><span class="option">-fno-diagnostics-show-option</span></samp> flag suppresses that behavior. |
| |
| <br><dt><code>-fno-diagnostics-show-caret</code><dd><a name="index-fno_002ddiagnostics_002dshow_002dcaret-241"></a><a name="index-fdiagnostics_002dshow_002dcaret-242"></a>By default, each diagnostic emitted includes the original source line |
| and a caret '^' indicating the column. This option suppresses this |
| information. |
| |
| </dl> |
| |
| </body></html> |
| |