public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/40626]  New: -frename-registers causes register corruption
@ 2009-07-02 21:40 dj at redhat dot com
  2009-07-02 21:41 ` [Bug rtl-optimization/40626] " dj at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dj at redhat dot com @ 2009-07-02 21:40 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

When compiled with -frename-registers, the TBA test case produces invalid
code.  Specifically, the cpadd4.h opcode clobbers $c1 but the cpsub2.h
assumes it still has the value "a" in it.  Compiling with
-fno-rename-registers results in valid code.


-- 
           Summary: -frename-registers causes register corruption
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dj at redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: mep-elf


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


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

* [Bug rtl-optimization/40626] -frename-registers causes register corruption
  2009-07-02 21:40 [Bug rtl-optimization/40626] New: -frename-registers causes register corruption dj at redhat dot com
@ 2009-07-02 21:41 ` dj at redhat dot com
  2009-07-02 21:42 ` dj at redhat dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dj at redhat dot com @ 2009-07-02 21:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dj at redhat dot com  2009-07-02 21:41 -------
Created an attachment (id=18129)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18129&action=view)
test case for the above

Compile with:

./cc1 -quiet -mivc2 dj.c -O2 -o dj.s -frename-registers


-- 


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


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

* [Bug rtl-optimization/40626] -frename-registers causes register corruption
  2009-07-02 21:40 [Bug rtl-optimization/40626] New: -frename-registers causes register corruption dj at redhat dot com
  2009-07-02 21:41 ` [Bug rtl-optimization/40626] " dj at redhat dot com
@ 2009-07-02 21:42 ` dj at redhat dot com
  2009-07-02 21:43 ` dj at redhat dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dj at redhat dot com @ 2009-07-02 21:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from dj at redhat dot com  2009-07-02 21:42 -------
Created an attachment (id=18130)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18130&action=view)
resulting .s


-- 


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


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

* [Bug rtl-optimization/40626] -frename-registers causes register corruption
  2009-07-02 21:40 [Bug rtl-optimization/40626] New: -frename-registers causes register corruption dj at redhat dot com
  2009-07-02 21:41 ` [Bug rtl-optimization/40626] " dj at redhat dot com
  2009-07-02 21:42 ` dj at redhat dot com
@ 2009-07-02 21:43 ` dj at redhat dot com
  2009-07-02 21:43 ` dj at redhat dot com
  2009-07-10  2:56 ` dj at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: dj at redhat dot com @ 2009-07-02 21:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from dj at redhat dot com  2009-07-02 21:42 -------
Created an attachment (id=18131)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18131&action=view)
dump just before rnreg


-- 


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


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

* [Bug rtl-optimization/40626] -frename-registers causes register corruption
  2009-07-02 21:40 [Bug rtl-optimization/40626] New: -frename-registers causes register corruption dj at redhat dot com
                   ` (2 preceding siblings ...)
  2009-07-02 21:43 ` dj at redhat dot com
@ 2009-07-02 21:43 ` dj at redhat dot com
  2009-07-10  2:56 ` dj at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: dj at redhat dot com @ 2009-07-02 21:43 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from dj at redhat dot com  2009-07-02 21:43 -------
Created an attachment (id=18132)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18132&action=view)
dump just after rnreg


-- 


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


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

* [Bug rtl-optimization/40626] -frename-registers causes register corruption
  2009-07-02 21:40 [Bug rtl-optimization/40626] New: -frename-registers causes register corruption dj at redhat dot com
                   ` (3 preceding siblings ...)
  2009-07-02 21:43 ` dj at redhat dot com
@ 2009-07-10  2:56 ` dj at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: dj at redhat dot com @ 2009-07-10  2:56 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dj at redhat dot com  2009-07-10 02:56 -------
http://gcc.gnu.org/ml/gcc-patches/2009-07/msg00546.html
Fixed in revision 149455.


-- 

dj at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2009-07-10  2:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-02 21:40 [Bug rtl-optimization/40626] New: -frename-registers causes register corruption dj at redhat dot com
2009-07-02 21:41 ` [Bug rtl-optimization/40626] " dj at redhat dot com
2009-07-02 21:42 ` dj at redhat dot com
2009-07-02 21:43 ` dj at redhat dot com
2009-07-02 21:43 ` dj at redhat dot com
2009-07-10  2:56 ` 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).