From patchwork Tue Mar 24 15:43:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Lawrence X-Patchwork-Id: 453931 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 A9E701400D5 for ; Wed, 25 Mar 2015 02:43:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=X44+ygoo; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=e/7DLsxl3sgIjq5cJ4pYY1fT+HA2tEarjlWh9So59cC AcT2sVFzCJGd5Qtj9qe+mCzgBxSW/1RDmAFnPLgavjMNIKRT6jKdaziozbJ7kU1w VDJv1NfuuEkXyhD073EWupWmMKyLdUr2RKBmF6288LKmipsz/aHILQ/Houns2lsA = 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 :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=IOBim4yH3e7sNfvxEvRDwr1P4a4=; b=X44+ygooiZpC/P1Re Ft68Lec/yF0gHdk7+CSCHFtBAq67Ydz0Gm/3QeGbsK/TzjqbN114Cx54UDgIdqFi ERR4SD9/f4Xm0MUbZ52o4IcVH7waQp8OhpUyXIdLngM5fRRgKos23uifLtOh5jUM bEnoevE5t+NCdmKcKHA3gjfc1s= Received: (qmail 55822 invoked by alias); 24 Mar 2015 15:43:46 -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 55810 invoked by uid 89); 24 Mar 2015 15:43:45 -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, SPF_PASS autolearn=ham version=3.3.2 X-HELO: service87.mimecast.com Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 24 Mar 2015 15:43:44 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by service87.mimecast.com; Tue, 24 Mar 2015 15:43:41 +0000 Received: from [10.2.207.65] ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 24 Mar 2015 15:43:41 +0000 Message-ID: <5511862D.3010406@arm.com> Date: Tue, 24 Mar 2015 15:43:41 +0000 From: Alan Lawrence User-Agent: Thunderbird 2.0.0.24 (X11/20101213) MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: Marcus Shawcroft , Richard Biener Subject: [PATCH][AArch64][Testsuite] Fix gcc.target/aarch64/c-output-template-3.c X-MC-Unique: 115032415434103301 X-IsSubscribed: yes Following Richard Biener's patch at https://gcc.gnu.org/ml/gcc-patches/2015-03/msg01064.html (r221532), gcc.target/aarch64/c-output-template-3.c fails with: c-output-template-3.c: In function 'test': c-output-template-3.c:7:5: error: impossible constraint in 'asm' __asm__ ("@ %c0" : : "S" (&test + 4)); This patch fixes the test by changing options to -O in a similar manner to Richard's fixes to gcc.dg/pr15347.c and c-c++-common/pr19807-1.c. Ok for trunk? Cheers, Alan gcc/testsuite/ChangeLog: gcc.target/aarch64/c-output-template.c: Add -O, remove -Wno-pointer-arith. diff --git a/gcc/testsuite/gcc.target/aarch64/c-output-template-3.c b/gcc/testsu index c28837c..8bde4cb 100644 --- a/gcc/testsuite/gcc.target/aarch64/c-output-template-3.c +++ b/gcc/testsuite/gcc.target/aarch64/c-output-template-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Wno-pointer-arith" } */ +/* { dg-options "-O" } */ void test (void)