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/25368] New: ICE in make_class_data


After unpack org.tar.bz2 I'll attach into an empty directory:
.../jc1 org/gnu/atk/AtkObject.java -fuse-boehm-gc -fnon-call-exceptions -O2 \
-fjni -fclasspath=.:/usr/share/java/libgcj-4.1.0.jar -fPIC -o x.s
in a checking buid this dies with:
org/gnu/atk/AtkObject.java:21: internal compiler error: tree check: expected
class 'expression', have 'constant' (integer_cst) in make_class_data, at
java/class.c:1581
and in --enable-checking=release build dies with:
org/gnu/atk/AtkObject.java:21: internal compiler error: in
lhd_incomplete_type_error, at langhooks.c:213

The former is ICE on:
1581      decl = TREE_OPERAND (this_class_addr, 0);
which fails, because this_class_addr is not an expression, but
null_pointer_node.
The non-checking one is:
1799      PUSH_FIELD_VALUE (cons, "size_in_bytes",
1800                        (flag_indirect_dispatch
1801                         ? integer_minus_one_node
1802                         : size_in_bytes (type)));
where size_in_bytes is called on incomplete type:
 <record_type 0x2aaaaab42d10 org.gnu.atk.AtkObject sizes-gimplified tree_2
type_2 type_3 type_4 type_5 VOID size <error_mark 0x2aaaaaae03a0>
    align 8 symtab 0 alias set -1
    pointer_to_this <pointer_type 0x2aaaaab42dc0> chain <type_decl
0x2aaaaaaf7b60 org.gnu.atk.AtkObject>>


-- 
           Summary: ICE in make_class_data
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
GCC target triplet: x86_64-linux


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


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