]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite, Darwin : Do not claim 'GAS' for cctools assembler.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 15 Mar 2021 21:38:31 +0000 (21:38 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 27 Aug 2021 15:49:21 +0000 (16:49 +0100)
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.

gcc/testsuite/lib/target-supports.exp

index 350dbdb24f1408c02b6f0dbc9e16d1a22392748d..0e877bcdba26e8d28e0facc88a8cb27b291fa7a0 100644 (file)
@@ -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
        }