Re: OpenBSD/Sparc status

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: OpenBSD/Sparc status
Date: 2004-11-19 21:13:28
Message-ID: 419E61F8.1080701@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2004-11-19 21:23:51 Re: OpenBSD/Sparc status
Previous Message Stefan Kaltenbrunner 2004-11-19 19:51:02 Re: OpenBSD/Sparc status