[gcn] Set 'UI_NONE' for 'TARGET_EXCEPT_UNWIND_INFO' [PR94282]
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 21 Apr 2020 20:39:33 +0000 (22:39 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Wed, 29 Apr 2020 07:39:03 +0000 (09:39 +0200)
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'.

gcc/ChangeLog
gcc/common/config/gcn/gcn-common.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c-c++-common/function-not-offloaded.c

index 3321e8839707ab023322477ddd24c13ab566057a..2ba39f67200f28d29906c31d292d291b6056fc50 100644 (file)
@@ -1,3 +1,10 @@
+2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
+
+       PR target/94282
+       * common/config/gcn/gcn-common.c (gcn_except_unwind_info): New
+       function.
+       (TARGET_EXCEPT_UNWIND_INFO): Define.
+
 2020-04-29  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/94248
index 84a567b2bbbba3ab77b32ee806adf4fef5c5f2c6..9642f9cc5a6ca65cfc5d8ea2a32e6ca1b9b44826 100644 (file)
@@ -34,4 +34,13 @@ static const struct default_options gcn_option_optimization_table[] =
 #undef  TARGET_OPTION_OPTIMIZATION_TABLE
 #define TARGET_OPTION_OPTIMIZATION_TABLE gcn_option_optimization_table
 
+static enum unwind_info_type
+gcn_except_unwind_info (struct gcc_options *opts ATTRIBUTE_UNUSED)
+{
+  return UI_NONE;
+}
+
+#undef  TARGET_EXCEPT_UNWIND_INFO
+#define TARGET_EXCEPT_UNWIND_INFO gcn_except_unwind_info
+
 struct gcc_targetm_common targetm_common = TARGETM_COMMON_INITIALIZER;
index cfe6e0653c92fb0c419662b22ff351458f1e7c19..1a7046f2fc64e48903f51df9250706c94112a0f4 100644 (file)
@@ -1,5 +1,9 @@
 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
 
+       PR target/94282
+       * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
+       'dg-allow-blank-lines-in-output'.
+
        * oacc-init.c (get_openacc_name): Handle 'gcn'.
        * testsuite/lib/libgomp.exp
        (offload_target_to_openacc_device_type) [amdgcn*]: Return
index f01a64e72c07adfcf6f46f0352b6f3f17e9e710a..9e59ef8864e77450c7a0c6232de7a2d2bf883e00 100644 (file)
@@ -1,6 +1,5 @@
 /* { dg-do link } */
 /* { dg-excess-errors "unresolved symbol foo, lto1, mkoffload and lto-wrapper fatal errors" { target offload_device_nonshared_as } } */
-/* { dg-allow-blank-lines-in-output 1 } */
 /* { dg-additional-sources "function-not-offloaded-aux.c" } */
 
 #pragma omp declare target