Bug 67848 - ICE on gcc.dg/atomic/pr65345-4.c and gcc.dg/pr65345-3.c
Summary: ICE on gcc.dg/atomic/pr65345-4.c and gcc.dg/pr65345-3.c
Status: RESOLVED DUPLICATE of bug 65345
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-05 09:57 UTC by Christophe Lyon
Modified: 2015-10-06 10:26 UTC (History)
1 user (show)

See Also:
Host:
Target: aarch64-none-elf, aarch64-none-linux-gnu, arm-none-linux-gnueabihf
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Lyon 2015-10-05 09:57:42 UTC
The tests introduced at r228343 cause ICEs on aarch64-none-elf, aarch64-none-linux-gnu and arm-none-linux-gnueabihf targets (works for me on arm-none-linux-gnueabi).

On aarch64-none-elf:
spawn -ignore SIGHUP /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-elf/gcc3/gcc/xgcc -B/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-elf/gcc3/gcc/ /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/gcc.dg/pr65345-3.c -fno-diagnostics-show-caret -fdiagnostics-color=never -DSTACK_SIZE=16384 -S -specs=rdimon.specs -o pr65345-3.s
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/gcc.dg/pr65345-3.c:8:1: internal compiler error: Segmentation fault
0xa67025 crash_signal
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/toplev.c:353
0x7fd0f4 tree_check
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/tree.h:2860
0x7fd0f4 gimple_body(tree_node*)
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/gimple-expr.c:312
0x821ac4 gimple_add_tmp_var(tree_node*)
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/gimplify.c:700
0x7fd5da create_tmp_var(tree_node*, char const*)
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/gimple-expr.c:467
0xdadd6f aarch64_atomic_assign_expand_fenv(tree_node**, tree_node**, tree_node**)
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/config/aarch64/aarch64-builtins.c:1465
0x561a41 build_atomic_assign
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-typeck.c:3738
0x552a86 build_unary_op(unsigned int, tree_code, tree_node*, int)
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-typeck.c:4140
0x571920 c_parser_postfix_expression_after_primary
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:8053
0x58a6cf c_parser_postfix_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:7769
0x57243a c_parser_unary_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6656
0x5733c6 c_parser_cast_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6494
0x573582 c_parser_binary_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6310
0x573f5c c_parser_conditional_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6086
0x574419 c_parser_expr_no_commas
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6004
0x574b21 c_parser_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:8076
0x58a7b0 c_parser_postfix_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:7272
0x57243a c_parser_unary_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6656
0x572dbf c_parser_sizeof_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6706
0x572dbf c_parser_unary_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6627
Please submit a full bug report,

On aarch64-none-linux-gnu and arm-none-linux-gnueabihf we also have gcc.dg/atomic/pr65345-4.c with a similar backtrace:
spawn -ignore SIGHUP /aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/gcc/xgcc -B/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/gcc/ /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/gcc.dg/atomic/pr65345-4.c -B/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/aarch64-none-linux-gnu/./libatomic/ -L/aci-gcc-fsf/builds/gcc-fsf-gccsrc/obj-aarch64-none-linux-gnu/gcc3/aarch64-none-linux-gnu/./libatomic/.libs -latomic -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -DSTACK_SIZE=16384 -S -o pr65345-4.s
/aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/testsuite/gcc.dg/atomic/pr65345-4.c:15:1: internal compiler error: Segmentation fault
0xa671a5 crash_signal
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/toplev.c:353
0x7fd274 tree_check
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/tree.h:2860
0x7fd274 gimple_body(tree_node*)
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/gimple-expr.c:312
0x821c44 gimple_add_tmp_var(tree_node*)
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/gimplify.c:700
0x7fd75a create_tmp_var(tree_node*, char const*)
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/gimple-expr.c:467
0xdae1bf aarch64_atomic_assign_expand_fenv(tree_node**, tree_node**, tree_node**)
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/config/aarch64/aarch64-builtins.c:1465
0x561a91 build_atomic_assign
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-typeck.c:3738
0x5620dc build_modify_expr(unsigned int, tree_node*, tree_node*, tree_code, unsigned int, tree_node*, tree_node*)
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-typeck.c:5476
0x5745a3 c_parser_expr_no_commas
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6051
0x574b71 c_parser_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:8076
0x58a800 c_parser_postfix_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:7272
0x57248a c_parser_unary_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6656
0x573416 c_parser_cast_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6494
0x5734b1 c_parser_cast_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6485
0x5735d2 c_parser_binary_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6310
0x573fac c_parser_conditional_expression
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6086
0x574469 c_parser_expr_no_commas
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:6004
0x583966 c_parser_direct_declarator_inner
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:3435
0x580d20 c_parser_parameter_declaration
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:3702
0x580fc8 c_parser_parms_list_declarator
        /aci-gcc-fsf/sources/gcc-fsf/gccsrc/gcc/c/c-parser.c:3604
Please submit a full bug report,
Comment 1 Ramana Radhakrishnan 2015-10-06 10:26:13 UTC
dup of 65345

*** This bug has been marked as a duplicate of bug 65345 ***