toplev.c (main): Enable -fstrict-aliasing for -O2 and above.
authorJeffrey A Law <law@cygnus.com>
Mon, 17 Aug 1998 08:18:17 +0000 (08:18 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 17 Aug 1998 08:18:17 +0000 (02:18 -0600)
        * toplev.c (main): Enable -fstrict-aliasing for -O2 and above.
        * invoke.texi: Corresponding changes.

From-SVN: r21777

gcc/ChangeLog
gcc/invoke.texi
gcc/toplev.c

index cc9cd63e025e147abfd6fca9f5fb61917f5e3d53..823fbe95182af4f5165924b6aec4d904b40ca693 100644 (file)
@@ -1,3 +1,8 @@
+Mon Aug 17 09:15:47 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * toplev.c (main): Enable -fstrict-aliasing for -O2 and above.
+       * invoke.texi: Corresponding changes.
+
 Mon Aug 17 02:03:55 1998  Richard Henderson  <rth@cygnus.com>
 
        * regclass.c (allocate_reg_info): Respect MIN when clearing data.
index 3d6688bef3285e5307556debd9e861d0002766dc..b2b68781d37c78d84fabcca5bc1f909115827751 100644 (file)
@@ -2494,10 +2494,6 @@ int f() @{
 @}
 @end example
 
-This option is not enabled by default at any optimization level because
-it is new and has yet to be subjected to thorough testing.  You may
-of course enable it manually with @samp{-fstrict-aliasing}.
-
 @ifset INTERNALS
 Every language that wishes to perform language-specific alias analysis
 should define a function that computes, given an @code{tree}
index 63e85aa3a831e5d2db7faa01570f40897516d9cf..dba8d2f5b2a64f0e88a4c2c811ea89dfbd5d86bf 100644 (file)
@@ -4290,9 +4290,7 @@ main (argc, argv, envp)
       flag_schedule_insns_after_reload = 1;
 #endif
       flag_regmove = 1;
-      /* We don't set flag_strict_aliasing here because we're still
-        testing the functionality.  After it has been tested, it
-        should be turned on here.  */
+      flag_strict_aliasing = 1;
     }
 
   if (optimize >= 3)