aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-08-17 08:18:17 +0000
committerJeff Law <law@gcc.gnu.org>1998-08-17 02:18:17 -0600
commit3f9a83a91b7fe23514b34c1f20be785ce935ba9b (patch)
tree3eef344cc5285c8ca392b15c163ac53e9c6b7092
parent29f63881da0f971b44a89144d0a81088b51f72bf (diff)
downloadgcc-3f9a83a91b7fe23514b34c1f20be785ce935ba9b.zip
gcc-3f9a83a91b7fe23514b34c1f20be785ce935ba9b.tar.gz
gcc-3f9a83a91b7fe23514b34c1f20be785ce935ba9b.tar.bz2
toplev.c (main): Enable -fstrict-aliasing for -O2 and above.
* toplev.c (main): Enable -fstrict-aliasing for -O2 and above. * invoke.texi: Corresponding changes. From-SVN: r21777
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/invoke.texi4
-rw-r--r--gcc/toplev.c4
3 files changed, 6 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index cc9cd63..823fbe9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/invoke.texi b/gcc/invoke.texi
index 3d6688b..b2b6878 100644
--- a/gcc/invoke.texi
+++ b/gcc/invoke.texi
@@ -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}
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 63e85aa..dba8d2f 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -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)