public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libffi/20650] New: float.c fails to build with weird error message
@ 2005-03-26 20:33 andreast at gcc dot gnu dot org
  2005-03-26 20:34 ` [Bug libffi/20650] " andreast at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: andreast at gcc dot gnu dot org @ 2005-03-26 20:33 UTC (permalink / raw)
  To: gcc-bugs

float.c from the libffi test suite fails to build on ppc-linux:
/mnt/slice1/gcc-trunk/gcc/libffi/testsuite/libffi.call/float.c: In function
'floating':
:1441796: error: impossible constraint in 'asm'
compiler exited with status 1

[andreas@pm9600 objdir]$ ./gcc/xgcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: /mnt/slice1/gcc-trunk/gcc/configure
--prefix=/mnt/slice1/gcc-trunk/testbin --enable-languages=c,c++,java
--disable-multilib --enable-java-awt=gtk,xlib --enable-gtk-cairo
--disable-checking --disable-static
Thread model: posix
gcc version 4.1.0 20050326 (experimental)

I'll attach the .i and .s file

-- 
           Summary: float.c fails to build with weird error message
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libffi
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andreast at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-unknown-linux-gnu
  GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu


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


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

* [Bug libffi/20650] float.c fails to build with weird error message
  2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
@ 2005-03-26 20:34 ` andreast at gcc dot gnu dot org
  2005-03-26 20:35 ` [Bug middle-end/20650] " pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: andreast at gcc dot gnu dot org @ 2005-03-26 20:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From andreast at gcc dot gnu dot org  2005-03-26 20:34 -------
Created an attachment (id=8459)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8459&action=view)
preprocessed source.


-- 


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


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

* [Bug libffi/20650] float.c fails to build with weird error message
  2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
  2005-03-26 20:34 ` [Bug libffi/20650] " andreast at gcc dot gnu dot org
  2005-03-26 20:35 ` [Bug middle-end/20650] " pinskia at gcc dot gnu dot org
@ 2005-03-26 20:35 ` andreast at gcc dot gnu dot org
  2005-03-26 20:36 ` [Bug middle-end/20650] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: andreast at gcc dot gnu dot org @ 2005-03-26 20:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From andreast at gcc dot gnu dot org  2005-03-26 20:35 -------
Created an attachment (id=8460)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8460&action=view)
preprocessed asm


-- 


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


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

* [Bug middle-end/20650] float.c fails to build with weird error message
  2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
  2005-03-26 20:34 ` [Bug libffi/20650] " andreast at gcc dot gnu dot org
@ 2005-03-26 20:35 ` pinskia at gcc dot gnu dot org
  2005-03-26 20:35 ` [Bug libffi/20650] " andreast at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-26 20:35 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|libffi                      |middle-end
           Keywords|                            |rejects-valid
            Summary|float.c fails to build with |float.c fails to build with
                   |weird error message         |weird error message


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


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

* [Bug middle-end/20650] float.c fails to build with weird error message
  2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2005-03-26 20:35 ` [Bug libffi/20650] " andreast at gcc dot gnu dot org
@ 2005-03-26 20:36 ` pinskia at gcc dot gnu dot org
  2005-03-27 22:32 ` [Bug target/20650] [4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-26 20:36 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #8459|application/octet-stream    |text/plain
          mime type|                            |


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


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

* [Bug target/20650] [4.1 Regression] float.c fails to build with weird error message
  2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2005-03-26 20:36 ` [Bug middle-end/20650] " pinskia at gcc dot gnu dot org
