[Bug target/96828] Wrong code generated with -fstack-protector and -msingle-pic-base

2020-10-01 Thread abatur45en at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96828 --- Comment #2 from Ilya Oleinik --- Seems like PR85434 caused this issue. This patch fixes it, however i'm not sure if mov instruction insertion is the right way of fixing armv6m inability to do a load from hiregs.

[Bug target/96828] Wrong code generated with -fstack-protector and -msingle-pic-base

2020-10-01 Thread abatur45en at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96828 --- Comment #1 from Ilya Oleinik --- Created attachment 49296 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49296&action=edit patch