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: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2008 10:51:25 -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 #10 from manu at gcc dot gnu dot org 2008-01-28 10:51 -------
(In reply to comment #8)
> (In reply to comment #6)
> > But shouldn't -Wno-strict-aliasing suppress the warning?
>
> Yes if you actually have -Wno-strict-aliasing after -Wall.
Andrew, note that this is not longer true in 4.2.3 and 4.3. -Wall won't
override -Wno-strict-aliasing and it won't override -Wstrict-aliasing=2 (and
the same for -Wstrict-overflow variants)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34973