Skip to content

Commit

Permalink
Disable REGISTER_PREFIX_OPTIONAL
Browse files Browse the repository at this point in the history
This is the default behaviour on standard ELF targets. It is necessary
to avoid clashes between register names and C variable/function names
when the leading underscore isn't used. So inside assembler sources, all
register names must be prefixed by the % character. And inside C
sources, in inline assembly blocks, the prefix must be escaped to %%.

It is still possible to avoid the % prefix requirement by adding
--register-prefix-optional to the as command line.
  • Loading branch information
vinriviere committed Sep 10, 2023
1 parent 75c6b96 commit ff19122
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gas/config/te-mintelf.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

#define TE_MINTELF
#define LOCAL_LABELS_FB 1
#define REGISTER_PREFIX_OPTIONAL 1

/* The .lcomm directive mustn't try to align more than possible. */
#define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) \
Expand Down

0 comments on commit ff19122

Please sign in to comment.