From af810d86c47092e56590f5c13d0633c490f53c9d Mon Sep 17 00:00:00 2001
From: Jozef Lawrynowicz <jozef.l@mittosystems.com>
Date: Tue, 6 Nov 2018 12:49:36 +0000
Subject: [PATCH 1/4] [TESTSUITE] prune regex
2018-11-08 Jozef Lawrynowicz <jozef.l@mittosystems.com>
gcc/testsuite/ChangeLog:
* lib/gcc-dg.exp (gcc-dg-prune): Add new regexps for when
size of an output section is too large for a memory region.
---
gcc/testsuite/lib/gcc-dg.exp | 8 ++++++++
1 file changed, 8 insertions(+)
@@ -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] && \
--
2.7.4