[Bug c/48006] Inefficient optimization depends on builtin integer type of same size.

carlo at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 12 15:48:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48006

Carlo Wood <carlo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |
   Target Milestone|---                         |4.6.1

--- Comment #2 from Carlo Wood <carlo at gcc dot gnu.org> 2011-04-12 15:48:07 UTC ---
I couldn't get it to work with restrict, but after changing all size_t into
int, the difference indeed disappears, so I guess you're right and this is
caused by strict aliasing.



More information about the Gcc-bugs mailing list