From ff191228ab0e71bd8226362cc87a0da346985483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Rivi=C3=A8re?= Date: Sun, 10 Sep 2023 12:47:56 +0200 Subject: [PATCH] Disable REGISTER_PREFIX_OPTIONAL 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. --- gas/config/te-mintelf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/gas/config/te-mintelf.h b/gas/config/te-mintelf.h index 562595b4c5a..38585e41326 100644 --- a/gas/config/te-mintelf.h +++ b/gas/config/te-mintelf.h @@ -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) \