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 target/35907] [4.3/4.4 Regression] 64-bit power6 glibc miscompilation



------- 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


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