[Bug target/98482] -mfentry creates invalid call for -mcmodel=large

2021-01-08 Thread toiwoton at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98482 --- Comment #8 from Topi Miettinen --- I'm unfortunately ignorant to GCC internals and usage of %r10, but otherwise the patch looks good to me. For -mcmodel=large -fPIC, the call sequence probably needs to be similar to how other extern function

[Bug target/98482] -mfentry creates invalid call for -mcmodel=large

2021-01-07 Thread toiwoton at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98482 --- Comment #4 from Topi Miettinen --- Sorry, I didn't check the ABI. It seems that %r11 and maybe %r10 should be usable: Figure 3.4: Register Usage Register Usage Preserved across function calls %r10 temporary register, used for passing a

[Bug c/98482] New: -mfentry creates invalid call for -mcmodel=large

2020-12-30 Thread toiwoton at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98482 Bug ID: 98482 Summary: -mfentry creates invalid call for -mcmodel=large Product: gcc Version: 10.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: