From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30897 invoked by alias); 28 Aug 2014 18:30:09 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 30846 invoked by uid 89); 28 Aug 2014 18:30:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 28 Aug 2014 18:30:07 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7SIU5cc031592 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Aug 2014 14:30:05 -0400 Received: from oldenburg.str.redhat.com (ovpn-116-60.ams2.redhat.com [10.36.116.60]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7SIU1xm005091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 28 Aug 2014 14:30:03 -0400 Message-ID: <53FF7529.4040607@redhat.com> Date: Thu, 28 Aug 2014 18:30:00 -0000 From: Florian Weimer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 MIME-Version: 1.0 To: Uros Bizjak , Ilya Enkovich CC: gcc@gnu.org, "gcc-patches@gcc.gnu.org" , Evgeny Stupachenko , Richard Biener , Jeff Law , Vladimir Makarov Subject: Re: Enable EBX for x86 in 32bits PIC code References: <20140707114750.GB31640@tucnak.redhat.com> <20140822121151.GA60032@msticlxl57.ims.intel.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg02594.txt.bz2 On 08/28/2014 03:01 PM, Uros Bizjak wrote: > I'd like to avoid X86_TUNE_RELAX_PIC_REG and always treat EBX as an > allocatable register. This way, we can avoid all mess with implicit > xchgs in atomic_compare_and_swap_doubleword. Also, having > allocatable EBX would allow us to introduce __builtin_cpuid builtin > and cleanup cpiud.h. It also makes writing solid inline assembly which has to use %ebx for some reason much easier. We just fixed a glibc bug related to that. -- Florian Weimer / Red Hat Product Security