public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] gas: FB and dollar labels
@ 2024-03-22  9:37 Jan Beulich
  2024-03-22  9:40 ` [PATCH 1/3] gas: sanitize FB- and dollar-label uses Jan Beulich
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Jan Beulich @ 2024-03-22  9:37 UTC (permalink / raw)
  To: Binutils; +Cc: Nick Clifton, Alan Modra

The first patch is the meat here, and potentially a little controversial
(see remarks there). The other two are cleanup noticed as desirable while
putting together patch 1.

Just to given an impression of how confusing (to me at least) present
behavior can be: Check whether assembling

7:
	.long 7f
	.long 07f
	.long 0x7f
	.long 0b111f
	.long 7uf
	.long 7lf

07:
	.long 7b
	.long 07b
	.long 0x7b
	.long 0b111b
	.long 7ub
	.long 7lb

actually matches your expectations.

1: sanitize FB- and dollar-label uses
2: drop dead check for double quote
3: drop integer_constant()'s maxdig

Jan

^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: [PATCH 1/3] gas: sanitize FB- and dollar-label uses
@ 2024-03-23  5:11 dvalin
  2024-03-25  6:55 ` Jan Beulich
  0 siblings, 1 reply; 10+ messages in thread
From: dvalin @ 2024-03-23  5:11 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 701 bytes --]

On 22.03.24 10:40, Jan Beulich wrote:

> I don't view it as sensible to be more lax when it comes to references

> to (uses of) such labels compared to their definition: The latter has

> been limited to decimal numerics, while the former permitted any radix.

> Beyond that leading zeroes on such labels aren't helpful either. Imo

> labels and their use sites would better match literally, to avoid

> confusion.

For the last several decades, my code has used only decimal labels, but

it does use zero as the full label. So it would be handy if leading zero suppression did not clobber the case of:

0:

Many thanks from userland for the finest toolchain on the planet.

Erik

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-03-26 11:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-22  9:37 [PATCH 0/3] gas: FB and dollar labels Jan Beulich
2024-03-22  9:40 ` [PATCH 1/3] gas: sanitize FB- and dollar-label uses Jan Beulich
2024-03-26  9:58   ` Nick Clifton
2024-03-26 10:08     ` Jan Beulich
2024-03-26 11:15       ` Nick Clifton
2024-03-22  9:40 ` [PATCH 2/3] gas: drop dead check for double quote Jan Beulich
2024-03-22  9:40 ` [PATCH 3/3] gas: drop integer_constant()'s maxdig Jan Beulich
2024-03-26  9:53 ` [PATCH 0/3] gas: FB and dollar labels Nick Clifton
2024-03-23  5:11 [PATCH 1/3] gas: sanitize FB- and dollar-label uses dvalin
2024-03-25  6:55 ` Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).