From 2866063c3cff10814f0e2e6c5263c7ee6d4c7fa1 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Thu, 26 Apr 2012 15:11:13 -0400 Subject: [PATCH] Add a NO_INLINE attribute to gcc_extensions. Will want later. Change-Id: Ia1509e17f2346374305146ee98546c72f2f8a1ed --- firmware/include/gcc_extensions.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/include/gcc_extensions.h b/firmware/include/gcc_extensions.h index 390e57d85f..9b34e57b9b 100644 --- a/firmware/include/gcc_extensions.h +++ b/firmware/include/gcc_extensions.h @@ -57,6 +57,11 @@ #define FORCE_INLINE inline #endif +#if defined(__GNUC__) +#define NO_INLINE __attribute__((noinline)) +#else +#define NO_INLINE +#endif /* Version information from http://ohse.de/uwe/articles/gcc-attributes.html */ #if defined(__GNUC__) && (__GNUC__ >= 4 || \