diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2023-03-28 10:40:05 +0200 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2023-03-28 10:40:05 +0200 |
commit | 8443f42f05f9026dadad1236b9e44ec294c70337 (patch) | |
tree | 8debde8f00e84eb7cd4aa912a32f54eb54cc3880 /libgomp | |
parent | 304c7d44a2212e6fd618587331cea2c266dc10bf (diff) | |
download | gcc-8443f42f05f9026dadad1236b9e44ec294c70337.zip gcc-8443f42f05f9026dadad1236b9e44ec294c70337.tar.gz gcc-8443f42f05f9026dadad1236b9e44ec294c70337.tar.bz2 |
testsuite: Fix weak_undefined handling on Darwin
The patch that introduced the weak_undefined effective-target keyword
and corresponding dg-add-options support
commit 378ec7b87a5265dbe2d489c245fac98ef37fa638
Author: Alexandre Oliva <oliva@adacore.com>
Date: Thu Mar 23 00:45:05 2023 -0300
[testsuite] test for weak_undefined support and add options
badly broke the affected tests on macOS like so:
ERROR: gcc.dg/addr_equal-1.c: unknown dg option: 89 for " dg-add-options 5 weak_undefined "
ERROR: gcc.dg/addr_equal-1.c: unknown dg option: 89 for " dg-add-options 5 weak_undefined "
add_options_for_weak_undefined tries to call an non-existant proc "89".
Even after fixing this by escaping the brackets, two tests still failed to
link since they lacked the corresponding calls do dg-add-options
weak_undefined.
Tested on x86_64-apple-darwin20.6.0 and i386-pc-solaris2.11.
2023-03-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
gcc/testsuite:
* lib/target-supports.exp (add_options_for_weak_undefined): Escape
brackets.
* gcc.dg/visibility-22.c: Add weak_undefined options.
libgomp:
* testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c: Add
weak_undefined options.
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c index 20c420d..525e3bf 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c @@ -8,6 +8,7 @@ /* { dg-additional-sources routine-nohost-2_2.c } */ /* { dg-additional-options "-fno-inline" } for stable results regarding OpenACC 'routine'. */ +/* { dg-add-options weak_undefined } */ #include <assert.h> #include <openacc.h> |