* lib/target-supports.exp (check_vmx_hw_available): Use -maltivec for
authordorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Mar 2005 18:41:19 +0000 (18:41 +0000)
committerdorit <dorit@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Mar 2005 18:41:19 +0000 (18:41 +0000)
        darwin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96527 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 442e6c0..fd4e902 100644 (file)
@@ -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
index 6328eb5..2acef12 100644 (file)
@@ -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 {