This is the mail archive of the gcc-patches@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]

Re: [PATCH]: Fix missed PRE optimization discovered


"Daniel Berlin" <dberlin@dberlin.org> writes:

> Bootstrapped and regtested on i686-darwin, committed.
> 2008-10-16  Daniel Berlin  <dberlin@dberlin.org>
>
> 	* tree-ssa-pre.c (phi_translate_set): Add constants to phi
> 	translation cache.

This breaks Ada on ia64:

Starting program: /tmp/cvs/test/gcc-test-r141182/Build/gcc/gnat1 -I./ -I../rts -I. -I/tmp/cvs/test/gcc-test-r141182/gcc/ada -I- -quiet -dumpbase gnatname.adb -O2 -g -gnatpg -gnata /tmp/cvs/test/gcc-test-r141182/gcc/ada/gnatname.adb

Program received signal SIGSEGV, Segmentation fault.
0x4000000000f4a071 in bitmap_find_leader (set=0x6000000000b6b748, 
    val=<value optimized out>, stmt=0x0) at ../../gcc/bitmap.h:226
226       bi->elt1 = map->first;
(gdb) bt
#0  0x4000000000f4a071 in bitmap_find_leader (set=0x6000000000b6b748, 
    val=<value optimized out>, stmt=0x0) at ../../gcc/bitmap.h:226
#1  0x4000000000f54580 in insert_aux (block=0x200000000178d260)
    at ../../gcc/tree-ssa-pre.c:3265
#2  0x4000000000f53f50 in insert_aux (block=0x200000000178cd80)
    at ../../gcc/tree-ssa-pre.c:3471
#3  0x4000000000f53f50 in insert_aux (block=0x200000000178c120)
    at ../../gcc/tree-ssa-pre.c:3471
#4  0x4000000000f53f50 in insert_aux (block=0x2000000001757b40)
    at ../../gcc/tree-ssa-pre.c:3471
#5  0x4000000000f53f50 in insert_aux (block=0x20000000013c4360)
    at ../../gcc/tree-ssa-pre.c:3471
#6  0x4000000000f53f50 in insert_aux (block=0x200000000083bae0)
    at ../../gcc/tree-ssa-pre.c:3471
#7  0x4000000000f5a810 in execute_pre (do_fre=<value optimized out>)
    at ../../gcc/tree-ssa-pre.c:3492
#8  0x4000000000f5a960 in do_pre () at ../../gcc/tree-ssa-pre.c:4295
#9  0x4000000000b83390 in execute_one_pass (pass=0x600000000008cf98)
    at ../../gcc/passes.c:1279
#10 0x4000000000b83a10 in execute_pass_list (pass=0x600000000008cf98)
    at ../../gcc/passes.c:1327
#11 0x4000000000b83a60 in execute_pass_list (pass=0x600000000008be70)
    at ../../gcc/passes.c:1328
#12 0x4000000000ddbff0 in tree_rest_of_compilation (fndecl=0x2000000000662400)
    at ../../gcc/tree-optimize.c:418
#13 0x400000000112d160 in cgraph_expand_function (node=0x20000000013bd000)
    at ../../gcc/cgraphunit.c:1038
#14 0x4000000001131c60 in cgraph_optimize () at ../../gcc/cgraphunit.c:1097
#15 0x400000000004cc80 in gnat_write_global_declarations ()
    at ../../gcc/ada/gcc-interface/utils.c:4821
#16 0x4000000000d17ad0 in toplev_main (argc=<value optimized out>, 
    argv=<value optimized out>) at ../../gcc/toplev.c:979
#17 0x40000000007b3d60 in main (argc=14, argv=0x607ffffffec2a698)
    at ../../gcc/main.c:35

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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