When compile one c program, we using the '-Os2:Optimize more for size', then we compile occur this issue.
Please include the full preprocessed source and other information listed at https://gcc.gnu.org/bugs/#need.
-D__RISC_V__=1 -D__arm__ -D__FW_BCU__ -I"/cygdrive/F/Include" -Os2 -mcmodel=medium -g3 -Wall -mcpu=n25 -ffunction-sections -fdata-sections -c -fmessage-length=0 -msmall-data-limit=0 The .i file we can't show it here.
GCC does not have an option called -Os2 .
OK. Thanks. Let me confirm this issue.
Also note that GCC 7.3.0 which you report against is no longer supported. The oldest compiler still receiving patches is GCC 10.4. You can also try GCC 7.5.0, the last release from the GCC 7 branch.
OK. Thanks.
.