# HG changeset patch # User vae # Date 1361561925 0 # Node ID 382872a76fa582c8eec9dc8257ad6436769b294b # Parent 28a7b8d2b8fea9068048bdfaef32cfe51d193804 Add CYGBLD_ATTRIB_NO_INLINE (suggested by Jifl) diff --git a/packages/infra/current/ChangeLog b/packages/infra/current/ChangeLog --- a/packages/infra/current/ChangeLog +++ b/packages/infra/current/ChangeLog @@ -1,3 +1,8 @@ +2013-02-20 Ilija Kocho + + * include/cyg_type.h: Add CYGBLD_ATTRIB_NO_INLINE (suggested by Jifl) + [ Bugzilla 1001768 ] + 2013-02-09 Ilija Kocho * include/cyg_type.h: Add CYGBLD_FORCE_INLINE macro to be used diff --git a/packages/infra/current/include/cyg_type.h b/packages/infra/current/include/cyg_type.h --- a/packages/infra/current/include/cyg_type.h +++ b/packages/infra/current/include/cyg_type.h @@ -475,6 +475,9 @@ typedef cyg_haladdrword CYG_ADDRWORD; # define CYGBLD_FORCE_INLINE __externC inline __attribute((gnu_inline)) __attribute((always_inline)) # endif +// Suppress function inlining +#define CYGBLD_ATTRIB_NO_INLINE __attribute__((noinline)) + #else // non-GNU # define CYGBLD_ATTRIB_UNUSED /* nothing */ @@ -508,6 +511,8 @@ typedef cyg_haladdrword CYG_ADDRWORD; #define CYGBLD_FORCE_INLINE +#define CYGBLD_ATTRIB_NO_INLINE + #endif // How to define weak aliases. Currently this is simply a mixture of the