public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/48604] New: [PowerPC] Wrong code with -frename-registers -Os
@ 2011-04-14  8:57 sebastian.huber@embedded-brains.de
  2011-04-14 10:31 ` [Bug rtl-optimization/48604] [4.6 regression] wrong code with -frename-registers ebotcazou at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: sebastian.huber@embedded-brains.de @ 2011-04-14  8:57 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [PowerPC] Wrong code with -frename-registers -Os
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sebastian.huber@embedded-brains.de
            Target: powerpc-rtems4.11-gcc


Created attachment 23977
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23977
C source code corresponding to the assembler code.

Creating an assembler file with

powerpc-rtems4.11-gcc -S -frename-registers -Os qmmpagef.i

generates wrong code.

In fmm_setup_mmu_fn:

.L20:
    addi 31,1,304
    mr 3,28
    b _restgpr_18_x
    .size    fmm_setup_mmu_fn, .-fmm_setup_mmu_fn

Usage of register 31 is wrong here, should be register 11.  Compiling with
-fno-rename-registers leads to valid code.


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

end of thread, other threads:[~2011-04-27 10:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-14  8:57 [Bug target/48604] New: [PowerPC] Wrong code with -frename-registers -Os sebastian.huber@embedded-brains.de
2011-04-14 10:31 ` [Bug rtl-optimization/48604] [4.6 regression] wrong code with -frename-registers ebotcazou at gcc dot gnu.org
2011-04-14 10:31 ` ebotcazou at gcc dot gnu.org
2011-04-14 10:56 ` [Bug rtl-optimization/48604] [4.5/4.6 " ebotcazou at gcc dot gnu.org
2011-04-21  9:26 ` [Bug target/48604] [4.5/4.6/4.7 " rguenth at gcc dot gnu.org
2011-04-26 17:32 ` edmar at freescale dot com
2011-04-27 10:10 ` ebotcazou 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).