From patchwork Wed Jun 25 18:06:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joseph Myers X-Patchwork-Id: 364111 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 31F37140081 for ; Thu, 26 Jun 2014 04:06:54 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:mime-version :content-type; q=dns; s=default; b=vBszqevIZTYnLV5a0XLC2Pxeg/cTS Cb1xeqcPkvkVMbSfVt/9xoGnyrva8hXElP1DA35xlPVh8TlfgTYoGLP68kOyuuO5 2XRhofHWEOsSRMthGCPpAEvqSAWH6SKL1U9XJk9CUct9SaNbhC7bMHrJsnzF5hAl y+3OYTh5NPYSJk= 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:date:from:to:subject:message-id:mime-version :content-type; s=default; bh=55n38BhaI6ZZCz/GT883JFkRl9E=; b=Wxd TVAIcygL1oxyROFot2p6gQ1PESia0MtdI9fBReuSQMkWMyI3pmGZ56mPWMC87tez ijc4l+vijsSBUu2+OkwgLB3ToVO27GmRH984EFKWOeaUCY58YmROIe3dNW7Mv85T ue+WVQkwSyDShsBzz/32y+0KJD20SDAXF9QO8Z8Q= Received: (qmail 587 invoked by alias); 25 Jun 2014 18:06:49 -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 540 invoked by uid 89); 25 Jun 2014 18:06:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Date: Wed, 25 Jun 2014 18:06:37 +0000 From: "Joseph S. Myers" To: Subject: Move USE_REGPARMS define to sysdeps/i386/configure.ac Message-ID: MIME-Version: 1.0 This patch moves the USE_REGPARMS define from the toplevel configure.ac to sysdeps/i386/configure.ac. Tested x86 that the disassembly of installed shared libraries is unchanged by this patch. 2014-06-25 Joseph Myers * configure.ac (USE_REGPARMS): Don't define here. * configure: Regenerated. * sysdeps/i386/configure.ac (USE_REGPARMS): Define here. * sysdeps/i386/configure: Regenerated. diff --git a/configure b/configure index 34bcd53..ac5a67c 100755 --- a/configure +++ b/configure @@ -3969,11 +3969,6 @@ fi test -n "$base_machine" || base_machine=$machine -if test "$base_machine" = "i386"; then - $as_echo "#define USE_REGPARMS 1" >>confdefs.h - -fi - # For the multi-arch option we need support in the assembler & linker. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler and linker STT_GNU_IFUNC support" >&5 $as_echo_n "checking for assembler and linker STT_GNU_IFUNC support... " >&6; } diff --git a/configure.ac b/configure.ac index 589b3d0..bd3e829 100644 --- a/configure.ac +++ b/configure.ac @@ -586,10 +586,6 @@ fi test -n "$base_machine" || base_machine=$machine AC_SUBST(base_machine) -if test "$base_machine" = "i386"; then - AC_DEFINE(USE_REGPARMS) -fi - # For the multi-arch option we need support in the assembler & linker. AC_CACHE_CHECK([for assembler and linker STT_GNU_IFUNC support], libc_cv_ld_gnu_indirect_function, [dnl diff --git a/sysdeps/i386/configure b/sysdeps/i386/configure index 5dcc159..f0a20e3 100644 --- a/sysdeps/i386/configure +++ b/sysdeps/i386/configure @@ -240,5 +240,8 @@ $as_echo "$libc_cv_cc_novzeroupper" >&6; } config_vars="$config_vars config-cflags-novzeroupper = $libc_cv_cc_novzeroupper" +$as_echo "#define USE_REGPARMS 1" >>confdefs.h + + $as_echo "#define PI_STATIC_AND_HIDDEN 1" >>confdefs.h diff --git a/sysdeps/i386/configure.ac b/sysdeps/i386/configure.ac index 96ab7b0..dfe0b47 100644 --- a/sysdeps/i386/configure.ac +++ b/sysdeps/i386/configure.ac @@ -88,6 +88,8 @@ LIBC_TRY_CC_OPTION([-mno-vzeroupper], ]) LIBC_CONFIG_VAR([config-cflags-novzeroupper], [$libc_cv_cc_novzeroupper]) +AC_DEFINE(USE_REGPARMS) + dnl It is always possible to access static and hidden symbols in an dnl position independent way. AC_DEFINE(PI_STATIC_AND_HIDDEN)