diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h index 293775f1933..4a2d4f7249c 100644 --- a/include/nuttx/compiler.h +++ b/include/nuttx/compiler.h @@ -284,6 +284,12 @@ # define nosanitize_address # endif +# if defined(__AVR32__) + +# undef nosanitize_address +# define nosanitize_address +# endif + /* The nosanitize_undefined attribute informs GCC don't sanitize it */ # define nosanitize_undefined __attribute__((no_sanitize("undefined"))) @@ -413,6 +419,9 @@ # elif defined(__AVR__) +# undef nosanitize_address +# define nosanitize_address + # if defined(__AVR_2_BYTE_PC__) || defined(__AVR_3_BYTE_PC__) /* 2-byte 3-byte PC does not support returnaddress */