From patchwork Thu Nov 8 16:43:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jozef Lawrynowicz X-Patchwork-Id: 995010 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-489417-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mittosystems.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="V7EZF0Wc"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=mittosystems.com header.i=@mittosystems.com header.b="m9/XiAl9"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42rTcg34Tkz9s8F for ; Fri, 9 Nov 2018 03:43:30 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=mksYXgQtXjoujnHEZecyi+FPAzJFavSVEKyUBKcTy+gfSUHPGm DAkwNr8E0VjuGuWZk4QAWUOvfXuj6N7G+3Jw9dWVpnaw7Drthitqaa6n0K0e1AQy /otgSuly9ycpIPM5QhOoF/ikJSHDL8YYr2pnzvba0wpd3gQxu35Zb0eQk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=dyJW+sdpRYQObhIRg1wCjwyWHw0=; b=V7EZF0WcFvj2AY9TPMgc QaC2mVx4diIpG/cMAsdKdBhTmlmwFD3NL8rykibqzHlJwzjiXynnz12ApMr7QzaE +4KIptzPnAL0VL4TnjUGiLAUv/zpS+og5MWjJVZo9OzlIS1JvdJB25d9PPKHiVvr xkqtSMGwbX/+bjA8TYiAJ60= Received: (qmail 103658 invoked by alias); 8 Nov 2018 16:43:23 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 103644 invoked by uid 89); 8 Nov 2018 16:43:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1373 X-HELO: mail-wr1-f52.google.com Received: from mail-wr1-f52.google.com (HELO mail-wr1-f52.google.com) (209.85.221.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 08 Nov 2018 16:43:21 +0000 Received: by mail-wr1-f52.google.com with SMTP id k15-v6so18993968wre.12 for ; Thu, 08 Nov 2018 08:43:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mittosystems.com; s=google; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=v/QU/j2JvpRTNM1M0mXZJIXzGGrF6mNqOAP1aF91hB0=; b=m9/XiAl9FuTLnpmUymTucBH2pa6iBwW+FoH93Waux0Q0OARlN/nJ2jN5Ey2CGDbf4D tI5kCusDjacStThdGcC99xqSMUapP4S93ZJx5ynA+sEqYOBr7EksJmI+tGIeSWwZkCC9 BXImKRZltmIUUg1tt7V9UkD2JlHofrK83k/8XlQrIeGP99TQQlVV21oluAqYbWmtIldT Oo+B0R0Ednb4KmfD2zlIoYXJjdAvSwHTMoVGbvJicB8L/TqdBNJQaWGovBeviE1271Qy 2DOsg2lfKNnKP7JBu5j8zsjjaHBmdkH1xbzqYGyT6CWFj48x0gY+VlP/hM0cF8/z9Y3r Frxg== Received: from [192.168.1.145] ([88.98.203.54]) by smtp.gmail.com with ESMTPSA id y13-v6sm5257670wrq.13.2018.11.08.08.43.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Nov 2018 08:43:17 -0800 (PST) To: GCC Patches From: Jozef Lawrynowicz Subject: [committed][MSP430][1/4] Add regexp for memory region overflow to gcc-dg-pune Message-ID: Date: Thu, 8 Nov 2018 16:43:17 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 X-IsSubscribed: yes 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 Date: Tue, 6 Nov 2018 12:49:36 +0000 Subject: [PATCH 1/4] [TESTSUITE] prune regex 2018-11-08 Jozef Lawrynowicz 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