From patchwork Wed Nov 9 02:43:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kito Cheng X-Patchwork-Id: 81428 Delivered-To: patch@linaro.org Received: by 10.140.97.165 with SMTP id m34csp1871385qge; Tue, 8 Nov 2016 18:44:01 -0800 (PST) X-Received: by 10.98.61.152 with SMTP id x24mr28757308pfj.88.1478659441381; Tue, 08 Nov 2016 18:44:01 -0800 (PST) Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id x4si33010615pac.340.2016.11.08.18.44.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Nov 2016 18:44:01 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-return-440796-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-440796-patch=linaro.org@gcc.gnu.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=gcc-patches-return-440796-patch=linaro.org@gcc.gnu.org; dmarc=fail (p=NONE dis=NONE) header.from=gmail.com DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:from:date:message-id:subject:to:content-type; q= dns; s=default; b=SIJz/fx2T5G9lZ+QQtJH7ZFBBKOBI9zlrCnfiIbWUn9CIH YP7dRP/4IbyJOqyuqn3QSow8Kaqy3OHWoOIJ258IedkJ4xDmySX5Z3upI/fwj+e8 mQEQqM+1e7os95/p+DRzpFxXLxBu6PsnhSY95EILs+5Q6KIvWFzIIDRvC45gM= 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 :mime-version:from:date:message-id:subject:to:content-type; s= default; bh=OkFu4IKXabwxuI+KTDTZQZakb0M=; b=jWKL6glPGdU8IX9BDR0F 9fOz6/xQ1IRR6ujnuhYMK7zS/E4VaeBW7yf72ehvmHInQjDCWn5KdT+HTnv9SCtF LRq5zgUNAR1QImra+T5aQABLmOjkIjRjgIah/2lo2c8HXRSjwigQubQ7odVFIrHq FRA329JUzDl+IrDE8FwzPaQ= Received: (qmail 60815 invoked by alias); 9 Nov 2016 02:43:45 -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 60799 invoked by uid 89); 9 Nov 2016 02:43:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=2016-11-09, 20161109 X-HELO: mail-vk0-f45.google.com Received: from mail-vk0-f45.google.com (HELO mail-vk0-f45.google.com) (209.85.213.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Nov 2016 02:43:43 +0000 Received: by mail-vk0-f45.google.com with SMTP id p9so165382555vkd.3 for ; Tue, 08 Nov 2016 18:43:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to; bh=hJZVbhXXoeuGYF8KqfGTcOX7DSGKVCOVVFkdbIcSaCc=; b=QBu4BIdyT2H+1w6V0ANEpc8FQyLEB+CFBa8x1GUQMYEpbiGFBpI07cdMkNTcDCoqQE 970YK+5wZcma+tVI6kSLv0AAk0ZmahgF/UwoxXyeadPI1SQcpGsrrqVP8uIwhqnNPjBZ ZkozoFHnPCdjFcHHQCXYjkF6EjXPRCZfWiqGOz5uC74h5V3wgXlhBX1H0gSHEhWbQE09 XtIVyzMKFgLy3MnvkYl0KrjjSGPdmVpkk6zyHkgH1mzqNRui6MKu6CdNz2UQ8+gn21Rx r+GnPlLWRXrB1GBjg6JVw6Cgx/ymtW63qfQr9GV1OfFq1IMFHG/Poq0hFCj+sr3rKx2X lSRw== X-Gm-Message-State: ABUngvexvjIJe595D7Jrg3qEMaPzRjdMDt4NhIc0IxquWFaSkBY8QvgVFa55hNonGySHmv/uDAD54XH37EhyMw== X-Received: by 10.31.92.215 with SMTP id q206mr9270638vkb.104.1478659421520; Tue, 08 Nov 2016 18:43:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.31.189.22 with HTTP; Tue, 8 Nov 2016 18:43:21 -0800 (PST) From: Kito Cheng Date: Wed, 9 Nov 2016 10:43:21 +0800 Message-ID: Subject: [PATCH] Fix PR78230 To: "gcc-patches@gcc.gnu.org" X-IsSubscribed: yes gcc/testsuite/ChangeLog: 2016-11-09 Kito Cheng PR target/78230 * gcc.dg/torture/pr66178.c (test): Use uintptr_t instead of int. (test2) Ditto. >From 73ff22745720ecfc2a33148f68ff7e0f36c1144b Mon Sep 17 00:00:00 2001 From: Kito Cheng Date: Wed, 9 Nov 2016 10:39:59 +0800 Subject: [PATCH] Use uintptr_t instead of int for pr66178.c --- gcc/testsuite/gcc.dg/torture/pr66178.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/torture/pr66178.c b/gcc/testsuite/gcc.dg/torture/pr66178.c index c42996d..ee09cf6 100644 --- a/gcc/testsuite/gcc.dg/torture/pr66178.c +++ b/gcc/testsuite/gcc.dg/torture/pr66178.c @@ -1,9 +1,11 @@ /* { dg-do compile } */ /* { dg-require-effective-target label_values } */ +typedef __UINTPTR_TYPE__ uintptr_t; + int test(void) { - static int a = ((char *)&&l1-(char *)&&l2)-1; + static uintptr_t a = ((char *)&&l1-(char *)&&l2)-1; l1: l2: return a; @@ -11,7 +13,7 @@ l2: int test2(void) { - static int a = ((char *)&&l2-(char *)&&l3)+((char *)&&l1-(char *)&&l2); + static uintptr_t a = ((char *)&&l2-(char *)&&l3)+((char *)&&l1-(char *)&&l2); l1: l2: l3: -- 2.7.4