Re: [PORTS] Port Bug Report: Would not build with -O2 flags set - Mailing list pgsql-ports

From Thomas Lockhart
Subject Re: [PORTS] Port Bug Report: Would not build with -O2 flags set
Date
Msg-id 37588060.67F37B50@alumni.caltech.edu
Whole thread Raw
In response to Re: [PORTS] Port Bug Report: Would not build with -O2 flags set  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [PORTS] Port Bug Report: Would not build with -O2 flags set
List pgsql-ports
> This is not a suprise, and something we have been looking at in 6.5beta.
> egcs does some optimization of function calls with short int parameters,
> and calling the adt functions through function pointers triggers a
> problem.
> Only certain platforms do this optimization.  I don't think we can fix
> it for 6.5, but it is good to know.

It is most likely a 64bit issue, since my RH-5.2/egcs-1.1.2 machine
does not show a problem (other than floating point funny business with
rounding).

                    - Thomas

> > Summary: Would not build with -O2 flags set
> >   Operating System   : Linux 2.2.3 ELF RedHat 5.1
> >   PostgreSQL version : 6.4.2
> >   Compiler used      : gcc 2.7.3
> > DEC Multia 21066A, 64M RAM
> > egcs 1.0.3
> > make 3.7.6

--
Thomas Lockhart                lockhart@alumni.caltech.edu
South Pasadena, California

pgsql-ports by date:

Previous
From: Mark Dalphin
Date:
Subject: IRIX 6.5 meets Postgresql 6.5 (June 4 Snapshot)
Next
From: Bruce Momjian
Date:
Subject: Re: [PORTS] Port Bug Report: Would not build with -O2 flags set