summaryrefslogtreecommitdiffstats
path: root/Modules/expat/internal.h
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2003-10-21 15:38:55 (GMT)
committerFred Drake <fdrake@acm.org>2003-10-21 15:38:55 (GMT)
commit08317aefef89ca18ce12e53c0cdb3c8e132a6201 (patch)
tree9d71c9455eae67c0b6d43eeb299ca84a510fa6e2 /Modules/expat/internal.h
parent6aedcfcd1ebaa22b4699a130326d38818c53b135 (diff)
downloadcpython-08317aefef89ca18ce12e53c0cdb3c8e132a6201.zip
cpython-08317aefef89ca18ce12e53c0cdb3c8e132a6201.tar.gz
cpython-08317aefef89ca18ce12e53c0cdb3c8e132a6201.tar.bz2
Update to Expat 1.95.7; there are no changes to the Expat sources.
Diffstat (limited to 'Modules/expat/internal.h')
-rw-r--r--Modules/expat/internal.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/Modules/expat/internal.h b/Modules/expat/internal.h
index 1bf6baa..ff056c6 100644
--- a/Modules/expat/internal.h
+++ b/Modules/expat/internal.h
@@ -20,17 +20,20 @@
and therefore subject to change.
*/
-#if defined(__GNUC__)
-/* Instability reported with egcs on a RedHat Linux 7.3.
- Let's comment it out:
+#if defined(__GNUC__) && defined(__i386__)
+/* We'll use this version by default only where we know it helps.
+
+ regparm() generates warnings on Solaris boxes. See SF bug #692878.
+
+ Instability reported with egcs on a RedHat Linux 7.3.
+ Let's comment out:
#define FASTCALL __attribute__((stdcall, regparm(3)))
and let's try this:
*/
#define FASTCALL __attribute__((regparm(3)))
-#define PTRCALL
#define PTRFASTCALL __attribute__((regparm(3)))
+#endif
-#elif defined(WIN32)
/* Using __fastcall seems to have an unexpected negative effect under
MS VC++, especially for function pointers, so we won't use it for
now on that platform. It may be reconsidered for a future release
@@ -38,11 +41,8 @@
Likely reason: __fastcall on Windows is like stdcall, therefore
the compiler cannot perform stack optimizations for call clusters.
*/
-#define FASTCALL
-#define PTRCALL
-#define PTRFASTCALL
-#endif
+/* Make sure all of these are defined if they aren't already. */
#ifndef FASTCALL
#define FASTCALL