This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/23106] -Wstrict-aliasing=2 doesn't warn for all aliasing problems
- From: "fn_x at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jul 2005 00:00:39 -0000
- Subject: [Bug c/23106] -Wstrict-aliasing=2 doesn't warn for all aliasing problems
- References: <20050727233319.23106.fn_x@hotmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fn_x at hotmail dot com 2005-07-28 00:00 -------
The bug this is marked a duplicate of is about -Wall, which includes only
-Wstrict-aliasing. This bug is about -Wstrict-aliasing=2. It is documented as
warning for "all code which might break the strict aliasing rules that the
compiler is using for optimization". I certainly agree that it is reasonable not
to warn when only -Wstrict-aliasing is given, but if you don't want to warn here
either, would it be fair to ask to at least update the documentation?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23106