From patchwork Mon Dec 15 20:59:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 421679 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C505E140271 for ; Tue, 16 Dec 2014 08:00:06 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; q=dns; s=default; b=HeHclvcfwMBMd8P8avc80GFxmpB80OnwYqYdx5p/5y2 +PJmqk/G4Gu++DCNfJBpQAHVVfjsvOhZs+N2UStL3Dn7hbjtzy+uiWjUWm7xytfu kbFU27gxI4leLX5AzlLTg3GouUhmmdef4lh7miqLoxKlYUzJQ+O1+Jdj/H/vvzqs = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; s=default; bh=rYBPO/Dy+TJrADzAXgZQFZKnjXk=; b=SJYHDtaoYGbEPplt4 ifE+AEhg6+ga5b0Ml0ERAe8/LEJpYlKvZRNtcYXalBRXYDUF+HwaTLM6DFtlSxR9 FnaOj4Nd//YC2zLfZxatxRGfv0/H4kgaRCWjFqit2QCn1ya3WatlWKUh54Aqyuye SO6pt3criiZ8dpKDPb39s28iyg= Received: (qmail 5835 invoked by alias); 15 Dec 2014 20:59:59 -0000 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 Received: (qmail 5820 invoked by uid 89); 15 Dec 2014 20:59:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oi0-f47.google.com Received: from mail-oi0-f47.google.com (HELO mail-oi0-f47.google.com) (209.85.218.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 15 Dec 2014 20:59:57 +0000 Received: by mail-oi0-f47.google.com with SMTP id v63so8658182oia.20 for ; Mon, 15 Dec 2014 12:59:55 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.155.243 with SMTP id vz19mr8231089oeb.15.1418677195683; Mon, 15 Dec 2014 12:59:55 -0800 (PST) Received: by 10.60.69.73 with HTTP; Mon, 15 Dec 2014 12:59:55 -0800 (PST) Date: Mon, 15 Dec 2014 21:59:55 +0100 Message-ID: Subject: [PATCH, i386]: Move TARGET_CAN_SPLIT_STACK to config/i386/gnu-user-common.h From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" Cc: Ian Taylor Hello! 2014-12-15 Uros Bizjak * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Move from here ... * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): ... and here ... * config/i386/gnu-user-common.h (TARGET_CAN_SPLIT_STACK): ... to here. Bootstrapped and regtested on x86_64-linux-gnu {,-m32}, including go. Will commit tomorrow to mainline if there are no objections. Uros. Index: config/i386/gnu-user-common.h =================================================================== --- config/i386/gnu-user-common.h (revision 218753) +++ config/i386/gnu-user-common.h (working copy) @@ -64,3 +64,9 @@ /* Static stack checking is supported by means of probes. */ #define STACK_CHECK_STATIC_BUILTIN 1 + +/* We only build the -fsplit-stack support in libgcc if the + assembler has full support for the CFI directives. */ +#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE +#define TARGET_CAN_SPLIT_STACK +#endif Index: config/i386/gnu-user.h =================================================================== --- config/i386/gnu-user.h (revision 218753) +++ config/i386/gnu-user.h (working copy) @@ -154,11 +154,6 @@ /* i386 glibc provides __stack_chk_guard in %gs:0x14. */ #define TARGET_THREAD_SSP_OFFSET 0x14 -/* We only build the -fsplit-stack support in libgcc if the - assembler has full support for the CFI directives. */ -#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE -#define TARGET_CAN_SPLIT_STACK -#endif /* We steal the last transactional memory word. */ #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30 #endif Index: config/i386/gnu-user64.h =================================================================== --- config/i386/gnu-user64.h (revision 218753) +++ config/i386/gnu-user64.h (working copy) @@ -85,11 +85,6 @@ #define TARGET_THREAD_SSP_OFFSET \ (TARGET_64BIT ? (TARGET_X32 ? 0x18 : 0x28) : 0x14) -/* We only build the -fsplit-stack support in libgcc if the - assembler has full support for the CFI directives. */ -#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE -#define TARGET_CAN_SPLIT_STACK -#endif /* We steal the last transactional memory word. */ #define TARGET_THREAD_SPLIT_STACK_OFFSET \ (TARGET_64BIT ? (TARGET_X32 ? 0x40 : 0x70) : 0x30)