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

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faqs/FAQ.html

Reply via email to