Re: optimization/10877: [3.3/3.4 regression] miscompilation with -O3 -fPIC on x86

Janis Johnson <[email protected]>
Newsgroups gmane.comp.gcc.bugs,gmane.comp.gcc.prs
Organization IBM
Message-ID <[email protected]>
The pc_thunk started going into %eax with this patch:

> 2003-03-12  Eric Botcazou  <[email protected]>
>
>       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  <[email protected]>
>
>       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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.