From patchwork Thu Oct 8 05:09:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Pluzhnikov X-Patchwork-Id: 527605 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 4013A140187 for ; Thu, 8 Oct 2015 16:11:00 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=JufPmvie; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; q=dns; s=default; b=Ifh8 A7mAUVI+OAgNaJGH+4Q1EJ2uKfWBk1onr2UlZmHKxxsLKMq+DWBqSXbxyx8hhGIE prB03EYejgYNg/FTuHOD/yrhIzWblVFcHA+vhwskuCOhGuC7VlV5u+Pw4zRvv78E Hl/Eyds5QlopFMKRm6u0m4egid+Pgja4w9HAPYg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; s=default; bh=QbEGM458fr 573N7xl4oNXSjF5eE=; b=JufPmviek8u9/iwt3gMEY+uzRcZ5aSeKPlUDFuofgq KBgDDHgp6owHuYvRW7vc1j7gg8S3f20H5dOQ4Ra1Uvq6fKfDf3RgSCHvQHe1Cram 35z9DHI3PfyEonBBtBwXfi3t7T+L8yg7t3xYe9PiNcc5w87tbdcdfmCPCIIZ5g/5 0= Received: (qmail 52353 invoked by alias); 8 Oct 2015 05:10:27 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 52267 invoked by uid 89); 8 Oct 2015 05:10:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-wi0-f174.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=tAhUG05vxazjm2m2Qw1+FJU5meHi8KlbEHXShxY1L4I=; b=m355XlrdDSaz+Lx0nooLdzR0f2N3B6BkIpgFSANfwQE2TUnEXjkXWTyC8L27wkgmaE UE+jwQ4YaVIiiKdjzWEJjH7LA58myYLkNoR9Xp6F0lpcsOt9vSa6FZ/o90bhaA70eyb/ YY3JiGezOESGHJaJdwwZtfKFj12qMTd/8ACHGFWzjEj8MKFeLZSBA6/s7Ci5kW7DE9fe oNzovdiC8Sm0fxHwfwBuA1U0vvNfeB3JVQdZqkXpuc6C8BeaEShc3GP4p5bxCdo1jWLy YF8rWxAB2lA35UwXq/PB3yHCN1x0iI/qVVO/9J4OdaQz1e81gftfa2ibKLn0SkcYsr6x zjtw== X-Gm-Message-State: ALoCoQn71TTA2FRkMgr19KI7am8WhZzBE4fNDvpqcL/KO16nmRIyZPfYanGOBI9aVleEQMSh+Iwy X-Received: by 10.180.221.193 with SMTP id qg1mr1393839wic.87.1444281023000; Wed, 07 Oct 2015 22:10:23 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5614CEDB.5040709@redhat.com> From: Paul Pluzhnikov Date: Wed, 7 Oct 2015 22:09:53 -0700 Message-ID: Subject: Re: [patch] Fix build error for tst-printf-bz18872 on arm/aarch64 and s390 To: Florian Weimer Cc: GLIBC Devel On Wed, Oct 7, 2015 at 10:06 PM, Paul Pluzhnikov wrote: > On Wed, Oct 7, 2015 at 8:13 PM, Paul Pluzhnikov wrote: > > The attribute nicely works around the aarch64 break. > > Thanks! > > 2015-10-07 Paul Pluzhnikov > > * stdio-common/tst-printf-bz18872.sh: Use attribute optimize instead of > #pragma optimize. And again with space-before-paren. Thanks, diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh index 0127e73..84076c0 100644 --- a/stdio-common/tst-printf-bz18872.sh +++ b/stdio-common/tst-printf-bz18872.sh @@ -30,9 +30,8 @@ cat <<'EOF' /* Compile do_test without optimization: GCC 4.9/5.0/6.0 takes a long time to build this source. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67396 */ -#pragma GCC push_options -#pragma GCC optimize ("-O0") +__attribute__ ((optimize("-O0"))) int do_test (void) { mtrace (); @@ -62,7 +61,6 @@ cat <<'EOF' return 0; } -#pragma GCC pop_options #define TEST_FUNCTION do_test () #include "../test-skeleton.c"