Patch 1 adds a couple of new regexp strings to gcc-dg-prune to catch messages emitted by GNU ld, when the size of an output section is too large for a memory region, or the memory region overflows.
>From af810d86c47092e56590f5c13d0633c490f53c9d Mon Sep 17 00:00:00 2001 From: Jozef Lawrynowicz <joze...@mittosystems.com> Date: Tue, 6 Nov 2018 12:49:36 +0000 Subject: [PATCH 1/4] [TESTSUITE] prune regex 2018-11-08 Jozef Lawrynowicz <joze...@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(+) 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] && \ -- 2.7.4