[PATCH] Disallow SYM = EXPR in bfin gas

Jie Zhang jzhang918@gmail.com
Tue May 23 09:13:00 GMT 2006


Since Blackfin assembly uses equal sign '=' in almost all
instructions, without disabling SYM = EXPR, we cannot easily give good
diagnostic information if user has a typo in register name at the left
of '='. For example, user may want to write:

r0.l = 0x8000;

But write

r0.1 = 0x8000;

which would be a legal symbol assignment without this patch. Thus it
will be silently accepted without any error.

I have installed this patch to disable SYM = EXPR in bfin gas. So if
you want to set value to symbol, you have to use .set directive in
Blackfin assembly file.

Jie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfin-gas-disallow-assign.diff
Type: text/x-patch
Size: 2381 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060523/8fd15c21/attachment.bin>


More information about the Binutils mailing list