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

From Andrew Dunstan
Subject Re: OpenBSD/Sparc status
Date
Msg-id 419E61F8.1080701@dunslane.net
Whole thread Raw
In response to Re: OpenBSD/Sparc status  (Stefan Kaltenbrunner <stefan@kaltenbrunner.cc>)
Responses Re: OpenBSD/Sparc status  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers

Stefan Kaltenbrunner wrote:

> 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!
>
>
>

very scary.

Meanwhile, what do we do? Turn off -O in src/template/openbsd for 
some/all releases?

cheers

andrew


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Error handling in plperl and pltcl
Next
From: Tom Lane
Date:
Subject: Re: [Plperlng-devel] Re: Concern about new PL/Perl