Patchwork [gccgo] Check TARGET_CAN_SPLIT_STACK

login
register
mail settings
Submitter Ian Taylor
Date Aug. 1, 2010, 12:28 p.m.
Message ID <mcrvd7ujz3p.fsf@google.com>
Download mbox | patch
Permalink /patch/60450/
State New
Headers show

Comments

Ian Taylor - Aug. 1, 2010, 12:28 p.m.
This fixes the gccgo frontend to check TARGET_CAN_SPLIT_STACK rather
than TARGET_SUPPORTS_SPLIT_STACK, since the latter is always defined.
Committed to gccgo branch.

Ian

Patch

diff -r af76b9432c9e go/gospec.c
--- a/go/gospec.c	Sun Aug 01 03:23:56 2010 -0700
+++ b/go/gospec.c	Sun Aug 01 05:26:29 2010 -0700
@@ -226,7 +226,7 @@ 
   arglist[j++] = "-combine";
 
   /* If we are linking, pass -fsplit-stack if it is supported.  */
-#ifdef TARGET_SUPPORTS_SPLIT_STACK
+#ifdef TARGET_CAN_SPLIT_STACK
   if (library >= 0)
     arglist[j++] = "-fsplit-stack";
 #endif