This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Recent 3.2 branch commits cause x86 -fPIC regressions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]