From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28556 invoked by alias); 20 May 2003 22:46:30 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 27397 invoked by uid 71); 20 May 2003 22:46:01 -0000 Date: Tue, 20 May 2003 22:46:00 -0000 Message-ID: <20030520224601.27396.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Janis Johnson Subject: Re: optimization/10877: [3.3/3.4 regression] miscompilation with -O3 -fPIC on x86 Reply-To: Janis Johnson X-SW-Source: 2003-05/txt/msg02221.txt.bz2 List-Id: The following reply was made to PR optimization/10877; it has been noted by GNATS. From: Janis Johnson To: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, lloyd@acm.jhu.edu, nobody@gcc.gnu.org, ebotcazou@libertysurf.fr Cc: Subject: Re: optimization/10877: [3.3/3.4 regression] miscompilation with -O3 -fPIC on x86 Date: Tue, 20 May 2003 15:32:32 -0700 The pc_thunk started going into %eax with this patch: > 2003-03-12 Eric Botcazou > > PR optimization/9888 > * config/i386/i386.md (jcc_1): Fix range. > (jcc_2): Likewise. > (jump): LIkewise. > (doloop_end_internal): Likewise. > > 2003-03-12 Eric Botcazou > > PR optimization/9888 > * config/i386/i386.md (movsi_1): Remove special alternatives > for %eax register. > (movsi_1_nointernunit): Likewise. > (movhi_1): Likewise. > * config/i386/i386.c (memory_address_length): Do not use > short displacement when there is no base. > (ix86_attr_length_address_default): Handle LEA instructions. This was tested using Wolfgang's smaller testcase and searching for '_GLOBAL_OFFSET_TABLE_, %eax' in the .s file. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10877