From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2100) id 1F4FC3861881; Tue, 18 Aug 2020 00:49:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F4FC3861881 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597711744; bh=oQIQedaRkgO0XKPGOECPLL7QEGoAqykukE/vINbnm+8=; h=From:To:Subject:Date:From; b=rOHgXiX9KaEJE5RuFzRmr+hWW6KhwLfjEjPdXVfm7S5IFy+4btFRmqnJlPZGz8XyP G/F48VV9nfUpWKecJgK3f/lPa+gJq5zi772685eosjYSo3EuPRzZmQOFAOjYaBdLSC MCvGa6uREDVdLLUJzZnWC9JuK6G77RBKP+9nkypI= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Giuliano Belinassi To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/giulianob/heads/autopar_rebase2)] aix: FAT libraries: test native compiler mode directly X-Act-Checkin: gcc X-Git-Author: David Edelsohn X-Git-Refname: refs/users/giulianob/heads/autopar_rebase2 X-Git-Oldrev: 1e442c9bb57408d044bf6bfb3352ed627694479f X-Git-Newrev: 9d9cbb4d48f4b43b3509715f36a0e869c07dd3a7 Message-Id: <20200818004904.1F4FC3861881@sourceware.org> Date: Tue, 18 Aug 2020 00:49:04 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 00:49:04 -0000 https://gcc.gnu.org/g:9d9cbb4d48f4b43b3509715f36a0e869c07dd3a7 commit 9d9cbb4d48f4b43b3509715f36a0e869c07dd3a7 Author: David Edelsohn Date: Mon Jul 13 14:43:39 2020 -0400 aix: FAT libraries: test native compiler mode directly The FAT libraries config fragments need to know which library is native and which is a multilib to choose the correct multilib from which to append the additional object file or shared object file. Testing the top-level archive is fragile because it will fail if rebuilding. This patch tests the compiler preprocessing macros for the 64 bit AIX specific __64BIT__ to determine the native mode of the compiler in MULTILIBTOP. 2020-07-14 David Edelsohn libatomic/ChangeLog * config/t-aix: Set BITS from compiler cpp macro. libgcc/ChangeLog * config/rs6000/t-slibgcc-aix: Set BITS from compiler cpp macro. libgfortran/ChangeLog * config/t-aix: Set BITS from compiler cpp macro. libgomp/ChangeLog * config/t-aix: Set BITS from compiler cpp macro. libstdc++-v3/ChangeLog * config/os/aix/t-aix: Set BITS from compiler cpp macro. Diff: --- libatomic/config/t-aix | 2 +- libgcc/config/rs6000/t-slibgcc-aix | 2 +- libgfortran/config/t-aix | 2 +- libgomp/config/t-aix | 2 +- libstdc++-v3/config/os/aix/t-aix | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libatomic/config/t-aix b/libatomic/config/t-aix index 53c2d83242f..0f37aaa15f3 100644 --- a/libatomic/config/t-aix +++ b/libatomic/config/t-aix @@ -1,5 +1,5 @@ ifeq ($(MULTIBUILDTOP),) -BITS=$(shell if test -z "`ar -X64 t .libs/$(PACKAGE).a`" ; then \ +BITS=$(shell if test -z "`$(CC) -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then \ echo '64'; else echo '32'; fi) #MAJOR=$(firstword $(subst :, ,$(libtool_VERSION))) MAJOR=1 diff --git a/libgcc/config/rs6000/t-slibgcc-aix b/libgcc/config/rs6000/t-slibgcc-aix index e5f8a029ff8..b3bdda6f9a8 100644 --- a/libgcc/config/rs6000/t-slibgcc-aix +++ b/libgcc/config/rs6000/t-slibgcc-aix @@ -90,7 +90,7 @@ AR_FLAGS_FOR_TARGET = -X32_64 # Build and install AIX-style FAT libraries ifeq ($(MULTIBUILDTOP),) -BITS=$(shell if test -z "`ar -X64 t libgcc_s.a`" ; then \ +BITS=$(shell if test -z "`$(CC) -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then \ echo '64'; else echo '32'; fi) all: all-multi ifeq ($(enable_shared),yes) diff --git a/libgfortran/config/t-aix b/libgfortran/config/t-aix index 7046aeeacc3..e661286da12 100644 --- a/libgfortran/config/t-aix +++ b/libgfortran/config/t-aix @@ -1,5 +1,5 @@ ifeq ($(MULTIBUILDTOP),) -BITS=$(shell if test -z "`ar -X64 t .libs/$(PACKAGE).a`" ; then \ +BITS=$(shell if test -z "`$(CC) -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then \ echo '64'; else echo '32'; fi) #MAJOR=$(firstword $(subst :, ,$(libtool_VERSION))) MAJOR=5 diff --git a/libgomp/config/t-aix b/libgomp/config/t-aix index 5d0b7e0f9ae..c3bb6c0bce0 100644 --- a/libgomp/config/t-aix +++ b/libgomp/config/t-aix @@ -1,5 +1,5 @@ ifeq ($(MULTIBUILDTOP),) -BITS=$(shell if test -z "`ar -X64 t .libs/$(PACKAGE).a`" ; then \ +BITS=$(shell if test -z "`$(CC) -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then \ echo '64'; else echo '32'; fi) MAJOR=$(firstword $(subst :, ,$(libtool_VERSION))) all-local: diff --git a/libstdc++-v3/config/os/aix/t-aix b/libstdc++-v3/config/os/aix/t-aix index a588746dd99..a5d58fab474 100644 --- a/libstdc++-v3/config/os/aix/t-aix +++ b/libstdc++-v3/config/os/aix/t-aix @@ -1,5 +1,5 @@ ifeq ($(MULTIBUILDTOP),) -BITS=$(shell if test -z "`ar -X64 t src/.libs/$(PACKAGE).a`" ; then \ +BITS=$(shell if test -z "`$(CC) -x c -E /dev/null -g3 -o - | grep 64BIT`" ; then \ echo '64'; else echo '32'; fi) MAJOR=$(firstword $(subst :, ,$(libtool_VERSION))) all-local: