Specifications

Red Hat Enterprise Linux to Oracle Solaris Porting Guide
33
TABLE 4-1. EQUIVALENT COMPILER FLAGS AND WORKAROUNDS
GCC 4.4.5 OPTIONS ORACLE SOLARIS STUDIO 12.3
OPTIONS
DESCRIPTION
-ffloat-store -[ no] fstore Forces conversion of floating-point expressions instead of
leaving them in the register.
-fargument-
(no)alias
-fargument -
(no)alias-global
-xrestrict[ =f] Treats pointer-valued function parameters as restricted pointers.
-fstrict-aliasing
-fargument-
[no]alias
-fargument-noalias-
global
-xalias_level[ =l] Specifies what assumptions can be made to perform
optimizations using type-based alias analysis.
- f[no]unsigned-
char
-xchar[ =o] Specifies whether type char is signed or unsigned.
-fstack-check -xcheck[=o] Turns on runtime checking for stack overflow.
-fprofile-generate -xprofile=collect Instructs the compiler to generate code for collecting profiling
information.
-fprofile-use -xprofile=use Uses the information from various runs of a program compiled
with -xprofile=coll ect.
-fprofile-arcs -xprofile=tcov Causes the program to emit information that can be examined
using the
tcov
tool. For GCC, use
gcov
.
-ftime-report -xtime Reports the time and resources used for the compilation.
--help -xhelp=flags Displays a summary of the compiler options.
-malign-double -dalign is obsolete.
Use
-xmemalign=8s
instead.
Assumes at most 8-byte alignment.
-mhard-float -fma[=none|fused] Enables generation of floating point, fused, and multiply-add
instructions.
-M
-xM
Generates makefile dependencies.
-MD -xMD Generates makefile dependencies including compilation.
-MF -xMF Specifies a file name for the makefile dependency output.
-MM -xM1 Same as -M, but excludes files in /usr/include. GCC
excludes files from system header directories.
-MMD -xMMD Generates makefile dependencies excluding system header