libtool-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Libtool branch, master, updated. v2.4-37-gb78075b


From: Ralf Wildenhues
Subject: [SCM] GNU Libtool branch, master, updated. v2.4-37-gb78075b
Date: Mon, 20 Dec 2010 07:10:58 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Libtool".

The branch, master has been updated
       via  b78075b8ae59ff68f6f9ece21be7c5c13fceabee (commit)
       via  7aabd35c4c78df9c94528c02eae29397bab65987 (commit)
       via  e80566abb3ee6757ff6da59d65a874b3a5f706a1 (commit)
       via  39ba8c55de025805c69d46e76f1a352658e01382 (commit)
      from  92eb89aace9fd41e43eee33f5c392adf1bcf8963 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit b78075b8ae59ff68f6f9ece21be7c5c13fceabee
Author: Ian Lance Taylor <address@hidden>
Date:   Tue Oct 12 14:38:49 2010 -0700

    Add Go support.
    
    * libltdl/m4/libtool.m4 (LT_LANG): Add Go.
    (AC_PROG_GO): Provide.
    (_LT_SYS_HIDDEN_LIBDEPS): Add Go case.
    (_LT_LANG_GO_CONFIG): Define.
    (LT_PROG_GO): Define.
    (AC_PROG_GO): Define if not defined.
    * libltdl/config/ltmain.m4sh: Match *.go.
    * doc/libtool.texi (LT_INIT): Mention Go.
    (Tags): Mention Go.
    * configure.ac: Enable Go.
    * NEWS: Update.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

commit 7aabd35c4c78df9c94528c02eae29397bab65987
Author: Brice De Bruyne <address@hidden>
Date:   Mon Dec 20 04:16:12 2010 +0100

    Also turn off -fuse-linker-plugin for postdep_objects computation.
    
    * libltdl/m4/libtool.m4 (_LT_SYS_HIDDEN_LIBDEPS): Add
    -fno-use-linker-plugin to temporary compile flags if necessary,
    to fix C++ postdep_objects setting with -flto
    -fuse-linker-plugin.
    * NEWS, THANKS: Update.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

commit e80566abb3ee6757ff6da59d65a874b3a5f706a1
Author: KO Myung-Hun <address@hidden>
Date:   Mon Dec 20 04:10:19 2010 +0100

    Set command line length limit for OS/2.
    
    * libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN) [os2]
    <lt_cv_sys_max_cmd_len>: Set to 8192 to avoid long test.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

commit 39ba8c55de025805c69d46e76f1a352658e01382
Author: Ralf Wildenhues <address@hidden>
Date:   Fri Dec 17 20:30:53 2010 +0100

    Fix PIC flags with mpif77 using ifort on GNU/Linux.
    
    * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux]:
    Match Intel compiler also using $CC -V output, to avoid false
    negatives with compiler drivers like mpif77.
    Report by Christian Rössel.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                  |   37 +++++++++++++
 NEWS                       |    4 ++
 THANKS                     |    1 +
 configure.ac               |    1 +
 doc/libtool.texi           |    3 +-
 libltdl/config/ltmain.m4sh |    2 +-
 libltdl/m4/libtool.m4      |  124 ++++++++++++++++++++++++++++++++++++++++++++
 tests/suffix.test          |    2 +-
 8 files changed, 171 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index cbb0262..4880098 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,40 @@
