https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90082
Bug ID: 90082
Summary: [9 Regression] ICE in delete_unmarked_insns, at
dce.c:653
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
gcc-9.0.0-alpha20190407 snapshot (r270192) ICEs when compiling the following
testcase w/ -O1 (-Og) -fnon-call-exceptions -ftrapv:
void
b (int a)
{
if (__builtin_setjmp (0) == 0)
__asm__ ("" : : "n" (a * 2));
}
% gcc-9.0.0-alpha20190407 -O1 -fnon-call-exceptions -ftrapv -w -c m4o3ztdf.c
m4o3ztdf.c: In function 'b':
m4o3ztdf.c:5:5: error: impossible constraint in 'asm'
5 | __asm__ ("" : : "n" (a * 2));
| ^~~~~~~
during RTL pass: rtl_dce
m4o3ztdf.c:6:1: internal compiler error: in delete_unmarked_insns, at dce.c:653
6 | }
| ^
0x78288d delete_unmarked_insns
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190407/work/gcc-9-20190407/gcc/dce.c:653
0x1549c68 fast_dce
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190407/work/gcc-9-20190407/gcc/dce.c:1180
0x154a474 rest_of_handle_fast_dce
/var/tmp/portage/sys-devel/gcc-9.0.0_alpha20190407/work/gcc-9-20190407/gcc/dce.c:1194