Sun Studio 12 Update 1: C User's Guide

B.2.19 -features=[v]

The following table lists the values you can use in place of v.

Table B–7 The -features Flags

Value 

Meaning  

[no%]conststrings

Enables or disables the placement of string literals in read-only memory. The default is -features=conststrings which places string literals into the read-only data section. Note that compiling a program that attempts to write to the memory location of a string literal will now cause a segmentation fault when compiled with this option.

extensions

Allows zero-sized struct/union declarations and void functions with return statements returning a value to work. 

extinl

Generates extern inline functions as global functions. This is the default, which conforms to the 1999 C standard. Compile new codes with -features=no%extinl to obtain the same treatment of extern inline functions as provided by older versions of the C and C++ compilers.

no%extinl

Generates extern inline functions as static functions. 

%none

The option is disabled. 

Old C and C++ objects (created with Sun compilers prior to this release) can be linked with new C and C++ objects with no change of behavior for the old objects. To get standard conforming behavior, you must recompile old code with the current compiler.

If you do not specify a setting for -features, the compiler sets it to -features=extinl.