Bug 35906 - build fails when building with -m32 -mcpu=ultrasparc (sparcv9 or -mv8plus also)
Summary: build fails when building with -m32 -mcpu=ultrasparc (sparcv9 or -mv8plus also)
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: 4.4.5
Assignee: Eric Botcazou
URL:
Keywords: build, ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2008-04-11 09:21 UTC by Tomasz Mateja
Modified: 2010-09-21 10:15 UTC (History)
2 users (show)

See Also:
Host: sparc-pld-linux
Target: sparc-pld-linux
Build: sparc-pld-linux
Known to work:
Known to fail: 4.2.3 4.3.0
Last reconfirmed: 2010-09-20 22:12:59


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Mateja 2008-04-11 09:21:09 UTC
Bug is present in 4.2.3 also.
building 32bit code with architecture greater than sparcv8 fails like this:

/home/users/builder/rpm/BUILD/gcc-4.3.0/builddir/./gcc/xgcc -B/home/users/builder/rpm/BUILD/gcc-4.3.0/builddir/./gcc/ -B/usr/sparc-pld-linux/bin/ -B/usr/sparc-pld-linux/lib/ -isystem /usr/sparc-pld-linux/
include -isystem /usr/sparc-pld-linux/sys-include -c -O2 -m32 -mcpu=ultrasparc -gdwarf-2 -g2  -fPIC      -W -Wall -gnatpg  s-finroo.adb -o s-finroo.o
/home/users/builder/rpm/BUILD/gcc-4.3.0/builddir/./gcc/xgcc -B/home/users/builder/rpm/BUILD/gcc-4.3.0/builddir/./gcc/ -B/usr/sparc-pld-linux/bin/ -B/usr/sparc-pld-linux/lib/ -isystem /usr/sparc-pld-linux/include -isystem /usr/sparc-pld-linux/sys-include -c -O2 -m32 -mcpu=ultrasparc -gdwarf-2 -g2  -fPIC      -W -Wall -gnatpg  s-fore.adb -o s-fore.o
s-fore.adb: In function 'System.Fore.Fore':
s-fore.adb:57: error: unrecognizable insn:
(insn 11 10 12 2 s-fore.adb:41 (set (reg:CCFPE 96 %fcc0)
        (compare:CCFPE (reg/v:TF 108 [ t ])
            (reg:TF 115))) -1 (nil))
+===========================GNAT BUG DETECTED==============================+
| 4.3.0 20080408 (release) (sparc-pld-linux-gnu) GCC error:                |
| in extract_insn, at recog.c:1990                                         |
| Error detected around s-fore.adb:57                                      |
| Please submit a bug report; see http://gcc.gnu.org/bugs.html.            |
| Use a subject line meaningful to you and us to track the bug.            |
| Include the entire contents of this bug box in the report.               |
| Include the exact gcc or gnatmake command that you entered.              |
| Also include sources listed below in gnatchop format                     |
| (concatenated together with no headers between files).                   |
+==========================================================================+

Please include these source files with error report
Note that list may not be accurate in some cases,
so please double check that the problem can still
be reproduced with the set of files listed.



raised TYPES.UNRECOVERABLE_ERROR : comperr.adb:398
make[7]: *** [s-fore.o] Error 1
make[7]: Leaving directory `/home/users/builder/rpm/BUILD/gcc-4.3.0/builddir/gcc/ada/rts'
make[6]: *** [gnatlib] Error 2
Comment 1 Eric Botcazou 2010-09-20 22:12:59 UTC
Investigating.
Comment 2 Eric Botcazou 2010-09-21 10:15:35 UTC
Target: sparc-linux-gnu
Configured with: /home/ebotcazou/src-4.4/configure --build=sparc-linux-gnu --prefix=/home/ebotcazou/install-4.4 --enable-languages=c,ada --with-cpu=ultrasparc
Thread model: posix
gcc version 4.4.5 20100914 (prerelease) (GCC)