]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] Mark tests unsupported when relocation truncation occurs on tiny memory...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 20 Aug 2014 09:28:25 +0000 (09:28 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 20 Aug 2014 09:28:25 +0000 (09:28 +0000)
* lib/gcc-defs.exp (${tool}_check_unsupported_p):
Return memory full when we have a tiny target and relocation
truncation occurs.
* lib/gcc-dg.exp (gcc-dg-prune): Likewise.
* lib/objc.exp (${tool}_check_unsupported_p): Likewise.
* lib/target-supports.exp (check_effective_target_tiny): New function.

From-SVN: r214215

gcc/testsuite/ChangeLog
gcc/testsuite/lib/gcc-defs.exp
gcc/testsuite/lib/gcc-dg.exp
gcc/testsuite/lib/objc.exp
gcc/testsuite/lib/target-supports.exp

index b8473c3a62293eee3a590ed449a06aee4788754b..16d0c07b247eea583a3147dc4f7e4c5aa3096d26 100644 (file)
@@ -1,3 +1,12 @@
+2014-08-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * lib/gcc-defs.exp (${tool}_check_unsupported_p):
+       Return memory full when we have a tiny target and relocation
+       truncation occurs.
+       * lib/gcc-dg.exp (gcc-dg-prune): Likewise.
+       * lib/objc.exp (${tool}_check_unsupported_p): Likewise.
+       * lib/target-supports.exp (check_effective_target_tiny): New function.
+
 2014-08-20  Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
 
        * gfortran.dg/errnocheck_1.f90: New test.
index 69a597162b0e3c18456447dd195e259d9267ff1d..1ea7028b636c2e112c85987e6865c9d1d27fb828 100644 (file)
@@ -157,6 +157,11 @@ proc ${tool}_check_unsupported_p { output } {
     if [regexp "(^|\n)\[^\n\]*: region \[^\n\]* is full" $output] {
        return "memory full"
     }
+    if { [regexp "(^|\n)\[^\n\]*: relocation truncated to fit" $output]
+          && [check_effective_target_tiny] } {
+        return "memory full"
+     }
+
     if { [istarget spu-*-*] && \
             [string match "*exceeds local store*" $output] } {
        return "memory full"
index 3390caac47bb978aead27116b3f08928bab0d7ba..dfdb25710a82002e00fc7c74e2e79e5ca54dee5a 100644 (file)
@@ -233,6 +233,11 @@ proc gcc-dg-prune { system text } {
        return "::unsupported::memory full"
     }
 
+    if { [regexp "(^|\n)\[^\n\]*: relocation truncated to fit" $text]
+          && [check_effective_target_tiny] } {
+        return "::unsupported::memory full"
+    }
+
     # Likewise, if we see ".text exceeds local store range" or
     # similar.
     if {[string match "spu-*" $system] && \
index 5ecefa92f96d15bcda25ef613fa0d03f9e339a32..e19b2643863497ea58e3b43cb32f41a85a04c716 100644 (file)
@@ -357,6 +357,10 @@ proc ${tool}_check_unsupported_p { output } {
     if [regexp "(^|\n)\[^\n\]*: region \[^\n\]* is full" $output] {
        return "memory full"
     }
+    if { [regexp "(^|\n)\[^\n\]*: relocation truncated to fit" $output]
+          && [check_effective_target_tiny] } {
+        return "memory full"
+    }
     return ""
 }
 
index 6506e42fc89b95ac53ea29208b7be205c6f075ea..ca20099722c312a4a68fd0fd81373df6d9b496c8 100644 (file)
@@ -5950,6 +5950,14 @@ proc check_effective_target_fenv_exceptions {} {
     } [add_options_for_ieee "-std=gnu99"]]
 }
 
+proc check_effective_target_tiny {} {
+    if { [istarget aarch64*-*-*]
+         && [check_effective_target_aarch64_tiny] } {
+        return 1
+    }
+    return 0
+}
+
 # Return 1 if LOGICAL_OP_NON_SHORT_CIRCUIT is set to 0 for the current target.
 
 proc check_effective_target_logical_op_short_circuit {} {