diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2014-09-22 00:49:01 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2014-09-22 00:49:01 +0000 |
commit | 598a1586818e46033b66cd1535a84c248b9c087f (patch) | |
tree | b6f33662c68bf5cebe1c4bee71f55e32a48e2490 /libgcc/configure.ac | |
parent | 794eb939b95bd1753a32116ead05d6f98a05add4 (diff) | |
download | gcc-598a1586818e46033b66cd1535a84c248b9c087f.zip gcc-598a1586818e46033b66cd1535a84c248b9c087f.tar.gz gcc-598a1586818e46033b66cd1535a84c248b9c087f.tar.bz2 |
crtstuff.c (USE_EH_FRAME_REGISTRY): Let USE_EH_FRAME_REGISTRY_ALWAYS override USE_PT_GNU_EH_FRAME.
* crtstuff.c (USE_EH_FRAME_REGISTRY): Let USE_EH_FRAME_REGISTRY_ALWAYS
override USE_PT_GNU_EH_FRAME.
[__LIBGCC_EH_FRAME_SECTION_NAME__ && !USE_PT_GNU_EH_FRAME]: Sanity-
check USE_EH_FRAME_REGISTRY_ALWAYS against
__LIBGCC_EH_FRAME_SECTION_NAME__, emit error if unsane.
* Makefile.in (FORCE_EXPLICIT_EH_REGISTRY): New
variable for substituted force_explicit_eh_registry.
(CRTSTUFF_CFLAGS): Add FORCE_EXPLICIT_EH_REGISTRY.
* configure.ac (explicit-exception-frame-registration):
New AC_ARG_ENABLE.
* configure: Regenerate.
From-SVN: r215443
Diffstat (limited to 'libgcc/configure.ac')
-rw-r--r-- | libgcc/configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libgcc/configure.ac b/libgcc/configure.ac index d877d21..72a21a9 100644 --- a/libgcc/configure.ac +++ b/libgcc/configure.ac @@ -262,6 +262,22 @@ no) ;; esac +AC_ARG_ENABLE([explicit-exception-frame-registration], + [AC_HELP_STRING([--enable-explicit-exception-frame-registration], + [register exception tables explicitly at module start, for use + e.g. for compatibility with installations without PT_GNU_EH_FRAME support])], +[ +force_explicit_eh_registry= +if test "$enable_explicit_exception_frame_registration" = yes; then + if test "$enable_sjlj_exceptions" = yes; then + AC_MSG_ERROR([Can't enable both of --enable-sjlj-exceptions + and --enable-explicit-exception-frame-registration]) + fi + force_explicit_eh_registry=-DUSE_EH_FRAME_REGISTRY_ALWAYS +fi +]) +AC_SUBST([force_explicit_eh_registry]) + AC_LIB_PROG_LD_GNU AC_MSG_CHECKING([for thread model used by GCC]) |