X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2Ffame%2Ffamec.c;fp=cpu%2Ffame%2Ffamec.c;h=9e9dc1535e9f6468a205d027cdf47140c0aa10ce;hb=21299f18ad706a17222bc4bc2ae31b1cbd033fc5;hp=2f10540dff4037efdae24a619ce161d687551693;hpb=0fd6751db80565b9c0c1ba66e37c647fc724e6f2;p=picodrive.git diff --git a/cpu/fame/famec.c b/cpu/fame/famec.c index 2f10540..9e9dc15 100644 --- a/cpu/fame/famec.c +++ b/cpu/fame/famec.c @@ -35,7 +35,17 @@ #define PICODRIVE_HACK // Options // - +#ifndef FAMEC_NO_GOTOS +// computed gotos is a GNU extension +#ifndef __GNUC__ +#define FAMEC_NO_GOTOS +#endif +// as of 3.3, clang takes over 3h to compile this in computed goto mode.. +#ifdef __clang__ +#define FAMEC_NO_GOTOS +#endif +#endif + #undef INLINE #ifdef _MSC_VER #define INLINE