This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gccgo] Define TARGET_SUPPORTS_SPLIT_STACK


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

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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]