From patchwork Fri Jul 23 10:58:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [gccgo] Define TARGET_SUPPORTS_SPLIT_STACK Date: Fri, 23 Jul 2010 00:58:45 -0000 From: Ian Taylor X-Patchwork-Id: 59765 Message-Id: To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com 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)