Re: [RFC PATCH] inline asm, v2: Add new constraint for symbol definitions

2024-11-21 Thread Joseph Myers
On Wed, 6 Nov 2024, Jakub Jelinek wrote: > + error_at (loc, "%<:%> constraint operand is not address " > + "of a function or non-automatic variable"); I think a testcase for this error is needed. -- Joseph S. Myers josmy...@redhat.com

[RFC PATCH] inline asm, v2: Add new constraint for symbol definitions

2024-11-06 Thread Jakub Jelinek
On Wed, Nov 06, 2024 at 09:08:10AM +0100, Richard Biener wrote: > It would probably be cleanest to have a separate print modifier for > "symbol for assembler label definition" or so, but given this feature See the patch I'll post next. > targets existing uses those already know how to emit the de

Re: [RFC PATCH] inline asm, v2: Add new constraint for symbol definitions

2024-11-06 Thread Jakub Jelinek
On Wed, Nov 06, 2024 at 03:13:10PM +0100, Richard Biener wrote: > I probably couldn't care less ... sure, ':' works for me. '.' would > be available as well, so would ".set" or ".def" (it doesn't need to be > a single letter?). > > So fine with me, please leave frontend folks and others some time

Re: [RFC PATCH] inline asm, v2: Add new constraint for symbol definitions

2024-11-06 Thread Richard Biener
On Wed, 6 Nov 2024, Jakub Jelinek wrote: > On Wed, Nov 06, 2024 at 09:08:10AM +0100, Richard Biener wrote: > > It would probably be cleanest to have a separate print modifier for > > "symbol for assembler label definition" or so, but given this feature > > See the patch I'll post next. > > > tar