Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

c99(1) OSS Shell and Utilities Reference Manual
-W[no]optional_lib
Indicates whether a library specified in the command stream should be considered
optional when the linker creates a loadfile.
When -Wnooptional_lib behavior is in effect, any library specified in a -l or -lib flag is
included in the .liblist section of the loadfile being created. When -Woptional_lib
behavior is in effect, a specified library can be omitted from the .liblist section of the
loadfile being created if omitting it would not affect how symbolic references are
resolved.
These flags can be specified as many times as needed in the command stream. Provid-
ing either flag overrides the current setting, so that the linker actions can be controlled
on a library-by-library basis.
If a library is specified more than once, and at least one specification occurs when
-Wnooptional_lib is in effect, the library is included in the .liblist section of the
loadfile being created.
The default behavior is -Wnooptional_lib.
-W[no]overflow_traps
Enables [disables] overflow traps. The default setting is -Wnooverflow_traps.
-WP Preprocesses the specified source files. No compilation or linking is performed. Out-
put is placed in corresponding files with .i (for C) or .ii (for C++) sufxes in the current
working directory.
If the -Wsqlmx flag is specified, embedded NonStop SQL/MX statements are pro-
cessed.
The -E, -WH, and -WM flags override the -WP flag.
-Wpool_string_literals
Specifies that, within a compilation unit, multiple occurences of the same string literal
should occupy the same storage space. This flag applies to C++ compilations only; it
is ignored when C++ is not used.
The default assignment for multiple occurrences of a string literal gives them separate
storage space.
-Wprofdir=name
Specifies the location in which to create the dynamic information (DYN) file when the
-Wprofgen flag directs the compiler to generate instrumented code. If the application
is to run in the Guardian environment, name must be a string that specifies a valid
Guardian subvolume. Otherwise, name must be a string that specifies a valid OSS
directory. If an invalid name is specified, no profiling information will saved.
If this flag is not specified, the DYN file is created in the default Guardian subvolume
or the current OSS working directory for the process.
If object files that were compiled with different profdir locations are linked together,
when the application is run, the DYN file is created in the location specified by one of
profdir flags. However, it is not possible to predict which profdir location will be
used.
For more information about profile-guided optimization, see the Code Profiling Utili-
ties Manual.
248 Hewlett-Packard Company 527188-021