public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/101394] New: ICE on valid code with -O2: SSA corruption: Unable to coalesce ssa_names 10 and 19 which are marked as MUST COALESCE.
@ 2021-07-09 14:00 cnsun at uwaterloo dot ca
  2021-07-09 16:43 ` [Bug tree-optimization/101394] " pinskia at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: cnsun at uwaterloo dot ca @ 2021-07-09 14:00 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101394
           Summary: ICE on valid code with -O2: SSA corruption: Unable to
                    coalesce ssa_names 10 and 19 which are marked as MUST
                    COALESCE.
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cnsun at uwaterloo dot ca
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.RJV1U21mAq-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210709 (experimental) [master revision
:aa0aefd8a:fdc4d2a516d042bc9a6936fad3f887aff353a296] (GCC)

$ cat mutant.c
a, b, c, d;
e() __attribute__((returns_twice));
f() {
  int *g = c;
  if (b) {
    h();
    g--;
    if (a)
      if (d)
        h();
  }
  if (g++)
    e();
  c = g;
}

$ gcc-trunk -w -O2 mutant.c
Unable to coalesce ssa_names 10 and 19 which are marked as MUST COALESCE.
g_10(ab) and  g_19(ab)
during RTL pass: expand
mutant.c: In function ‘f’:
mutant.c:3:1: internal compiler error: SSA corruption
    3 | f() {
      | ^
0x104b21c fail_abnormal_edge_coalesce
        /tmp/tmp.RJV1U21mAq-gcc-builder/gcc/gcc/tree-ssa-coalesce.c:1003
0x104b21c coalesce_partitions
        /tmp/tmp.RJV1U21mAq-gcc-builder/gcc/gcc/tree-ssa-coalesce.c:1425
0x104b21c coalesce_ssa_name(_var_map*)
        /tmp/tmp.RJV1U21mAq-gcc-builder/gcc/gcc/tree-ssa-coalesce.c:1755
0xfe32a9 remove_ssa_form
        /tmp/tmp.RJV1U21mAq-gcc-builder/gcc/gcc/tree-outof-ssa.c:1065
0xfe32a9 rewrite_out_of_ssa(ssaexpand*)
        /tmp/tmp.RJV1U21mAq-gcc-builder/gcc/gcc/tree-outof-ssa.c:1323
0xa6299a execute
        /tmp/tmp.RJV1U21mAq-gcc-builder/gcc/gcc/cfgexpand.c:6588
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

end of thread, other threads:[~2021-10-13 10:10 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09 14:00 [Bug tree-optimization/101394] New: ICE on valid code with -O2: SSA corruption: Unable to coalesce ssa_names 10 and 19 which are marked as MUST COALESCE cnsun at uwaterloo dot ca
2021-07-09 16:43 ` [Bug tree-optimization/101394] " pinskia at gcc dot gnu.org
2021-07-12  7:47 ` rguenth at gcc dot gnu.org
2021-07-12  9:09 ` marxin at gcc dot gnu.org
2021-07-12 10:19 ` cvs-commit at gcc dot gnu.org
2021-07-12 10:20 ` rguenth at gcc dot gnu.org
2021-07-12 17:18 ` [Bug tree-optimization/101394] [9/10/11 Regression] " pinskia at gcc dot gnu.org
2021-07-12 17:20 ` pinskia at gcc dot gnu.org
2021-07-13 10:59 ` cvs-commit at gcc dot gnu.org
2021-09-06 10:18 ` [Bug tree-optimization/101394] [9/10 " cvs-commit at gcc dot gnu.org
2021-09-06 10:20 ` [Bug tree-optimization/101394] [9 " rguenth at gcc dot gnu.org
2021-10-13 10:09 ` cvs-commit at gcc dot gnu.org
2021-10-13 10:10 ` rguenth 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).