This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/48542] mmix code which calls setjmp/longjmp may not work.
- From: "hp at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 14 Jun 2011 07:03:04 +0000
- Subject: [Bug target/48542] mmix code which calls setjmp/longjmp may not work.
- Auto-submitted: auto-generated
- References: <bug-48542-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48542
--- Comment #5 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2011-06-14 07:02:02 UTC ---
(In reply to comment #4)
> on trunk: the
> initial-value machinery should have handled the register with the
> return-address being clobbered. It does partially; note the store of that
> register at the function prologue (with an unpatched gcc).
Yep, it's (brr) reload. I'll attach a patch momentarily. I'll have to finish
my analysis and do a mmix regtest and a hosted regtest before posting.