-pass-exit-codes | Exit with highest error code from a phase. | help |
--help | Display this information. | help |
--target-help | Display target specific command line options. | help |
--version | Display compiler version information. | help |
-dumpspecs | Display all of the built in spec strings. | help |
-dumpversion | Display the version of the compiler. | help |
-dumpmachine | Display the compiler's target processor. | help |
-print-search-dirs | Display the directories in the compiler's search path. | help |
-print-libgcc-file-name | Display the name of the compiler's companion library. | help |
-print-file-name lib | Display the full path to library <lib>. | help |
-print-prog-name prog | Display the full path to compiler component <prog>. | help |
-print-multiarch | Display the target's normalized GNU triplet, used as a component in the library path. | help |
-print-multi-directory | Display the root directory for versions of libgcc. | help |
-print-multi-lib | Display the mapping between command line options and multiple library search directories. | help |
-print-sysroot | Display the target libraries directory. | help |
-Wa | Pass comma-separated <options> on to the assembler. | help |
-Wp | Pass comma-separated <options> on to the preprocessor. | help |
-Wl | Pass comma-separated <options> on to the linker. | help |
-Xassembler arg | Pass <arg> on to the assembler. | help |
-Xpreprocessor arg | Pass <arg> on to the preprocessor. | help |
-Xlinker arg | Pass <arg> on to the linker. | help |
-save-temps | Do not delete intermediate files. | help |
-no-canonical-prefixes | Do not canonicalize paths when building relative prefixes to other gcc components. | help |
-pipe | Use pipes rather than intermediate files. | help |
-time | Time the execution of each subprocess. | help |
-specs file | Override built-in specs with the contents of <file>. | help |
-std standard | Assume that the input sources are for <standard>. | help |
--sysroot directory | Use <directory> as the root directory for headers and libraries. | help |
-B directory | Add <directory> to the compiler's search paths. | help |
-v | Display the programs invoked by the compiler. | help |
-### | Like -v but options quoted and commands not executed. | help |
-E | Preprocess only; | help |
-S | Compile only; | help |
-c | Compile and assemble, but do not link. | help |
-o file | Place the output into <file>. | help |
-pie | Create a dynamically linked position independent executable. | help |
-shared | Create a shared library. | help |
-x language | Specify the language of the following input files. | help |
-D name | Predefine name as a macro, with definition 1. (in the manual page but not in --help) | man |
-U name | Cancel any previous definition of name, either built in or provided with a -D option. (in the manual page but not in --help) | man |
-include file | Process file as if "#include "file"" appeared as the first line of the primary source file. (in the manual page but not in --help) | man |
-imacros file | Exactly like -include, except that any output produced by scanning file is thrown away. (in the manual page but not in --help) | man |
-undef | Do not predefine any system-specific or GCC-specific macros. (in the manual page but not in --help) | man |
-pthread | Define additional macros required for using the POSIX threads library. (in the manual page but not in --help) | man |
-M | Instead of outputting the result of preprocessing, output a rule suitable for make describing the dependencies of the main source file. (in the manual page but not in --help) | man |
-MM | Like -M but do not mention header files that are found in system header directories, nor header files that are included, directly or indirectly, from such a header. (in the manual page but not in --help) | man |
-MF file | When used with -M or -MM, specifies a file to write the dependencies to. (in the manual page but not in --help) | man |
-MG | In conjunction with an option such as -M requesting dependency generation, -MG assumes missing header files are generated files and adds them to the dependency list without raising an error. (in the manual page but not in --help) | man |
-Mno-modules | Disable dependency generation for compiled module interfaces. (in the manual page but not in --help) | man |
-MP | This option instructs CPP to add a phony target for each dependency other than the main file, causing each to depend on nothing. (in the manual page but not in --help) | man |
-MT target | Change the target of the rule emitted by dependency generation. (in the manual page but not in --help) | man |
-MQ target | Same as -MT, but it quotes any characters which are special to Make. (in the manual page but not in --help) | man |
-MD | (in the manual page but not in --help) | man |
-MMD | Like -MD except mention only user header files, not system header files. (in the manual page but not in --help) | man |
-fpreprocessed | Indicate to the preprocessor that the input file has already been preprocessed. (in the manual page but not in --help) | man |
-fdirectives-only | When preprocessing, handle directives, but do not expand macros. (in the manual page but not in --help) | man |
-fdollars-in-identifiers | Accept $ in identifiers. (in the manual page but not in --help) | man |
-fextended-identifiers | Accept universal character names and extended characters in identifiers. (in the manual page but not in --help) | man |
-fno-canonical-system-headers | When preprocessing, do not shorten system header paths with canonicalization. (in the manual page but not in --help) | man |
-fmax-include-depth depth | Set the maximum depth of the nested #include. (in the manual page but not in --help) | man |
-ftabstop width | Set the distance between tab stops. (in the manual page but not in --help) | man |
-fmacro-prefix-map old=new | When preprocessing files residing in directory old, expand the "__FILE__" and "__BASE_FILE__" macros as if the files resided in directory new instead. (in the manual page but not in --help) | man |
-fexec-charset charset | Set the execution character set, used for string and character constants. (in the manual page but not in --help) | man |
-fwide-exec-charset charset | Set the wide execution character set, used for wide string and character constants. (in the manual page but not in --help) | man |
-finput-charset charset | Set the input character set, used for translation from the character set of the input file to the source character set used by GCC. (in the manual page but not in --help) | man |
-fworking-directory | Enable generation of linemarkers in the preprocessor output that let the compiler know the current working directory at the time of preprocessing. (in the manual page but not in --help) | man |
-A predicate=answer | Make an assertion with the predicate predicate and answer answer. (in the manual page but not in --help) | man |
-C | Do not discard comments. (in the manual page but not in --help) | man |
-CC | Do not discard comments, including during macro expansion. (in the manual page but not in --help) | man |
-P | Inhibit generation of linemarkers in the output from the preprocessor. (in the manual page but not in --help) | man |
-traditional | (in the manual page but not in --help) | man |
-traditional-cpp | Try to imitate the behavior of pre-standard C preprocessors, as opposed to ISO C preprocessors. (in the manual page but not in --help) | man |
-trigraphs | Support ISO C trigraphs. (in the manual page but not in --help) | man |
-remap | Enable special code to work around file systems which only permit very short file names, such as MS-DOS. (in the manual page but not in --help) | man |
-H | Print the name of each header file used, in addition to other normal activities. (in the manual page but not in --help) | man |
-dletters | Says to make debugging dumps during compilation as specified by letters. (in the manual page but not in --help) | man |
-dM | Instead of the normal output, generate a list of #define directives for all the macros defined during the execution of the preprocessor, including predefined macros. (in the manual page but not in --help) | man |
-dD | Like -dM except in two respects: it does not include the predefined macros, and it outputs both the #define directives and the result of preprocessing. (in the manual page but not in --help) | man |
-dN | Like -dD, but emit only the macro names, not their expansions. (in the manual page but not in --help) | man |
-dI | Output #include directives in addition to the result of preprocessing. (in the manual page but not in --help) | man |
-dU | Like -dD except that only macros that are expanded, or whose definedness is tested in preprocessor directives, are output; (in the manual page but not in --help) | man |
-fdebug-cpp | This option is only useful for debugging GCC. (in the manual page but not in --help) | man |
-I dir | (in the manual page but not in --help) | man |
-iquote dir | (in the manual page but not in --help) | man |
-isystem dir | (in the manual page but not in --help) | man |
-idirafter dir | Add the directory dir to the list of directories to be searched for header files during preprocessing. (in the manual page but not in --help) | man |
-I- | Split the include path. (in the manual page but not in --help) | man |
-iprefix prefix | Specify prefix as the prefix for subsequent -iwithprefix options. (in the manual page but not in --help) | man |
-iwithprefix dir | (in the manual page but not in --help) | man |
-iwithprefixbefore dir | Append dir to the prefix specified previously with -iprefix, and add the resulting directory to the include search path. (in the manual page but not in --help) | man |
-isysroot dir | This option is like the --sysroot option, but applies only to header files (except for Darwin targets, where it applies to both header files and libraries). (in the manual page but not in --help) | man |
-imultilib dir | Use dir as a subdirectory of the directory containing target-specific C++ headers. (in the manual page but not in --help) | man |
-nostdinc | Do not search the standard system directories for header files. (in the manual page but not in --help) | man |
-nostdinc++ | Do not search for header files in the C++-specific standard directories, but do still search the other standard directories. (in the manual page but not in --help) | man |
-Wcomment | (in the manual page but not in --help) | man |
-Wcomments | Warn whenever a comment-start sequence / appears in a / comment, or whenever a backslash-newline appears in a // comment. (in the manual page but not in --help) | man |
-Wtrigraphs | Warn if any trigraphs are encountered that might change the meaning of the program. (in the manual page but not in --help) | man |
-Wundef | Warn if an undefined identifier is evaluated in an "#if" directive. (in the manual page but not in --help) | man |
-Wexpansion-to-defined | Warn whenever defined is encountered in the expansion of a macro (including the case where the macro is expanded by an #if directive). (in the manual page but not in --help) | man |
-Wunused-macros | Warn about macros defined in the main file that are unused. (in the manual page but not in --help) | man |
-Wno-endif-labels | Do not warn whenever an "#else" or an "#endif" are followed by text. (in the manual page but not in --help) | man |