[Bug tree-optimization/103235] [12 Regression] Recent change to atomics triggers ICE

law at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Nov 14 17:11:07 GMT 2021


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

--- Comment #2 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Can you please double-check?  It just reproduced for me.  Perhaps you were
missing -I./ which is sometimes needed for cross toolchains to *-linux.

[jlaw@dl360p gcc]$ ./cc1 -O2 pthread_cancel.i -I./ -quiet -w
pthread_cancel.c: In function ‘__pthread_cancel’:
pthread_cancel.c:60:1: error: type mismatch in binary expression
int

unsigned int

int

_36 = _4 & 8;
during GIMPLE pass: fab
pthread_cancel.c:60:1: internal compiler error: verify_gimple failed
0x134a788 verify_gimple_in_cfg(function*, bool)
        /home/jlaw/test/gcc/gcc/tree-cfg.c:5577
0x1198471 execute_function_todo
        /home/jlaw/test/gcc/gcc/passes.c:2042
0x119740d do_per_function
        /home/jlaw/test/gcc/gcc/passes.c:1687
0x1198661 execute_todo
        /home/jlaw/test/gcc/gcc/passes.c:2096
Please submit a full bug report,

[jlaw@dl360p gcc]$ pushd /home/jlaw/test/gcc
~/test/gcc ~/test/obj/csky-linux-gnu/obj/gcc/gcc
[jlaw@dl360p gcc]$ git status .
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        gcc/J
        gcc/j

nothing added to commit but untracked files present (use "git add" to track)
[jlaw@dl360p gcc]$ git log -n1 HEAD
commit 8a601f9bc45f9faaa91f18d58ba71b141acff701 (HEAD -> master, origin/trunk,
origin/master, origin/HEAD)
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Sun Nov 14 16:17:36 2021 +0100

    Remove gcc.dg/pr103229.c


More information about the Gcc-bugs mailing list