From patchwork Wed May 16 00:24:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans-Peter Nilsson X-Patchwork-Id: 159476 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 44154B6FBD for ; Wed, 16 May 2012 10:24:23 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1337732664; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Received:Received:Date:Message-Id:From:To: Subject:MIME-Version:Content-Type:Content-Transfer-Encoding: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=apnx+yXf/Y9+6jgx+9K7 V0xX494=; b=haCUqpt9ARjNluf3LmuCoZWnnwDknqUO9Is412FoVBfDHd0qBfsb HoZdkDFNv2E9x07hPp2xkyt/neXR4xprX3niddsOZUFR1RXVEJSTva09sgiAxAjb H8yPzpv5ryP2hfHOhDxKHnbJATHP2BPFTYQw3ApEYSugZ/AGObcIg0Q= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Received:Received:Date:Message-Id:From:To:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=r1x0plYOS1/9Le4CQfr9y7emx9Nl0s+HC+PoAHrikSDbxapblE79XCDJ1u/a5R wwXTFP7FW9CXDHJ/t3li6Wsp4BaeuUa/BOmrKaVYx/HDAfY690tmGoJnpZfOpO6E 2xkvUkII+J8o6CNbvenXDcvAaRzLD4E25Wejvb9ex7R4k=; Received: (qmail 15674 invoked by alias); 16 May 2012 00:24:20 -0000 Received: (qmail 15665 invoked by uid 22791); 16 May 2012 00:24:19 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_HOSTKARMA_NO, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from anubis.se.axis.com (HELO anubis.se.axis.com) (195.60.68.12) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 May 2012 00:24:07 +0000 Received: from localhost (localhost [127.0.0.1]) by anubis.se.axis.com (Postfix) with ESMTP id AADB719F44 for ; Wed, 16 May 2012 02:24:05 +0200 (CEST) Received: from anubis.se.axis.com ([127.0.0.1]) by localhost (anubis.se.axis.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LKa6vxhnlLhn for ; Wed, 16 May 2012 02:24:03 +0200 (CEST) Received: from thoth.se.axis.com (thoth.se.axis.com [10.0.2.173]) by anubis.se.axis.com (Postfix) with ESMTP id CFCEA19F43 for ; Wed, 16 May 2012 02:24:02 +0200 (CEST) Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.88.21.50]) by thoth.se.axis.com (Postfix) with ESMTP id BBCAB34154; Wed, 16 May 2012 02:24:02 +0200 (CEST) Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id q4G0O2mt018639; Wed, 16 May 2012 02:24:02 +0200 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id q4G0O2aH018635; Wed, 16 May 2012 02:24:02 +0200 Date: Wed, 16 May 2012 02:24:02 +0200 Message-Id: <201205160024.q4G0O2aH018635@ignucius.se.axis.com> From: Hans-Peter Nilsson To: gcc-patches@gcc.gnu.org Subject: [RFA:] doc: TARGET_LEGITIMIZE_ADDRESS needs to be defined for native TLS MIME-Version: 1.0 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 An old patch I finally came around to submit. Verified that the DVI and info output looks ok. Ok to commit with inherent relicensing and whatever? gcc: * doc/tm.texi.in (Addressing Modes) : Mention that this hook needs to be defined for native TLS. * doc/tm.texi: Regenerate. brgds, H-P Index: doc/tm.texi.in =================================================================== --- doc/tm.texi.in (revision 187568) +++ doc/tm.texi.in (working copy) @@ -5465,8 +5465,10 @@ The code of the hook should not alter th @var{x}. If it transforms @var{x} into a more legitimate form, it should return the new @var{x}. -It is not necessary for this hook to come up with a legitimate address. -The compiler has standard ways of doing so in all cases. In fact, it +It is not necessary for this hook to come up with a legitimate address, +with the exception of native TLS addresses (@pxref{Emulated TLS}). +The compiler has standard ways of doing so in all cases. In fact, if +the target supports only emulated TLS, it is safe to omit this hook or make it return @var{x} if it cannot find a valid way to legitimize the address. But often a machine-dependent strategy can generate better code.