aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJozef Lawrynowicz <jozef.l@mittosystems.com>2018-11-08 16:26:00 +0000
committerJozef Lawrynowicz <jozefl@gcc.gnu.org>2018-11-08 16:26:00 +0000
commit20ce1f50f6aa20e51580b931ae0c3dc4abbbd458 (patch)
tree98e3edb0204985ec7dc45cde4a3243fc436de7c2
parent0274dd3f8d6bcbc4935fae1e0cc815197c48bb0c (diff)
downloadgcc-20ce1f50f6aa20e51580b931ae0c3dc4abbbd458.zip
gcc-20ce1f50f6aa20e51580b931ae0c3dc4abbbd458.tar.gz
gcc-20ce1f50f6aa20e51580b931ae0c3dc4abbbd458.tar.bz2
gcc-dg.exp (gcc-dg-prune): Add new regexps for when the size of an output section is too large for a...
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
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/lib/gcc-dg.exp8
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index e08be59..840b3ce 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp
index c33a50c..305dd3c 100644
--- a/gcc/testsuite/lib/gcc-dg.exp
+++ b/gcc/testsuite/lib/gcc-dg.exp
@@ -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] && \