https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63966
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Looks ok to me. Or even add || (defined(__x86_64__) && !defined(__code_model_medium__) && !defined(__code_model_large__)) to that and to driver-i386.c (right after !defined(__PIC__) ).