From patchwork Wed Dec 21 13:55:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 88737 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp2280580qgi; Wed, 21 Dec 2016 05:56:23 -0800 (PST) X-Received: by 10.99.125.65 with SMTP id m1mr7908377pgn.159.1482328583310; Wed, 21 Dec 2016 05:56:23 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id b128si26707096pgc.336.2016.12.21.05.56.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Dec 2016 05:56:23 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-444918-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org; spf=pass (google.com: domain of gcc-patches-return-444918-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-444918-patch=linaro.org@gcc.gnu.org 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=Enlnxyw5LVvhjpaTdGv6KNopJkmGQyu4rzsPGL15u8acSU4sTx IIh3+e3OW1Zjrngw0Zx7KhfzQJou3b/sknpyPchLblVH+KbmRoO9X1QpqMU745RW wRm9L13XsWtvO54g5Lu1TAfxjO9k9nl2xwRHou+cGtFRgPNaQc2hIQaJ0= 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=wqhU9f+dvyUt8HkXClo52p4bmZ4=; b=awdBKoqsqoOR1uUm4Oow PNIbI654+I6aUtXGrhBgUtGPoNr++1xTapYjqorAIsTd+9ynFZ1TGtE12zYuzWPE bR8kW9DE1pnijN+D+qv7vqoT7EcUVd/MpeC5FxbFlvZQeby4F/gXWAIbZaYXI2LF bURCqhj56LCYHCTHpfRVvvU= Received: (qmail 8163 invoked by alias); 21 Dec 2016 13:56:07 -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 8056 invoked by uid 89); 21 Dec 2016 13:56:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy= X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.218) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Dec 2016 13:55:54 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT3ol15ykJcYwTPLBCxG2PQt7BpWLF2I= X-RZG-CLASS-ID: mo00 Received: from [192.168.0.123] (ip5f5871bb.dynamic.kabel-deutschland.de [95.88.113.187]) by smtp.strato.de (RZmta 39.11 DYNA|AUTH) with ESMTPSA id g05987sBLDtp8Ax (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Wed, 21 Dec 2016 14:55:51 +0100 (CET) To: gcc-patches From: Georg-Johann Lay Subject: [patch, testsuite, committed] ad PR testsuite/51641: Adjust some test to less endowed targets Message-ID: Date: Wed, 21 Dec 2016 14:55:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 X-IsSubscribed: yes http://gcc.gnu.org/r243854 Applied this patch as obvious. It adds some additional salt for targets with reduced resources like require size32plus. Johann gcc/testsuite/ PR testsuite/52641 * gcc.dg/builtin-object-size-16.c (ia0, ia1, ia9): Handle case where neither short nor int has a size of 4; use long. * gcc.dg/builtin-object-size-17.c: Same. * gcc.dg/builtin-stringop-chk-1.c (test2) : Use int32_t for components as 4 components are supposed to occupy 16 bytes. * gcc.dg/pr78408-1.c: Require target size32plus. * gcc.dg/pr78408-2.c: Same. * gcc.dg/tree-ssa/pr78428.c. Require target int32plus. * gcc.dg/tree-ssa/tailcall-7.c: Require target trampolines. Index: gcc.dg/builtin-object-size-16.c =================================================================== --- gcc.dg/builtin-object-size-16.c (revision 243852) +++ gcc.dg/builtin-object-size-16.c (working copy) @@ -69,6 +69,10 @@ static short ia9[9]; extern int ia0[0]; static int ia1[1]; static int ia9[9]; +#elif __SIZEOF_LONG__ == 4 +extern long ia0[0]; +static long ia1[1]; +static long ia9[9]; #endif static char a2x2[2][2]; Index: gcc.dg/builtin-object-size-17.c =================================================================== --- gcc.dg/builtin-object-size-17.c (revision 243852) +++ gcc.dg/builtin-object-size-17.c (working copy) @@ -64,6 +64,10 @@ static short ia9[9]; extern int ia0[0]; static int ia1[1]; static int ia9[9]; +#elif __SIZEOF_LONG__ == 4 +extern long ia0[0]; +static long ia1[1]; +static long ia9[9]; #endif static char a2x2[2][2]; Index: gcc.dg/builtin-stringop-chk-1.c =================================================================== --- gcc.dg/builtin-stringop-chk-1.c (revision 243852) +++ gcc.dg/builtin-stringop-chk-1.c (working copy) @@ -105,7 +105,7 @@ test2 (const H h) unsigned char buf[21]; memset (buf + 16, 0, 8); /* { dg-warning "writing 8 " "memset" } */ - typedef struct { int i, j, k, l; } S; + typedef struct { __INT32_TYPE__ i, j, k, l; } S; S *s[3]; memset (s, 0, sizeof (S) * 3); /* { dg-warning "writing 48 " "memset" } */ Index: gcc.dg/pr78408-1.c =================================================================== --- gcc.dg/pr78408-1.c (revision 243852) +++ gcc.dg/pr78408-1.c (working copy) @@ -1,5 +1,5 @@ /* PR c/78408 */ -/* { dg-do compile } */ +/* { dg-do compile { target size32plus } } */ /* { dg-options "-O2 -fdump-tree-fab1-details" } */ /* { dg-final { scan-tree-dump-times "after previous" 17 "fab1" } } */ Index: gcc.dg/pr78408-2.c =================================================================== --- gcc.dg/pr78408-2.c (revision 243852) +++ gcc.dg/pr78408-2.c (working copy) @@ -1,5 +1,5 @@ /* PR c/78408 */ -/* { dg-do compile } */ +/* { dg-do compile { target size32plus } } */ /* { dg-options "-O2 -fdump-tree-fab1-details" } */ /* { dg-final { scan-tree-dump-not "after previous" "fab1" } } */ Index: gcc.dg/tree-ssa/pr78428.c =================================================================== --- gcc.dg/tree-ssa/pr78428.c (revision 243852) +++ gcc.dg/tree-ssa/pr78428.c (working copy) @@ -1,6 +1,6 @@ /* PR tree-optimization/78428. */ /* { dg-options "-O2" } */ -/* { dg-do run } */ +/* { dg-do run { target int32plus } } */ struct S0 { Index: gcc.dg/tree-ssa/tailcall-7.c =================================================================== --- gcc.dg/tree-ssa/tailcall-7.c (revision 243852) +++ gcc.dg/tree-ssa/tailcall-7.c (working copy) @@ -1,4 +1,4 @@ -/* { dg-do compile } */ +/* { dg-do compile { target trampolines } } */ /* { dg-options "-O2 -fdump-tree-tailc-details" } */ struct s { int x; };