https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108575

--- Comment #4 from Nikos Tosis <ergasies.uni at gmail dot com> ---
(In reply to Andrew Pinski from comment #1)
> What is the command line you are using to compile the sources?
> 
> Does -fno-strict-aliasing help?
> Does it work at -O0?

I use -mcpu=cortex-m4 -std=gnu11 -g -DDEBUG -DUSE_HAL_DRIVER -DSTM32F446xx  -Og
-ffunction-sections -fdata-sections -Wall -Wextra -fstack-usage
--specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -save-temps
-ffile-prefix-map=/home/runner/work/Nyx_Simulink/Nyx_Simulink/Code=.

(In reply to Andrew Pinski from comment #1)
> What is the command line you are using to compile the sources?
> 
> Does -fno-strict-aliasing help?
> Does it work at -O0?

I think your suggestion is not working, the assembly code is different but
still a wrong address.

Reply via email to