[Bug target/57816] New: ICE compiling __builtin_sqrt with powerpc-none-eabispe with -mpowerpc-gpopt
janis at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 3 23:04:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57816
Bug ID: 57816
Summary: ICE compiling __builtin_sqrt with powerpc-none-eabispe
with -mpowerpc-gpopt
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: janis at gcc dot gnu.org
CC: wschmidt at gcc dot gnu.org
Host: i686-pc-linux-gnu
Target: powerpc-none-eabispe
Build: i686-pc-linux-gnu
With current mainline a compiler for powerpc-none-eabispe gets a segfault
compiling gcc.target/powerpc/pr46728-1.c and several other pr46728-*.c tests.
Here's a minimized testcase:
void
foo (double x, double y)
{
if (x != __builtin_sqrt (y))
__builtin_abort ();
}
and crash output:
z.c: In function 'foo':
z.c:4:29: internal compiler error: Segmentation fault
if (x != __builtin_sqrt (y))
^
0x85e8510 crash_signal
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/toplev.c:333
0x8401ebe aggregate_value_p(tree_node const*, tree_node const*)
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/function.c:1980
0x82888ca emit_library_call_value_1
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/calls.c:3661
0x828e2a3 emit_library_call_value(rtx_def*, rtx_def*, libcall_type,
machine_mode, int, ...)
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/calls.c:4349
0x837e2bb convert_move(rtx_def*, rtx_def*, int)
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/expr.c:398
0x837e968 convert_modes(machine_mode, machine_mode, rtx_def*, int)
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/expr.c:781
0x851c6a7 widen_operand
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/optabs.c:350
0x8527e1b expand_unop(machine_mode, optab_tag, rtx_def*, rtx_def*, int)
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/optabs.c:3302
0x8261508 expand_builtin_mathfn
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/builtins.c:2052
0x827cfe1 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int)
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/builtins.c:5898
0x8374604 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**)
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/expr.c:10226
0x8382b56 store_expr(tree_node*, rtx_def*, int, bool)
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/expr.c:5239
0x8385536 expand_assignment(tree_node*, tree_node*, bool)
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/expr.c:5025
0x829ca61 expand_call_stmt
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/cfgexpand.c:2178
0x829ca61 expand_gimple_stmt_1
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/cfgexpand.c:2218
0x829ca61 expand_gimple_stmt
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/cfgexpand.c:2370
0x829df6e expand_gimple_basic_block
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/cfgexpand.c:4204
0x82a0a39 gimple_expand_cfg
/scratch/janisjo/build4/fsf-powerpc-eabispe/src/gcc-mainline/gcc/cfgexpand.c:4723
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
I attempted to discover when this failure starts, but it's intermittent with
the GCC build. I have not seen the failure with target powerpc-none-eabi.
More information about the Gcc-bugs
mailing list