Re: OpenBSD/Sparc status - Mailing list pgsql-hackers

From Stefan Kaltenbrunner
Subject Re: OpenBSD/Sparc status
Date
Msg-id 419E4EA6.9060108@kaltenbrunner.cc
Whole thread Raw
In response to Re: OpenBSD/Sparc status  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: OpenBSD/Sparc status  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Tom Lane wrote:
> The answer is: it's a gcc bug.  The attached program should print
> x = 12.3
> y = 12.3
> 
> but if compiled with -O or -O2 on Stefan's machine, I get garbage:
> 
> $ gcc -O  ftest.c
> $ ./a.out
> x = 12.3
> y = 1.47203e-39

woa - scary. I will report that to the OpenBSD-folks upstream - many 
thanks for the nice testcase!


Stefan


pgsql-hackers by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Beta5 Scheduale
Next
From: Tom Lane
Date:
Subject: Error handling in plperl and pltcl