This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/8310] iCE in tree_low_cst on (slightly illegal) java input


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8310



------- Additional Comments From pinskia@physics.uc.edu  2003-05-24 20:00 -------
confirmed on mainline (20030524):

tin:~/src/gnu/gcctest>gcj -O2 -c x.java
x.java: In class `x':
x.java: In method `x.f(byte)':
x.java:6: internal compiler error: in tree_low_cst, at tree.c:3285
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

(gdb) up 5
#5  0x083106e8 in tree_low_cst (t=0x8454ac0, pos=131) at /home/gates/pinskia/src/gnu/
gcc/src/gcc/tree.c:3285
3285        abort ();
(gdb) l
3280         int pos;
3281    {
3282      if (host_integerp (t, pos))
3283        return TREE_INT_CST_LOW (t);
3284      else
3285        abort ();
3286    }
3287
3288    /* Return the most significant bit of the integer constant T.  */
3289
(gdb) p t
$1 = 0x8454ac0
(gdb) p debug_tree(t)
 <error_mark 0x8454ac0>
$2 = void
(gdb) p pos
$3 = 131
(gdb) up 1
#6  0x082f5e97 in emit_case_bit_tests (index_type=0x400501b0, index_expr=
0x40078e58, minval=0x400b21e0, range=0x83, nodes=0x4004c740, default_label=
0x400b45d8) at /home/gates/pinskia/src/gnu/gcc/src/gcc/stmt.c:5323
5323          hi = tree_low_cst (fold (build (MINUS_EXPR, index_type,
(gdb) l
5318          else
5319            test[i].bits++;
5320
5321          lo = tree_low_cst (fold (build (MINUS_EXPR, index_type,
5322                                          n->low, minval)), 1);
5323          hi = tree_low_cst (fold (build (MINUS_EXPR, index_type,
5324                                          n->high, minval)), 1);
5325          for (j = lo; j <= hi; j++)
5326            if (j >= HOST_BITS_PER_WIDE_INT)
5327              test[i].hi |= (HOST_WIDE_INT) 1 << (j - HOST_BITS_PER_INT);
(gdb) p index_type
$4 = 0x400501b0
(gdb) p debug_tree(index_type)
 <integer_type 0x400501b0 byte QI
    size <integer_cst 0x4004e0f0 type <integer_type 0x40050948 bit_size_type> constant 
8>
    unit size <integer_cst 0x4004e104 type <integer_type 0x400508dc> constant 1>
    align 8 symtab 0 alias set 3 precision 8 min <integer_cst 0x4004e0c8 -128> max <
integer_cst 0x4004e0dc 127>
    chain <type_decl 0x4005021c byte>>
$5 = void
(gdb) p n->high
$6 = 0x400b2208
(gdb) p debug_tree(n->high)
 <integer_cst 0x400b2208 type <integer_type 0x400501b0 byte> constant public static 
overflow -4>
$7 = void
(gdb) p minval
$8 = 0x400b21e0
(gdb) p debug_tree(minval)
 <integer_cst 0x400b21e0 type <integer_type 0x400501b0 byte> constant public static 
overflow -5>
$9 = void
(gdb) p debug_tree(n->low)
 <integer_cst 0x400b21e0 type <integer_type 0x400501b0 byte> constant public static 
overflow -5>
$10 = void



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]