This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/33132] New: m32r: ICE: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in insn_current_length, at insn-attrtab.c:29: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in insn_current_length, at insn-attrtab.c:29
- From: "rask at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Aug 2007 07:50:46 -0000
- Subject: [Bug target/33132] New: m32r: ICE: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in insn_current_length, at insn-attrtab.c:29: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in insn_current_length, at insn-attrtab.c:29
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This happens building libssp at revision 127638:
libtool: compile: /home/rask/build/gcc-m32r-unknown-elf/./gcc/xgcc
-B/home/rask/build/gcc-m32r-unknown-elf/./gcc/ -nostdinc
-B/home/rask/build/gcc-m32r-unknown-elf/m32r-unknown-elf/newlib/ -isystem
/home/rask/build/gcc-m32r-unknown-elf/m32r-unknown-elf/newlib/targ-include
-isystem /n/12/rask/src/all/newlib/libc/include
-B/home/rask/build/gcc-m32r-unknown-elf/m32r-unknown-elf/libgloss/m32r
-L/home/rask/build/gcc-m32r-unknown-elf/m32r-unknown-elf/libgloss/libnosys
-L/n/12/rask/src/all/libgloss/m32r -B/usr/local/m32r-unknown-elf/bin/
-B/usr/local/m32r-unknown-elf/lib/ -isystem /usr/local/m32r-unknown-elf/include
-isystem /usr/local/m32r-unknown-elf/sys-include
-L/home/rask/build/gcc-m32r-unknown-elf/./ld -DHAVE_CONFIG_H -I.
-I/n/12/rask/src/all/libssp -I. -g -Os -MT libssp_nonshared_la-ssp-local.lo -MD
-MP -MF .deps/libssp_nonshared_la-ssp-local.Tpo -c
/n/12/rask/src/all/libssp/ssp-local.c -fPIC -DPIC -o
libssp_nonshared_la-ssp-local.o
/n/12/rask/src/all/libssp/ssp-local.c: In function '__stack_chk_fail_local':
/n/12/rask/src/all/libssp/ssp-local.c:50: internal compiler error: RTL check:
expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in
insn_current_length, at insn-attrtab.c:29
(gdb) frame 2
#2 0x00000000008d900d in insn_current_length (insn=0x2aabbee71820) at
insn-attrtab.c:106
106 if ((unsigned) (((INSN_ADDRESSES_SET_P () ? INSN_ADDRESSES
(INSN_UID (GET_CODE (operands[0]) == LABEL_REF ? XEXP (operands[0], 0) :
operands[0])) : 0) - (insn_current_reference_address (insn))) + (300)) <
(unsigned) (600))
(gdb) list
101 return 4;
102 }
103
104 case 41: /* *branch_insn */
105 extract_insn_cached (insn);
106 if ((unsigned) (((INSN_ADDRESSES_SET_P () ? INSN_ADDRESSES
(INSN_UID (GET_CODE (operands[0]) == LABEL_REF ? XEXP (operands[0], 0) :
operands[0])) : 0) - (insn_current_reference_address (insn))) + (300)) <
(unsigned) (600))
107 {
108 return 2;
109 }
110 else
(gdb) call debug_rtx (insn)
(insn:TI 17 16 19 /n/12/rask/src/all/libssp/ssp-local.c:48 (parallel [
(clobber (reg:SI 14 lr))
(set (reg:SI 12 r12)
(unspec [
(symbol_ref:SI ("_GLOBAL_OFFSET_TABLE_"))
] 5))
(use (const_int 1 [0x1]))
]) 76 {get_pc} (expr_list:REG_UNUSED (reg:SI 14 lr)
(nil)))
(gdb) frame 1
#1 0x00000000006cbac7 in rtl_check_failed_type2 (r=0x2aabbee6c410, n=0,
c1=105, c2=110, file=<value optimized out>, line=29,
func=0xad8d20 "insn_current_length") at /n/12/rask/src/all/gcc/rtl.c:501
501 internal_error
(gdb) call debug_rtx (r)
(const_int 1 [0x1])
--
Summary: m32r: ICE: RTL check: expected elt 0 type 'i' or 'n',
have 'w' (rtx const_int) in insn_current_length, at
insn-attrtab.c:29: RTL check: expected elt 0 type 'i' or
'n', have 'w' (rtx const_int) in insn_current_length, at
insn-attrtab.c:29
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, build, ice-checking
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rask at gcc dot gnu dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: m32r-unknown-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33132
- Follow-Ups:
- [Bug target/33132] m32r: ICE: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in insn_current_length, at insn-attrtab.c:29
- From: nickc at redhat dot com
- [Bug target/33132] m32r: ICE: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in insn_current_length, at insn-attrtab.c:29
- From: rask at gcc dot gnu dot org
- [Bug target/33132] m32r: ICE: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in insn_current_length, at insn-attrtab.c:29
- From: nickc at redhat dot com
- [Bug target/33132] m32r: ICE: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in insn_current_length, at insn-attrtab.c:29
- From: nickc at redhat dot com
- [Bug target/33132] m32r: ICE: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in insn_current_length, at insn-attrtab.c:29
- From: nickc at gcc dot gnu dot org