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

--- Comment #7 from Iain Sandoe <iains at gcc dot gnu.org> 2011-12-07 13:13:16 
UTC ---
with a stage1 compiler built with O0/g3:

/GCC/gcc-live-trunk/gcc/testsuite/gcc.target/powerpc/recip-5.c:12:39: error:
Builtin function __builtin_recipdiv is not supported with the current options

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x006cad58 in store_expr (exp=0x4289a460, target=0x4292c3a0, call_param_p=0,
nontemporal=<value temporarily unavailable, due to optimizations>) at
/GCC/gcc-live-trunk/gcc/expr.c:5170
5170      if (CONSTANT_P (temp) && GET_MODE (temp) == VOIDmode
(gdb) bt
#0  0x006cad58 in store_expr (exp=0x4289a460, target=0x4292c3a0,
call_param_p=0, nontemporal=<value temporarily unavailable, due to
optimizations>) at /GCC/gcc-live-trunk/gcc/expr.c:5170
#1  0x006c8778 in expand_assignment (to=0x4291b18c, from=0x4289a460,
nontemporal=<value temporarily unavailable, due to optimizations>) at
/GCC/gcc-live-trunk/gcc/expr.c:4948
#2  0x004b2b10 in expand_call_stmt (stmt=0x42912d20) at
/GCC/gcc-live-trunk/gcc/cfgexpand.c:2074
#3  0x004b2d00 in expand_gimple_stmt_1 (stmt=0x42912d20) at
/GCC/gcc-live-trunk/gcc/cfgexpand.c:2115
#4  0x004b3674 in expand_gimple_stmt (stmt=0x42912d20) at
/GCC/gcc-live-trunk/gcc/cfgexpand.c:2267
#5  0x004b37ac in expand_gimple_tailcall (bb=0x42919880, stmt=0x42912d20,
can_fallthru=0xbfffea94 "") at /GCC/gcc-live-trunk/gcc/cfgexpand.c:2314
#6  0x004befb4 in expand_gimple_basic_block (bb=0x42919880) at
/GCC/gcc-live-trunk/gcc/cfgexpand.c:3999
#7  0x004c1de8 in gimple_expand_cfg () at
/GCC/gcc-live-trunk/gcc/cfgexpand.c:4530
#8  0x00b2b314 in execute_one_pass (pass=0x15bb638) at
/GCC/gcc-live-trunk/gcc/passes.c:2079
#9  0x00b2b678 in execute_pass_list (pass=0x15bb638) at
/GCC/gcc-live-trunk/gcc/passes.c:2134
#10 0x00df25d4 in tree_rest_of_compilation (fndecl=0x428edd80) at
/GCC/gcc-live-trunk/gcc/tree-optimize.c:421
#11 0x00506ba8 in cgraph_expand_function (node=0x428f63d8) at
/GCC/gcc-live-trunk/gcc/cgraphunit.c:1818
#12 0x00506ea4 in cgraph_expand_all_functions () at
/GCC/gcc-live-trunk/gcc/cgraphunit.c:1885
#13 0x005081e8 in cgraph_optimize () at
/GCC/gcc-live-trunk/gcc/cgraphunit.c:2198
#14 0x005042d0 in cgraph_finalize_compilation_unit () at
/GCC/gcc-live-trunk/gcc/cgraphunit.c:1327
#15 0x00046584 in c_write_global_declarations () at
/GCC/gcc-live-trunk/gcc/c-decl.c:10026
#16 0x00cbf304 in compile_file () at /GCC/gcc-live-trunk/gcc/toplev.c:573
#17 0x00cc38c4 in do_compile () at /GCC/gcc-live-trunk/gcc/toplev.c:1928
#18 0x00cc3b88 in toplev_main (argc=28, argv=0xbffff0ac) at
/GCC/gcc-live-trunk/gcc/toplev.c:2004
#19 0x001b5f78 in main (argc=28, argv=0xbffff0ac) at
/GCC/gcc-live-trunk/gcc/main.c:36

Reply via email to