public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/54217] New: setup_save_areas() duplicates hard reg uses
@ 2012-08-10  0:21 dj at redhat dot com
  2012-08-10  0:22 ` [Bug middle-end/54217] " dj at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dj at redhat dot com @ 2012-08-10  0:21 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54217
           Summary: setup_save_areas() duplicates hard reg uses
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dj@redhat.com


Created attachment 27977
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27977
patch to check for duplicate hard reg uses

setup_save_areas() in caller-save.c sometimes (with -fira-share-save-slots)
maps one hard reg to two different saved regs.  Since the save arrays are sized
to [FIRST_PSEUDO_REGISTER] this means the arrays may overflow.  The attached
test case demonstrates the error, the attached patch checks for the error and
forces an abort when it's detected.  Note: at the time I discovered this,
newlib (from whence the test case came) would show this error "somewhere" for
these *-elf targets: bfin cris m32c rl78 rx sh sh64 v850


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

* [Bug middle-end/54217] setup_save_areas() duplicates hard reg uses
  2012-08-10  0:21 [Bug middle-end/54217] New: setup_save_areas() duplicates hard reg uses dj at redhat dot com
@ 2012-08-10  0:22 ` dj at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: dj at redhat dot com @ 2012-08-10  0:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from DJ Delorie <dj at redhat dot com> 2012-08-10 00:22:22 UTC ---
Created attachment 27978
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27978
test case for rl78-elf, from newlib


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

end of thread, other threads:[~2012-08-10  0:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-10  0:21 [Bug middle-end/54217] New: setup_save_areas() duplicates hard reg uses dj at redhat dot com
2012-08-10  0:22 ` [Bug middle-end/54217] " dj at redhat dot com

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