public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/99530] New: [i386] 'P' inline assembly operand modifier should obey -fno-plt
@ 2021-03-10 21:51 thiago at kde dot org
  2021-03-10 22:04 ` [Bug target/99530] " thiago at kde dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: thiago at kde dot org @ 2021-03-10 21:51 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99530

            Bug ID: 99530
           Summary: [i386] 'P' inline assembly operand modifier should
                    obey -fno-plt
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thiago at kde dot org
  Target Milestone: ---

$ cat test.c
extern void f(void); 
void g() { asm("call %P0 ; asm" : : "X" (f)); } 
int h() { f(); return 0; }

The normal modes work:

$ gcc -fno-pic -S -o - -O2 test.c| grep call              
        call f ; asm
        call    f
$ gcc -fPIC -S -o - -O2 test.c| grep call              
        call f@PLT ; asm
        call    f@PLT

But the -fno-plt modes still generate PLT references:

$ gcc -fno-pic -fno-plt -S -o - -O2 test.c| grep call              
        call f ; asm
        call    *f@GOTPCREL(%rip)
$ gcc -fPIC -fno-plt -S -o - -O2 test.c| grep call              
        call f@PLT ; asm
        call    *f@GOTPCREL(%rip)

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2021-03-17 14:32 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 21:51 [Bug target/99530] New: [i386] 'P' inline assembly operand modifier should obey -fno-plt thiago at kde dot org
2021-03-10 22:04 ` [Bug target/99530] " thiago at kde dot org
2021-03-11 13:31 ` hjl.tools at gmail dot com
2021-03-11 15:02 ` hjl.tools at gmail dot com
2021-03-11 16:00 ` thiago at kde dot org
2021-03-11 16:01 ` thiago at kde dot org
2021-03-11 16:06 ` thiago at kde dot org
2021-03-11 19:02 ` hjl.tools at gmail dot com
2021-03-11 21:03 ` thiago at kde dot org
2021-03-11 21:53 ` hjl.tools at gmail dot com
2021-03-11 22:14 ` thiago at kde dot org
2021-03-11 22:27 ` hjl.tools at gmail dot com
2021-03-11 22:28 ` hjl.tools at gmail dot com
2021-03-11 22:38 ` thiago at kde dot org
2021-03-13 16:42 ` hjl.tools at gmail dot com
2021-03-17 14:32 ` hjl.tools at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).