From cc454566bef1a9bfc7500c8979804a8995ca9337 Mon Sep 17 00:00:00 2001 From: "Fred L. Drake, Jr." Date: Wed, 12 Mar 2003 23:02:11 +0000 Subject: [PATCH] Fix FASTCALL for GCC on Solaris (SF bug #692878). This file is becoming a liability. --- expat/lib/internal.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: