lib/target-supports.exp (check_vmx_hw_available): Add -maltivec flag for AIX.

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.

From-SVN: r129349
This commit is contained in:
David Edelsohn 2007-10-15 15:00:49 +00:00 committed by David Edelsohn
parent c4a7942745
commit fc632f6e0f
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -943,7 +943,8 @@ proc check_vmx_hw_available { } {
# 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 ""
@ -1620,8 +1621,10 @@ proc check_effective_target_powerpc_fprs { } {
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 {