public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/104531] New: ICE in prepare_cmp_insn, at optabs.cc:4547
@ 2022-02-14 19:51 gscfq@t-online.de
  2022-02-14 19:53 ` [Bug middle-end/104531] [12 Regression] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2022-02-14 19:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104531

            Bug ID: 104531
           Summary: ICE in prepare_cmp_insn, at optabs.cc:4547
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20210905 and 20210919 :


$ cat z1.c
void f (_Complex int y, int x)
{
  #pragma omp atomic compare update seq_cst
  x = x > y ? y : x;
}


$ gcc-12-20220213 -c z1.c -fopenmp
during RTL pass: expand
z1.c: In function 'f':
z1.c:3:11: internal compiler error: in prepare_cmp_insn, at optabs.cc:4547
    3 |   #pragma omp atomic compare update seq_cst
      |           ^~~
0xafd677 prepare_cmp_insn
        ../../gcc/optabs.cc:4547
0xafd711 emit_cmp_and_jump_insns(rtx_def*, rtx_def*, rtx_code, rtx_def*,
machine_mode, int, rtx_def*, profile_probability)
        ../../gcc/optabs.cc:4692
0x839688 do_compare_rtx_and_jump(rtx_def*, rtx_def*, rtx_code, int,
machine_mode, rtx_def*, rtx_code_label*, rtx_code_label*, profile_probability)
        ../../gcc/dojump.cc:1220
0x8df4a5 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
        ../../gcc/expr.cc:9745
0x7c4ea2 expand_gimple_stmt_1
        ../../gcc/cfgexpand.cc:3967
0x7c4ea2 expand_gimple_stmt
        ../../gcc/cfgexpand.cc:4028
0x7c9bd7 expand_gimple_basic_block
        ../../gcc/cfgexpand.cc:6069
0x7cc67e execute
        ../../gcc/cfgexpand.cc:6795

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-02-16  9:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-14 19:51 [Bug c/104531] New: ICE in prepare_cmp_insn, at optabs.cc:4547 gscfq@t-online.de
2022-02-14 19:53 ` [Bug middle-end/104531] [12 Regression] " pinskia at gcc dot gnu.org
2022-02-14 19:56 ` [Bug c/104531] " pinskia at gcc dot gnu.org
2022-02-15 16:08 ` jakub at gcc dot gnu.org
2022-02-16  8:32 ` cvs-commit at gcc dot gnu.org
2022-02-16  9:22 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).