This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17303] New: [3.4] bootstrap failure sh4-unknown-linux-gnu
- From: "kkojima at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2004 06:18:04 -0000
- Subject: [Bug target/17303] New: [3.4] bootstrap failure sh4-unknown-linux-gnu
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
gcc 3.4.2 RC2 fails to bootstrap on sh4-unknown-linux-gnu with:
stage2/xgcc -Bstage2/ -B/usr/gnu/sh4-unknown-linux-gnu/bin/ -c -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic
-Wno-long-long -Wold-style-definition -DHAVE_CONFIG_H -I. -I.
-I../../gcc-3.4.2-20040902/gcc -I../../gcc-3.4.2-20040902/gcc/.
-I../../gcc-3.4.2-20040902/gcc/../include ../../gcc-3.4.2-20040902/gcc/gcse.c
-o gcse.o
../../gcc-3.4.2-20040902/gcc/gcse.c: In function `store_motion':
../../gcc-3.4.2-20040902/gcc/gcse.c:8008: internal compiler error: Illegal
instruction
The problematic illegal instruction is a branch instruction in a delayed
slot. gdb shows:
Program received signal SIGILL, Illegal instruction.
0x006982ca in mark_referenced_regs (x=0x2a1c0d50)
at ../../gcc-3.4.2-20040902/gcc/caller-save.c:598
598 int nregs = HARD_REGNO_NREGS (hardregno, GET_MODE (x));
(gdb) disas $pc $pc+4
Dump of assembler code from 0x6982ca to 0x6982ce:
0x006982ca <mark_referenced_regs+1066>: bf.s 0x6982d0 <mark_referenced_regs+1072>
0x006982cc <mark_referenced_regs+1068>: bra 0x6981d8 <mark_referenced_regs+824>
End of assembler dump.
and it looks the same problem reported with
http://gcc.gnu.org/ml/gcc-patches/2004-08/msg01713.html
for mainline.
The patch in the above URL was approved by Joern and applied on mainline
already and fixes this bootstrap failure of 3.4.2 RC2.
--
Summary: [3.4] bootstrap failure sh4-unknown-linux-gnu
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kkojima at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,joern dot rennecke at
superh dot com,mark at codesourcery dot com
GCC build triplet: sh4-unknown-linux-gnu
GCC host triplet: sh4-unknown-linux-gnu
GCC target triplet: sh4-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17303