https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94516
--- Comment #14 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 48312 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48312&action=edit gcc10-pr94516.patch Untested patch for the missed-optimization part, with this we get the same assembly like gcc 9 back for -O2 -fpie.