https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99504
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> --- (In reply to CVS Commits from comment #2) > The master branch has been updated by H.J. Lu <h...@gcc.gnu.org>: > > https://gcc.gnu.org/g:adf14bdbc10d4114865a08cf20020a2616039057 > > commit r11-7701-gadf14bdbc10d4114865a08cf20020a2616039057 > Author: H.J. Lu <hjl.to...@gmail.com> > Date: Thu Mar 11 06:48:24 2021 -0800 > > x86: Update 'P' operand modifier for -fno-plt > > Update 'P' operand modifier for -fno-plt to support inline assembly > statements. In 64-bit, we can always load function address with > @GOTPCREL. In 32-bit, we load function address with @GOT only for > non-PIC since PIC register may not be available at call site. > > gcc/ > > PR target/99504 > * config/i386/i386.c (ix86_force_load_from_GOT_p): Support > inline assembly statements. > (ix86_print_operand): Update 'P' handling for -fno-plt. > > gcc/testsuite/ > > PR target/99504 > * gcc.target/i386/pr99530-1.c: New test. > * gcc.target/i386/pr99530-2.c: Likewise. > * gcc.target/i386/pr99530-3.c: Likewise. > * gcc.target/i386/pr99530-4.c: Likewise. > * gcc.target/i386/pr99530-5.c: Likewise. > * gcc.target/i386/pr99530-6.c: Likewise. Wrong PR number in commit log.