[Bug c/106582] Wrong code generation resulting in HardFault

2022-08-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106582 --- Comment #4 from Andrew Pinski --- > 080157fe: movsr3, #0 08015800: ldr.w r2, [r9, #20] 08015804: str r2, [r3, #12] This is doing a store at the address 12 which is invalid normally. I suspect for your code you need -fno-dele

[Bug c/106582] Wrong code generation resulting in HardFault

2022-08-11 Thread jankowski938 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106582 --- Comment #3 from Piotr --- (In reply to Richard Biener from comment #1) > Can you provide preprocessed source of the file where the crash occurs and > the compiler commandline? Can you also try GCC 10.4 (or a compiler built > from > the GCC

[Bug c/106582] Wrong code generation resulting in HardFault

2022-08-11 Thread jankowski938 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106582 --- Comment #2 from Piotr --- Created attachment 53434 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53434&action=edit Preprocessed file

[Bug c/106582] Wrong code generation resulting in HardFault

2022-08-11 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106582 Richard Biener changed: What|Removed |Added Target||arm-none-eabi Last reconfirmed|