diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2020-04-21 22:39:33 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2020-04-29 09:39:03 +0200 |
commit | 7f1989249e25af6fc0f124452efa24b3796b767a (patch) | |
tree | cd8ab52cef5dc7aa3bdd7a939d9064de7c5ac56b /gcc | |
parent | ccf93cd0b21e9c0ff0a1d4ace59899fca25ac157 (diff) | |
download | gcc-7f1989249e25af6fc0f124452efa24b3796b767a.zip gcc-7f1989249e25af6fc0f124452efa24b3796b767a.tar.gz gcc-7f1989249e25af6fc0f124452efa24b3796b767a.tar.bz2 |
[gcn] Set 'UI_NONE' for 'TARGET_EXCEPT_UNWIND_INFO' [PR94282]
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'.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/common/config/gcn/gcn-common.c | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3321e88..2ba39f6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/common/config/gcn/gcn-common.c b/gcc/common/config/gcn/gcn-common.c index 84a567b..9642f9c 100644 --- a/gcc/common/config/gcn/gcn-common.c +++ b/gcc/common/config/gcn/gcn-common.c @@ -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; |