From: Fred L. Drake, Jr. <fdrake@users.sourceforge.net>
Date: Wed, 12 Mar 2003 23:02:11 +0000 (+0000)
Subject: Fix FASTCALL for GCC on Solaris (SF bug #692878).
X-Git-Tag: R_1_95_7~52
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc454566bef1a9bfc7500c8979804a8995ca9337;p=libexpat

Fix FASTCALL for GCC on Solaris (SF bug #692878).
This file is becoming a liability.
---

diff --git a/expat/lib/internal.h b/expat/lib/internal.h
index 1bf6baa5..761291b5 100644
--- a/expat/lib/internal.h
+++ b/expat/lib/internal.h
@@ -20,8 +20,10 @@
          and therefore subject to change.
 */
 
-#if defined(__GNUC__)
-/* Instability reported with egcs on a RedHat Linux 7.3.
+#if defined(__GNUC__) && !defined(sun)
+/* regparm() generates warnings on Solaris boxes.   See SF bug #692878.
+
+   Instability reported with egcs on a RedHat Linux 7.3.
    Let's comment it out:
    #define FASTCALL __attribute__((stdcall, regparm(3)))
    and let's try this: