public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-876] [libgomp, testsuite] Don't shadow global 'offload_targets' variable
@ 2021-05-18 11:20 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2021-05-18 11:20 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b5c3145ad9ac04654d4947d34d1e9dc5c26f4c53
commit r12-876-gb5c3145ad9ac04654d4947d34d1e9dc5c26f4c53
Author: Thomas Schwinge <thomas@codesourcery.com>
Date: Mon Apr 27 08:22:36 2020 +0200
[libgomp, testsuite] Don't shadow global 'offload_targets' variable
See local 'offload_targets' variable in
'libgomp/testsuite/lib/libgomp.exp:libgomp_check_effective_target_offload_target'
vs. global 'libgomp/testsuite/libgomp-test-support.exp.in:offload_targets'
variable.
libgomp/
* testsuite/lib/libgomp.exp
(check_effective_target_offload_target_nvptx): Don't shadow global
'offload_targets' variable.
Diff:
---
libgomp/testsuite/lib/libgomp.exp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libgomp/testsuite/lib/libgomp.exp b/libgomp/testsuite/lib/libgomp.exp
index 46cce9b8445..089c2bba9fc 100644
--- a/libgomp/testsuite/lib/libgomp.exp
+++ b/libgomp/testsuite/lib/libgomp.exp
@@ -354,9 +354,9 @@ proc libgomp_check_effective_target_offload_target { target_name } {
# decides. This is somewhat modelled after
# 'gcc/testsuite/lib/target-supports.exp:check_configured_with'.
set gcc_output [libgomp_target_compile "" "" "none" $options]
- if [regexp "(?n)^OFFLOAD_TARGET_NAMES=(.*)" $gcc_output dummy offload_targets] {
- verbose "compiling for offload targets: $offload_targets"
- return [string match "*:$target_name*:*" ":$offload_targets:"]
+ if [regexp "(?n)^OFFLOAD_TARGET_NAMES=(.*)" $gcc_output dummy gcc_offload_targets] {
+ verbose "compiling for offload targets: $gcc_offload_targets"
+ return [string match "*:$target_name*:*" ":$gcc_offload_targets:"]
}
verbose "not compiling for $target_name offload target"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-18 11:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-18 11:20 [gcc r12-876] [libgomp, testsuite] Don't shadow global 'offload_targets' variable Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).