[Bug c/43553] libgcc built with -DHAVE_CC_TLS against xgcc when emutls in use
howarth at nitro dot med dot uc dot edu
gcc-bugzilla@gcc.gnu.org
Sun Mar 28 19:21:00 GMT 2010
------- Comment #7 from howarth at nitro dot med dot uc dot edu 2010-03-28 19:21 -------
Untested alternative approach to fix this...
Index: libgcc/Makefile.in
===================================================================
--- libgcc/Makefile.in (revision 157785)
+++ libgcc/Makefile.in (working copy)
@@ -226,7 +226,7 @@
# will usually contain -g, so for the moment CFLAGS goes first. We must
# include CFLAGS - that's where multilib options live.
INTERNAL_CFLAGS = $(CFLAGS) $(LIBGCC2_CFLAGS) $(HOST_LIBGCC2_CFLAGS) \
- $(INCLUDES) @set_have_cc_tls@
+ $(INCLUDES) @set_have_cc_tls@ @set_use_emutls@
MULTIDIR := $(shell $(CC) $(CFLAGS) -print-multi-directory)
MULTIOSDIR := $(shell $(CC) $(CFLAGS) -print-multi-os-directory)
Index: libgcc/configure.ac
===================================================================
--- libgcc/configure.ac (revision 157785)
+++ libgcc/configure.ac (working copy)
@@ -238,6 +238,14 @@
fi
AC_SUBST(set_have_cc_tls)
+# See if we have emulated thread-local storage.
+GCC_CHECK_EMUTLS
+set_use_emutls=
+if test "$enable_tls $gcc_cv_use_emutls" = "yes yes"; then
+ set_use_emutls="-DUSE_EMUTLS"
+fi
+AC_SUBST(set_use_emutls)
+
# Conditionalize the makefile for this target machine.
tmake_file_=
for f in ${tmake_file}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43553
More information about the Gcc-bugs
mailing list