Re: [RFC PATCH] i386: Do not emit segment overrides for %p and %P [PR100936]

2021-06-09 Thread Uros Bizjak via Gcc-patches
On Tue, Jun 8, 2021 at 5:46 PM Uros Bizjak wrote: > > Using %p to move the address of a symbol using LEA: > > asm ("lea %p1, %0" : "=r"(addr) : "m"(var)); > > emits assembler warning when VAR is declared in a non-generic address space: > > Warning: segment override on `lea' is ineffectual > >

[RFC PATCH] i386: Do not emit segment overrides for %p and %P [PR100936]

2021-06-08 Thread Uros Bizjak via Gcc-patches
Using %p to move the address of a symbol using LEA: asm ("lea %p1, %0" : "=r"(addr) : "m"(var)); emits assembler warning when VAR is declared in a non-generic address space: Warning: segment override on `lea' is ineffectual The problem is with %p operand modifier, which should emit raw symb