https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122605
Bug ID: 122605
Summary: [16 Regression] gcc.target/i386/pr105951-[12].c ICEs
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
Assignee: pinskia at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Target: i?86
[apinski@xeond2 upstream-gcc-git]$ ~/upstream-gcc/bin/gcc -O2 t.c -m32
-march=i386
during RTL pass: expand
t.c: In function ‘f9’:
t.c:68:10: internal compiler error: in build_call_nary, at tree.h:4989
68 | return __sync_sub_and_fetch (&a, x) <= 0;
| ^~~~~~~~~~~~~~~~~~~~
0x275f3bf internal_error(char const*, ...)
/home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostic-global-context.cc:787
0xa80a27 fancy_abort(char const*, int, char const*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostics/context.cc:1806
0x8275eb tree_node* build_call_nary<tree_node*, tree_node*,
tree_node*>(tree_node*, tree_node*, int, tree_node*, tree_node*, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/tree.h:4989
0x8275eb tree_node* build_call_nary<tree_node*, tree_node*,
tree_node*>(tree_node*, tree_node*, int, tree_node*, tree_node*, tree_node*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/tree.h:4986
0x8275eb expand_ifn_atomic_op_fetch_cmp_0(gcall*)
/home/apinski/src/upstream-gcc-git/gcc/gcc/builtins.cc:7187
0xc6896f expand_call_stmt
/home/apinski/src/upstream-gcc-git/gcc/gcc/cfgexpand.cc:3109
0xc6896f expand_gimple_stmt_1
/home/apinski/src/upstream-gcc-git/gcc/gcc/cfgexpand.cc:4235
0xc6896f expand_gimple_stmt
/home/apinski/src/upstream-gcc-git/gcc/gcc/cfgexpand.cc:4382
0xc6a1f7 expand_gimple_basic_block
/home/apinski/src/upstream-gcc-git/gcc/gcc/cfgexpand.cc:6501
0xc6c2d7 execute
/home/apinski/src/upstream-gcc-git/gcc/gcc/cfgexpand.cc:7248
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.