This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34973] Wno-strict-aliasing is not working
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2008 14:13:54 -0000
- Subject: [Bug middle-end/34973] Wno-strict-aliasing is not working
- References: <bug-34973-13841@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from rguenth at gcc dot gnu dot org 2008-05-03 14:13 -------
Err, simple. (-Wstrict-aliasing=0 works, but -Wno-strict-aliasing doesn't)
Index: opts.c
===================================================================
--- opts.c (revision 134849)
+++ opts.c (working copy)
@@ -1865,6 +1865,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
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Keywords| |diagnostic
Last reconfirmed|2008-05-03 14:06:17 |2008-05-03 14:13:53
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34973