From cffc205c9eaacfa312323807cd60b9d3d1c26894 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Mon, 20 May 2019 19:53:30 +0200 Subject: GAS: Replace macro LITERAL_PREFIXDOLLAR_HEX with a runtime value. In an upcoming commit, I need to be able to set the prefix used to introduce hexadecimal literal constants using a command line flag. This is not currently possible, because the switch which determines this (LITERAL_PREFIXDOLLAR_HEX) is a macro set at build time. This change substitutes it for a variable to be set at start up. gas/ChangeLog: * expr.c (literal_prefix_dollar_hex): New variable. (operand)[case '$']: Use the new variable instead of the old macro. * expr.h (literal_prefix_dollar_hex): Declare it. * config/tc-epiphany.c (md_begin): Assign literal_prefix_dollar_hex. * config/tc-ip2k.c: ditto * config/tc-mt.c: ditto * config/tc-epiphany.h (LITERAL_PREFIXDOLLAR_HEX): Remove macro definition. * config/tc-ip2k.h: ditto * config/tc-mt.h: ditto --- gas/config/tc-ip2k.h | 1 - 1 file changed, 1 deletion(-) (limited to 'gas/config/tc-ip2k.h') diff --git a/gas/config/tc-ip2k.h b/gas/config/tc-ip2k.h index 0b38c9dc..ae9510d 100644 --- a/gas/config/tc-ip2k.h +++ b/gas/config/tc-ip2k.h @@ -38,7 +38,6 @@ /* We don't need to handle .word strangely. */ #define WORKING_DOT_WORD -#define LITERAL_PREFIXDOLLAR_HEX #define LITERAL_PREFIXPERCENT_BIN #define DOUBLESLASH_LINE_COMMENTS -- cgit v1.1