https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105955
Bug ID: 105955
Summary: ICE when using __attribute__((__sysv_abi__)) on Cygwin
Product: gcc
Version: 11.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: mikulas at artax dot karlin.mff.cuni.cz
Target Milestone: ---
Compile this piece of code on 64-bit Cygwin distribution with gcc 11.3.0 with
or without optimizations.
The result is:
during RTL pass: pro_and_epilogue
gcc-crash.e: In function 'fn3':
gcc-crash.e:16:1: internal compiler error: in choose_baseaddr, at
config/i386/i386.c:6915
16 | }
| ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
float fabsf(float x);
void * __attribute__((__sysv_abi__)) fn1(void);
_Bool __attribute__((__sysv_abi__)) fn2(float val)
{
if (!(fabsf(val) < __builtin_huge_valf()))
return 1;
return 0;
}
_Bool fn3(void)
{
void *p = fn1();
return 1;
}