Re: gcc 4.3 breaks ContribCheck in 8.2 and older.

Поиск
Список
Период
Сортировка
От Kurt Roeckx
Тема Re: gcc 4.3 breaks ContribCheck in 8.2 and older.
Дата
Msg-id 20080324184737.GA30480@roeckx.be
обсуждение исходный текст
Ответ на Re: gcc 4.3 breaks ContribCheck in 8.2 and older.  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: gcc 4.3 breaks ContribCheck in 8.2 and older.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] Eliminate more detoast copies for packed varlenas
Следующее
От: Tom Lane
Дата:
Сообщение: Re: gcc 4.3 breaks ContribCheck in 8.2 and older.