Skip site navigation (1) Skip section navigation (2)

libecpg (8.0 and CVS) hits a gcc bug on powerpc and amd64 (crash)

From: Christof Petig <christof(at)petig-baender(dot)de>
To: pgsql-patches(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org
Cc: Interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: libecpg (8.0 and CVS) hits a gcc bug on powerpc and amd64 (crash)
Date: 2005-03-16 14:12:56
Message-ID: 42383EE8.5070503@petig-baender.de (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-interfacespgsql-patches
NB: The crossposting is actually suggested on the mailing list description:
"If you've found a bug in PostgreSQL, please send it both to this list
and also to the pgsql-patches list."

Amd64 and powerpc share an ABI design which enables variable passing in
registers and which makes va_list a complex datatype. Due to gcc not
implementing a part of the C9x standard
(http://mail-index.netbsd.org/tech-toolchain/2003/11/11/0011.html)
taking a pointer to a va_list will fail on these platforms. The
corresponding bug (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8262) is
closed, so the gcc developers seem not to plan to change this.

So I propose the following hack (feel free to improve it!) to go into
mainline. Since only powerpc and amd64 are affected (and the old method
does not work at all here at all) the patch should not be controversial.

    Christof

PS: I don't know about other architectures. I can't believe that only
ppc and amd64 pass parameters in registers.
PPS: I could not test it on amd64, but all docs indicate the same behaviour.

Responses

pgsql-bugs by date

Next:From: Christof PetigDate: 2005-03-16 15:30:00
Subject: Re: [INTERFACES] libecpg (8.0 and CVS) hits a gcc bug on powerpc
Previous:From: John SmithDate: 2005-03-15 17:43:15
Subject: BUG #1547: CREATE TYPE AS error

pgsql-interfaces by date

Next:From: Christof PetigDate: 2005-03-16 15:30:00
Subject: Re: [INTERFACES] libecpg (8.0 and CVS) hits a gcc bug on powerpc
Previous:From: Michael FuhrDate: 2005-03-15 22:23:29
Subject: Re: Check before insert

pgsql-patches by date

Next:From: Bruce MomjianDate: 2005-03-16 15:07:28
Subject: Re: [pgsql-hackers-win32] snprintf causes regression tests
Previous:From: Andrew DunstanDate: 2005-03-16 12:44:41
Subject: Re: COPY CSV header line feature

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group