From patchwork Thu Oct 8 05:06:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Pluzhnikov X-Patchwork-Id: 8993 Received: (qmail 47450 invoked by alias); 8 Oct 2015 05:06:47 -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 47441 invoked by uid 89); 8 Oct 2015 05:06:46 -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-f170.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=vOI8Hg+kvsqKuJEqlyCQ2GnzM0cxzJ3muIg3dv3b1uw=; b=bd/KWN6LgHtOiruTsxwJr779MhF7LSvBaRFCNh5Jjx844dcyfvEmro69IZfZ+3m8bA j7dxnMl9CkuySVc552n05naSTiaMx4MSbQ5/9cKykp/L9MJwnNmnX1MLpSm5o1ge04q6 kD/Ak5JtAOVX7/rUTKLrm8w+xi1DBxdLOfnh3W1uBakH+9pu9JykKDBqU19klbSj/LQc 869Y5kVdJH+kMpUwvvsCNd6c+GWhp1bNTlrwVIDi24Qsqn7CRga1RBV8Q/JSTJB7wa8q buBVpZ+zesxbutFGuMZfpovm5rVfZMs/hnF32Q+fS2ePjBNRCNGizCiZ3WuvaBy269vY 5dMQ== X-Gm-Message-State: ALoCoQlXqdMqZikF0TC44/41ziJ66d+1gitlxpuRXApl8qkgUxSzpZz0q6V/LnjFanGaSOb6NLCN X-Received: by 10.180.39.136 with SMTP id p8mr1625440wik.10.1444280802150; Wed, 07 Oct 2015 22:06:42 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <5614CEDB.5040709@redhat.com> From: Paul Pluzhnikov Date: Wed, 7 Oct 2015 22:06:12 -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 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. diff --git a/stdio-common/tst-printf-bz18872.sh b/stdio-common/tst-printf-bz18872.sh index 0127e73..ee68fa8 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"