diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/i386/linux-common.h | 6 |
2 files changed, 11 insertions, 1 deletions
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 <enkovich.gnu@gmail.com> + + PR driver/66737 + * config/i386/linux-common.h (MPX_SPEC): Use linker option + for 64bit target only. + 2015-07-22 Bernd Schmidt <bernds@codesourcery.com> * 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 |