s390 and s390x java bootstrap fails in tree-ssa-structalias.c:2370

Andreas Krebbel Andreas.Krebbel@de.ibm.com
Fri Oct 20 15:19:00 GMT 2006


Hi,

I can't bootstrap gcc on s390 and s390x currently.  From a first look I would say it may be related
to your aliasing patch.  I'm not able to give you more information right now.  I'll be back on Monday
and will try to gather a bit more detailed info.

Bye,

-Andreas-

(gdb) r
Starting program: /build/gcc-4.2-build/gcc/jc1 classpath/lib/gnu/java/awt/peer/gtk/GtkWindowPeer.class -fhash-synchronization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions -quiet -dumpbase GtkWindowPeer.class -m31 -mesa -march=g5 -auxbase-strip .libs/gnu-java-awt-peer-gtk.o -g -O2 -Wno-deprecated -version -fclasspath= -fbootclasspath=/build/gcc-4.2-build/s390x-ibm-linux/32/libjava/classpath/lib -fencoding=UTF-8 -fbootstrap-classes -fjni -findirect-dispatch -fno-indirect-classes -fPIC -o GtkWindowPeer.s
GNU Java version 4.2.0 20061020 (experimental) (s390x-ibm-linux)
        compiled by GNU C version 4.2.0 20061020 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Class path starts here:
    ./
    /build/gcc-4.2-build/s390x-ibm-linux/32/libjava/classpath/lib/ (system)

Program received signal SIGSEGV, Segmentation fault.
0x00000000803fda2c in bitpos_of_field (fdecl=0x200003d3508)
    at /build/gcc-4.2/gcc/tree-ssa-structalias.c:2370
2370      if (TREE_CODE (DECL_FIELD_OFFSET (fdecl)) != INTEGER_CST
(gdb) p debug_generic_expr(fdecl)
awtComponentD.1548
$1 = void
(gdb) l
2365
2366    static unsigned HOST_WIDE_INT
2367    bitpos_of_field (const tree fdecl)
2368    {
2369
2370      if (TREE_CODE (DECL_FIELD_OFFSET (fdecl)) != INTEGER_CST
2371          || TREE_CODE (DECL_FIELD_BIT_OFFSET (fdecl)) != INTEGER_CST)
2372        return -1;
2373
2374      return (tree_low_cst (DECL_FIELD_OFFSET (fdecl), 1) * 8)
(gdb) bt
#0  0x00000000803fda2c in bitpos_of_field (fdecl=0x200003d3508)
    at /build/gcc-4.2/gcc/tree-ssa-structalias.c:2370
#1  0x00000000803fe124 in push_fields_onto_fieldstack (type=Variable "type" is not available.
)
    at /build/gcc-4.2/gcc/tree-ssa-structalias.c:3888
#2  0x0000000080404356 in create_variable_info_for (decl=0x20000427370,
    name=0x8088a78e "NONLOCAL.653") at /build/gcc-4.2/gcc/tree-ssa-structalias.c:4150
#3  0x0000000080404998 in expand_nonlocal_solutions ()
    at /build/gcc-4.2/gcc/tree-ssa-structalias.c:2608
#4  0x000000008040b182 in compute_points_to_sets (ai=0x80883d00)
    at /build/gcc-4.2/gcc/tree-ssa-structalias.c:4986
#5  0x000000008011d128 in compute_may_aliases () at /build/gcc-4.2/gcc/tree-ssa-alias.c:665
#6  0x00000000803c178e in execute_one_pass (pass=0x807f8088) at /build/gcc-4.2/gcc/passes.c:870
#7  0x00000000803c19ba in execute_pass_list (pass=0x807f8088) at /build/gcc-4.2/gcc/passes.c:917
#8  0x00000000803c19f2 in execute_pass_list (pass=0x807f7df8) at /build/gcc-4.2/gcc/passes.c:918
#9  0x00000000800b2fc0 in tree_rest_of_compilation (fndecl=0x20000264f00)
    at /build/gcc-4.2/gcc/tree-optimize.c:463
#10 0x0000000080442050 in cgraph_expand_function (node=0x200003d37e8)
    at /build/gcc-4.2/gcc/cgraphunit.c:1241
#11 0x000000008043e672 in cgraph_assemble_pending_functions () at /build/gcc-4.2/gcc/cgraphunit.c:374
#12 0x000000008043ec56 in cgraph_finalize_function (decl=0x20000264f00, nested=0 '\0')
    at /build/gcc-4.2/gcc/cgraphunit.c:503
#13 0x000000008006a31c in end_java_method () at /build/gcc-4.2/gcc/java/decl.c:2003
#14 0x000000008008982e in parse_class_file () at /build/gcc-4.2/gcc/java/jcf-parse.c:957
#15 0x000000008008daea in java_parse_file (set_yydebug=Variable "set_yydebug" is not available.
) at /build/gcc-4.2/gcc/java/jcf-parse.c:1310
#16 0x0000000080380b30 in compile_file () at /build/gcc-4.2/gcc/toplev.c:1033
#17 0x00000000803832fa in do_compile () at /build/gcc-4.2/gcc/toplev.c:2006
#18 0x00000000803833aa in toplev_main (argc=29, argv=0x3ffffdc6678)
    at /build/gcc-4.2/gcc/toplev.c:2038
#19 0x0000020000068f08 in __libc_start_main () from /lib64/libc.so.6
#20 0x0000000080003aea in _start ()
(gdb) p debug_tree(fdecl)
 <field_decl 0x200003d3508 awtComponent
    type <pointer_type 0x2000026b6e0
        type <record_type 0x2000026b630 java.awt.Component type_4 SI
            size <integer_cst 0x200001e0420 constant invariant 32>
            unit size <integer_cst 0x200001e0a50 constant invariant 4>
            align 32 symtab 0 alias set -1 fields <field_decl 0x200003d35c0 D.1560>
            pointer_to_this <pointer_type 0x2000026b6e0> chain <type_decl 0x2000026d000 java.awt.Component>>
        unsigned SI size <integer_cst 0x200001e0420 32>
        unit size <integer_cst 0x200001e0060 constant invariant 4>
        align 32 symtab 0 alias set -1
        pointer_to_this <pointer_type 0x200003d2c60>>
    ignored decl_1 VOID file gnu/java/awt/peer/gtk/GtkWindowPeer.java line 106
    align 1 offset_align 1 context <record_type 0x2000026b370 gnu.java.awt.peer.gtk.GtkComponentPeer> chain <field_decl 0x200003d3450 D.1547>>
$2 = void
(gdb)                                                                             



More information about the Gcc-patches mailing list