casaroli commented on code in PR #21057:
URL: https://github.com/apache/nuttx/pull/21057#discussion_r4400839806
##########
include/nuttx/compiler.h:
##########
@@ -261,7 +261,8 @@
extern __inline__ no_builtin(#fn) \
__attribute__((__always_inline__, \
__gnu_inline__,
__artificial__))
-# elif defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 && defined(__has_builtin)
+# elif defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 && \
+ defined(__has_builtin) && !defined(NUTTX_NO_EXTENSIONS)
Review Comment:
I guess we could use push/pop and only do it for GCC/clang. This should be
enough for posix ELF programs (which will be built with GCC/clang anyway)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]