[Bug debug/14900] New: [3.4/3.5 Regression] ICE in loc_descriptor_from_tree (fix_trunc_expr)
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Apr 9 14:58:00 GMT 2004
Since fix_trunc_expr is not handled we get an ICE.
int main() {
double d = 1.0;
char x[(int) d];
return 0;
}
Here is the tree which is aborting at this point:
<fix_trunc_expr 0x400da76c
type <integer_type 0x400505e8 int asm_written SI
size <integer_cst 0x4004e21c constant 32>
unit size <integer_cst 0x4004e2a8 constant 4>
align 32 symtab 1074991232 alias set -1 precision 32 min <integer_cst 0x4004e280
-2147483648> max <integer_cst 0x4004e294 2147483647>
pointer_to_this <pointer_type 0x4005c0d8>>
arg 0 <var_decl 0x4012b0d8 d
type <real_type 0x4005be58 double asm_written DF
size <integer_cst 0x4004e5b4 constant 64>
unit size <integer_cst 0x4004e938 constant 8>
align 64 symtab 1074991488 alias set -1 precision 64
pointer_to_this <pointer_type 0x4005c000>>
used tree_1 tree_2 DF file pr14492.cc line 2 size <integer_cst 0x4004e5b4 64> unit size
<integer_cst 0x4004e938 8>
align 64 context <function_decl 0x40127d80 main> initial <real_cst 0x400cfde0 1.0e+0>
(mem/i:DF (plus:SI (reg/f:SI 20 frame)
(const_int -8 [0xfffffff8])) [0 d+0 S8 A64])
chain <var_decl 0x4012b21c x type <array_type 0x4012b1b0>
tree_1 BLK file pr14492.cc line 3
size <mult_expr 0x4005d1f8 type <integer_type 0x4005ba20 bit_size_type>
side-effects
arg 0 <non_lvalue_expr 0x400da884 type <integer_type 0x4005ba20 bit_size_type>
side-effects readonly
arg 0 <nop_expr 0x400da834 type <integer_type 0x4005ba20 bit_size_type>
side-effects readonly
arg 0 <non_lvalue_expr 0x400da820 type <integer_type 0x4005b9b4 unsigned int>
side-effects readonly arg 0 <nop_expr 0x400da80c>>>>
arg 1 <integer_cst 0x4004ea8c constant 8>>
unit size <non_lvalue_expr 0x400da8d4 type <integer_type 0x4005b9b4 unsigned int>
side-effects readonly
arg 0 <nop_expr 0x400da8c0 type <integer_type 0x4005b9b4 unsigned int>
side-effects readonly
arg 0 <save_expr 0x4004c220 type <integer_type 0x4005baf8>
side-effects readonly asm_written used noplaceholder
arg 0 <nop_expr 0x400da7a8 type <integer_type 0x4005baf8>
arg 0 <fix_trunc_expr 0x400da76c>> arg 1 <function_decl 0x40127d80 main>
rtl 2 (reg:SI 0 ax [72])
>>>
align 32 context <function_decl 0x40127d80 main>
(mem/s:BLK (reg:SI 83) [0 x+0 A8])>>>
--
Summary: [3.4/3.5 Regression] ICE in loc_descriptor_from_tree
(fix_trunc_expr)
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: critical
Priority: P2
Component: debug
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14900
More information about the Gcc-bugs
mailing list