From e9d207d9ac31509bbf6db4035b3784c74b47d669 Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Thu, 21 Dec 2006 22:10:30 +0000 Subject: re PR other/29639 (ext/bitmap_allocator/check_allocate_max_size.cc execution test) PR other/29639 * configure.ac (HAVE_LD_EH_GC_SECTIONS): Check that exception tables are kept for .gnu.linkonce.t sections if COMDAT groups are disabled. * configure: Regenerate. From-SVN: r120121 --- gcc/configure | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'gcc/configure') diff --git a/gcc/configure b/gcc/configure index 62e4891..09fc0aa 100755 --- a/gcc/configure +++ b/gcc/configure @@ -16053,10 +16053,46 @@ EOF gcc_cv_ld_eh_gc_sections=no elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then gcc_cv_ld_eh_gc_sections=yes + # If no COMDAT groups, the compiler will emit .gnu.linkonce.t. sections. + if test x$gcc_cv_as_comdat_group != xyes; then + gcc_cv_ld_eh_gc_sections=no + cat > conftest.s < /dev/null 2>&1; then + if $gcc_cv_ld -o conftest conftest.o --entry=_start --gc-sections 2>&1 \ + | grep "gc-sections option ignored" > /dev/null; then + gcc_cv_ld_eh_gc_sections=no + elif $gcc_cv_objdump -h conftest | grep gcc_except_table > /dev/null; then + gcc_cv_ld_eh_gc_sections=yes + fi + fi + fi fi fi rm -f conftest.s conftest.o conftest fi +case "$target" in + hppa*-*-linux*) + # ??? This apparently exposes a binutils bug with PC-relative relocations. + gcc_cv_ld_eh_gc_sections=no + ;; +esac if test x$gcc_cv_ld_eh_gc_sections = xyes; then cat >>confdefs.h <<\_ACEOF -- cgit v1.1