https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
--- Comment #14 from Fangrui Song ---
> Is there a way to capture a method address in inline asm that works in
> -fPIC mode? Specifically I want to capture the address of a static
> method that's in a class that's local to a function. I'm able
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
Andrew Pinski changed:
What|Removed |Added
CC||paul_robinson at playstation
dot s
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
Andrew Pinski changed:
What|Removed |Added
Target Milestone|--- |14.0
--- Comment #12 from Andrew
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
Fangrui Song changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
--- Comment #10 from GCC Commits ---
The master branch has been updated by H.J. Lu :
https://gcc.gnu.org/g:d7250100381b817114447d91fff4748526d4fb21
commit r14-8637-gd7250100381b817114447d91fff4748526d4fb21
Author: Fangrui Song
Date: Thu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
Andrew Pinski changed:
What|Removed |Added
CC||hjl.tools at gmail dot com
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
--- Comment #8 from Fangrui Song ---
I've encountered another use case related to metadata sections (establish an
artificial reference for linker garbage collection purposes)
namespace ns { extern int var; } // defined in another translation
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
Julian Waters changed:
What|Removed |Added
CC||tanksherman27 at gmail dot com
---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
--- Comment #6 from Fangrui Song ---
(In reply to Hongtao.liu from comment #4)
> constraint "i" + "%p0"?
>
> asm (".pushsection .xxx,\"aw\"; .dc.a %p0; .popsection" :: "i"(addr)); //
> supported on aarch64 and riscv
> asm (".pushsection
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
--- Comment #5 from Fangrui Song ---
(In reply to Hongtao.liu from comment #4)
> constraint "i" + "%p0"?
>
> asm (".pushsection .xxx,\"aw\"; .dc.a %p0; .popsection" :: "i"(addr)); //
> supported on aarch64 and riscv
> asm (".pushsection
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
Hongtao.liu changed:
What|Removed |Added
CC||crazylht at gmail dot com
--- Comment #4
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
--- Comment #3 from Andrew Pinski ---
Note integer here does allow for pointers as that is still an integer value
internally.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
--- Comment #2 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #1)
> Isn't the i constraint the one you want to be portable:
>
> āiā
> An immediate integer operand (one with constant value) is allowed. This
> includes symbolic
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105576
--- Comment #1 from Andrew Pinski ---
Isn't the i constraint the one you want to be portable:
āiā
An immediate integer operand (one with constant value) is allowed. This
includes symbolic constants whose values will be known only at assembly
14 matches
Mail list logo