From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19620 invoked by alias); 18 Nov 2014 10:21:01 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 19608 invoked by uid 89); 18 Nov 2014 10:21:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp11.uk.ibm.com Received: from e06smtp11.uk.ibm.com (HELO e06smtp11.uk.ibm.com) (195.75.94.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 18 Nov 2014 10:20:59 +0000 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 18 Nov 2014 10:20:56 -0000 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 18 Nov 2014 10:20:53 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id 2C3B817D8045 for ; Tue, 18 Nov 2014 10:21:05 +0000 (GMT) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id sAIAKrhj12779922 for ; Tue, 18 Nov 2014 10:20:53 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id sAIAKqTG000849 for ; Tue, 18 Nov 2014 03:20:52 -0700 Received: from bl3ahm9f.de.ibm.com (dyn-9-152-212-122.boeblingen.de.ibm.com [9.152.212.122]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id sAIAKq8X000820 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 18 Nov 2014 03:20:52 -0700 Received: from dvogt by bl3ahm9f.de.ibm.com with local (Exim 4.76) (envelope-from ) id 1Xqftz-0007M2-Rx; Tue, 18 Nov 2014 11:20:51 +0100 Date: Tue, 18 Nov 2014 10:21:00 -0000 From: Dominik Vogt To: libffi-discuss@sourceware.org Subject: [PATCH 7/7] Merge of gcc patches Message-ID: <20141118102051.GH26714@linux.vnet.ibm.com> Reply-To: libffi-discuss@sourceware.org Mail-Followup-To: libffi-discuss@sourceware.org References: <20141118101743.GA26714@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="GBDnBH7+ZvLx8QD4" Content-Disposition: inline In-Reply-To: <20141118101743.GA26714@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14111810-0005-0000-0000-00000220649F X-IsSubscribed: yes X-SW-Source: 2014/txt/msg00231.txt.bz2 --GBDnBH7+ZvLx8QD4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 64 Patch 7. Ciao Dominik ^_^ ^_^ -- Dominik Vogt IBM Germany --GBDnBH7+ZvLx8QD4 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=0007-ChangeLog Content-length: 195 ChangeLog 2014-10-15 Ian Lance Taylor * configure.ac: If the compiler supports -Qunused-arguments, use it when running the compiler on .s files. * configure: Regenerated. --GBDnBH7+ZvLx8QD4 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0007-configure.ac-If-the-compiler-supports-Qunused-argume.patch" Content-length: 2234 >From dd32f429246bdfb929d5bebd1aa268d5eecd8de4 Mon Sep 17 00:00:00 2001 From: ian Date: Wed, 15 Oct 2014 15:32:41 +0000 Subject: [PATCH 7/7] configure.ac: If the compiler supports -Qunused-arguments, use it when running the compiler on .s files. --- configure.ac | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/configure.ac b/configure.ac index afad32c..b662f39 100644 --- a/configure.ac +++ b/configure.ac @@ -367,6 +367,15 @@ AC_C_BIGENDIAN GCC_AS_CFI_PSEUDO_OP +AC_CACHE_CHECK([if compiler supports -Qunused-arguments], +[libffi_cv_c_unused_arguments], +[CFLAGS_hold=$CFLAGS +CFLAGS="$CFLAGS -Qunused-arguments" +AC_COMPILE_IFELSE([[int i;]], +[libffi_cv_c_unused_arguments=yes], +[libffi_cv_c_unused_arguments=no]) +CFLAGS=$CFLAGS_hold]) + if test x$TARGET = xSPARC; then AC_CACHE_CHECK([assembler and linker support unaligned pc related relocs], libffi_cv_as_sparc_ua_pcrel, [ @@ -403,9 +412,14 @@ if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64 libffi_cv_as_x86_pcrel, [ libffi_cv_as_x86_pcrel=no echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s + CFLAGS_hold=$CFLAGS + if test "$libffi_cv_c_unused_arguments" = yes; then + CFLAGS="$CFLAGS -Qunused-arguments" + fi if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then libffi_cv_as_x86_pcrel=yes fi + CFLAGS=$CFLAGS_hold ]) if test "x$libffi_cv_as_x86_pcrel" = xyes; then AC_DEFINE(HAVE_AS_X86_PCREL, 1, @@ -489,10 +503,15 @@ EOF libffi_cv_as_x86_64_unwind_section_type=no # we ensure that we can compile _and_ link an assembly file containing an @unwind section # since the compiler can support it and not the linker (ie old binutils) + CFLAGS_hold=$CFLAGS + if test "$libffi_cv_c_unused_arguments" = yes; then + CFLAGS="$CFLAGS -Qunused-arguments" + fi if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \ $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then libffi_cv_as_x86_64_unwind_section_type=yes fi + CFLAGS=$CFLAGS_hold ]) if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then AC_DEFINE(HAVE_AS_X86_64_UNWIND_SECTION_TYPE, 1, -- 1.8.4.2 --GBDnBH7+ZvLx8QD4--