diff mbox

[gccgo] Define TARGET_SUPPORTS_SPLIT_STACK

Message ID mcrsk3aea6y.fsf@google.com
State New
Headers show

Commit Message

Ian Lance Taylor July 23, 2010, 10:58 a.m. UTC
For a patch I am about to commit, the gccgo driver needs to know whether
the target supports split stack or not.  It can't do this by calling the
target hook.  So this patch lets the tm.h file define whether the target
supports a split stack or not, by defining TARGET_SUPPORTS_SPLIT_STACK.
Committed to gccgo branch.

Ian
diff mbox

Patch

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