public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/29815]  New: internal compiler error, if float-comparison is done with option -mfloat-gprs=yes
@ 2006-11-13 11:59 poellmann at nm dot hsd dot utc dot com
  2006-11-13 12:01 ` [Bug c/29815] " poellmann at nm dot hsd dot utc dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: poellmann at nm dot hsd dot utc dot com @ 2006-11-13 11:59 UTC (permalink / raw)
  To: gcc-bugs

Option -mfloat-gprs=yes works fine with basic operations on floats like +, -, /
*. 

The following simple example produces an internal compiler error:

# 1 "test.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "test.c"

int compare(float x, float y)
{
    return (x < y);
}

The error message is
test.c: In function `compare':
test.c:5: error: unrecognizable insn:
(insn 14 13 15 0 (set (reg:CCFP 122)
        (compare:CCFP (reg:SF 120 [ x ])
            (reg:SF 121 [ y ]))) -1 (nil)
    (expr_list:REG_DEAD (reg:SF 120 [ x ])
        (expr_list:REG_DEAD (reg:SF 121 [ y ])
            (nil))))
test.c:5: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.

The compile command is
powerpc-eabispe-gcc -bpowerpc-eabispe -mcpu=505 -mno-sdata -mfloat-gprs=yes 
-Wall -Wstrict-prototypes -Wall -save-temps  -c -o o/test.o test.c

The gcc version output is
Reading specs from /opt/CSE/lib/gcc/powerpc-eabispe/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --disable-nls --prefix=/opt/CSE
--target=powerpc-eabispe
Thread model: single
gcc version 3.4.6


-- 
           Summary: internal compiler error, if float-comparison is done
                    with option -mfloat-gprs=yes
           Product: gcc
           Version: 3.4.6
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: poellmann at nm dot hsd dot utc dot com
 GCC build triplet: ../gcc-3.4.6/configure --disable-nls --prefix=/opt/CSE -
                    -target=
  GCC host triplet: Cygwin on Win2000
GCC target triplet: powerpc-eabispe


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


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

* [Bug c/29815] internal compiler error, if float-comparison is done with option -mfloat-gprs=yes
  2006-11-13 11:59 [Bug c/29815] New: internal compiler error, if float-comparison is done with option -mfloat-gprs=yes poellmann at nm dot hsd dot utc dot com
@ 2006-11-13 12:01 ` poellmann at nm dot hsd dot utc dot com
  2006-11-13 13:44 ` [Bug target/29815] " pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: poellmann at nm dot hsd dot utc dot com @ 2006-11-13 12:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from poellmann at nm dot hsd dot utc dot com  2006-11-13 12:01 -------
Created an attachment (id=12602)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12602&action=view)
preprocessed example


-- 


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


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

* [Bug target/29815] internal compiler error, if float-comparison is done with option -mfloat-gprs=yes
  2006-11-13 11:59 [Bug c/29815] New: internal compiler error, if float-comparison is done with option -mfloat-gprs=yes poellmann at nm dot hsd dot utc dot com
  2006-11-13 12:01 ` [Bug c/29815] " poellmann at nm dot hsd dot utc dot com
@ 2006-11-13 13:44 ` pinskia at gcc dot gnu dot org
  2006-11-13 14:51 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-13 13:44 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal


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


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

* [Bug target/29815] internal compiler error, if float-comparison is done with option -mfloat-gprs=yes
  2006-11-13 11:59 [Bug c/29815] New: internal compiler error, if float-comparison is done with option -mfloat-gprs=yes poellmann at nm dot hsd dot utc dot com
  2006-11-13 12:01 ` [Bug c/29815] " poellmann at nm dot hsd dot utc dot com
  2006-11-13 13:44 ` [Bug target/29815] " pinskia at gcc dot gnu dot org
@ 2006-11-13 14:51 ` rguenth at gcc dot gnu dot org
  2006-11-14 10:11 ` poellmann at nm dot hsd dot utc dot com
  2006-11-25  2:27 ` [Bug target/29815] internal compiler error with option -mfloat-gprs=yes and -mcpu=505 pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-11-13 14:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2006-11-13 14:51 -------
GCC 3.4.x is out of maintainance, can you try with at least 4.0.3 or 4.1.1? 
Thanks.


-- 


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


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

* [Bug target/29815] internal compiler error, if float-comparison is done with option -mfloat-gprs=yes
  2006-11-13 11:59 [Bug c/29815] New: internal compiler error, if float-comparison is done with option -mfloat-gprs=yes poellmann at nm dot hsd dot utc dot com
                   ` (2 preceding siblings ...)
  2006-11-13 14:51 ` rguenth at gcc dot gnu dot org
@ 2006-11-14 10:11 ` poellmann at nm dot hsd dot utc dot com
  2006-11-25  2:27 ` [Bug target/29815] internal compiler error with option -mfloat-gprs=yes and -mcpu=505 pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: poellmann at nm dot hsd dot utc dot com @ 2006-11-14 10:11 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from poellmann at nm dot hsd dot utc dot com  2006-11-14 10:10 -------
The problem maintains with gcc 4.1.1. The error-message is slightly different:

test.c: In function 'compare':
test.c:5: error: unrecognizable insn:
(insn 12 11 13 1 (set (reg:CCFP 123)
        (compare:CCFP (reg:SF 121)
            (reg:SF 122))) -1 (nil)
    (nil))
test.c:5: internal compiler error: in extract_insn, at recog.c:2084


-- 


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


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

* [Bug target/29815] internal compiler error with option -mfloat-gprs=yes and -mcpu=505
  2006-11-13 11:59 [Bug c/29815] New: internal compiler error, if float-comparison is done with option -mfloat-gprs=yes poellmann at nm dot hsd dot utc dot com
                   ` (3 preceding siblings ...)
  2006-11-14 10:11 ` poellmann at nm dot hsd dot utc dot com
@ 2006-11-25  2:27 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-25  2:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2006-11-25 02:27 -------
First -mcpu=505 is incorrect for the e500 series, the PPC505 is different from
the 8540 which is the e500 series.  So this is just a matter of having bad
options as far as I can tell.

Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
  GCC build triplet|i686-cygwin                 |
   GCC host triplet|i686-cygwin                 |
   Last reconfirmed|0000-00-00 00:00:00         |2006-11-25 02:27:47
               date|                            |
            Summary|internal compiler error, if |internal compiler error with
                   |float-comparison is done    |option -mfloat-gprs=yes and
                   |with option -mfloat-gprs=yes|-mcpu=505


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


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

end of thread, other threads:[~2006-11-25  2:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-13 11:59 [Bug c/29815] New: internal compiler error, if float-comparison is done with option -mfloat-gprs=yes poellmann at nm dot hsd dot utc dot com
2006-11-13 12:01 ` [Bug c/29815] " poellmann at nm dot hsd dot utc dot com
2006-11-13 13:44 ` [Bug target/29815] " pinskia at gcc dot gnu dot org
2006-11-13 14:51 ` rguenth at gcc dot gnu dot org
2006-11-14 10:11 ` poellmann at nm dot hsd dot utc dot com
2006-11-25  2:27 ` [Bug target/29815] internal compiler error with option -mfloat-gprs=yes and -mcpu=505 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).