@ 2005-03-27 22:32 ` pinskia at gcc dot gnu dot org
  2005-03-27 22:34 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-27 22:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-27 22:32 -------
Small testcase:
int f(double a, double b)
{
int a1 = a;
int b1 = b;
  return a1+b1;
}

You can reproduce this on powerpc-darwin with -mcpu=601

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
          Component|middle-end                  |target
     Ever Confirmed|                            |1
           Keywords|rejects-valid               |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2005-03-27 22:32:23
               date|                            |
            Summary|float.c fails to build with |[4.1 Regression] float.c
                   |weird error message         |fails to build with weird
                   |                            |error message
   Target Milestone|---                         |4.1.0


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


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

* [Bug target/20650] [4.1 Regression] float.c fails to build with weird error message
  2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2005-03-27 22:32 ` [Bug target/20650] [4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-03-27 22:34 ` pinskia at gcc dot gnu dot org
  2005-03-29 20:54 ` geoffk at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-27 22:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-27 22:34 -------
This was caused by:
2005-03-25  Geoffrey Keating  <geoffk@apple.com>

        * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
        (fix_truncdfsi2): Allow registers or memory as destination.
        When TARGET_PPC_GFXOPT, generate simplified pattern.
        (fix_truncdfsi2_internal): Use define_insn_and_split.
        (fix_truncdfsi2_internal_gfxopt): New.
        (fctiwz): Don't confuse register allocation by giving it no choices.
        (stfiwx): New.
        * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
        (EXTRA_MEMORY_CONSTRAINT): Likewise.
        * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
        * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.

There are a large number of regressions on powerpc-linux and powerpc-aix because of this change.
20000127-1.c is one of the regressions.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at gcc dot gnu dot org,
                   |                            |geoffk at gcc dot gnu dot
                   |                            |org


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


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

* [Bug target/20650] [4.1 Regression] float.c fails to build with weird error message
  2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2005-03-27 22:34 ` pinskia at gcc dot gnu dot org
@ 2005-03-29 20:54 ` geoffk at gcc dot gnu dot org
  2005-04-02  9:58 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2005-03-29 20:54 UTC (permalink / raw)
  To: gcc-bugs



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


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


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

* [Bug target/20650] [4.1 Regression] float.c fails to build with weird error message
  2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2005-03-29 20:54 ` geoffk at gcc dot gnu dot org
@ 2005-04-02  9:58 ` cvs-commit at gcc dot gnu dot org
  2005-04-02  9:59 ` geoffk at gcc dot gnu dot org
  2005-04-02 18:58 ` andreast at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-02  9:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-02 09:58 -------
Subject: Bug 20650

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	geoffk@gcc.gnu.org	2005-04-02 09:58:36

Modified files:
	gcc            : ChangeLog 
	gcc/testsuite  : ChangeLog 
	gcc/config/rs6000: rs6000.md 
Added files:
	gcc/testsuite/gcc.dg: rs6000-fpint.c 

Log message:
	PR 20650
	* config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
	a register.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8082&r2=2.8083
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5266&r2=1.5267
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.md.diff?cvsroot=gcc&r1=1.358&r2=1.359
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/rs6000-fpint.c.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug target/20650] [4.1 Regression] float.c fails to build with weird error message
  2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2005-04-02  9:58 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-02  9:59 ` geoffk at gcc dot gnu dot org
  2005-04-02 18:58 ` andreast at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2005-04-02  9:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From geoffk at gcc dot gnu dot org  2005-04-02 09:59 -------
Should be fixed now.

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


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


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

* [Bug target/20650] [4.1 Regression] float.c fails to build with weird error message
  2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2005-04-02  9:59 ` geoffk at gcc dot gnu dot org
@ 2005-04-02 18:58 ` andreast at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: andreast at gcc dot gnu dot org @ 2005-04-02 18:58 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From andreast at gcc dot gnu dot org  2005-04-02 18:58 -------
Verified on ppc-linux. Failing tc fixed, thanks.

-- 


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


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

end of thread, other threads:[~2005-04-02 18:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-26 20:33 [Bug libffi/20650] New: float.c fails to build with weird error message andreast at gcc dot gnu dot org
2005-03-26 20:34 ` [Bug libffi/20650] " andreast at gcc dot gnu dot org
2005-03-26 20:35 ` [Bug middle-end/20650] " pinskia at gcc dot gnu dot org
2005-03-26 20:35 ` [Bug libffi/20650] " andreast at gcc dot gnu dot org
2005-03-26 20:36 ` [Bug middle-end/20650] " pinskia at gcc dot gnu dot org
2005-03-27 22:32 ` [Bug target/20650] [4.1 Regression] " pinskia at gcc dot gnu dot org
2005-03-27 22:34 ` pinskia at gcc dot gnu dot org
2005-03-29 20:54 ` geoffk at gcc dot gnu dot org
2005-04-02  9:58 ` cvs-commit at gcc dot gnu dot org
2005-04-02  9:59 ` geoffk at gcc dot gnu dot org
2005-04-02 18:58 ` andreast 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).