This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
target/5357: SPARC: illegal (?) combination of -mcpu=supersparc and -m64 causes ICE
- From: lucier at math dot purdue dot edu
- To: gcc-gnats at gcc dot gnu dot org
- Date: 11 Jan 2002 02:41:50 -0000
- Subject: target/5357: SPARC: illegal (?) combination of -mcpu=supersparc and -m64 causes ICE
- Reply-to: lucier at math dot purdue dot edu
>Number: 5357
>Category: target
>Synopsis: SPARC: illegal (?) combination of -mcpu=supersparc and -m64 causes ICE
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 10 18:46:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: B. Lucier
>Release: gcc version 3.1 20020102 (experimental)
>Organization:
>Environment:
sparcv9-sun-solaris2.8
>Description:
env LD_LIBRARY_PATH=/pkgs/gcc-3.1v9/lib /pkgs/gcc-3.1v9/bin/gcc -mcpu=supersparc -S setup.i -v
Reading specs from /pkgs/gcc-3.1v9/lib/gcc-lib/sparcv9-sun-solaris2.8/3.1/specs
Configured with: ../configure --prefix=/pkgs/gcc-3.1v9 sparcv9-sun-solaris2.8
Thread model: posix
gcc version 3.1 20020102 (experimental)
/pkgs/gcc-3.1v9/lib/gcc-lib/sparcv9-sun-solaris2.8/3.1/cc1 -fpreprocessed setup.i -quiet -dumpbase setup.i -mcpu=supersparc -version -o setup.s
GNU CPP version 3.1 20020102 (experimental) (cpplib) (sparc ELF)
GNU C version 3.1 20020102 (experimental) (sparcv9-sun-solaris2.8)
compiled by GNU C version 3.1 20020102 (experimental).
setup.c: In function `setup_module_phase1':
setup.c:784: unrecognizable insn:
(insn 743 741 745 (set (reg:DI 331)
(mult:DI (sign_extend:DI (reg:SI 332))
(const_int 24 [0x18]))) -1 (nil)
(expr_list:REG_DEAD (reg:SI 332)
(nil)))
setup.c:784: Internal compiler error in extract_insn, at recog.c:2129
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
setup.i.gz is at
http://www.math.purdue.edu/~lucier/setup.i.gz
I think the problem is because there is an implied -m64
for a compiler built with sparcv9-sun-solaris2.8, which is
probably illegal with -mcpu=supersparc. Specifying in
addition -m32 gets ride of the ICE.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: