PATCH COMMITTED: Try again to get libgcc -fsplit-stack in sync

Message ID
State New
Headers show

Commit Message

Ian Taylor Sept. 29, 2010, 12:55 a.m.
This is another attempt to get the libgcc build in sync with gcc with
respect to -fsplit-stack.  This changes the test in the libgcc configure
script to match the test done in ix86_supports_split_stack.
Bootstrapped on x86_64-unknown-linux-gnu.  Committed to mainline.


2010-09-28  Ian Lance Taylor  <>

	* Adjust CFI test to test assembler directly rather
	than checking gcc preprocessor macro.
	* configure: Rebuild.


---	(revision 164696)
+++	(working copy)
@@ -137,9 +137,14 @@  AC_SUBST(fixed_point)
 # Check for assembler CFI support.
 AC_CACHE_CHECK([whether assembler supports CFI directives], [libgcc_cv_cfi],
-				  [libgcc_cv_cfi=yes],
-				  [libgcc_cv_cfi=no])])
+	.text\n\
+	.cfi_startproc\n\
+	.cfi_personality 0, symbol\n\
+	.cfi_endproc");],
+  [libgcc_cv_cfi=yes],
+  [libgcc_cv_cfi=no])])
 # Check 32bit or 64bit for x86.
 case ${host} in