This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/60581] gcc doesn't isssue a strict aliasing warning on a code that seems to break it


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 :/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]