gcc/libgomp/testsuite/libgomp.c/pr95620.c
H.J. Lu 7aa22a8f1a x86-64: Define ASM_OUTPUT_ALIGNED_DECL_LOCAL
Define ASM_OUTPUT_ALIGNED_DECL_LOCAL for large local common symbol.

gcc/

	PR target/95620
	* config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.

libgomp/

	PR target/95620
	* testsuite/libgomp.c/pr95620.c: New test.
2020-07-18 08:51:54 -07:00

19 lines
314 B
C

// { dg-do link { target { { i?86-*-* x86_64-*-* } && lp64 } } }
/* { dg-require-effective-target lto } */
/* { dg-additional-options "-flto -mcmodel=medium" } */
double a[353783808];
int b, c, d;
int
main()
{
for (; b;)
#pragma omp parallel
a[c] = 1;
for (;; b++)
if (a[c])
d++;
return 0;
}