7f1989249e
In libgomp offloading testing, this resolves all the 'ld: error: undefined symbol: __gxx_personality_v0' FAILs. gcc/ PR target/94282 * common/config/gcn/gcn-common.c (gcn_except_unwind_info): New function. (TARGET_EXCEPT_UNWIND_INFO): Define. libgomp/ PR target/94282 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove 'dg-allow-blank-lines-in-output'.
17 lines
355 B
C
17 lines
355 B
C
/* { dg-do link } */
|
|
/* { dg-excess-errors "unresolved symbol foo, lto1, mkoffload and lto-wrapper fatal errors" { target offload_device_nonshared_as } } */
|
|
/* { dg-additional-sources "function-not-offloaded-aux.c" } */
|
|
|
|
#pragma omp declare target
|
|
int var;
|
|
#pragma omp end declare target
|
|
|
|
extern void foo ();
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#pragma omp target
|
|
foo ();
|
|
}
|