From patchwork Wed Dec 6 19:27:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Sebor X-Patchwork-Id: 845301 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-468634-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="v3UaUsZb"; 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 3ysTCG2BJkz9s4s for ; Thu, 7 Dec 2017 06:27:22 +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 :content-transfer-encoding; q=dns; s=default; b=PdS2YBfDVNnt006i 5W5e4NLufIkxV1eE6B06N+nMIZlpsgEr59emfZPEXIkOG5V2dMOytmRLlgWdlrnW 4/bWCR7qcpyNO9miW1An94moD4Qw8LWcLrw1Ppv3Mutyq9MWGP4m7IdilCl0C8VO qfQslBBNEPni0AOtgO00GVUJ1l8= 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 :content-transfer-encoding; s=default; bh=yhiYA9G0sfyR3QZj6eLOLw ft9TE=; b=v3UaUsZb2svBW+BmplhItV4MMvlnW+//338FhLY6ncDFHFnBvfXFOs J1PkBxZAzN7OciQzgqcUZq8nqZJjiQgPK2N0TdsVggjf7seb7vwmmyKOvxHKjCvh fYBjB/1Bqr7xXcedKTJPJdal27pf3j1Rc0ga7G1U0fJLC6bvL3pzM= Received: (qmail 35165 invoked by alias); 6 Dec 2017 19:27:14 -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 35153 invoked by uid 89); 6 Dec 2017 19:27:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1734, H*M:b971 X-HELO: mail-oi0-f48.google.com Received: from mail-oi0-f48.google.com (HELO mail-oi0-f48.google.com) (209.85.218.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Dec 2017 19:27:13 +0000 Received: by mail-oi0-f48.google.com with SMTP id y75so3317751oie.4 for ; Wed, 06 Dec 2017 11:27:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=uGBlRmCjjRjJt6ngPB1Xiq8z32UUaV2R/9fEK6I+JeQ=; b=aG0ppYMs4yznMisKuXMHt3GFy/mTaCRvtUWRYTepOhSyS1ttc6cqYgGC/YwPxf2ONP rze7mUdyZLz6D8l1q00yO/zfwx/zdsccFg7lrnKCbWgWgfL4KnSFrkX0EbRNBUQxds+N WE9yWybIGxxwjPRgm9u8mclzso6I6syPkyTtrxiRHXC3h7ibfb8KpZAwgMTGgpnmSN49 /3/81KAB+Gk4rAoz4MHbVrRBcMF/VPaUuM8NeD3pxHXvZwFodAZNtc/dMzSSkJdNG+Cl p0BFlok/qouP2wVkuJdmfWmqxmLDmGOwhwoVuawdeuQ0FxA/Sy/fyV2w8Q5MBi4qRBtW DbAg== X-Gm-Message-State: AJaThX4bZgz67bW6LbQd/PFzNDREE/Hog8cr4i/oz5wdyeVvbfsuZoNC gUvO7E3xFTe5+y54zABlgFqiPw== X-Google-Smtp-Source: AGs4zMYcK7OwzW1a1N+Mw+u5fi/1QF7KMZ8qnegwPJuadMpNpyHH0SurYXzejc5tBfdSSh5j4ksatQ== X-Received: by 10.202.77.198 with SMTP id a189mr19571234oib.203.1512588430951; Wed, 06 Dec 2017 11:27:10 -0800 (PST) Received: from localhost.localdomain (97-118-117-95.hlrn.qwest.net. [97.118.117.95]) by smtp.gmail.com with ESMTPSA id j196sm1368794oih.29.2017.12.06.11.27.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Dec 2017 11:27:09 -0800 (PST) To: Gcc Patch List From: Martin Sebor Subject: [committed] prune warning from test output to avoid arm-none-eabi failure (PR 83303) Message-ID: <1520a6f9-6773-b971-5111-de6c588fdff9@gmail.com> Date: Wed, 6 Dec 2017 12:27:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-IsSubscribed: yes For reference, I committed r255450 to avoid the test failure reported on the arm-none-eabi target. The warning is valid but unrelated to the purpose of the test so I pruned it from its output. Martin Index: gcc/testsuite/ChangeLog =================================================================== --- gcc/testsuite/ChangeLog (revision 255449) +++ gcc/testsuite/ChangeLog (working copy) @@ -9,6 +9,9 @@ 2017-12-06 Martin Sebor + PR testsuite/83303 + * g++.dg/opt/new1.C: Prune warning from test output. + PR tree-optimization/82646 * gcc.dg/builtin-stringop-chk-1.c: Adjust. * gcc.dg/builtin-stringop-chk-9.c: New test. Index: gcc/testsuite/g++.dg/opt/new1.C =================================================================== --- gcc/testsuite/g++.dg/opt/new1.C (revision 255449) +++ gcc/testsuite/g++.dg/opt/new1.C (working copy) @@ -1,4 +1,4 @@ -// PR c++/39367 +// PR c++/39367 - ICE at tree-inline.c:1042 with -O // { dg-options "-O" } class QScriptEnginePrivate; @@ -37,6 +37,11 @@ template void QScript::Buffer::res reserve (s << 1); } template void QScript::Buffer::reserve(int x) { + /* The following may be optimized into a trap because the function + is called from resize(0) and so with m_capacity < 0. When not + optimized it may trigger -Walloc-size-larger-than= since + operator new() is called with an excessively large value. + The warning is pruned from the test output below. */ T *new_data = new T[m_capacity]; for (int i=0; i