diff mbox series

[committed,MSP430,1/4] Add regexp for memory region overflow to gcc-dg-pune

Message ID fc060a54-1f62-e63b-1ff3-7862db9ce736@mittosystems.com
State New
Headers show
Series "Obvious" fixes to GCC tests for msp430-elf | expand

Commit Message

Jozef Lawrynowicz Nov. 8, 2018, 4:43 p.m. UTC
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.
diff mbox series

Patch

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(+)

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