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