[PATCH] gas: Fix \+ expansion for .irp and .irpc

Jan Beulich jbeulich@suse.com
Thu May 16 05:53:44 GMT 2024


On 16.05.2024 04:42, Fangrui Song wrote:
> --- /dev/null
> +++ b/gas/testsuite/gas/macros/count-repeat.s
> @@ -0,0 +1,8 @@
> +	.rept 1
> +	.print "\+"
> +	.endr
> +	.print "\+"
> +	.endr
> +	.irpc i,1
> +	.print "\+"
> +	.endr

I can't help thinking that this can't possibly assemble (or if it does,
there's a bug elsewhere), for (presumably) missing an .irp line to
match the middle .endr.

Just to mention it - I'm intending to extend \+ support to at least .irp
and .irpc; whether that can also reasonably be done for .rept I haven't
checked yet.

Jan


More information about the Binutils mailing list