This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/60581] gcc doesn't isssue a strict aliasing warning on a code that seems to break it
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 19 Mar 2014 10:00:27 +0000
- Subject: [Bug c/60581] gcc doesn't isssue a strict aliasing warning on a code that seems to break it
- Auto-submitted: auto-generated
- References: <bug-60581-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60581
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |alias, diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-03-19
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
The strict-aliasing warnings are broken - they are too easily to silence (the
(char *) cast for example). Generally warning for TBAA violations is very hard
if you want to avoid gazillions of false positives or gazillions of false
negatives. The present warning code delivers neither :/