Waldek Hebisch wrote:
Adriaan van Os wrote:
On OS X, I am adding the following patch.
--- gpc-options.h.orig Tue Oct 25 04:36:18 2005 +++ gpc-options.h Sat Nov 5 01:50:39 2005 @@ -85,6 +85,9 @@ "-fno-pedantic", "-ftyped-address", "-fassertions",
- #if defined (__MACH__) && defined (__APPLE__) && defined
(__POWERPC__)
- "-flongjmp-all-nonlocal-labels",
- #endif "-Wwarnings", "-Wimplicit-abstract", "-Winherited-abstract",
This patch tests if the compiler runs on OS X. I think that the correct way is to test if compiler generates code for OS X:
--- gpc-options.h.orig 2005-11-12 13:21:59.936868328 +0100 +++ gpc-options.h 2005-11-12 13:29:38.371175720 +0100 @@ -85,6 +85,11 @@ "-fno-pedantic", "-ftyped-address", "-fassertions", +#ifdef TARGET_POWERPC +#if TARGET_MACHO
- "-flongjmp-all-nonlocal-labels",
+#endif +#endif "-Wwarnings", "-Wimplicit-abstract", "-Winherited-abstract",
OK, thanks for the correct patch.
Regards,
Adriaan van Os