]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
configure.ac: For in-tree ld...
authorJan Beulich <jbeulich@novell.com>
Fri, 28 Aug 2009 15:22:18 +0000 (15:22 +0000)
committerJan Beulich <jbeulich@gcc.gnu.org>
Fri, 28 Aug 2009 15:22:18 +0000 (15:22 +0000)
2009-08-28  Jan Beulich  <jbeulich@novell.com>

* configure.ac: For in-tree ld, do a plain version check to
determine whether comdat groups are supported.
* configure: Regenerate.

From-SVN: r151162

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index c53d9c8ef8232dd5dc2b3162aefed64a50ded064..eba4de6a0c42284cd688255b07009be8dd13e026 100644 (file)
@@ -1,3 +1,9 @@
+2009-08-28  Jan Beulich  <jbeulich@novell.com>
+
+       * configure.ac: For in-tree ld, do a plain version check to
+       determine whether comdat groups are supported.
+       * configure: Regenerate.
+
 2009-08-28  Olivier Hainque  <hainque@adacore.com>
 
        * collect2.c (DO_COLLECT_EXPORT_LIST): New internal macro,
index 429d3be8e94ad1535be52e8aeeaf90042739adb5..dbc7f154a3b778d1c989832a7478ed635fa6a729 100755 (executable)
 $as_echo "$gcc_cv_as_comdat_group_percent" >&6; }
 
 fi
-if test $in_tree_ld != yes && test x"$ld_vers" != x; then
+if test $in_tree_ld = yes ; then
+  comdat_group=no
+  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
+     && test $in_tree_ld_is_elf = yes; then
+     comdat_group=yes
+  fi
+elif test x"$ld_vers" != x; then
   comdat_group=yes
   if test 0"$ld_date" -lt 20050308; then
     if test -n "$ld_date"; then
index 878d4e74ff60bbe282c0d59fa79c3da9212661e5..6cc94d883448887353910e3a1b19287b2aa2e586 100644 (file)
@@ -2393,7 +2393,13 @@ else
    [elf,2,16,0], [--fatal-warnings],
    [.section .text,"axG",%progbits,.foo,comdat])
 fi
-if test $in_tree_ld != yes && test x"$ld_vers" != x; then
+if test $in_tree_ld = yes ; then
+  comdat_group=no
+  if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 16 -o "$gcc_cv_gld_major_version" -gt 2 \
+     && test $in_tree_ld_is_elf = yes; then
+     comdat_group=yes
+  fi
+elif test x"$ld_vers" != x; then
   comdat_group=yes
   if test 0"$ld_date" -lt 20050308; then
     if test -n "$ld_date"; then