This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/35907] [4.3/4.4 Regression] 64-bit power6 glibc miscompilation
- From: "amodra at bigpond dot net dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Apr 2008 07:19:02 -0000
- Subject: [Bug target/35907] [4.3/4.4 Regression] 64-bit power6 glibc miscompilation
- References: <bug-35907-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from amodra at bigpond dot net dot au 2008-04-14 07:19 -------
Created an attachment (id=15476)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15476&action=view)
proposed patch
I think we want something like the attached patch (as yet untested). Besides
the epilogue bug exposed by alloca, there is another bug with vrsave. If all
non-volatile gp and fp regs are saved/restored by a function, then vrsave will
be stored at frame-288-4 for 64-bit. After sp is adjusted, this location may
be trashed by an interrupt routine.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35907