From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22426 invoked by alias); 1 Sep 2011 05:01:17 -0000 Received: (qmail 22418 invoked by uid 22791); 1 Sep 2011 05:01:17 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Thu, 01 Sep 2011 05:01:03 +0000 Received: from hpaq1.eem.corp.google.com (hpaq1.eem.corp.google.com [172.25.149.1]) by smtp-out.google.com with ESMTP id p81511uJ030431 for ; Wed, 31 Aug 2011 22:01:02 -0700 Received: from iabz21 (iabz21.prod.google.com [10.12.102.21]) by hpaq1.eem.corp.google.com with ESMTP id p8150xWZ017233 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 31 Aug 2011 22:01:00 -0700 Received: by iabz21 with SMTP id z21so2060380iab.40 for ; Wed, 31 Aug 2011 22:00:59 -0700 (PDT) Received: by 10.231.28.206 with SMTP id n14mr2420410ibc.13.1314853259040; Wed, 31 Aug 2011 22:00:59 -0700 (PDT) Received: by 10.231.28.206 with SMTP id n14mr2420400ibc.13.1314853258859; Wed, 31 Aug 2011 22:00:58 -0700 (PDT) Received: from coign.google.com (adsl-71-133-8-30.dsl.pltn13.pacbell.net [71.133.8.30]) by mx.google.com with ESMTPS id y14sm151355ibf.45.2011.08.31.22.00.57 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Aug 2011 22:00:58 -0700 (PDT) From: Ian Lance Taylor To: Kevin Klues Cc: gcc-help@gcc.gnu.org Subject: Re: TLS, gcc optimizations, and PIC on x86 References: Date: Thu, 01 Sep 2011 05:01:00 -0000 In-Reply-To: (Kevin Klues's message of "Wed, 31 Aug 2011 18:54:58 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg00005.txt.bz2 Kevin Klues writes: > Specifically, I want to be able to change the value of my TLS > descriptor as well as access TLS variables from that new descriptor > within the body of a single function. As you've discovered, gcc does not support that. It seems like a highly unusual feature to want. It would not be hard to change gcc to add an option to support this, but I'm not sure it's worth the ongoing maintenance cost. Ian