https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118266
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|rguenther at suse dot de |rguenth at gcc dot
gnu.org
--- Comment #14 from Richard Biener <rguenth at gcc dot gnu.org> ---
While I can confirm/reproduce, that we now ICE with wrong CFI is hardly the
fault of the change (and I have no experience with the CFI emitting code).
Cleaned up testcase:
typedef struct {
int a;
int b;
int c;
} mystruct;
int main_j;
int
main()
{
mystruct *m = (mystruct *)__builtin_malloc (2*sizeof (mystruct)), *mref = m;
#pragma acc enter data copyin(m[1])
for (int i; i < 9; i++) {
#pragma acc parallel
for (; main_j;)
;
#pragma acc parallel loop copy(mref->b, m->c)
for (main_j = 0; main_j < 4; main_j++)
;
}
#pragma acc data copyout(m[ : 1])
__builtin_free(m);
}