Open withattribution opened 4 years ago
Hi, I already noticed that. It is mentioned here: https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gcc/Option-Index.html (and in v8.5.0) but the related description is missing.
The setting is not mentioned in the v5.2 compiler instead.
Anyway, the v8.2 is the current compiler of the ESP32 and the actual ESP8266 RTOS framework is a migration from the ESP32 framework So, I suspect that some not required ESP32 setting is still here. Regards.
Environment
Problem Description
When compiling any app if there are any errors or warnings (such as an unused variable) I also see the added warning:
cc1: warning: unrecognized command line option '-Wno-frame-address'
If there are no warnings then the compilation output is clean.I have not found any reference to the
-Wno-frame-address
flag on either gcc Warning Options or gcc Xtensa OptionsThere are references to
-Wframe-larger-than=byte-size
and-Wframe-address
which I'm wondering could have been intended? Otherwise removing the offending flag from the make/project.mkCOMMON_FLAGS
does remove the extra noise from the output log, but since I cannot find a reference to what that flag is used for I'm not sure if there would be unintended side effects etc.Expected Behavior
Application compilation output should only show warnings that are relevant to the app level code, not warnings being raised by potentially unsupported compiler flags.
Actual Behavior
Each time time an error or warning is generated, an un-related unsupported compiler flag warning is logged as well.
Steps to reproduce
int unused_int;
Code to reproduce this issue
in hello_world_main.c add any unused variable
Debug Logs
for each compiled file with any warning or error the output I see is: