https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127098
Bug ID: 127098
Summary: [avr] gcc.dg/torture/pr86363.c -O0 fails execution
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gjl at gcc dot gnu.org
Target Milestone: ---
typedef char U __attribute__ ((vector_size (16)));
typedef unsigned V __attribute__ ((vector_size (16)));
V g;
V
f (V v, U u)
{
__builtin_memset (&u[v[0]], 0, 1);
g ^= u[0];
return g;
}
int
main (void)
{
V x = f ((V) { 5 }, (U) { 1 });
if (x[0] != 1 || x[1] != 1 || x[2] != 1 || x[3] != 1)
__builtin_abort ();
return 0;
}
fails to execute -O0 on atmega128, both with the above code and also with
typedef __UINT32_TYPE__ V __attribute__ ((vector_size (16)));
* The fail is only with -O0
* As far as I can tell, the fail is NOT due to some memory shortage.
* It's not a recent fail, IIRC it's hanging around for quite some time.
For now, assuming it's a target issue.