[Bug target/59679] gcc version 4.7.3 and gcc version 4.5.3 cause an unaligned access exception on NetBSD/Alpha

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 5 04:33:00 GMT 2014


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |alpha-netbsd
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2014-01-05
          Component|c                           |target
     Ever confirmed|0                           |1
           Severity|critical                    |normal

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This looks more like a bug in perl sources.  Can you attach the preprocessed
source for scope.c?

The big question is how is ARG0_PTR defined?  GCC must be assuming the
alignment is 64bits for some reason.  This needs the preprocessed source to see
why the alignment is being done incorrectly.  Maybe ARG0_PTR was assigned from
a long long pointer. 

In C, once you assign it to a pointer of bigger alignment and it is not
aligned, the code is undefined.



More information about the Gcc-bugs mailing list