public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/113675] New: %p modifier doesn't work with PIC
@ 2024-01-30 23:03 hjl.tools at gmail dot com
2024-01-30 23:05 ` [Bug target/113675] " pinskia at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2024-01-30 23:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113675
Bug ID: 113675
Summary: %p modifier doesn't work with PIC
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: hjl.tools at gmail dot com
CC: ubizjak at gmail dot com
Target Milestone: ---
Target: x86-64
[hjl@gnu-cfl-3 kso-1]$ cat foo.c
extern int key;
void
foo (void)
{
asm (".pushsection __jump_table,\"aw\"\n\
.quad %p0\n\
.popsection" :: "g" (&key));
}
[hjl@gnu-cfl-3 kso-1]$ make CC=gcc
gcc -O2 -fPIC -S foo.c
gcc -O2 -fPIC -c foo.s
foo.c: Assembler messages:
foo.c:7: Error: junk at end of line, first unrecognized character is `('
make: *** [Makefile:25: foo.o] Error 1
[hjl@gnu-cfl-3 kso-1]$ cat foo.s
.file "foo.c"
.text
.p2align 4
.globl foo
.type foo, @function
foo:
.LFB0:
.cfi_startproc
#APP
# 6 "foo.c" 1
.pushsection __jump_table,"aw"
.quad key@GOTPCREL(%rip)
.popsection
# 0 "" 2
#NO_APP
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
.ident "GCC: (GNU) 13.2.1 20231205 (Red Hat 13.2.1-6)"
.section .note.GNU-stack,"",@progbits
[hjl@gnu-cfl-3 kso-1]$
I was expecting
p -- print raw symbol name.
to work with PIC.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/113675] %p modifier doesn't work with PIC
2024-01-30 23:03 [Bug target/113675] New: %p modifier doesn't work with PIC hjl.tools at gmail dot com
@ 2024-01-30 23:05 ` pinskia at gcc dot gnu.org
2024-01-30 23:05 ` pinskia at gcc dot gnu.org
2024-01-30 23:06 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-30 23:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113675
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 105576 really.
*** This bug has been marked as a duplicate of bug 105576 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/113675] %p modifier doesn't work with PIC
2024-01-30 23:03 [Bug target/113675] New: %p modifier doesn't work with PIC hjl.tools at gmail dot com
2024-01-30 23:05 ` [Bug target/113675] " pinskia at gcc dot gnu.org
@ 2024-01-30 23:05 ` pinskia at gcc dot gnu.org
2024-01-30 23:06 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-30 23:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113675
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
That is %z was in the process of being reviewed and added:
https://gcc.gnu.org/pipermail/gcc-patches/2024-January/642580.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/113675] %p modifier doesn't work with PIC
2024-01-30 23:03 [Bug target/113675] New: %p modifier doesn't work with PIC hjl.tools at gmail dot com
2024-01-30 23:05 ` [Bug target/113675] " pinskia at gcc dot gnu.org
2024-01-30 23:05 ` pinskia at gcc dot gnu.org
@ 2024-01-30 23:06 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-01-30 23:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113675
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Actually the issue is not %p but rather the constraint. Anyways it is still a
dup.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-30 23:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-30 23:03 [Bug target/113675] New: %p modifier doesn't work with PIC hjl.tools at gmail dot com
2024-01-30 23:05 ` [Bug target/113675] " pinskia at gcc dot gnu.org
2024-01-30 23:05 ` pinskia at gcc dot gnu.org
2024-01-30 23:06 ` pinskia at gcc dot gnu.org
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).