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 tree-optimization/51315] gcc 4.6.2 miscompilation with -ftree-sra (included in -O2) on Debian/sparc


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

Mikael Pettersson <mikpe at it dot uu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpe at it dot uu.se

--- Comment #2 from Mikael Pettersson <mikpe at it dot uu.se> 2011-11-29 09:54:05 UTC ---
The SIGBUS is due to a misaligned address at the machine code level.

On sparc64-linux -m32 I can reproduce the SIGBUS with current 4.7 and 4.6, but
not with 4.5 or 4.4.  On armv5tel-linux-gnueabi the test case causes an
alignment exception (logged and fixed up by the kernel) when compiled by 4.7 or
4.6, but not when compiled by 4.5 or 4.4.

I believe this is a dupe of one of the other alignments bugs in 4.6+ affecting
at least sparc and arm.


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