https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85443
Bug ID: 85443
Summary: internal compiler error: Segmentation fault
Product: gcc
Version: 5.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: xvl5190 at psu dot edu
Target Milestone: ---
This is the code that triggers the crash:
char acDummy[0xf0] __attribute__ ((__BELOW100__));
unsigned short B100 __attribute__ ((__BELOW100__));
unsigned short *p = &B100;
unsigned short wData = 0x1234;
_Atomic int i = 3;
int a1 = sizeof (i + 1);
void
Do (void)
{
B100 = wData;
}
int
main (void)
{
*p = 0x9876;
Do ();
return (*p == 0x1234) ? 0 : 1;
}