Re: OpenBSD/Sparc status

From: Stefan Kaltenbrunner <stefan(at)kaltenbrunner(dot)cc>
To: Darcy Buskermolen <darcy(at)wavefire(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: OpenBSD/Sparc status
Date: 2004-11-23 18:53:54
Message-ID: 41A38742.9010107@kaltenbrunner.cc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Darcy Buskermolen wrote:
> On November 19, 2004 10:55 am, you 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
>>$ gcc -v
>>Reading specs from /usr/lib/gcc-lib/sparc64-unknown-openbsd3.6/3.3.2/specs
>>Configured with:
>>Thread model: single
>>gcc version 3.3.2 (propolice)
>>$
>
>
> I can confirm this behavior on Solaris 8/sparc 64 as well.

some more datapoints:

solaris 2.9 with gcc 3.1 is broken(-O3 does not help here)
linux/sparc64 (debian) with gcc 3.3.5 is broken too

So it looks like at least gcc 3.1 and gcc 3.3.x are affected on Sparc64
on all operating systems.

Stefan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Poole 2004-11-23 19:00:19 Re: another plperl bug
Previous Message Michael Fuhr 2004-11-23 18:34:44 Re: OpenBSD/Sparc status