Summary: | [12 regression] ICE on atomics: gimple check: expected gimple_assign(error_mark), have gimple_nop() in gimple_assign_rhs_code, at gimple.h:2852 since r12-5486-g7df89377a7ae3906 | ||
---|---|---|---|
Product: | gcc | Reporter: | Sergei Trofimovich <slyfox> |
Component: | tree-optimization | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | crazylht, liuhongt, marxin |
Priority: | P3 | Keywords: | ice-on-valid-code |
Version: | 12.0 | ||
Target Milestone: | 12.0 | ||
Host: | Target: | x86_64-unknown-linux-gnu | |
Build: | Known to work: | 11.2.0 | |
Known to fail: | 12.0 | Last reconfirmed: | 2021-12-13 00:00:00 |
Description
Sergei Trofimovich
2021-12-13 12:36:54 UTC
Confirmed, started with r12-5486-g7df89377a7ae3906. Confirmed. C testcase: int bug(unsigned *ready, unsigned u) { return __atomic_fetch_and (ready, ~u, 0) & u; } Mine. The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>: https://gcc.gnu.org/g:a2a0c91b47537b16908981e206f4e42db8425eca commit r12-5981-ga2a0c91b47537b16908981e206f4e42db8425eca Author: liuhongt <hongtao.liu@intel.com> Date: Tue Dec 14 09:47:08 2021 +0800 Fix ICE. [PR103682] Check is_gimple_assign before gimple_assign_rhs_code. gcc/ChangeLog: PR target/103682 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Check is_gimple_assign before gimple_assign_rhs_code. gcc/testsuite/ChangeLog: * gcc.c-torture/compile/pr103682.c: New test. Fixed in GCC12. . |