From 65defbee13c0741ce973f0de5ff1b6acb33bff95 Mon Sep 17 00:00:00 2001 From: Ilya Enkovich Date: Wed, 22 Jul 2015 16:24:28 +0000 Subject: [PATCH] re PR driver/66737 (ld: warning: -z bndplt ignored) PR driver/66737 * config/i386/linux-common.h (MPX_SPEC): Use linker option for 64bit target only. From-SVN: r226076 --- gcc/ChangeLog | 6 ++++++ gcc/config/i386/linux-common.h | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d4c7de31668..cf4ecd76b65 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-07-22 Ilya Enkovich + + PR driver/66737 + * config/i386/linux-common.h (MPX_SPEC): Use linker option + for 64bit target only. + 2015-07-22 Bernd Schmidt * config/nvptx/nvptx.c: Expand some comments. diff --git a/gcc/config/i386/linux-common.h b/gcc/config/i386/linux-common.h index 63dd8d87152..7617490a119 100644 --- a/gcc/config/i386/linux-common.h +++ b/gcc/config/i386/linux-common.h @@ -71,8 +71,12 @@ along with GCC; see the file COPYING3. If not see #endif #ifndef MPX_SPEC +#ifdef SPEC_64 #define MPX_SPEC "\ - %{mmpx:%{fcheck-pointer-bounds:%{!static:" LINK_MPX "}}}" + %{mmpx:%{fcheck-pointer-bounds:%{!static:%{" SPEC_64 ":" LINK_MPX "}}}}" +#else +#define MPX_SPEC "" +#endif #endif #ifndef LIBMPX_SPEC -- 2.30.2