[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 0cf02abde2548085879f7df18c09876473b4ae1d..e3eb4fb341cf7f529d4d183fe6166b354a6ec98e 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 de97939f81e74f7512fcdcd05a13cce13a8f5f92..0a4bdf1e3b74b2cbb8e3c4aa3091903fd8f0fb79 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
+                   }
                }
            }