Re: gcc 4.3 breaks ContribCheck in 8.2 and older. - Mailing list pgsql-hackers

From Kurt Roeckx
Subject Re: gcc 4.3 breaks ContribCheck in 8.2 and older.
Date
Msg-id 20080324184737.GA30480@roeckx.be
Whole thread Raw
In response to Re: gcc 4.3 breaks ContribCheck in 8.2 and older.  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: gcc 4.3 breaks ContribCheck in 8.2 and older.
List pgsql-hackers
On Mon, Mar 24, 2008 at 03:05:31PM -0300, Alvaro Herrera wrote:
> Kurt Roeckx wrote:
> 
> > No, this has nothing to do with CFLAGS.  It's calling a function which
> > returns something other than it actually returns.
> 
> Yeah but apparently gcc 4.3 is working in 8.3 and later.  What happens
> to your sample program if you compile it with the CFLAGS used in 8.3
> versus those used in 8.2?  pg_config --configure will show these.

8.2 and 8.3 actually get the same value in fmgr_oldstyle(), it just
seems they do something else with it somewhere else.  Both are wrong,
it's just that we don't see it in 8.3.

I think it should return a Datum, and use PG_RETURN_BOOL.


Kurt



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] Eliminate more detoast copies for packed varlenas
Next
From: Tom Lane
Date:
Subject: Re: gcc 4.3 breaks ContribCheck in 8.2 and older.