This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/51315] gcc 4.6.2 miscompilation with -ftree-sra (included in -O2) on Debian/sparc
- From: "mikpe at it dot uu.se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 29 Nov 2011 09:54:05 +0000
- Subject: [Bug tree-optimization/51315] gcc 4.6.2 miscompilation with -ftree-sra (included in -O2) on Debian/sparc
- Auto-submitted: auto-generated
- References: <bug-51315-4@http.gcc.gnu.org/bugzilla/>
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.