summaryrefslogtreecommitdiff
path: root/lib/make/cctk_Config.h.in
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2010-12-23 20:21:54 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2010-12-23 20:21:54 +0000
commit9df8577df5231aa503dafb265ba1698e294029be (patch)
tree6b89b910882f3df57a1a17f8cda19bb4cf58fde7 /lib/make/cctk_Config.h.in
parent072794c0e1c690d78fc76020ebfbded92298f797 (diff)
Autoconf CCTK_ATTRIBUTE_NOINLINE, which expands to
__attribute__((noinline)) if that is supported by the compiler. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4658 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/cctk_Config.h.in')
-rw-r--r--lib/make/cctk_Config.h.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/make/cctk_Config.h.in b/lib/make/cctk_Config.h.in
index 6ec556f8..ca943cd3 100644
--- a/lib/make/cctk_Config.h.in
+++ b/lib/make/cctk_Config.h.in
@@ -220,6 +220,14 @@ typedef enum {false, true} bool;
# define CCTK_ATTRIBUTE_PURE
#endif
+/* Whether __attribute__((noinline)) exists. */
+#undef HAVE_CCTK_C_ATTRIBUTE_NOINLINE
+#ifdef HAVE_CCTK_C_ATTRIBUTE_NOINLINE
+# define CCTK_ATTRIBUTE_NOINLINE __attribute__((__noinline__))
+#else
+# define CCTK_ATTRIBUTE_NOINLINE
+#endif
+
/* Whether __attribute__((unused)) exists. */
#undef HAVE_CCTK_C_ATTRIBUTE_UNUSED
#ifdef HAVE_CCTK_C_ATTRIBUTE_UNUSED
@@ -292,6 +300,20 @@ typedef enum {false, true} bool;
# define CCTK_MEMBER_ATTRIBUTE_PURE
#endif
+/* Whether __attribute__((noinline)) exists. */
+#undef HAVE_CCTK_CXX_ATTRIBUTE_NOINLINE
+#ifdef HAVE_CCTK_CXX_ATTRIBUTE_NOINLINE
+# define CCTK_ATTRIBUTE_NOINLINE __attribute__((__noinline__))
+#else
+# define CCTK_ATTRIBUTE_NOINLINE
+#endif
+#undef HAVE_CCTK_CXX_MEMBER_ATTRIBUTE_NOINLINE
+#ifdef HAVE_CCTK_CXX_MEMBER_ATTRIBUTE_NOINLINE
+# define CCTK_MEMBER_ATTRIBUTE_NOINLINE __attribute__((__noinline__))
+#else
+# define CCTK_MEMBER_ATTRIBUTE_NOINLINE
+#endif
+
/* Whether __attribute__((unused)) exists. */
#undef HAVE_CCTK_CXX_ATTRIBUTE_UNUSED
#ifdef HAVE_CCTK_CXX_ATTRIBUTE_UNUSED