mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-13 18:30:59 +08:00
target-supports.exp (check_vmx_hw_available): Use -maltivec for darwin.
* lib/target-supports.exp (check_vmx_hw_available): Use -maltivec for darwin. Co-Authored-By: Dorit Naishlos <dorit@il.ibm.com> From-SVN: r96527
This commit is contained in:
parent
5f55a1ba12
commit
3562bc34e8
@ -1,3 +1,9 @@
|
||||
2005-03-15 Janis Johnson <janis187@us.ibm.com>
|
||||
Dorit Naishlos <dorit@il.ibm.com>
|
||||
|
||||
* lib/target-supports.exp (check_vmx_hw_available): Use -maltivec for
|
||||
darwin.
|
||||
|
||||
2005-03-15 Dorit Naishlos <dorit@il.ibm.com>
|
||||
|
||||
* gcc.dg/vect/vect-54.c: Now vectorizable on targets that don't support
|
||||
|
@ -371,8 +371,16 @@ proc check_vmx_hw_available { } {
|
||||
puts $f " return 0; }"
|
||||
close $f
|
||||
|
||||
# Most targets don't require special flags for this test case, but
|
||||
# Darwin does.
|
||||
if [istarget *-*-darwin*] {
|
||||
set opts "additional_flags=-maltivec"
|
||||
} else {
|
||||
set opts ""
|
||||
}
|
||||
|
||||
verbose "check_vmx_hw_available compiling testfile $src" 2
|
||||
set lines [${tool}_target_compile $src $exe executable ""]
|
||||
set lines [${tool}_target_compile $src $exe executable "$opts"]
|
||||
file delete $src
|
||||
|
||||
if [string match "" $lines] then {
|
||||
|
Loading…
x
Reference in New Issue
Block a user