-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mircea Namolaru wrote:
>> That certainly does suggest a bug in the SEE patches.  They needn't do
>> anything useful on IA32/AMD64, but they should presumably either (a) not
>> cause a bootstrap failure on these architectures, or (b) be disabled on
>> these architectures.
> 
> Agree. I will check the bootstrapping on x86. (a) seems preferable but 
> if not feasible in a short time frame, it will be (b).

FWIW, while normal bootstrap completes successfully for me
(c,c++,java on i686-pc-linux-gnu), I get a few failures in the
libjava testsuite due to the new SEE code.

The $GCC_SIR_DIR/libjava/testsuite/libjava.lang/TLtest.java
testcase fails to compile at -O3 and results in an ICE for
me:
- ------------------------------ 8< ------------------------------
(gdb) r
Starting program: /home/ranmath/src/gcc/build/gcc/jc1 TLtest.java -fhash-synchro
nization -fno-use-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-
inline-functions -quiet -dumpbase TLtest.java -march=pentium4 -auxbase TLtest -O
3 -I/home/ranmath/src/gcc/build/i686-pc-linux-gnu/libjava/libgcj-4.2.0.jar -o /t
mp/cc6b7oji.s

Program received signal SIGSEGV, Segmentation fault.
0x083bc4d0 in hash_descriptor_pre_extension (p=0xbfffcea8)
    at /home/ranmath/src/gcc/gcc/gcc/see.c:837
837       rtx set = single_set (extension->se_insn);
(gdb) l
832
833     static hashval_t
834     hash_descriptor_pre_extension (const void *p)
835     {
836       const struct see_pre_extension_expr *extension = p;
837       rtx set = single_set (extension->se_insn);
838       rtx rhs = NULL;
839
840       gcc_assert (set);
841       rhs = SET_SRC (set);
(gdb) p p
$1 = (const void *) 0xbfffcea8
(gdb) p ((struct see_pre_extension_expr *)p)->se_insn
$2 = (rtx) 0x0
(gdb) bt
#0  0x083bc4d0 in hash_descriptor_pre_extension (p=0xbfffcea8)
    at /home/ranmath/src/gcc/gcc/gcc/see.c:837
#1  0x083f2e87 in htab_find_slot (htab=0x8542888, element=0xbfffcea8,
    insert=INSERT) at /home/ranmath/src/gcc/gcc/libiberty/hashtab.c:657
#2  0x083bcff5 in see_seek_pre_extension_expr (extension=0x0,
    type=DEF_EXTENSION) at /home/ranmath/src/gcc/gcc/gcc/see.c:1036
#3  0x083bd0eb in see_set_prop_unmerged_def (slot=0x85ad39c, b=0x85ad2f8)
    at /home/ranmath/src/gcc/gcc/gcc/see.c:2280
#4  0x083f25d6 in htab_traverse_noresize (htab=0x85ad318,
    callback=0x83bd05a <see_set_prop_unmerged_def>, info=0x85ad2f8)
    at /home/ranmath/src/gcc/gcc/libiberty/hashtab.c:729
#5  0x083bcf21 in see_handle_extensions_for_one_ref (stn=0x858b778, data=0x0)
    at /home/ranmath/src/gcc/gcc/gcc/see.c:2986
#6  0x083f3660 in splay_tree_foreach_helper (sp=0x85ad2d8, node=0x858b778,
    fn=0x83bcd70 <see_handle_extensions_for_one_ref>, data=0x0)
    at /home/ranmath/src/gcc/gcc/libiberty/splay-tree.c:218
#7  0x083bf3b0 in see_main () at /home/ranmath/src/gcc/gcc/gcc/see.c:3021
#8  0x083bfac4 in rest_of_handle_see ()
    at /home/ranmath/src/gcc/gcc/gcc/see.c:3754
#9  0x082b4b14 in execute_one_pass (pass=0x849e2e0)
    at /home/ranmath/src/gcc/gcc/gcc/passes.c:864
#10 0x082b4c44 in execute_pass_list (pass=0x849e2e0)
    at /home/ranmath/src/gcc/gcc/gcc/passes.c:911
- ---Type <return> to continue, or q <return> to quit---
#11 0x082b4c57 in execute_pass_list (pass=0x849c2a0)
    at /home/ranmath/src/gcc/gcc/gcc/passes.c:912
#12 0x080972e5 in tree_rest_of_compilation (fndecl=0xb73e5900)
    at /home/ranmath/src/gcc/gcc/gcc/tree-optimize.c:418
#13 0x082f1032 in cgraph_expand_function (node=0xb745d080)
    at /home/ranmath/src/gcc/gcc/gcc/cgraphunit.c:1102
#14 0x082f256d in cgraph_assemble_pending_functions ()
    at /home/ranmath/src/gcc/gcc/gcc/cgraphunit.c:354
#15 0x082f222a in cgraph_finalize_function (decl=0xb73e5900, nested=0 '\0')
    at /home/ranmath/src/gcc/gcc/gcc/cgraphunit.c:480
#16 0x08070bd1 in finish_method (fndecl=0xb73e5900)
    at /home/ranmath/src/gcc/gcc/gcc/java/decl.c:2147
#17 0x08063468 in java_expand_classes () at parse.y:7678
#18 0x08089b37 in java_parse_file (set_yydebug=0)
    at /home/ranmath/src/gcc/gcc/gcc/java/jcf-parse.c:1316
#19 0x08299f05 in toplev_main (argc=17, argv=0xbfffd2a4)
    at /home/ranmath/src/gcc/gcc/gcc/toplev.c:999
#20 0x08094a6b in main (argc=Cannot access memory at address 0xc
) at /home/ranmath/src/gcc/gcc/gcc/main.c:35
- ------------------------------ 8< ------------------------------

HTH,
Ranjit.

- --
Ranjit Mathew      Email: rmathew AT gmail DOT com

Bangalore, INDIA.    Web: http://rmathew.com/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEW08MYb1hx2wRS48RApLUAJwIwhtQPemm8Hmb4m6e+Gb5chfP6wCfZplB
QPbZbn9L/h25E26XDGuXffs=
=9iHh
-----END PGP SIGNATURE-----

Reply via email to