OSDN Git Service

2008-05-03 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 May 2008 15:28:57 +0000 (15:28 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 3 May 2008 15:28:57 +0000 (15:28 +0000)
PR middle-end/34973
* opts.c (set_Wstrict_aliasing): Handle the turn-off case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134903 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/opts.c

index 02055e5..5665dc9 100644 (file)
@@ -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.
index b87bc56..a5931f4 100644 (file)
@@ -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