Clarify that -O2 sets -fstrict-aliasing
authorMichael Meissner <meissner@redhat.com>
Wed, 20 Mar 2002 22:56:33 +0000 (22:56 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Wed, 20 Mar 2002 22:56:33 +0000 (22:56 +0000)
From-SVN: r51097

gcc/ChangeLog
gcc/doc/invoke.texi

index a3994292e6cb2680031dff1b2bc216ccbd617a0b..2a071c33b0d7b899b4fe0bfc3f93dec40c37f0b0 100644 (file)
@@ -1,3 +1,8 @@
+2002-03-20  Michael Meissner  <meissner@redhat.com>
+
+       * doc/invoke.texi (Optimize Options): Document that -O2 sets
+       -fstrict-aliasing.
+
 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
 
        * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
index abb963852e4dba34c115ed29e8904d10ee7bad35..52af61dff6da56ec3e52933fa46beb2ab9e03da9 100644 (file)
@@ -3170,10 +3170,11 @@ perform loop unrolling or function inlining when you specify @option{-O2}.
 As compared to @option{-O}, this option increases both compilation time
 and the performance of the generated code.
 
-@option{-O2} turns on all optional optimizations except for loop unrolling,
-function inlining, and register renaming.  It also turns on the
-@option{-fforce-mem} option on all machines and frame pointer elimination
-on machines where doing so does not interfere with debugging.
+@option{-O2} turns on all optional optimizations except for loop
+unrolling, function inlining, and register renaming.  It also turns on
+the @option{-fforce-mem} and @option{-fstrict-aliasing} option on all
+machines and frame pointer elimination on machines where doing so does
+not interfere with debugging.
 
 Please note the warning under @option{-fgcse} about
 invoking @option{-O2} on programs that use computed gotos.
@@ -3716,6 +3717,9 @@ node, an alias set for the node.  Nodes in different alias sets are not
 allowed to alias.  For an example, see the C front-end function
 @code{c_get_alias_set}.
 
+For all machines, optimization level 2 and higher enables this flag by
+default.
+
 @item -falign-functions
 @itemx -falign-functions=@var{n}
 @opindex falign-functions