Technical data
Compiler Commands [2]
Because there is no separate preprocessor, -Yp and -Y0 are equivalent. If you
are using the -Y option on the cpp command line, p is the only argument for
phase that is allowed.
2.20 Preprocessing Options
The following sections describe compiler options that affect preprocessing.
2.20.1 -C (CC, cc, cpp)
The -C option retains all comments in the preprocessed source code, except
those on preprocessor directive lines. By default, the preprocessor phase strips
comments from the source code. This option is useful with cpp or in combination
with the -P or -E option on the CC and cc commands.
2.20.2 -D macro[=def] (CC, cc, c89, cpp)
The -D macro[=def] option defines a macro named macro as if it were defined by
a#define directive. If no =def argument is specified, macro is defined as 1.
Predefined macros also exist; these are described in Chapter 7, page 117. Any
predefined macro except those required by the standard (see Section 7.1, page
117) can be redefined by the -D option. The -U option overrides the -D option
when the same macro name is specified regardless of the order of options on
the command line.
2.20.3 -h [no]pragma=name[: name...] (CC, cc)
Default option: -h pragma
The [no]pragma=name[:name...] option enables or disables the processing of
specified directives in the source code. name can be the name of a directive or a
word shown in Table 5, page 36 to specify a group of directives. More than
one name can be specified. Multiple names must be separated by a colon and
have no intervening spaces.
S–2179–36 35










