re PR target/77267 (MPX does not work in a presence of "-Wl,-as-needed" option (Ubunt...
authorAlexander Ivchenko <alexander.ivchenko@intel.com>
Fri, 9 Sep 2016 21:38:06 +0000 (21:38 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Fri, 9 Sep 2016 21:38:06 +0000 (14:38 -0700)
commit7e4955774fe4e365ec762a51d90ef6365b8be315
tree7fffb6b63dfdd2d0db6edabc6cacba2f58086af7
parentaf63ba4b309ea3ff8946be59e8dba7333594f4ff
re PR target/77267 (MPX does not work in a presence of "-Wl,-as-needed" option (Ubuntu default))

Fix PR target/77267

2016-09-10  Alexander Ivchenko  <alexander.ivchenko@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".

From-SVN: r240057
gcc/ChangeLog
gcc/config.in
gcc/config/i386/linux-common.h
gcc/configure
gcc/configure.ac