public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/14815] New: -frename-registers produces incorrect code on ia64
@ 2004-04-01 23:16 jbutler at broad dot mit dot edu
  2004-04-01 23:19 ` [Bug optimization/14815] " jbutler at broad dot mit dot edu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jbutler at broad dot mit dot edu @ 2004-04-01 23:16 UTC (permalink / raw)
  To: gcc-bugs

The attached code (IsWeirdness.{cc,i}) produces the correct result when compiled
with -O2 -finline-functions on ia64 and with -O3 on alpha, but produces the
incorrect result with -O3 on ia64, which leads me to the conclusion that
something's gone all funny with -frename-registers on ia64.

The code is a bit nonsensical, as I've reduced it as much as possible while
preserving the incorrect behavior, but it should print the number "-764".  With
-O3 on ia64, it prints "-528".

-- 
           Summary: -frename-registers produces incorrect code on ia64
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jbutler at broad dot mit dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: ia64-unknown-linux
  GCC host triplet: ia64-unknown-linux
GCC target triplet: ia64-unknown-linux


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


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

* [Bug optimization/14815] -frename-registers produces incorrect code on ia64
  2004-04-01 23:16 [Bug optimization/14815] New: -frename-registers produces incorrect code on ia64 jbutler at broad dot mit dot edu
  2004-04-01 23:19 ` [Bug optimization/14815] " jbutler at broad dot mit dot edu
@ 2004-04-01 23:19 ` jbutler at broad dot mit dot edu
  2004-04-06  0:39 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jbutler at broad dot mit dot edu @ 2004-04-01 23:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jbutler at broad dot mit dot edu  2004-04-01 23:19 -------
Created an attachment (id=6028)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6028&action=view)
IsWeirdness.cc


-- 


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


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

* [Bug optimization/14815] -frename-registers produces incorrect code on ia64
  2004-04-01 23:16 [Bug optimization/14815] New: -frename-registers produces incorrect code on ia64 jbutler at broad dot mit dot edu
@ 2004-04-01 23:19 ` jbutler at broad dot mit dot edu
  2004-04-01 23:19 ` jbutler at broad dot mit dot edu
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jbutler at broad dot mit dot edu @ 2004-04-01 23:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jbutler at broad dot mit dot edu  2004-04-01 23:19 -------
Created an attachment (id=6029)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6029&action=view)
IsWeirdness.ii (gzipped)


-- 


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


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

* [Bug optimization/14815] -frename-registers produces incorrect code on ia64
  2004-04-01 23:16 [Bug optimization/14815] New: -frename-registers produces incorrect code on ia64 jbutler at broad dot mit dot edu
  2004-04-01 23:19 ` [Bug optimization/14815] " jbutler at broad dot mit dot edu
  2004-04-01 23:19 ` jbutler at broad dot mit dot edu
@ 2004-04-06  0:39 ` pinskia at gcc dot gnu dot org
  2004-04-06 15:04 ` jbutler at broad dot mit dot edu
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-06  0:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-06 00:39 -------
What bintuils are you using, as this could also be a bug in gas?

-- 


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


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

* [Bug optimization/14815] -frename-registers produces incorrect code on ia64
  2004-04-01 23:16 [Bug optimization/14815] New: -frename-registers produces incorrect code on ia64 jbutler at broad dot mit dot edu
                   ` (2 preceding siblings ...)
  2004-04-06  0:39 ` pinskia at gcc dot gnu dot org
@ 2004-04-06 15:04 ` jbutler at broad dot mit dot edu
  2004-04-07  3:26 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jbutler at broad dot mit dot edu @ 2004-04-06 15:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jbutler at broad dot mit dot edu  2004-04-06 15:03 -------
Subject: Re:  -frename-registers produces incorrect
 code on ia64

as -v returns:
GNU assembler version 2.14.90.0.7 (ia64-linux) using BFD version 2.14.90.0.7 
20031029 Debian GNU/Linux

pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-06 00:39 -------
> What bintuils are you using, as this could also be a bug in gas?
> 




-- 


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


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

* [Bug optimization/14815] -frename-registers produces incorrect code on ia64
  2004-04-01 23:16 [Bug optimization/14815] New: -frename-registers produces incorrect code on ia64 jbutler at broad dot mit dot edu
                   ` (3 preceding siblings ...)
  2004-04-06 15:04 ` jbutler at broad dot mit dot edu
@ 2004-04-07  3:26 ` pinskia at gcc dot gnu dot org
  2004-07-18  3:36 ` [Bug target/14815] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-07  3:26 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code


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


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

* [Bug target/14815] -frename-registers produces incorrect code on ia64
  2004-04-01 23:16 [Bug optimization/14815] New: -frename-registers produces incorrect code on ia64 jbutler at broad dot mit dot edu
                   ` (4 preceding siblings ...)
  2004-04-07  3:26 ` pinskia at gcc dot gnu dot org
@ 2004-07-18  3:36 ` pinskia at gcc dot gnu dot org
  2004-11-12 19:07 ` sje at cup dot hp dot com
  2004-11-12 19:29 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-07-18  3:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-07-18 03:36 -------
Actually there was a fix to the mainline and I think the 3.4.0 branch where the problem with -frename-
registers and IA64 was a target problem rather than a generic code problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|rtl-optimization            |target


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


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

* [Bug target/14815] -frename-registers produces incorrect code on ia64
  2004-04-01 23:16 [Bug optimization/14815] New: -frename-registers produces incorrect code on ia64 jbutler at broad dot mit dot edu
                   ` (5 preceding siblings ...)
  2004-07-18  3:36 ` [Bug target/14815] " pinskia at gcc dot gnu dot org
@ 2004-11-12 19:07 ` sje at cup dot hp dot com
  2004-11-12 19:29 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: sje at cup dot hp dot com @ 2004-11-12 19:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From sje at cup dot hp dot com  2004-11-12 19:07 -------
I have run this testcase with the 3.3.* and 3.4.* and ToT (pre-4.0) compilers on
IA64 linux.  The bug exists in all 3.3.* compilers (3.3.[012345]) and none of
the 3.4 compilers (3.4.[0123]).  Nor does it happen on ToT.  Are we still doing
3.3 patches?  If I knew what change between 3.3 and 3.4 fixed this I could look
into backporting it but I don't know what change fixed it and I don't know if it
is worth trying to find out.

-- 


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


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

* [Bug target/14815] -frename-registers produces incorrect code on ia64
  2004-04-01 23:16 [Bug optimization/14815] New: -frename-registers produces incorrect code on ia64 jbutler at broad dot mit dot edu
                   ` (6 preceding siblings ...)
  2004-11-12 19:07 ` sje at cup dot hp dot com
@ 2004-11-12 19:29 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 19:29 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-12 19:29 -------
Fixed in 3.4.0, 3.3.x is just on regression fixing mode and since this is most likely not a regression I am 
closing as fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.4.0


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


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

end of thread, other threads:[~2004-11-12 19:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-01 23:16 [Bug optimization/14815] New: -frename-registers produces incorrect code on ia64 jbutler at broad dot mit dot edu
2004-04-01 23:19 ` [Bug optimization/14815] " jbutler at broad dot mit dot edu
2004-04-01 23:19 ` jbutler at broad dot mit dot edu
2004-04-06  0:39 ` pinskia at gcc dot gnu dot org
2004-04-06 15:04 ` jbutler at broad dot mit dot edu
2004-04-07  3:26 ` pinskia at gcc dot gnu dot org
2004-07-18  3:36 ` [Bug target/14815] " pinskia at gcc dot gnu dot org
2004-11-12 19:07 ` sje at cup dot hp dot com
2004-11-12 19:29 ` pinskia at gcc dot gnu dot 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).