+2010-12-20  Ian Lance Taylor  <address@hidden>
+
+       * libltdl/m4/libtool.m4 (LT_LANG): Add Go.
+       (AC_PROG_GO): Provide.
+       (_LT_SYS_HIDDEN_LIBDEPS): Add Go case.
+       (_LT_LANG_GO_CONFIG): Define.
+       (LT_PROG_GO): Define.
+       (AC_PROG_GO): Define if not defined.
+       * libltdl/config/ltmain.m4sh: Match *.go.
+       * doc/libtool.texi (LT_INIT): Mention Go.
+       (Tags): Mention Go.
+       * configure.ac: Enable Go.
+       * NEWS: Update.
+
+2010-12-20  Brice De Bruyne  <address@hidden>  (tiny change)
+
+       Also turn off -fuse-linker-plugin for postdep_objects computation.
+       * libltdl/m4/libtool.m4 (_LT_SYS_HIDDEN_LIBDEPS): Add
+       -fno-use-linker-plugin to temporary compile flags if necessary,
+       to fix C++ postdep_objects setting with -flto
+       -fuse-linker-plugin.
+       * NEWS, THANKS: Update.
+
+2010-12-20  KO Myung-Hun  <address@hidden>  (tiny change)
+
+       Set command line length limit for OS/2.
+       * libltdl/m4/libtool.m4 (LT_CMD_MAX_LEN) [os2]
+       <lt_cv_sys_max_cmd_len>: Set to 8192 to avoid long test.
+
+2010-12-20  Ralf Wildenhues  <address@hidden>
+
+       Fix PIC flags with mpif77 using ifort on GNU/Linux.
+       * libltdl/m4/libtool.m4 (_LT_COMPILER_PIC) [linux]:
+       Match Intel compiler also using $CC -V output, to avoid false
+       negatives with compiler drivers like mpif77.
+       Report by Christian Rössel.
+
 2010-12-16  Ralf Wildenhues  <address@hidden>
 
        Fix PIC flags with MPI wrappers using Portland on GNU/Linux.
diff --git a/NEWS b/NEWS
index 0aeca57..96c9723 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,8 @@ New in 2.4.2 2010-12-??: git version 2.4.1a, Libtool team:
     package names.  This can be used to build some static libraries with PIC
     objects while building others with non-PIC objects.
 
+  - Initial support for Go, using the gccgo compiler.
+
 * Bug fixes:
 
   - The generic approximation of the command line length limit (when getconf is
@@ -15,6 +17,8 @@ New in 2.4.2 2010-12-??: git version 2.4.1a, Libtool team:
   - The bug that leaked developer tool paths into the release tarballs
     from ./bootstrap is fixed.
   - Improved support for the Cuda Compiler Driver (nvcc) on Darwin.
+  - For GCC LTO support, the -fuse-linker-plugin switch is now also removed
+    when computing compiler postdeps.
 
 * Important incompatible changes:
 
diff --git a/THANKS b/THANKS
index 5260878..637decf 100644
--- a/THANKS
+++ b/THANKS
@@ -77,6 +77,7 @@
   Brent Leback                 address@hidden
   Brian Barrett                        address@hidden
   Bruno Haible                 address@hidden
+  Brice De Bruyne              address@hidden
   Camilo La Rota               address@hidden
   Carl D. Roth                 address@hidden
   Chris Demetriou              address@hidden
diff --git a/configure.ac b/configure.ac
index 63ee8bf..0bad772 100644
--- a/configure.ac
+++ b/configure.ac
@@ -196,6 +196,7 @@ _LTDL_SETUP
 LT_LANG(C++)
 LT_LANG(Fortran 77)
 LT_LANG(Fortran)
+LT_LANG(Go)
 LT_LANG(Java)
 LT_LANG(Windows Resource)
 
diff --git a/doc/libtool.texi b/doc/libtool.texi
index 04c5507..4823ab8 100644
--- a/doc/libtool.texi
+++ b/doc/libtool.texi
@@ -2250,7 +2250,7 @@ specifying @option{--with-pic} to @command{configure}.
 @defmac LT_LANG (@var{language})
 Enable @command{libtool} support for the language given if it
 has not yet already been enabled.  Languages accepted are ``C++'',
-``Fortran 77'', ``Java'' and ``Windows Resource''.
+``Fortran 77'', ``Java'', ``Go'', and ``Windows Resource''.
 
 If Autoconf language support macros such as @code{AC_PROG_CXX} are
 used in your @file{configure.ac}, Libtool language support will automatically
@@ -2849,6 +2849,7 @@ correspondence between language names and tags names.
 @item Java             @tab GCJ
 @item Fortran 77       @tab F77
 @item Fortran          @tab FC
address@hidden Go               @tab GO
 @item Windows Resource @tab RC
 @end multitable
 
diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index aff8a1c..8c37f88 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -1270,7 +1270,7 @@ func_mode_compile ()
     *.[cCFSifmso] | \
     *.ada | *.adb | *.ads | *.asm | \
     *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
-    *.[fF][09]? | *.for | *.java | *.obj | *.sx | *.cu | *.cup)
+    *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
       func_xform "$libobj"
       libobj=$func_xform_result
       ;;
