Fix missing portDONT_DISCARD in GCC defs for FreeRTOS and LTO

This commit is contained in:
Paul Guenette
2021-06-12 11:16:59 -04:00
parent 4499dc3113
commit afe027a1a7
2 changed files with 8 additions and 0 deletions
@@ -166,6 +166,10 @@ not necessary for to use this port. They are defined so the common demo files
#define portFORCE_INLINE inline __attribute__(( always_inline))
#endif
#ifndef portDONT_DISCARD
#define portDONT_DISCARD __attribute__(( used ))
#endif
portFORCE_INLINE static BaseType_t xPortIsInsideInterrupt( void )
{
uint32_t ulCurrentInterrupt;
@@ -166,6 +166,10 @@ not necessary for to use this port. They are defined so the common demo files
#define portFORCE_INLINE inline __attribute__(( always_inline))
#endif
#ifndef portDONT_DISCARD
#define portDONT_DISCARD __attribute__(( used ))
#endif
portFORCE_INLINE static BaseType_t xPortIsInsideInterrupt( void )
{
uint32_t ulCurrentInterrupt;