[gcc-6] 307/401: * Fix PR target/77267 (x86), taken from the trunk.
Ximin Luo
infinity0 at debian.org
Wed Apr 5 15:50:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch pu/reproducible_builds
in repository gcc-6.
commit 5b412a8ead711f3d17740dad03dfb4ee66d08b47
Author: doko <doko at 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca>
Date: Fri Dec 2 20:40:25 2016 +0000
* Fix PR target/77267 (x86), taken from the trunk.
git-svn-id: svn://anonscm.debian.org/gcccvs/branches/sid/gcc-6@9164 6ca36cf4-e1d1-0310-8c6f-e303bb2178ca
---
debian/changelog | 1 +
debian/patches/pr77267.diff | 109 ++++++++++++++++++++++++++++++++++++++++++++
debian/rules.patch | 1 +
3 files changed, 111 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 02f9ecf..3b33a1a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ gcc-6 (6.2.1-6) UNRELEASED; urgency=medium
[ Matthias Klose ]
* Fix dependency generation for libgphobos multilib builds.
* Install missing vecintrin.h header on s390x.
+ * Fix PR target/77267 (x86), taken from the trunk.
[ Svante Signell ]
* GNU/Hurd port for gccgo.
diff --git a/debian/patches/pr77267.diff b/debian/patches/pr77267.diff
new file mode 100644
index 0000000..2cb4c10
--- /dev/null
+++ b/debian/patches/pr77267.diff
@@ -0,0 +1,109 @@
+# DP: Fix PR target/77267 (x86), taken from the trunk.
+
+gcc/
+
+2016-09-10 Alexander Ivchenko <alexander.ivchenko at intel.com>
+
+ PR target/77267
+ * config.in: Regenerate.
+ * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
+ New macro.
+ (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
+ (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
+ static-libmpxwrappers case.
+ (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
+ MPX_LD_AS_NEEDED_GUARD_POP.
+ * configure: Regenerate.
+ * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
+ defined if linker support "--push-state"/"--pop-state".
+
+
+Index: b/src/gcc/config.in
+===================================================================
+--- a/src/gcc/config.in
++++ b/src/gcc/config.in
+@@ -1518,6 +1518,12 @@
+ #endif
+
+
++/* Define if your linker supports --push-state/--pop-state */
++#ifndef USED_FOR_TARGET
++#undef HAVE_LD_PUSHPOPSTATE_SUPPORT
++#endif
++
++
+ /* Define if your linker links a mix of read-only and read-write sections into
+ a read-write section. */
+ #ifndef USED_FOR_TARGET
+Index: b/src/gcc/configure.ac
+===================================================================
+--- a/src/gcc/configure.ac
++++ b/src/gcc/configure.ac
+@@ -6135,6 +6135,27 @@ if test x"$ld_bndplt_support" = xyes; th
+ fi
+ AC_MSG_RESULT($ld_bndplt_support)
+
++# Check linker supports '--push-state'/'--pop-state'
++ld_pushpopstate_support=no
++AC_MSG_CHECKING(linker --push-state/--pop-state options)
++if test x"$ld_is_gold" = xno; then
++ if test $in_tree_ld = yes ; then
++ if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 25 -o "$gcc_cv_gld_major_version" -gt 2; then
++ ld_pushpopstate_support=yes
++ fi
++ elif test x$gcc_cv_ld != x; then
++ # Check if linker supports --push-state/--pop-state options
++ if $gcc_cv_ld --help 2>/dev/null | grep -- '--push-state' > /dev/null; then
++ ld_pushpopstate_support=yes
++ fi
++ fi
++fi
++if test x"$ld_pushpopstate_support" = xyes; then
++ AC_DEFINE(HAVE_LD_PUSHPOPSTATE_SUPPORT, 1,
++ [Define if your linker supports --push-state/--pop-state])
++fi
++AC_MSG_RESULT($ld_pushpopstate_support)
++
+ # Configure the subdirectories
+ # AC_CONFIG_SUBDIRS($subdirs)
+
+Index: b/src/gcc/config/i386/linux-common.h
+===================================================================
+--- a/src/gcc/config/i386/linux-common.h
++++ b/src/gcc/config/i386/linux-common.h
+@@ -79,13 +79,23 @@ along with GCC; see the file COPYING3.
+ #endif
+ #endif
+
++#ifdef HAVE_LD_PUSHPOPSTATE_SUPPORT
++#define MPX_LD_AS_NEEDED_GUARD_PUSH "--push-state --no-as-needed"
++#define MPX_LD_AS_NEEDED_GUARD_POP "--pop-state"
++#else
++#define MPX_LD_AS_NEEDED_GUARD_PUSH ""
++#define MPX_LD_AS_NEEDED_GUARD_POP ""
++#endif
++
+ #ifndef LIBMPX_SPEC
+ #if defined(HAVE_LD_STATIC_DYNAMIC)
+ #define LIBMPX_SPEC "\
+ %{mmpx:%{fcheck-pointer-bounds:\
+ %{static:--whole-archive -lmpx --no-whole-archive" LIBMPX_LIBS "}\
+ %{!static:%{static-libmpx:" LD_STATIC_OPTION " --whole-archive}\
+- -lmpx %{static-libmpx:--no-whole-archive " LD_DYNAMIC_OPTION \
++ %{!static-libmpx:" MPX_LD_AS_NEEDED_GUARD_PUSH "} -lmpx \
++ %{!static-libmpx:" MPX_LD_AS_NEEDED_GUARD_POP "} \
++ %{static-libmpx:--no-whole-archive " LD_DYNAMIC_OPTION \
+ LIBMPX_LIBS "}}}}"
+ #else
+ #define LIBMPX_SPEC "\
+@@ -98,8 +108,8 @@ along with GCC; see the file COPYING3.
+ #define LIBMPXWRAPPERS_SPEC "\
+ %{mmpx:%{fcheck-pointer-bounds:%{!fno-chkp-use-wrappers:\
+ %{static:-lmpxwrappers}\
+- %{!static:%{static-libmpxwrappers:" LD_STATIC_OPTION " --whole-archive}\
+- -lmpxwrappers %{static-libmpxwrappers:--no-whole-archive "\
++ %{!static:%{static-libmpxwrappers:" LD_STATIC_OPTION "}\
++ -lmpxwrappers %{static-libmpxwrappers: "\
+ LD_DYNAMIC_OPTION "}}}}}"
+ #else
+ #define LIBMPXWRAPPERS_SPEC "\
diff --git a/debian/rules.patch b/debian/rules.patch
index 6bb88a8..3a477f9 100644
--- a/debian/rules.patch
+++ b/debian/rules.patch
@@ -101,6 +101,7 @@ debian_patches += \
libgo-rawClone-no-pt_regs \
libgo-elf-relocations-sparc64 \
libobjc-system-gc \
+ pr77267 \
ifeq ($(libstdcxx_abi),new)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/gcc-6.git
More information about the Reproducible-commits
mailing list