diff options
author | Richard Guenther <rguenther@suse.de> | 2008-05-03 15:28:57 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2008-05-03 15:28:57 +0000 |
commit | 621b5ed6130e8ec76c8c2b8c2d2411a2d57e7f60 (patch) | |
tree | 46ebf0ebf66b48a227dcd0201a96db6568d16b66 /gcc | |
parent | d18b52aa3b11eb708b69ed13616c95f2db1f6822 (diff) | |
download | gcc-621b5ed6130e8ec76c8c2b8c2d2411a2d57e7f60.zip gcc-621b5ed6130e8ec76c8c2b8c2d2411a2d57e7f60.tar.gz gcc-621b5ed6130e8ec76c8c2b8c2d2411a2d57e7f60.tar.bz2 |
re PR middle-end/34973 (Wno-strict-aliasing is not working)
2008-05-03 Richard Guenther <rguenther@suse.de>
PR middle-end/34973
* opts.c (set_Wstrict_aliasing): Handle the turn-off case.
From-SVN: r134903
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/opts.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 02055e5..5665dc9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-05-03 Richard Guenther <rguenther@suse.de> + + PR middle-end/34973 + * opts.c (set_Wstrict_aliasing): Handle the turn-off case. + 2008-05-02 David S. Miller <davem@davemloft.net> * config.gcc (need_64bit_hwint): Document libcpp dependency. @@ -1982,6 +1982,8 @@ set_Wstrict_aliasing (int onoff) gcc_assert (onoff == 0 || onoff == 1); if (onoff != 0) warn_strict_aliasing = 3; + else + warn_strict_aliasing = 0; } /* The following routines are useful in setting all the flags that |