[PATCH] S12Z: gas: Fix bug when a symbol name was the single letter 'c'.

Nick Clifton nickc@redhat.com
Wed Jan 16 11:52:00 GMT 2019


Hi John,

> The assembler incorrectly recognised "c" as a register name, and
> refused to allow it where it expected a symbol/label.

This sounds like it might be a more serious problem...

> +	st d0, c 	; c is a valid label
How does the assembler know that "c" here is meant to be label c 
and not the register c ?

(In other architectures it is often common practice for the compiler
to prefix all user generated symbols with a character, usually an
underscore, so that it is possible to distinguish between register
names and user symbols).

Cheers
  Nick



More information about the Binutils mailing list