add internal SCM_NOINLINE definition
authorAndy Wingo <wingo@pobox.com>
Mon, 30 Apr 2012 17:51:06 +0000 (19:51 +0200)
committerAndy Wingo <wingo@pobox.com>
Mon, 30 Apr 2012 18:29:49 +0000 (20:29 +0200)
* libguile/_scm.h (SCM_NOINLINE): New internal define, for things that
  we definitely don't want the compiler to inline.

libguile/_scm.h

index 48fb2cc..5b4f3b7 100644 (file)
 #define scm_to_off64_t    scm_to_int64
 #define scm_from_off64_t  scm_from_int64
 
+#if (defined __GNUC__)
+# define SCM_NOINLINE __attribute__ ((__noinline__))
+#else
+# define SCM_NOINLINE /* noinline */
+#endif
 
 /* The endianness marker in objcode.  */
 #ifdef WORDS_BIGENDIAN