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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)
Дата
Msg-id 11922.987439660@sss.pgh.pa.us
обсуждение исходный текст
Ответ на 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>)
Список 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 по дате отправления:

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: [PATCHES] Patch for PostgreSQL 7.0.3 to compile on Tru64 UNIX v5.0A with Compaq C T6.4-212 (dtk)
Следующее
От: teg@redhat.com (Trond Eivind Glomsrød)
Дата:
Сообщение: 7.1 on 7.1