bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stack base on Mac OS X


From: Andreas Vögele
Subject: stack base on Mac OS X
Date: Mon, 24 May 2004 14:37:11 +0200

The stack base problem on Mac OS X can easily be fixed by using the preprocessor macros __APPLE__ and __MACH__ instead of the macro macosx, which is not defined by GCC on Mac OS X.

Hans Boehm's garbage collector now also uses __APPLE__ and __MACH__ and Apple's documentation says "To define a section of code to be compiled on Mac OS X system you should define a section using __APPLE__ with __MACH__ macros.". See http://developer.apple.com/technotes/tn2002/tn2071.html#Section10 for details.

The attached patch updates the preprocessor directives in gc_os_dep.c. The patch also separates the definition of the variable result in scm_get_stack_base() from the variable initialisation. If the definition and the initialisation are not separated GCC 3.3 complains about an unused variable on Mac OS X and HP-UX.

Attachment: gc_os_dep.c.diff.c
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]