diff options
Diffstat (limited to 'gcc/doc/cpp.1')
-rw-r--r-- | gcc/doc/cpp.1 | 268 |
1 files changed, 100 insertions, 168 deletions
diff --git a/gcc/doc/cpp.1 b/gcc/doc/cpp.1 index 291ef34..8da0326 100644 --- a/gcc/doc/cpp.1 +++ b/gcc/doc/cpp.1 @@ -1,5 +1,5 @@ .\" Automatically generated by Pod::Man version 1.16 -.\" Fri Jun 15 00:04:02 2001 +.\" Fri Jun 15 10:40:40 2001 .\" .\" Standard preamble: .\" ====================================================================== @@ -180,7 +180,7 @@ Wherever possible, you should use a preprocessor geared to the language you are writing in. Modern versions of the \s-1GNU\s0 assembler have macro facilities. Most high level programming languages have their own conditional compilation and inclusion mechanism. If all else fails, -try a true general text processor, such as \f(CW@docref\fR{M4}. +try a true general text processor, such as \s-1GNU\s0 M4. .PP C preprocessors vary in some details. This manual discusses the \s-1GNU\s0 C preprocessor, which provides a small superset of the features of \s-1ISO\s0 @@ -208,12 +208,10 @@ appear immediately after the option letter, or with a space between option and argument: \fB\-Ifoo\fR and \fB\-I foo\fR have the same effect. Long options that take arguments require a space between option and argument. -.if n .Ip "\f(CW""\-D \f(CIname\f(CW""\fR" 4 -.el .Ip "\f(CW\-D \f(CIname\f(CW\fR" 4 +.Ip "\fB\-D\fR \fIname\fR" 4 .IX Item "-D name" -Predefine \fIname\fR as a macro, with definition \fB1\fR. -.if n .Ip "\f(CW""\-D \f(CIname\f(CW=\f(CIdefinition\f(CW""\fR" 4 -.el .Ip "\f(CW\-D \f(CIname\f(CW=\f(CIdefinition\f(CW\fR" 4 +Predefine \fIname\fR as a macro, with definition \f(CW\*(C`1\*(C'\fR. +.Ip "\fB\-D\fR \fIname\fR\fB=\fR\fIdefinition\fR" 4 .IX Item "-D name=definition" Predefine \fIname\fR as a macro, with definition \fIdefinition\fR. There are no restrictions on the contents of \fIdefinition\fR, but if @@ -228,21 +226,18 @@ its argument list with surrounding parentheses before the equals sign (if any). Parentheses are meaningful to most shells, so you will need to quote the option. With \fBsh\fR and \fBcsh\fR, \&\fB\-D'\fR\fIname\fR\fB(\fR\fIargs...\fR\fB)=\fR\fIdefinition\fR\fB'\fR works. -.if n .Ip "\f(CW""\-U \f(CIname\f(CW""\fR" 4 -.el .Ip "\f(CW\-U \f(CIname\f(CW\fR" 4 +.Ip "\fB\-U\fR \fIname\fR" 4 .IX Item "-U name" Cancel any previous definition of \fIname\fR, either built in or provided with a \fB\-D\fR option. .Sp All \fB\-imacros\fR \fIfile\fR and \fB\-include\fR \fIfile\fR options are processed after all \fB\-D\fR and \fB\-U\fR options. -.if n .Ip "\f(CW""\-undef""\fR" 4 -.el .Ip "\f(CW\-undef\fR" 4 +.Ip "\fB\-undef\fR" 4 .IX Item "-undef" Do not predefine any system-specific macros. The common predefined macros remain defined. -.if n .Ip "\f(CW""\-I \f(CIdir\f(CW""\fR" 4 -.el .Ip "\f(CW\-I \f(CIdir\f(CW\fR" 4 +.Ip "\fB\-I\fR \fIdir\fR" 4 .IX Item "-I dir" Add the directory \fIdir\fR to the list of directories to be searched for header files. Directories named by \fB\-I\fR @@ -252,89 +247,75 @@ It is dangerous to specify a standard system include directory in an \&\fB\-I\fR option. This defeats the special treatment of system headers. It can also defeat the repairs to buggy system headers which \s-1GCC\s0 makes when it is installed. -.if n .Ip "\f(CW""\-o \f(CIfile\f(CW""\fR" 4 -.el .Ip "\f(CW\-o \f(CIfile\f(CW\fR" 4 +.Ip "\fB\-o\fR \fIfile\fR" 4 .IX Item "-o file" Write output to \fIfile\fR. This is the same as specifying \fIfile\fR as the second non-option argument to \fBcpp\fR. \fBgcc\fR has a different interpretation of a second non-option argument, so you must use \fB\-o\fR to specify the output file. -.if n .Ip "\f(CW""\-Wall""\fR" 4 -.el .Ip "\f(CW\-Wall\fR" 4 +.Ip "\fB\-Wall\fR" 4 .IX Item "-Wall" Turns on all optional warnings which are desirable for normal code. At present this is \fB\-Wcomment\fR and \fB\-Wtrigraphs\fR. Note that many of the preprocessor's warnings are on by default and have no options to control them. -.if n .Ip "\f(CW""\-Wcomment""\fR" 4 -.el .Ip "\f(CW\-Wcomment\fR" 4 +.Ip "\fB\-Wcomment\fR" 4 .IX Item "-Wcomment" .PD 0 -.if n .Ip "\f(CW""\-Wcomments""\fR" 4 -.el .Ip "\f(CW\-Wcomments\fR" 4 +.Ip "\fB\-Wcomments\fR" 4 .IX Item "-Wcomments" .PD Warn whenever a comment-start sequence \fB/*\fR appears in a \fB/*\fR comment, or whenever a backslash-newline appears in a \fB//\fR comment. (Both forms have the same effect.) -.if n .Ip "\f(CW""\-Wtrigraphs""\fR" 4 -.el .Ip "\f(CW\-Wtrigraphs\fR" 4 +.Ip "\fB\-Wtrigraphs\fR" 4 .IX Item "-Wtrigraphs" Warn if any trigraphs are encountered. This option used to take effect only if \fB\-trigraphs\fR was also specified, but now works independently. Warnings are not given for trigraphs within comments, as they do not affect the meaning of the program. -.if n .Ip "\f(CW""\-Wtraditional""\fR" 4 -.el .Ip "\f(CW\-Wtraditional\fR" 4 +.Ip "\fB\-Wtraditional\fR" 4 .IX Item "-Wtraditional" Warn about certain constructs that behave differently in traditional and \&\s-1ISO\s0 C. Also warn about \s-1ISO\s0 C constructs that have no traditional C equivalent, and problematic constructs which should be avoided. -.if n .Ip "\f(CW""\-Wimport""\fR" 4 -.el .Ip "\f(CW\-Wimport\fR" 4 +.Ip "\fB\-Wimport\fR" 4 .IX Item "-Wimport" Warn the first time \fB#import\fR is used. -.if n .Ip "\f(CW""\-Wundef""\fR" 4 -.el .Ip "\f(CW\-Wundef\fR" 4 +.Ip "\fB\-Wundef\fR" 4 .IX Item "-Wundef" Warn whenever an identifier which is not a macro is encountered in an \&\fB#if\fR directive, outside of \fBdefined\fR. Such identifiers are replaced with zero. -.if n .Ip "\f(CW""\-Werror""\fR" 4 -.el .Ip "\f(CW\-Werror\fR" 4 +.Ip "\fB\-Werror\fR" 4 .IX Item "-Werror" Make all warnings into hard errors. Source code which triggers warnings will be rejected. -.if n .Ip "\f(CW""\-Wsystem\-headers""\fR" 4 -.el .Ip "\f(CW\-Wsystem\-headers\fR" 4 +.Ip "\fB\-Wsystem-headers\fR" 4 .IX Item "-Wsystem-headers" Issue warnings for code in system headers. These are normally unhelpful in finding bugs in your own code, therefore suppressed. If you are responsible for the system library, you may want to see them. -.if n .Ip "\f(CW""\-w""\fR" 4 -.el .Ip "\f(CW\-w\fR" 4 +.Ip "\fB\-w\fR" 4 .IX Item "-w" Suppress all warnings, including those which \s-1GNU\s0 \s-1CPP\s0 issues by default. -.if n .Ip "\f(CW""\-pedantic""\fR" 4 -.el .Ip "\f(CW\-pedantic\fR" 4 +.Ip "\fB\-pedantic\fR" 4 .IX Item "-pedantic" Issue all the mandatory diagnostics listed in the C standard. Some of them are left out by default, since they trigger frequently on harmless code. -.if n .Ip "\f(CW""\-pedantic\-errors""\fR" 4 -.el .Ip "\f(CW\-pedantic\-errors\fR" 4 +.Ip "\fB\-pedantic-errors\fR" 4 .IX Item "-pedantic-errors" Issue all the mandatory diagnostics, and make all mandatory diagnostics into errors. This includes mandatory diagnostics that \s-1GCC\s0 issues without \fB\-pedantic\fR but treats as warnings. -.if n .Ip "\f(CW""\-M""\fR" 4 -.el .Ip "\f(CW\-M\fR" 4 +.Ip "\fB\-M\fR" 4 .IX Item "-M" Instead of outputting the result of preprocessing, output a rule -suitable for \f(CW\*(C`make\*(C'\fR describing the dependencies of the main source -file. The preprocessor outputs one \f(CW\*(C`make\*(C'\fR rule containing the -object file name for that source file, a colon, and the names of all the -included files, including those coming from \fB\-include\fR or +suitable for \fBmake\fR describing the dependencies of the main +source file. The preprocessor outputs one \fBmake\fR rule containing +the object file name for that source file, a colon, and the names of all +the included files, including those coming from \fB\-include\fR or \&\fB\-imacros\fR command line options. .Sp Unless specified explicitly (with \fB\-MT\fR or \fB\-MQ\fR), the @@ -342,22 +323,18 @@ object file name consists of the basename of the source file with any suffix replaced with object file suffix. If there are many included files then the rule is split into several lines using \fB\e\fR\-newline. The rule has no commands. -.if n .Ip "\f(CW""\-MM""\fR" 4 -.el .Ip "\f(CW\-MM\fR" 4 +.Ip "\fB\-MM\fR" 4 .IX Item "-MM" -Like \fB\-M\fR, but mention only the files included with \fB#include -"\fR\fIfile\fR\fB"\fR or with \fB\-include\fR or \fB\-imacros\fR command line -options. System header files included with \fB#include <\fR\fIfile\fR\fB>\fR +Like \fB\-M\fR, but mention only the files included with \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR or with \fB\-include\fR or \fB\-imacros\fR command line +options. System header files included with \f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR are omitted. -.if n .Ip "\f(CW""\-MF \f(CIfile\f(CW""\fR" 4 -.el .Ip "\f(CW\-MF \f(CIfile\f(CW\fR" 4 +.Ip "\fB\-MF\fR \fIfile\fR" 4 .IX Item "-MF file" When used with \fB\-M\fR or \fB\-MM\fR, specifies a file to write the dependencies to. This allows the preprocessor to write the preprocessed file to stdout normally. If no \fB\-MF\fR switch is given, \s-1CPP\s0 sends the rules to stdout and suppresses normal preprocessed output. -.if n .Ip "\f(CW""\-MG""\fR" 4 -.el .Ip "\f(CW\-MG\fR" 4 +.Ip "\fB\-MG\fR" 4 .IX Item "-MG" When used with \fB\-M\fR or \fB\-MM\fR, \fB\-MG\fR says to treat missing header files as generated files and assume they live in the same @@ -365,13 +342,12 @@ directory as the source file. It suppresses preprocessed output, as a missing header file is ordinarily an error. .Sp This feature is used in automatic updating of makefiles. -.if n .Ip "\f(CW""\-MP""\fR" 4 -.el .Ip "\f(CW\-MP\fR" 4 +.Ip "\fB\-MP\fR" 4 .IX Item "-MP" This option instructs \s-1CPP\s0 to add a phony target for each dependency other than the main file, causing each to depend on nothing. These -dummy rules work around errors \f(CW\*(C`make\*(C'\fR gives if you remove header -files without updating the \f(CW\*(C`Makefile\*(C'\fR to match. +dummy rules work around errors \fBmake\fR gives if you remove header +files without updating the \fIMakefile\fR to match. .Sp This is typical output: .Sp @@ -381,8 +357,7 @@ This is typical output: .Vb 1 \& test.h: .Ve -.if n .Ip "\f(CW""\-MT \f(CItarget\f(CW""\fR" 4 -.el .Ip "\f(CW\-MT \f(CItarget\f(CW\fR" 4 +.Ip "\fB\-MT\fR \fItarget\fR" 4 .IX Item "-MT target" Change the target of the rule emitted by dependency generation. By default \s-1CPP\s0 takes the name of the main input file, including any path, @@ -398,8 +373,7 @@ For example, \fB\-MT\ '$(objpfx)foo.o'\fR might give .Vb 1 \& $(objpfx)foo.o: foo.c .Ve -.if n .Ip "\f(CW""\-MQ \f(CItarget\f(CW""\fR" 4 -.el .Ip "\f(CW\-MQ \f(CItarget\f(CW\fR" 4 +.Ip "\fB\-MQ\fR \fItarget\fR" 4 .IX Item "-MQ target" Same as \fB\-MT\fR, but it quotes any characters which are special to Make. \fB\-MQ\ '$(objpfx)foo.o'\fR gives @@ -409,12 +383,10 @@ Make. \fB\-MQ\ '$(objpfx)foo.o'\fR gives .Ve The default target is automatically quoted, as if it were given with \&\fB\-MQ\fR. -.if n .Ip "\f(CW""\-MD \f(CIfile\f(CW""\fR" 4 -.el .Ip "\f(CW\-MD \f(CIfile\f(CW\fR" 4 +.Ip "\fB\-MD\fR \fIfile\fR" 4 .IX Item "-MD file" .PD 0 -.if n .Ip "\f(CW""\-MMD \f(CIfile\f(CW""\fR" 4 -.el .Ip "\f(CW\-MMD \f(CIfile\f(CW\fR" 4 +.Ip "\fB\-MMD\fR \fIfile\fR" 4 .IX Item "-MMD file" .PD \&\fB\-MD\fR \fIfile\fR is equivalent to \fB\-M \-MF\fR \fIfile\fR, and @@ -423,18 +395,14 @@ The default target is automatically quoted, as if it were given with Due to limitations in the compiler driver, you must use these switches when you want to generate a dependency file as a side-effect of normal compilation. -.if n .Ip "\f(CW""\-x c""\fR" 4 -.el .Ip "\f(CW\-x c\fR" 4 +.Ip "\fB\-x c\fR" 4 .IX Item "-x c" .PD 0 -.if n .Ip "\f(CW""\-x c++""\fR" 4 -.el .Ip "\f(CW\-x c++\fR" 4 +.Ip "\fB\-x c++\fR" 4 .IX Item "-x c++" -.if n .Ip "\f(CW""\-x objective\-c""\fR" 4 -.el .Ip "\f(CW\-x objective\-c\fR" 4 +.Ip "\fB\-x objective-c\fR" 4 .IX Item "-x objective-c" -.if n .Ip "\f(CW""\-x assembler\-with\-cpp""\fR" 4 -.el .Ip "\f(CW\-x assembler\-with\-cpp\fR" 4 +.Ip "\fB\-x assembler-with-cpp\fR" 4 .IX Item "-x assembler-with-cpp" .PD Specify the source language: C, \*(C+, Objective-C, or assembly. This has @@ -450,12 +418,10 @@ generic mode. which selected both the language and the standards conformance level. This option has been removed, because it conflicts with the \fB\-l\fR option. -.if n .Ip "\f(CW""\-std=\f(CIstandard\f(CW""\fR" 4 -.el .Ip "\f(CW\-std=\f(CIstandard\f(CW\fR" 4 +.Ip "\fB\-std=\fR\fIstandard\fR" 4 .IX Item "-std=standard" .PD 0 -.if n .Ip "\f(CW""\-ansi""\fR" 4 -.el .Ip "\f(CW\-ansi\fR" 4 +.Ip "\fB\-ansi\fR" 4 .IX Item "-ansi" .PD Specify the standard to which the code should conform. Currently cpp @@ -465,11 +431,11 @@ added in the future. \&\fIstandard\fR may be one of: .RS 4 -.if n .Ip "\f(CW""iso9899:1990""\fR" 4 +.if n .Ip "\f(CW""""iso9899:1990""""\fR" 4 .el .Ip "\f(CWiso9899:1990\fR" 4 .IX Item "iso9899:1990" .PD 0 -.if n .Ip "\f(CW""c89""\fR" 4 +.if n .Ip "\f(CW""""c89""""\fR" 4 .el .Ip "\f(CWc89\fR" 4 .IX Item "c89" .PD @@ -477,35 +443,35 @@ The \s-1ISO\s0 C standard from 1990. \fBc89\fR is the customary shorthand for this version of the standard. .Sp The \fB\-ansi\fR option is equivalent to \fB\-std=c89\fR. -.if n .Ip "\f(CW""iso9899:199409""\fR" 4 +.if n .Ip "\f(CW""""iso9899:199409""""\fR" 4 .el .Ip "\f(CWiso9899:199409\fR" 4 .IX Item "iso9899:199409" The 1990 C standard, as amended in 1994. -.if n .Ip "\f(CW""iso9899:1999""\fR" 4 +.if n .Ip "\f(CW""""iso9899:1999""""\fR" 4 .el .Ip "\f(CWiso9899:1999\fR" 4 .IX Item "iso9899:1999" .PD 0 -.if n .Ip "\f(CW""c99""\fR" 4 +.if n .Ip "\f(CW""""c99""""\fR" 4 .el .Ip "\f(CWc99\fR" 4 .IX Item "c99" -.if n .Ip "\f(CW""iso9899:199x""\fR" 4 +.if n .Ip "\f(CW""""iso9899:199x""""\fR" 4 .el .Ip "\f(CWiso9899:199x\fR" 4 .IX Item "iso9899:199x" -.if n .Ip "\f(CW""c9x""\fR" 4 +.if n .Ip "\f(CW""""c9x""""\fR" 4 .el .Ip "\f(CWc9x\fR" 4 .IX Item "c9x" .PD The revised \s-1ISO\s0 C standard, published in December 1999. Before publication, this was known as C9X. -.if n .Ip "\f(CW""gnu89""\fR" 4 +.if n .Ip "\f(CW""""gnu89""""\fR" 4 .el .Ip "\f(CWgnu89\fR" 4 .IX Item "gnu89" The 1990 C standard plus \s-1GNU\s0 extensions. This is the default. -.if n .Ip "\f(CW""gnu99""\fR" 4 +.if n .Ip "\f(CW""""gnu99""""\fR" 4 .el .Ip "\f(CWgnu99\fR" 4 .IX Item "gnu99" .PD 0 -.if n .Ip "\f(CW""gnu9x""\fR" 4 +.if n .Ip "\f(CW""""gnu9x""""\fR" 4 .el .Ip "\f(CWgnu9x\fR" 4 .IX Item "gnu9x" .PD @@ -513,32 +479,28 @@ The 1999 C standard plus \s-1GNU\s0 extensions. .RE .RS 4 .RE -.if n .Ip "\f(CW""\-I\-""\fR" 4 -.el .Ip "\f(CW\-I\-\fR" 4 +.Ip "\fB\-I-\fR" 4 .IX Item "-I-" Split the include path. Any directories specified with \fB\-I\fR options before \fB\-I-\fR are searched only for headers requested with -\&\fB#include\ "\f(BIfile\fB"\fR; they are not searched for -\&\fB#include\ <\f(BIfile\fB>\fR. If additional directories are +\&\f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR; they are not searched for +\&\f(CW\*(C`#include\ <\f(CIfile\f(CW>\*(C'\fR. If additional directories are specified with \fB\-I\fR options after the \fB\-I-\fR, those directories are searched for all \fB#include\fR directives. .Sp In addition, \fB\-I-\fR inhibits the use of the directory of the current -file directory as the first search directory for \fB#include\ "\f(BIfile\fB"\fR. -.if n .Ip "\f(CW""\-nostdinc""\fR" 4 -.el .Ip "\f(CW\-nostdinc\fR" 4 +file directory as the first search directory for \f(CW\*(C`#include\ "\f(CIfile\f(CW"\*(C'\fR. +.Ip "\fB\-nostdinc\fR" 4 .IX Item "-nostdinc" Do not search the standard system directories for header files. Only the directories you have specified with \fB\-I\fR options (and the directory of the current file, if appropriate) are searched. -.if n .Ip "\f(CW""\-nostdinc++""\fR" 4 -.el .Ip "\f(CW\-nostdinc++\fR" 4 +.Ip "\fB\-nostdinc++\fR" 4 .IX Item "-nostdinc++" Do not search for header files in the \*(C+\-specific standard directories, but do still search the other standard directories. (This option is used when building the \*(C+ library.) -.if n .Ip "\f(CW""\-include \f(CIfile\f(CW""\fR" 4 -.el .Ip "\f(CW\-include \f(CIfile\f(CW\fR" 4 +.Ip "\fB\-include\fR \fIfile\fR" 4 .IX Item "-include file" Process \fIfile\fR as if \f(CW\*(C`#include "file"\*(C'\fR appeared as the first line of the primary source file. However, the first directory searched @@ -549,8 +511,7 @@ chain as normal. .Sp If multiple \fB\-include\fR options are given, the files are included in the order they appear on the command line. -.if n .Ip "\f(CW""\-imacros \f(CIfile\f(CW""\fR" 4 -.el .Ip "\f(CW\-imacros \f(CIfile\f(CW\fR" 4 +.Ip "\fB\-imacros\fR \fIfile\fR" 4 .IX Item "-imacros file" Exactly like \fB\-include\fR, except that any output produced by scanning \fIfile\fR is thrown away. Macros it defines remain defined. @@ -559,24 +520,20 @@ processing its declarations. .Sp All files specified by \fB\-imacros\fR are processed before all files specified by \fB\-include\fR. -.if n .Ip "\f(CW""\-idirafter \f(CIdir\f(CW""\fR" 4 -.el .Ip "\f(CW\-idirafter \f(CIdir\f(CW\fR" 4 +.Ip "\fB\-idirafter\fR \fIdir\fR" 4 .IX Item "-idirafter dir" Search \fIdir\fR for header files, but do it \fIafter\fR all directories specified with \fB\-I\fR and the standard system directories have been exhausted. \fIdir\fR is treated as a system include directory. -.if n .Ip "\f(CW""\-iprefix \f(CIprefix\f(CW""\fR" 4 -.el .Ip "\f(CW\-iprefix \f(CIprefix\f(CW\fR" 4 +.Ip "\fB\-iprefix\fR \fIprefix\fR" 4 .IX Item "-iprefix prefix" Specify \fIprefix\fR as the prefix for subsequent \fB\-iwithprefix\fR options. If the prefix represents a directory, you should include the final \fB/\fR. -.if n .Ip "\f(CW""\-iwithprefix \f(CIdir\f(CW""\fR" 4 -.el .Ip "\f(CW\-iwithprefix \f(CIdir\f(CW\fR" 4 +.Ip "\fB\-iwithprefix\fR \fIdir\fR" 4 .IX Item "-iwithprefix dir" .PD 0 -.if n .Ip "\f(CW""\-iwithprefixbefore \f(CIdir\f(CW""\fR" 4 -.el .Ip "\f(CW\-iwithprefixbefore \f(CIdir\f(CW\fR" 4 +.Ip "\fB\-iwithprefixbefore\fR \fIdir\fR" 4 .IX Item "-iwithprefixbefore dir" .PD Append \fIdir\fR to the prefix specified previously with @@ -585,15 +542,13 @@ path. \fB\-iwithprefixbefore\fR puts it in the same place \fB\-I\fR would; \fB\-iwithprefix\fR puts it where \fB\-idirafter\fR would. .Sp Use of these options is discouraged. -.if n .Ip "\f(CW""\-isystem \f(CIdir\f(CW""\fR" 4 -.el .Ip "\f(CW\-isystem \f(CIdir\f(CW\fR" 4 +.Ip "\fB\-isystem\fR \fIdir\fR" 4 .IX Item "-isystem dir" Search \fIdir\fR for header files, after all directories specified by \&\fB\-I\fR but before the standard system directories. Mark it as a system directory, so that it gets the same special treatment as is applied to the standard system directories. -.if n .Ip "\f(CW""\-fpreprocessed""\fR" 4 -.el .Ip "\f(CW\-fpreprocessed\fR" 4 +.Ip "\fB\-fpreprocessed\fR" 4 .IX Item "-fpreprocessed" Indicate to the preprocessor that the input file has already been preprocessed. This suppresses things like macro expansion, trigraph @@ -605,76 +560,65 @@ for the front ends. extensions \fB.i\fR, \fB.ii\fR or \fB.mi\fR. These are the extensions that \s-1GCC\s0 uses for preprocessed files created by \&\fB\-save-temps\fR. -.if n .Ip "\f(CW""\-ftabstop=\f(CIwidth\f(CW""\fR" 4 -.el .Ip "\f(CW\-ftabstop=\f(CIwidth\f(CW\fR" 4 +.Ip "\fB\-ftabstop=\fR\fIwidth\fR" 4 .IX Item "-ftabstop=width" Set the distance between tab stops. This helps the preprocessor report correct column numbers in warnings or errors, even if tabs appear on the line. If the value is less than 1 or greater than 100, the option is ignored. The default is 8. -.if n .Ip "\f(CW""\-fno\-show\-column""\fR" 4 -.el .Ip "\f(CW\-fno\-show\-column\fR" 4 +.Ip "\fB\-fno-show-column\fR" 4 .IX Item "-fno-show-column" Do not print column numbers in diagnostics. This may be necessary if diagnostics are being scanned by a program that does not understand the -column numbers, such as \f(CW\*(C`dejagnu\*(C'\fR. -.if n .Ip "\f(CW""\-A \f(CIpredicate\f(CW=\f(CIanswer\f(CW""\fR" 4 -.el .Ip "\f(CW\-A \f(CIpredicate\f(CW=\f(CIanswer\f(CW\fR" 4 +column numbers, such as \fBdejagnu\fR. +.Ip "\fB\-A\fR \fIpredicate\fR\fB=\fR\fIanswer\fR" 4 .IX Item "-A predicate=answer" Make an assertion with the predicate \fIpredicate\fR and answer \&\fIanswer\fR. This form is preferred to the older form \fB\-A\fR \&\fIpredicate\fR\fB(\fR\fIanswer\fR\fB)\fR, which is still supported, because it does not use shell special characters. -.if n .Ip "\f(CW""\-A \-\f(CIpredicate\f(CW=\f(CIanswer\f(CW""\fR" 4 -.el .Ip "\f(CW\-A \-\f(CIpredicate\f(CW=\f(CIanswer\f(CW\fR" 4 +.Ip "\fB\-A -\fR\fIpredicate\fR\fB=\fR\fIanswer\fR" 4 .IX Item "-A -predicate=answer" Cancel an assertion with the predicate \fIpredicate\fR and answer \&\fIanswer\fR. -.if n .Ip "\f(CW""\-A\-""\fR" 4 -.el .Ip "\f(CW\-A\-\fR" 4 +.Ip "\fB\-A-\fR" 4 .IX Item "-A-" Cancel all predefined assertions and all assertions preceding it on the command line. Also, undefine all predefined macros and all macros preceding it on the command line. (This is a historical wart and may change in the future.) -.if n .Ip "\f(CW""\-dM""\fR" 4 -.el .Ip "\f(CW\-dM\fR" 4 +.Ip "\fB\-dM\fR" 4 .IX Item "-dM" Instead of the normal output, generate a list of \fB#define\fR directives for all the macros defined during the execution of the preprocessor, including predefined macros. This gives you a way of finding out what is predefined in your version of the preprocessor. -Assuming you have no file \fBfoo.h\fR, the command +Assuming you have no file \fIfoo.h\fR, the command .Sp .Vb 1 \& touch foo.h; cpp -dM foo.h .Ve will show all the predefined macros. -.if n .Ip "\f(CW""\-dD""\fR" 4 -.el .Ip "\f(CW\-dD\fR" 4 +.Ip "\fB\-dD\fR" 4 .IX Item "-dD" Like \fB\-dM\fR except in two respects: it does \fInot\fR include the predefined macros, and it outputs \fIboth\fR the \fB#define\fR directives and the result of preprocessing. Both kinds of output go to the standard output file. -.if n .Ip "\f(CW""\-dN""\fR" 4 -.el .Ip "\f(CW\-dN\fR" 4 +.Ip "\fB\-dN\fR" 4 .IX Item "-dN" Like \fB\-dD\fR, but emit only the macro names, not their expansions. -.if n .Ip "\f(CW""\-dI""\fR" 4 -.el .Ip "\f(CW\-dI\fR" 4 +.Ip "\fB\-dI\fR" 4 .IX Item "-dI" Output \fB#include\fR directives in addition to the result of preprocessing. -.if n .Ip "\f(CW""\-P""\fR" 4 -.el .Ip "\f(CW\-P\fR" 4 +.Ip "\fB\-P\fR" 4 .IX Item "-P" Inhibit generation of linemarkers in the output from the preprocessor. This might be useful when running the preprocessor on something that is not C code, and will be sent to a program which might be confused by the linemarkers. -.if n .Ip "\f(CW""\-C""\fR" 4 -.el .Ip "\f(CW\-C\fR" 4 +.Ip "\fB\-C\fR" 4 .IX Item "-C" Do not discard comments. All comments are passed through to the output file, except for comments in processed directives, which are deleted @@ -689,64 +633,52 @@ replaced by a single space might become significant when comments are retained. Also, comments appearing at the start of what would be a directive line have the effect of turning that line into an ordinary source line, since the first token on the line is no longer a \fB#\fR. -.if n .Ip "\f(CW""\-gcc""\fR" 4 -.el .Ip "\f(CW\-gcc\fR" 4 +.Ip "\fB\-gcc\fR" 4 .IX Item "-gcc" Define the macros _\|_GNUC_\|_, _\|_GNUC_MINOR_\|_ and _\|_GNUC_PATCHLEVEL_\|_. These are defined automatically when you use -\&\fBgcc \-E\fR; you can turn them off in that case with \fB\-no-gcc\fR. -.if n .Ip "\f(CW""\-traditional""\fR" 4 -.el .Ip "\f(CW\-traditional\fR" 4 +\&\fBgcc \-E\fR; you can turn them off in that case with +\&\fB\-no-gcc\fR. +.Ip "\fB\-traditional\fR" 4 .IX Item "-traditional" Try to imitate the behavior of old-fashioned C, as opposed to \s-1ISO\s0 C. -.if n .Ip "\f(CW""\-trigraphs""\fR" 4 -.el .Ip "\f(CW\-trigraphs\fR" 4 +.Ip "\fB\-trigraphs\fR" 4 .IX Item "-trigraphs" Process trigraph sequences. -.if n .Ip "\f(CW""\-remap""\fR" 4 -.el .Ip "\f(CW\-remap\fR" 4 +.Ip "\fB\-remap\fR" 4 .IX Item "-remap" Enable special code to work around file systems which only permit very short file names, such as \s-1MS-DOS\s0. -.if n .Ip "\f(CW""\-$""\fR" 4 -.el .Ip "\f(CW\-$\fR" 4 +.Ip "\fB\-$\fR" 4 .IX Item "-$" Forbid the use of \fB$\fR in identifiers. The C standard allows implementations to define extra characters that can appear in -identifiers. By default the \s-1GNU\s0 C preprocessor permits \fB$\fR, a -common extension. -.if n .Ip "\f(CW""\-h""\fR" 4 -.el .Ip "\f(CW\-h\fR" 4 +identifiers. By default \s-1GNU\s0 \s-1CPP\s0 permits \fB$\fR, a common extension. +.Ip "\fB\-h\fR" 4 .IX Item "-h" .PD 0 -.if n .Ip "\f(CW""\-\-help""\fR" 4 -.el .Ip "\f(CW\-\-help\fR" 4 -.IX Item "--help" -.if n .Ip "\f(CW""\-\-target\-help""\fR" 4 -.el .Ip "\f(CW\-\-target\-help\fR" 4 -.IX Item "--target-help" +.Ip "\fB\*(--help\fR" 4 +.IX Item "help" +.Ip "\fB\*(--target-help\fR" 4 +.IX Item "target-help" .PD Print text describing all the command line options instead of preprocessing anything. -.if n .Ip "\f(CW""\-v""\fR" 4 -.el .Ip "\f(CW\-v\fR" 4 +.Ip "\fB\-v\fR" 4 .IX Item "-v" Verbose mode. Print out \s-1GNU\s0 \s-1CPP\s0's version number at the beginning of execution, and report the final form of the include path. -.if n .Ip "\f(CW""\-H""\fR" 4 -.el .Ip "\f(CW\-H\fR" 4 +.Ip "\fB\-H\fR" 4 .IX Item "-H" Print the name of each header file used, in addition to other normal activities. Each name is indented to show how deep in the \&\fB#include\fR stack it is. -.if n .Ip "\f(CW""\-version""\fR" 4 -.el .Ip "\f(CW\-version\fR" 4 +.Ip "\fB\-version\fR" 4 .IX Item "-version" .PD 0 -.if n .Ip "\f(CW""\-\-version""\fR" 4 -.el .Ip "\f(CW\-\-version\fR" 4 -.IX Item "--version" +.Ip "\fB\*(--version\fR" 4 +.IX Item "version" .PD Print out \s-1GNU\s0 \s-1CPP\s0's version number. With one dash, proceed to preprocess as normal. With two dashes, exit immediately. @@ -763,7 +695,7 @@ Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation. A copy of -the license is included in the accompanying manual for \s-1GNU\s0 \s-1CC\s0, in the +the license is included in the accompanying manual for \s-1GCC\s0, in the section ``\s-1GNU\s0 Free Documentation License''. This manual contains no Invariant Sections, and has no Front-Cover Texts or Back-Cover Texts. |