From: Jeffrey A Law Date: Mon, 17 Aug 1998 08:18:17 +0000 (+0000) Subject: toplev.c (main): Enable -fstrict-aliasing for -O2 and above. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f9a83a91b7fe23514b34c1f20be785ce935ba9b;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc9cd63e025..823fbe95182 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 * regclass.c (allocate_reg_info): Respect MIN when clearing data. diff --git a/gcc/invoke.texi b/gcc/invoke.texi index 3d6688bef32..b2b68781d37 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 63e85aa3a83..dba8d2f5b2a 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)