Re: Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)
Date
Msg-id 11922.987439660@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
List pgsql-hackers
Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
> cc -std -O4 -Olimit 2000 -I../../../../src/include   -c -o float.o float.c
> cc: Error: float.c, line 251: In this statement, the libraries on this
> platform do not yet support compile-time evaluation of the constant
> expression "0.0/0.0". (constfoldns)

> Where does the "-O4" come from? That level of optimization probably is
> forcing the compile-time constant folding, which is causing trouble.

Looks like it's coming from src/template/osf.  If Douglas can confirm
that a lower -O level makes the compiler complaint go away, then we need
to change that template.

BTW, the other arm of the osf template looks pretty bogus too: isn't it
forcing no optimizations for gcc?  I'd have expected CFLAGS=-O2 for gcc.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)
Next
From: teg@redhat.com (Trond Eivind Glomsrød)
Date:
Subject: 7.1 on 7.1