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

* [Bug rtl-optimization/48604] [4.6 regression] wrong code with -frename-registers
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-04-14 10:31 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|powerpc-rtems4.11-gcc       |powerpc-rtems4.11
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.04.14 10:31:18
          Component|target                      |rtl-optimization
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org
     Ever Confirmed|0                           |1
            Summary|[PowerPC] Wrong code with   |[4.6 regression] wrong code
                   |-frename-registers -Os      |with -frename-registers
   Target Milestone|---                         |4.6.1

--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-04-14 10:31:18 UTC ---
Confirmed.


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

* [Bug rtl-optimization/48604] [4.6 regression] wrong code with -frename-registers
  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 ` ebotcazou at gcc dot gnu.org
  2011-04-14 10:31 ` ebotcazou at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-04-14 10:31 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |ebotcazou at gcc dot
                   |gnu.org                     |gnu.org

--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-04-14 10:31:52 UTC ---
Investigating.


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

* [Bug rtl-optimization/48604] [4.5/4.6 regression] wrong code with -frename-registers
  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 ` 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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-04-14 10:56 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.4.5
   Target Milestone|4.6.1                       |4.5.3
            Summary|[4.6 regression] wrong code |[4.5/4.6 regression] wrong
                   |with -frename-registers     |code with
                   |                            |-frename-registers
      Known to fail|                            |4.5.2, 4.6.0

--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-04-14 10:56:04 UTC ---
On the 4.5 branch:

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


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

* [Bug target/48604] [4.5/4.6/4.7 regression] wrong code with -frename-registers
  2011-04-14  8:57 [Bug target/48604] New: [PowerPC] Wrong code with -frename-registers -Os sebastian.huber@embedded-brains.de
                   ` (2 preceding siblings ...)
  2011-04-14 10:56 ` [Bug rtl-optimization/48604] [4.5/4.6 " ebotcazou at gcc dot gnu.org
@ 2011-04-21  9:26 ` 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
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-21  9:26 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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

* [Bug target/48604] [4.5/4.6/4.7 regression] wrong code with -frename-registers
  2011-04-14  8:57 [Bug target/48604] New: [PowerPC] Wrong code with -frename-registers -Os sebastian.huber@embedded-brains.de
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: edmar at freescale dot com @ 2011-04-26 17:32 UTC (permalink / raw)
  To: gcc-bugs

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

Edmar Wienskoski <edmar at freescale dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |edmar at freescale dot com

--- Comment #4 from Edmar Wienskoski <edmar at freescale dot com> 2011-04-26 17:31:38 UTC ---
You may want to take a look at:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44618


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

* [Bug target/48604] [4.5/4.6/4.7 regression] wrong code with -frename-registers
  2011-04-14  8:57 [Bug target/48604] New: [PowerPC] Wrong code with -frename-registers -Os sebastian.huber@embedded-brains.de
                   ` (4 preceding siblings ...)
  2011-04-26 17:32 ` edmar at freescale dot com
@ 2011-04-27 10:10 ` ebotcazou at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-04-27 10:10 UTC (permalink / raw)
  To: gcc-bugs

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

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-04-27 09:18:29 UTC ---
Indeed.

*** This bug has been marked as a duplicate of bug 44618 ***


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