+2007-10-15 David Edelsohn <edelsohn@gnu.org>
+
+ lib/target-supports.exp (check_vmx_hw_available): Add -maltivec
+ flag for AIX.
+ (check_effective_target_powerpc_altivec_ok): Only skip before AIX 5.3.
+
2007-10-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/33055
# Most targets don't require special flags for this test case, but
# Darwin does.
- if [istarget *-*-darwin*] {
+ if { [istarget *-*-darwin*]
+ || [istarget *-*-aix*] } {
set opts "additional_flags=-maltivec"
} else {
set opts ""
proc check_effective_target_powerpc_altivec_ok { } {
if { [istarget powerpc*-*-*]
|| [istarget rs6000-*-*] } {
- # AltiVec is not supported on Aix.
- if { [istarget powerpc*-*-aix*] } {
+ # AltiVec is not supported on AIX before 5.3.
+ if { [istarget powerpc*-*-aix4*]
+ || [istarget powerpc*-*-aix5.1*]
+ || [istarget powerpc*-*-aix5.2*] } {
return 0
}
return [check_no_compiler_messages powerpc_altivec_ok object {