From patchwork Tue Aug 20 18:12:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Ellcey X-Patchwork-Id: 268630 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 3F27E2C00AD for ; Wed, 21 Aug 2013 04:12:49 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :date:to:subject:mime-version:content-type :content-transfer-encoding:message-id; q=dns; s=default; b=NFm6P 8MECW+cBJ1KwI4X6BYtsOXVWaI4tciSJSO6bhqbl78MGT3mxyGqG6Ulb9K0LjMNE ZSqnTfc+ZeuA4QhTr1porvHifiIgGVMjmUFOfRvmCYKBFO1GArBVRiiPB5gtFKNo YZoIQl0bAkeaKAApHM+2Sf09tze7HcjqiBEa/w= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :date:to:subject:mime-version:content-type :content-transfer-encoding:message-id; s=default; bh=yN29RyrZS55 ORG5VQymJQ4E+OEg=; b=k/nqMAWrZqh8jldrFMsrL86xDBXE1sKrMn8rrPK6LiD 0Eio23Sb57LapmYmb5Xr2QeACK1V/D24mliW5ZLpFOrjG0dXGioU1uy71g0U+cS1 RzK2UrbsIbrIwMfqpOsd964mMPPycVqwDsSxYnA2wsUaBttluoO3+DuSKVUfwWY4 = Received: (qmail 24851 invoked by alias); 20 Aug 2013 18:12:41 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 24835 invoked by uid 89); 20 Aug 2013 18:12:40 -0000 X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 Received: from multi.imgtec.com (HELO multi.imgtec.com) (194.200.65.239) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 20 Aug 2013 18:12:39 +0000 From: "Steve Ellcey " Date: Tue, 20 Aug 2013 11:12:31 -0700 To: Subject: [patch, libtool] Top-level libtool.m4 patch for autoconf 2.68 User-Agent: Heirloom mailx 12.5 6/20/10 MIME-Version: 1.0 Message-ID: <293a8b7d-9629-4a5c-a41f-955d421fb41b@BAMAIL02.ba.imgtec.org> X-SEF-Processed: 7_3_0_01192__2013_08_20_19_12_37 Some of the binutils directories (libgloss and newlib) have moved from autoconf 2.64 to 2.68. While running autoconf 2.68 on these directories I get some warnings coming from libtool.m4 which is at the top level of the GCC and binutils trees. Fixes for these warnings are already in the upstream libtool sources and the changes work fine with autoconf 2.64 as well as autoconf 2.68 so I would like to put these fixes into the libtool.m4 at the GCC and binutils top-levels. I ran autoconf in various GCC and binutils directories to verify that no signficant changes ocurred in any directories, is this patch OK to check in to the GCC tree? I will send seperate email to the binutils mailing list though perhaps permission to check it in to the GCC tree is sufficient to put it in binutils as well? Steve Ellcey sellcey@mips.com 2013-08-20 Steve Ellcey * libtool.m4 (_LT_SYS_MODULE_PATH_AIX): Put AC_LANG_PROGRAM call in brackets. (irix*|nonstopux*): use AC_LANG_SOURCE in AC_LINK_IFELSE call. diff --git a/libtool.m4 b/libtool.m4 index 8a14e2b..7119b35 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -1079,7 +1079,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], # to the aix ld manual. m4_defun([_LT_SYS_MODULE_PATH_AIX], [m4_require([_LT_DECL_SED])dnl -AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +AC_LINK_IFELSE([AC_LANG_PROGRAM],[ lt_aix_libpath_sed=' /Import File Strings/,/^$/ { /^0/ { @@ -4926,7 +4926,16 @@ _LT_EOF # implicitly export all symbols. save_LDFLAGS="$LDFLAGS" LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" - AC_LINK_IFELSE(int foo(void) {}, + AC_LINK_IFELSE( + [AC_LANG_SOURCE( + [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], + [C++], [[int foo (void) { return 0; }]], + [Fortran 77], [[ + subroutine foo + end]], + [Fortran], [[ + subroutine foo + end]])])], _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' ) LDFLAGS="$save_LDFLAGS"