From patchwork Fri Jul 23 10:58:45 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 59765 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id DEF211007D2 for ; Fri, 23 Jul 2010 20:59:11 +1000 (EST) Received: (qmail 32726 invoked by alias); 23 Jul 2010 10:59:10 -0000 Received: (qmail 32715 invoked by uid 22791); 23 Jul 2010 10:59:08 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, TW_CC, T_RP_MATCHES_RCVD, T_TVD_MIME_NO_HEADERS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Jul 2010 10:59:03 +0000 Received: from wpaz37.hot.corp.google.com (wpaz37.hot.corp.google.com [172.24.198.101]) by smtp-out.google.com with ESMTP id o6NAx1ol013024 for ; Fri, 23 Jul 2010 03:59:01 -0700 Received: from eye27 (eye27.prod.google.com [10.208.5.27]) by wpaz37.hot.corp.google.com with ESMTP id o6NAwnYe005570 for ; Fri, 23 Jul 2010 03:58:57 -0700 Received: by eye27 with SMTP id 27so11766eye.38 for ; Fri, 23 Jul 2010 03:58:49 -0700 (PDT) Received: by 10.213.10.195 with SMTP id q3mr444993ebq.33.1279882728950; Fri, 23 Jul 2010 03:58:48 -0700 (PDT) Received: from coign.google.com (dhcp-172-28-249-136.lul.corp.google.com [172.28.249.136]) by mx.google.com with ESMTPS id z55sm176350eeh.15.2010.07.23.03.58.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Jul 2010 03:58:47 -0700 (PDT) From: Ian Lance Taylor To: gcc-patches@gcc.gnu.org, gofrontend-dev@googlegroups.com Subject: [gccgo] Define TARGET_SUPPORTS_SPLIT_STACK Date: Fri, 23 Jul 2010 03:58:45 -0700 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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)