pkarashchenko commented on code in PR #10787: URL: https://github.com/apache/nuttx/pull/10787#discussion_r1334963434
########## include/nuttx/compiler.h: ########## @@ -157,6 +157,7 @@ */ # define offsetof(a, b) __builtin_offsetof(a, b) +# define return_address(x) __builtin_return_address(x) Review Comment: I'm not sure about adding this to compiler.h. Exactly this interface is compiler specific, mostly `return_address(0)` can be implemented as inline assembly for many architectures. Like reading LR register for ARM for example. -- 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]
