This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32838] New: gcc generates incorrect trampoline code in thumb mode
- From: "leo at marco dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jul 2007 11:52:28 -0000
- Subject: [Bug target/32838] New: gcc generates incorrect trampoline code in thumb mode
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When using nested functions, the trampoline code will destroy register 9 while
loading the static chain. This is even noted in gcc/config/arm/arm.h:
XXX FIXME: When the trampoline returns, r8 will be clobbered.
(it will be r9 and not r8...).
The attached patch avoids clobbering r9.
--
Summary: gcc generates incorrect trampoline code in thumb mode
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: leo at marco dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32838