[MIPS/LD/testsuite] Skip o32 flags check on mips*-*-irix*
authorChenghua Xu <paul.hua.gm@gmail.com>
Wed, 29 Aug 2018 09:12:44 +0000 (17:12 +0800)
committerChenghua Xu <paul.hua.gm@gmail.com>
Wed, 29 Aug 2018 09:12:44 +0000 (17:12 +0800)
ld/ChangeLog:

* testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
Skip o32 flags checking if target is mips*-*-irix*.

ld/ChangeLog
ld/testsuite/ld-mips-elf/mips-elf-flags.exp

index 0cf02ab..e3eb4fb 100644 (file)
@@ -1,3 +1,8 @@
+2018-08-29  Chenghua Xu  <paul.hua.gm@gmail.com>
+
+       * testsuite/ld-mips-elf/mips-elf-flags.exp (good_combination):
+       Skip o32 flags checking if target is mips*-*-irix*.
+
 2018-08-27  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-i386/i386.exp: Run property-x86-5.
index de97939..0a4bdf1 100644 (file)
@@ -127,7 +127,12 @@ proc good_combination {arglist flags args} {
 
            foreach flag $flags {
                if {[lsearch -exact $gotflags $flag] < 0} {
-                   set failed 1
+                   # The mips*-*-irix* not use o32 flags.
+                   if {[istarget mips*-*-irix*] && $flag == "o32"} {
+                       set failed 0
+                   } else {
+                       set failed 1
+                   }
                }
            }