Bug#309210: gcc-4.0 miscompile PARI/GP on x86

2005-09-12 Thread Bill Allombert
On Sun, May 22, 2005 at 07:05:38PM +0200, Falk Hueffner wrote:
> tags 309210 + moreinfo
> thanks
> 
> how can this problem be reproduced? Can you make a stand-alone
> testcase?

So far I have gathered the following info:

This bug only affect gcc 4.0 build with configure --host=linux-i486.
It no more affect  gcc 4.1, and apparently gcc 4.0 build with
configure --host=linux-i686 is OK.

Apparently this bug occurs only when a single static function is inlined
twice.

I have also found another instance of (probably) the same bug
in another source file that might be easier to investigate.

Cheers,
-- 
Bill. <[EMAIL PROTECTED]>

Imagine a large red swirl here. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#309210: gcc-4.0 miscompile PARI/GP on x86

2005-05-23 Thread Bill Allombert
tags 309210 - moreinfo
thanks
On Sun, May 22, 2005 at 07:05:38PM +0200, Falk Hueffner wrote:
> tags 309210 + moreinfo
> thanks
> 
> Hi,
> 
> how can this problem be reproduced? 

Easily:
1) download the tarball mentionned in the bug report and untar it
2) do 
CC=gcc-4.0 ./Configure
3) do 
make bench

One test-case fails (alglin).
Alternatively, you can do
make gp
./gp
matker([1,2;3,4])
  *** matker: bug in GP (Segmentation Fault), please report

More information about compiler options that fix this problem:


> Can you make a stand-alone testcase?

Not at that time, unfortunately. The bug only occurs inside deeply inlined
code.

Cheers,
-- 
Bill. <[EMAIL PROTECTED]>

Imagine a large red swirl here. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#309210: gcc-4.0 miscompile PARI/GP on x86

2005-05-22 Thread Falk Hueffner
tags 309210 + moreinfo
thanks

Hi,

how can this problem be reproduced? Can you make a stand-alone
testcase?

-- 
Falk


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#309210: gcc-4.0 miscompile PARI/GP on x86

2005-05-15 Thread Bill Allombert
Package: gcc-4.0
Version: 4.0.0-7
Severity: normal

Hello Debian GCC maintainers,

gcc-4.0 and gcc-snapshot generate wrong code for PARI/GP 2.2.10 on x86.
The source code can be found here:


The problem is in the file src/basemath/alglin1.c, function ker0().

The compilation command used was:
gcc-4.0  -c -O3 -DGCC_INLINE -Wall -fno-strict-aliasing -fomit-frame-pointer 
-DBOTH_GNUPLOT_AND_X11 -I. -I../src/headers  -o alglin1.o alglin1.i

Please find the preprocessed source here:


Cheers,
-- 
Bill. <[EMAIL PROTECTED]>

Imagine a large red swirl here. 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]