X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E69FF52935 for ; Thu, 16 Jun 2005 11:46:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 63319-04 for ; Thu, 16 Jun 2005 14:46:00 +0000 (GMT) Received: from muemailb.citykom.de (muemailb.citykom.de [195.202.32.23]) by svr1.postgresql.org (Postfix) with ESMTP id D6A1052902 for ; Thu, 16 Jun 2005 11:45:57 -0300 (ADT) Received: (qmail 13162 invoked from network); 16 Jun 2005 14:46:00 -0000 Received: from unknown (HELO gateway) (christof.petig@telebel.de@[195.71.51.141]) (envelope-sender ) by muemailb.citykom.de (qmail-ldap-1.03) with SMTP for ; 16 Jun 2005 14:46:00 -0000 Received: from vesta.petig-baender.de ([192.168.234.26] ident=christof) by gateway with esmtp (Exim 3.35 #1 (Debian)) id 1Divcz-0005GZ-00; Thu, 16 Jun 2005 16:45:57 +0200 Message-ID: <42B190A6.7010409@petig-baender.de> Date: Thu, 16 Jun 2005 16:45:58 +0200 From: Christof Petig Organization: Adolf Petig GmbH & Co. KG User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Michael Meskes Cc: pgsql-patches@postgresql.org, Interfaces Subject: Re: libecpg (8.0 and CVS) hits a gcc bug on powerpc References: <42383EE8.5070503@petig-baender.de> <20050318100151.GA11769@1> In-Reply-To: <20050318100151.GA11769@1> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary="------------000101060807050308000908" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/51 X-Sequence-Number: 5619 This is a multi-part message in MIME format. --------------000101060807050308000908 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Meskes schrieb: > Patch committed. Thanks. I have to admit that I got the case of the preprocessor symbol on amd64 wrong. __AMD64__ is not defined, __amd64__ is. Sorry, corrected patch attached Christof -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCsZCmng+R+0ucfO0RAoABAKDKnokBW+tgXMKgeEMecpZsFXRFTQCeKeBu YsdWP056cqxKtNAx5Gh/Wis= =b2Og -----END PGP SIGNATURE----- --------------000101060807050308000908 Content-Type: text/x-patch; name="ecpglib.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ecpglib.patch" Index: src/interfaces/ecpg/ecpglib/execute.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v retrieving revision 1.40 diff -u -u -r1.40 execute.c --- src/interfaces/ecpg/ecpglib/execute.c 2 Jun 2005 12:35:11 -0000 1.40 +++ src/interfaces/ecpg/ecpglib/execute.c 16 Jun 2005 14:35:09 -0000 @@ -70,7 +70,7 @@ return res; } -#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__) || defined(__x86_64__)) +#if defined(__GNUC__) && (defined (__powerpc__) || defined(__amd64__) || defined(__x86_64__)) #define APREF ap #else #define APREF *ap @@ -178,7 +178,7 @@ if (!(var = (struct variable *) ECPGalloc(sizeof(struct variable), lineno))) return false; -#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__) || defined(__x86_64__)) +#if defined(__GNUC__) && (defined (__powerpc__) || defined(__amd64__) || defined(__x86_64__)) ECPGget_variable(ap, type, var, true); #else ECPGget_variable(&ap, type, var, true); Index: src/interfaces/ecpg/ecpglib/extern.h =================================================================== RCS file: /projects/cvsroot/pgsql/src/interfaces/ecpg/ecpglib/extern.h,v retrieving revision 1.13 diff -u -u -r1.13 extern.h --- src/interfaces/ecpg/ecpglib/extern.h 2 Jun 2005 12:35:11 -0000 1.13 +++ src/interfaces/ecpg/ecpglib/extern.h 16 Jun 2005 14:35:09 -0000 @@ -125,7 +125,7 @@ bool ECPGstore_result(const PGresult *results, int act_field, const struct statement * stmt, struct variable * var); bool ECPGstore_input(const int, const bool, const struct variable *, const char **, bool *); -#if defined(__GNUC__) && (defined (__powerpc__) || defined(__AMD64__) || defined(__x86_64__)) +#if defined(__GNUC__) && (defined (__powerpc__) || defined(__amd64__) || defined(__x86_64__)) // work around a gcc/ABI bug with va_lists on ppc+amd64 void ECPGget_variable(va_list, enum ECPGttype, struct variable *, bool); #else --------------000101060807050308000908--