From: jozefl Date: Thu, 8 Nov 2018 16:26:00 +0000 (+0000) Subject: 2018-11-08 Jozef Lawrynowicz X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f086d722fdab9b50a3948cb55c939fb84b231e3f;p=thirdparty%2Fgcc.git 2018-11-08 Jozef Lawrynowicz * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265924 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e08be5939d96..840b3ce203e2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-11-08 Jozef Lawrynowicz + + * 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 * 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 c33a50c0b133..305dd3c82508 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] && \