gcc-dg.exp (gcc-dg-prune): Add new regexps for when the size of an output section...
authorJozef Lawrynowicz <jozef.l@mittosystems.com>
Thu, 8 Nov 2018 16:26:00 +0000 (16:26 +0000)
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>
Thu, 8 Nov 2018 16:26:00 +0000 (16:26 +0000)
2018-11-08  Jozef Lawrynowicz  <jozef.l@mittosystems.com>

* lib/gcc-dg.exp (gcc-dg-prune): Add new regexps for when the size of
an output section is too large for a memory region, or a memory
region overflows.

From-SVN: r265924

gcc/testsuite/ChangeLog
gcc/testsuite/lib/gcc-dg.exp

index e08be59..840b3ce 100644 (file)
@@ -1,3 +1,9 @@
+2018-11-08  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
+
+       * lib/gcc-dg.exp (gcc-dg-prune): Add new regexps for when the size of 
+       an output section is too large for a memory region, or a memory
+       region overflows.
+
 2018-11-08  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/null_pointer_deref1.adb: Remove -gnatp and add pragma.
index c33a50c..305dd3c 100644 (file)
@@ -394,6 +394,14 @@ proc gcc-dg-prune { system text } {
         return "::unsupported::memory full"
     }
 
+    if [regexp "(^|\n)\[^\n\]* section.*will not fit in region" $text] {
+       return "::unsupported::memory full"
+    }
+
+    if [regexp "(^|\n)\[^\n\]* region.*overflowed by" $text] {
+       return "::unsupported::memory full"
+    }
+
     # Likewise, if we see ".text exceeds local store range" or
     # similar.
     if {[string match "spu-*" $system] && \