From: | Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Darcy Buskermolen <darcy(at)wavefire(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: OpenBSD/Sparc status |
Date: | 2004-11-23 18:18:16 |
Message-ID: | 41A37EE8.7020905@kaltenbrunner.cc |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom Lane wrote:
> Darcy Buskermolen <darcy(at)wavefire(dot)com> writes:
>
>>I can confirm this behavior on Solaris 8/sparc 64 as well.
>
>
>>bash-2.03$ gcc -m64 -O2 test.c
>>bash-2.03$ ./a.out
>>x = 12.3
>>y = 2.51673e-42
>>bash-2.03$ gcc -m64 -O3 test.c
>>bash-2.03$ ./a.out
>>x = 12.3
>>y = 12.3
>>bash-2.03$
>
>
> Hmm. I hadn't bothered to try -O3 ... interesting that it works
> correctly again at that level.
-O3 works on my box too
>
> Anyway, this proves that it is an upstream gcc bug and not something
> OpenBSD broke.
I just tried on solaris9 with gcc 3.4.2 - seems the bug is fixed in this
version. Unfortunably it is quite problematic to change the compiler
at least on OpenBSD gcc 3.3.2 is quite heavily modified on that platform
and switching the base system compiler might screw a boatload of other
tools.
The actual recommendation I got from the OpenBSD-folks was to add
"-mfaster-structs" to the compiler flags with seems to work around the
issue - I'm currently doing a full build to verify that though ...
Stefan
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Fuhr | 2004-11-23 18:34:44 | Re: OpenBSD/Sparc status |
Previous Message | Michael Fuhr | 2004-11-23 18:15:12 | Re: another plperl bug |