public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/51345] New: [avr] Devices with 8-bit SP need their own multilib(s)
@ 2011-11-29 14:35 gjl at gcc dot gnu.org
  2011-11-29 14:44 ` [Bug target/51345] " gjl at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gjl at gcc dot gnu.org @ 2011-11-29 14:35 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51345

             Bug #: 51345
           Summary: [avr] Devices with 8-bit SP need their own multilib(s)
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Keywords: FIXME, wrong-code
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: gjl@gcc.gnu.org
                CC: eric.weddington@atmel.com
            Blocks: 51002
            Target: avr


Code that reads SP register must not read from the high byte of SP if the SP is
just 8 bits wide.

The C code will be correct once PR51002 will have been fixed, however, there is
code in libgcc that also reads from __SP_H__ like __prologue_saves__ and
__epilogue_restores__.

The issue is that the 8-bit property is set on the device level in
avr_current_device->short_sp and devices with different settings of short_sp
are mixed up the the same multilib.


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

end of thread, other threads:[~2012-05-31 17:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-29 14:35 [Bug target/51345] New: [avr] Devices with 8-bit SP need their own multilib(s) gjl at gcc dot gnu.org
2011-11-29 14:44 ` [Bug target/51345] " gjl at gcc dot gnu.org
2011-12-02 19:15 ` gjl at gcc dot gnu.org
2011-12-06 15:06 ` gjl at gcc dot gnu.org
2011-12-28 12:27 ` gjl at gcc dot gnu.org
2012-01-02 12:52 ` gjl at gcc dot gnu.org
2012-01-04 15:29 ` gjl at gcc dot gnu.org
2012-03-24 21:09 ` gjl at gcc dot gnu.org
2012-03-28 10:32 ` gjl at gcc dot gnu.org
2012-03-28 11:05 ` gjl at gcc dot gnu.org
2012-05-31 17:42 ` gjl at gcc dot gnu.org

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