[PATCH] Document that most directives are case insensitive

Andreas Schwab schwab@suse.de
Tue Jun 23 08:45:00 GMT 2015


Ciro Santilli <ciro.santilli@gmail.com> writes:

> I saw a `.SECTION` directive written in uppercase, and I was in doubt
> if it should work.
>
> After reading `read.c`, I think this is the case, because of the
> TOLOWER inside `#ifned TC_CASE_SENSITIVE`. `TC_CASE_SENSITIVE` is only
> set for metag.
>
> ---
>  gas/doc/as.texinfo | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/gas/doc/as.texinfo b/gas/doc/as.texinfo
> index 6694b23..7770912 100644
> --- a/gas/doc/as.texinfo
> +++ b/gas/doc/as.texinfo
> @@ -4205,7 +4205,8 @@ address; you can only have a defined section in
> one of the two arguments.
>  @cindex pseudo-ops, machine independent
>  @cindex machine independent directives
>  All assembler directives have names that begin with a period (@samp{.}).
> -The rest of the name is letters, usually in lower case.
> +The rest of the name is made of letters.

They can also contain digits and underscores.  Basically they follow the
syntax of identifiers.

Andreas.

-- 
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



More information about the Binutils mailing list