pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Christof Petig <christof@petig-baender.de>
To: Michael Meskes <meskes@postgresql.org>
Cc: pgsql-patches@postgresql.org, Interfaces <pgsql-interfaces@postgresql.org>
Subject: Re: libecpg (8.0 and CVS) hits a gcc bug on powerpc
Date: Thu, 16 Jun 2005 16:45:58 +0200
Message-ID: <42B190A6.7010409@petig-baender.de> (raw )
In-Reply-To: <20050318100151.GA11769@1 >
References: <42383EE8.5070503@petig-baender.de >
<20050318100151.GA11769@1 >
-----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-----
Attachments:
[text/x-patch] ecpglib.patch (2.0K, ../42B190A6.7010409@petig-baender.de/2-ecpglib.patch)
download | inline diff:
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
view thread (6+ messages) latest in thread
Message-ID: <42B190A6.7010409@petig-baender.de>
Permalink: ../42B190A6.7010409@petig-baender.de/
Also on: postgresql.org/message-id/42B190A6.7010409@petig-baender.de
copy link · copy postgr.es · copy git am
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: christof@petig-baender.de, meskes@postgresql.org
Subject: Re: libecpg (8.0 and CVS) hits a gcc bug on powerpc
In-Reply-To: <42B190A6.7010409@petig-baender.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox