On Mon, 18 Nov 2024, Jakub Jelinek wrote:
> +@smallexample
> +extern void foo (void), bar (void);
> +int v;
> +extern int w;
> +asm (".globl %cc0, %cc2; .text; %cc0: call %cc1; ret; .data; %cc2: .word
> %cc3"
> + :: ":" (foo), "-s" (&bar), ":" (&w), "-i" (&v));
> +@end smallexample
> +
> +This asm declaration tells the compiler it defines function foo and variable
> +w and uses function bar and variable v. This will compile even with PIC,
> +but it is up to the user to ensure it will assemble correctly and have the
> +expected behavior.
That should be @code{foo}, @code{w}, @code{bar}, @code{v}.
The C front-end changes in this patch are OK.
--
Joseph S. Myers
[email protected]