public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/32838]  New: gcc generates incorrect trampoline code in thumb mode
@ 2007-07-20 11:52 leo at marco dot de
  2007-07-20 11:53 ` [Bug target/32838] " leo at marco dot de
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: leo at marco dot de @ 2007-07-20 11:52 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-03-19 19:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-20 11:52 [Bug target/32838] New: gcc generates incorrect trampoline code in thumb mode leo at marco dot de
2007-07-20 11:53 ` [Bug target/32838] " leo at marco dot de
2007-07-20 11:55 ` leo at marco dot de
2009-01-02 12:31 ` laurent at guerby dot net
2009-03-17 16:48 ` leo at marco dot de
2009-03-19 10:15 ` sam at gcc dot gnu dot org
2009-03-19 19:08 ` leo at marco dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).