diff --git a/libltdl/m4/libtool.m4 b/libltdl/m4/libtool.m4
index 62f9040..8e88917 100644
--- a/libltdl/m4/libtool.m4
+++ b/libltdl/m4/libtool.m4
@@ -803,6 +803,7 @@ AC_DEFUN([LT_LANG],
 m4_case([$1],
   [C],                 [_LT_LANG(C)],
   [C++],               [_LT_LANG(CXX)],
+  [Go],                        [_LT_LANG(GO)],
   [Java],              [_LT_LANG(GCJ)],
   [Fortran 77],                [_LT_LANG(F77)],
   [Fortran],           [_LT_LANG(FC)],
@@ -824,6 +825,31 @@ m4_defun([_LT_LANG],
 ])# _LT_LANG
 
 
+m4_ifndef([AC_PROG_GO], [
+############################################################
+# NOTE: This macro has been submitted for inclusion into   #
+#  GNU Autoconf as AC_PROG_GO.  When it is available in    #
+#  a released version of Autoconf we should remove this    #
+#  macro and use it instead.                               #
+############################################################
+m4_defun([AC_PROG_GO],
+[AC_LANG_PUSH(Go)dnl
+AC_ARG_VAR([GOC],     [Go compiler command])dnl
+AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
+_AC_ARG_VAR_LDFLAGS()dnl
+AC_CHECK_TOOL(GOC, gccgo)
+if test -z "$GOC"; then
+  if test -n "$ac_tool_prefix"; then
+    AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
+  fi
+fi
+if test -z "$GOC"; then
+  AC_CHECK_PROG(GOC, gccgo, gccgo, false)
+fi
+])#m4_defun
+])#m4_ifndef
+
+
 # _LT_LANG_DEFAULT_CONFIG
 # -----------------------
 m4_defun([_LT_LANG_DEFAULT_CONFIG],
@@ -854,6 +880,10 @@ AC_PROVIDE_IFELSE([AC_PROG_GCJ],
        m4_ifdef([LT_PROG_GCJ],
        [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
 
+AC_PROVIDE_IFELSE([AC_PROG_GO],
+  [LT_LANG(GO)],
+  [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
+
 AC_PROVIDE_IFELSE([LT_PROG_RC],
   [LT_LANG(RC)],
   [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
@@ -1604,6 +1634,11 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
     lt_cv_sys_max_cmd_len=196608
     ;;
 
+  os2*)
+    # The test takes a long time on OS/2.
+    lt_cv_sys_max_cmd_len=8192
+    ;;
+
   osf*)
     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
@@ -4340,6 +4375,11 @@ m4_if([$1], [CXX], [
          _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
          ;;
+        *Intel*\ [[CF]]*Compiler*)
+         _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
+         _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
+         _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
+         ;;
        *Portland\ Group*)
          _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
          _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
@@ -6906,12 +6946,18 @@ public class foo {
   }
 };
 _LT_EOF
+], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
+package foo
+func foo() {
+}
+_LT_EOF
 ])
 
 _lt_libdeps_save_CFLAGS=$CFLAGS
 case "$CC $CFLAGS " in #(
 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
+*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
 esac
 
 dnl Parse the compiler output and extract the necessary
@@ -7426,6 +7472,77 @@ CFLAGS=$lt_save_CFLAGS
 ])# _LT_LANG_GCJ_CONFIG
 
 
+# _LT_LANG_GO_CONFIG([TAG])
+# --------------------------
+# Ensure that the configuration variables for the GNU Go compiler
+# are suitably defined.  These variables are subsequently used by _LT_CONFIG
+# to write the compiler configuration to `libtool'.
+m4_defun([_LT_LANG_GO_CONFIG],
+[AC_REQUIRE([LT_PROG_GO])dnl
+AC_LANG_SAVE
+
+# Source file extension for Go test sources.
+ac_ext=go
+
+# Object file extension for compiled Go test sources.
+objext=o
+_LT_TAGVAR(objext, $1)=$objext
+
+# Code to be used in simple compile tests
+lt_simple_compile_test_code="package main; func main() { }"
+
+# Code to be used in simple link tests
+lt_simple_link_test_code='package main; func main() { }'
+
+# ltmain only uses $CC for tagged configurations so make sure $CC is set.
+_LT_TAG_COMPILER
+
+# save warnings/boilerplate of simple test code
+_LT_COMPILER_BOILERPLATE
+_LT_LINKER_BOILERPLATE
+
+# Allow CC to be a program name with arguments.
+lt_save_CC=$CC
+lt_save_CFLAGS=$CFLAGS
+lt_save_GCC=$GCC
+GCC=yes
+CC=${GOC-"gccgo"}
+CFLAGS=$GOFLAGS
+compiler=$CC
+_LT_TAGVAR(compiler, $1)=$CC
+_LT_TAGVAR(LD, $1)="$LD"
+_LT_CC_BASENAME([$compiler])
+
+# Go did not exist at the time GCC didn't implicitly link libc in.
+_LT_TAGVAR(archive_cmds_need_lc, $1)=no
+
+_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
+_LT_TAGVAR(reload_flag, $1)=$reload_flag
+_LT_TAGVAR(reload_cmds, $1)=$reload_cmds
+
+## CAVEAT EMPTOR:
+## There is no encapsulation within the following macros, do not change
+## the running order or otherwise move them around unless you know exactly
+## what you are doing...
+if test -n "$compiler"; then
+  _LT_COMPILER_NO_RTTI($1)
+  _LT_COMPILER_PIC($1)
+  _LT_COMPILER_C_O($1)
+  _LT_COMPILER_FILE_LOCKS($1)
+  _LT_LINKER_SHLIBS($1)
+  _LT_LINKER_HARDCODE_LIBPATH($1)
+
+  _LT_CONFIG($1)
+fi
+
+AC_LANG_RESTORE
+
+GCC=$lt_save_GCC
+CC=$lt_save_CC
+CFLAGS=$lt_save_CFLAGS
+])# _LT_LANG_GO_CONFIG
+
+
 # _LT_LANG_RC_CONFIG([TAG])
 # -------------------------
 # Ensure that the configuration variables for the Windows resource compiler
@@ -7495,6 +7612,13 @@ dnl aclocal-1.4 backwards compatibility:
 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
 
 
+# LT_PROG_GO
+# ----------
+AC_DEFUN([LT_PROG_GO],
+[AC_CHECK_TOOL(GOC, gccgo,)
+])
+
+
 # LT_PROG_RC
 # ----------
 AC_DEFUN([LT_PROG_RC],
diff --git a/tests/suffix.test b/tests/suffix.test
index a035897..b5c2a88 100755
--- a/tests/suffix.test
+++ b/tests/suffix.test
@@ -25,7 +25,7 @@
 
 # Extensions taken from the ones that Automake recognizes, plus Objective C,
 # and GNU Ada.  Also test that multiple dots are handled correctly.
-extensions="C F S ada adb ads asm c c++ cc cpp cxx f f90 F90 f95 F95 f03 F03 
for m s sx ada.ada"
+extensions="C F S ada adb ads asm c c++ cc cpp cxx f f90 F90 f95 F95 f03 F03 
for go m s sx ada.ada"
 bad_names="foo."
 
 . tests/defs || exit 1


hooks/post-receive
-- 
GNU Libtool



reply via email to

[Prev in Thread] Current Thread [Next in Thread]