This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Recent 3.2 branch commits cause x86 -fPIC regressions
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Franz Sirl <Franz dot Sirl at lauterbach dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Richard Henderson <rth at redhat dot com>
- Date: Tue, 17 Sep 2002 23:41:55 +0930
- Subject: Re: Recent 3.2 branch commits cause x86 -fPIC regressions
- References: <5.1.1.5.2.20020917151802.01b56110@mail.lauterbach.com>
On Tue, Sep 17, 2002 at 03:23:27PM +0200, Franz Sirl wrote:
> from yesterday to today a few tests started to FAIL (a few were fixed
> though too) with -fPIC/pic on x86:
>
> +FAIL: gcc.c-torture/execute/20020406-1.c execution, -O3 -fomit-frame-pointer
> +FAIL: gcc.c-torture/execute/20020406-1.c execution, -O3
> -fomit-frame-pointer -funroll-loops
> +FAIL: gcc.c-torture/execute/20020406-1.c execution, -O3
> -fomit-frame-pointer -funroll-all-loops -finline-functions
> -FAIL: gcc.c-torture/execute/990127-2.c execution, -O3 -fomit-frame-pointer
> -FAIL: gcc.c-torture/execute/990127-2.c execution, -O3 -g
> -FAIL: gcc.c-torture/execute/conversion.c execution, -O3 -fomit-frame-pointer
> -FAIL: gcc.c-torture/execute/conversion.c execution, -O3 -g
My tree happens to be lacking Richard's PR 7515 fix, ie. my most recent
gcc/ChangeLog entry is
2002-09-17 Alan Modra <amodra@bigpond.net.au>
Merge from mainline.
2002-07-20 Alan Modra <amodra@bigpond.net.au>
PR optimization/7130
gcc configured with
--build=i686-linux --host=i686-linux --target=i686-linux --disable-nls \
--enable-shared --enable-languages=c
I get
$ gcc/xgcc -Bgcc/ -fPIC -O3 -fomit-frame-pointer /src/gcc-3.2/gcc/testsuite/gcc.c-torture/execute/20020406-1.c
$ ./a.out
calling DUPFFexgcd on degrees 1 and 2
DUPFFexgcd called on degrees 1 and 2
DUPFFexgcd called on degrees 2 and 1
$ echo $?
0
Looks OK to me. I played with -mcpu and -march too, as the doloop
optimization isn't used on all x86 variants. Updating to latest gcc-3.2,
and retrying..
--
Alan Modra
IBM OzLabs - Linux Technology Centre