public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64
@ 2005-05-09 21:45 janis at gcc dot gnu dot org
  2005-05-09 21:51 ` [Bug target/21477] " dje at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2005-05-09 21:45 UTC (permalink / raw)
  To: gcc-bugs

The following testcase fails on powerpc64-linux with GCC mainline
starting sometime after 2005-05-05 01:24 UTC:

long a, b;
void
foo ()
{
    a = b + 2147483647L;
}
int
main ()
{
    foo ();
    return 0;
}

elm3b11% /opt/gcc-nightly/mline/bin/gcc -m64 -O0 -g bug.c
/tmp/ccwXjSlP.o(.text+0x28): In function `foo':
/home/janis/work/bug.c:6: undefined reference to `__adddi3'
collect2: ld returned 1 exit status

It looks like a problem with this patch from geoffk on 2005-05-05:

  http://gcc.gnu.org/ml/gcc-cvs/2005-05/msg00232.html

This affects SPEC CPU2000 tests bzip2, eon, and gzip built without
optimization.

-- 
           Summary: adddi3 becomes external reference rather than
                    instruction on powerpc64
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,geoffk at gcc dot gnu
                    dot org
 GCC build triplet: powerpc64-linux
  GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux


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


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

* [Bug target/21477] adddi3 becomes external reference rather than instruction on powerpc64
  2005-05-09 21:45 [Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64 janis at gcc dot gnu dot org
@ 2005-05-09 21:51 ` dje at gcc dot gnu dot org
  2005-05-09 21:53 ` [Bug target/21477] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-05-09 21:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dje at gcc dot gnu dot org  2005-05-09 21:51 -------
confirmed

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-05-09 21:51:48
               date|                            |


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


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

* [Bug target/21477] [4.1 Regression] adddi3 becomes external reference rather than instruction on powerpc64
  2005-05-09 21:45 [Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64 janis at gcc dot gnu dot org
  2005-05-09 21:51 ` [Bug target/21477] " dje at gcc dot gnu dot org
@ 2005-05-09 21:53 ` pinskia at gcc dot gnu dot org
  2005-05-09 21:55 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09 21:53 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
            Summary|adddi3 becomes external     |[4.1 Regression] adddi3
                   |reference rather than       |becomes external reference
                   |instruction on powerpc64    |rather than instruction on
                   |                            |powerpc64
   Target Milestone|---                         |4.1.0


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


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

* [Bug target/21477] [4.1 Regression] adddi3 becomes external reference rather than instruction on powerpc64
  2005-05-09 21:45 [Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64 janis at gcc dot gnu dot org
  2005-05-09 21:51 ` [Bug target/21477] " dje at gcc dot gnu dot org
  2005-05-09 21:53 ` [Bug target/21477] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-09 21:55 ` pinskia at gcc dot gnu dot org
  2005-05-09 21:56 ` [Bug target/21477] " dje at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09 21:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-09 21:55 -------
Also on powerpc64-darwin.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|powerpc64-linux             |
   GCC host triplet|powerpc64-linux             |
 GCC target triplet|powerpc64-linux             |powerpc64-*-*


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


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

* [Bug target/21477] adddi3 becomes external reference rather than instruction on powerpc64
  2005-05-09 21:45 [Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64 janis at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-05-09 21:55 ` pinskia at gcc dot gnu dot org
@ 2005-05-09 21:56 ` dje at gcc dot gnu dot org
  2005-05-09 21:58 ` [Bug target/21477] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dje at gcc dot gnu dot org @ 2005-05-09 21:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dje at gcc dot gnu dot org  2005-05-09 21:56 -------
This is caused by Geoff's mode macros patch:

http://gcc.gnu.org/ml/gcc-patches/2005-05/msg00392.html

addsi3 and adddi3 had different operand predicates, but the patch combined the
patterns, using the addsi3 predicate.  sub<mode>3 uses a helper, but add<mode>3
does not.  testing a patch...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|                            |powerpc64-linux
   GCC host triplet|                            |powerpc64-linux
 GCC target triplet|powerpc64-*-*               |powerpc64-linux
           Keywords|wrong-code                  |
            Summary|[4.1 Regression] adddi3     |adddi3 becomes external
                   |becomes external reference  |reference rather than
                   |rather than instruction on  |instruction on powerpc64
                   |powerpc64                   |
   Target Milestone|4.1.0                       |---


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


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

* [Bug target/21477] [4.1 Regression] adddi3 becomes external reference rather than instruction on powerpc64
  2005-05-09 21:45 [Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64 janis at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-05-09 21:56 ` [Bug target/21477] " dje at gcc dot gnu dot org
@ 2005-05-09 21:58 ` pinskia at gcc dot gnu dot org
  2005-05-09 22:05 ` cvs-commit at gcc dot gnu dot org
  2005-05-09 22:51 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09 21:58 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|powerpc64-linux             |
   GCC host triplet|powerpc64-linux             |
 GCC target triplet|powerpc64-linux             |powerpc64-*-*
           Keywords|                            |wrong-code
            Summary|adddi3 becomes external     |[4.1 Regression] adddi3
                   |reference rather than       |becomes external reference
                   |instruction on powerpc64    |rather than instruction on
                   |                            |powerpc64
   Target Milestone|---                         |4.1.0


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


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

* [Bug target/21477] [4.1 Regression] adddi3 becomes external reference rather than instruction on powerpc64
  2005-05-09 21:45 [Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64 janis at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-05-09 21:58 ` [Bug target/21477] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-09 22:05 ` cvs-commit at gcc dot gnu dot org
  2005-05-09 22:51 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-09 22:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-05-09 22:05 -------
Subject: Bug 21477

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dje@gcc.gnu.org	2005-05-09 22:04:53

Modified files:
	gcc            : ChangeLog 
	gcc/config/rs6000: rs6000.md 

Log message:
	PR target/21477
	* config/rs6000/rs6000.md (add_op2): New.
	(add<mode>3): Use it.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8695&r2=2.8696
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.md.diff?cvsroot=gcc&r1=1.366&r2=1.367



-- 


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


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

* [Bug target/21477] [4.1 Regression] adddi3 becomes external reference rather than instruction on powerpc64
  2005-05-09 21:45 [Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64 janis at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-05-09 22:05 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-09 22:51 ` pinskia at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09 22:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-09 22:51 -------
Fixed.

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


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


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

end of thread, other threads:[~2005-05-09 22:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 21:45 [Bug target/21477] New: adddi3 becomes external reference rather than instruction on powerpc64 janis at gcc dot gnu dot org
2005-05-09 21:51 ` [Bug target/21477] " dje at gcc dot gnu dot org
2005-05-09 21:53 ` [Bug target/21477] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-09 21:55 ` pinskia at gcc dot gnu dot org
2005-05-09 21:56 ` [Bug target/21477] " dje at gcc dot gnu dot org
2005-05-09 21:58 ` [Bug target/21477] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-09 22:05 ` cvs-commit at gcc dot gnu dot org
2005-05-09 22:51 ` 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).