public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3185] testsuite, Darwin : Do not claim 'GAS' for cctools assembler.
@ 2021-08-27 15:49 Iain D Sandoe
0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2021-08-27 15:49 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:e42ea63bcc12e819c3e1066974a691988e86b724
commit r12-3185-ge42ea63bcc12e819c3e1066974a691988e86b724
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Mon Mar 15 21:38:31 2021 +0000
testsuite, Darwin : Do not claim 'GAS' for cctools assembler.
Although the cctools assembler is based of GNU GAS, it is from a
very old version (1.38) which does not support many of the features
that the target supports test is expecting.
gcc/testsuite/ChangeLog:
* lib/target-supports.exp: Exclude cctools assembler based on
GAS 1.38.
Diff:
---
gcc/testsuite/lib/target-supports.exp | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index 350dbdb24f1..0e877bcdba2 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -9601,7 +9601,14 @@ proc check_effective_target_gas { } {
set status [remote_exec host "$gcc_as" "-v /dev/null"]
set as_output [lindex $status 1]
if { [ string first "GNU" $as_output ] >= 0 } {
- set use_gas_saved 1
+ # Some Darwin versions have an assembler which is based on an old
+ # version of GAS (and reports GNU assembler in its -v output) but
+ # but doesn't support many of the modern GAS features.
+ if { [ string first "cctools" $as_output ] >= 0 } {
+ set use_gas_saved 0
+ } else {
+ set use_gas_saved 1
+ }
} else {
set use_gas_saved 0
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-27 15:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 15:49 [gcc r12-3185] testsuite, Darwin : Do not claim 'GAS' for cctools assembler Iain D Sandoe
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).