Patchwork [gccgo] s/TARGET_SUPPORTS_SPLIT_STACK/TARGET_CAN_SPLIT_STACK/

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

Comments

Ian Taylor - Aug. 1, 2010, 12:25 p.m.
I managed to not notice that TARGET_SUPPORTS_SPLIT_STACK is already
defined, in target-def.h.  This changes the i386 backend to define
TARGET_CAN_SPLIT_STACK instead.  Committed to gccgo branch.

Ian

Patch

Index: gcc/config/i386/linux.h
===================================================================
--- gcc/config/i386/linux.h	(revision 162465)
+++ gcc/config/i386/linux.h	(working copy)
@@ -219,5 +219,5 @@  along with GCC; see the file COPYING3.  
 #endif
 
 /* We steal the last transactional memory word.  */
-#define TARGET_SUPPORTS_SPLIT_STACK
+#define TARGET_CAN_SPLIT_STACK
 #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30
Index: gcc/config/i386/linux64.h
===================================================================
--- gcc/config/i386/linux64.h	(revision 162465)
+++ gcc/config/i386/linux64.h	(working copy)
@@ -123,5 +123,5 @@  see the files COPYING3 and COPYING.RUNTI
 #endif
 
 /* We steal the last transactional memory word.  */
-#define TARGET_SUPPORTS_SPLIT_STACK
+#define TARGET_CAN_SPLIT_STACK
 #define TARGET_THREAD_SPLIT_STACK_OFFSET (TARGET_64BIT ? 0x70 : 0x30)