19969975 gcc 4.8.2 regression to old GNU linkonce
authorNorm Jacobs <Norm.Jacobs@Oracle.COM>
Thu, 11 Jun 2015 20:52:26 -0700
changeset 4479 68cd14867fa2
parent 4478 b0d8df7e6817
child 4480 0ddad0846024
19969975 gcc 4.8.2 regression to old GNU linkonce
components/gcc48/patches/010-studio-as-comdat.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gcc48/patches/010-studio-as-comdat.patch	Thu Jun 11 20:52:26 2015 -0700
@@ -0,0 +1,51 @@
+# From upstream
+# HG changeset patch
+# Parent 4db8e90a5543cdee793f797fd94cb4587105f89e
+Restore Sun as COMDAT group support
+
+diff --git a/gcc/configure b/gcc/configure
+--- a/gcc/configure
++++ b/gcc/configure
+@@ -23121,9 +23121,6 @@ fi
+  if test $gcc_cv_as_comdat_group_percent = yes; then
+    gcc_cv_as_comdat_group_group=no
+  else
+-   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
+-     gcc_cv_as_comdat_group_group=no
+-   fi
+    case "${target}" in
+      # Sun as uses a completely different syntax.
+      *-*-solaris2*)
+@@ -23173,6 +23170,9 @@ fi
+ 
+        ;;
+    esac
++   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
++     gcc_cv_as_comdat_group_group=no
++   fi
+  fi
+ fi
+ if test x"$ld_is_gold" = xyes; then
+diff --git a/gcc/configure.ac b/gcc/configure.ac
+--- a/gcc/configure.ac
++++ b/gcc/configure.ac
+@@ -2787,9 +2787,6 @@ else
+  if test $gcc_cv_as_comdat_group_percent = yes; then
+    gcc_cv_as_comdat_group_group=no
+  else
+-   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
+-     gcc_cv_as_comdat_group_group=no
+-   fi
+    case "${target}" in
+      # Sun as uses a completely different syntax.
+      *-*-solaris2*)
+@@ -2816,6 +2813,9 @@ else
+          ,, [$conftest_s])
+        ;;
+    esac
++   if test -z "${gcc_cv_as_comdat_group_group+set}"; then
++     gcc_cv_as_comdat_group_group=no
++   fi
+  fi
+ fi
+ if test x"$ld_is_gold" = xyes; then