diff options
author | John Darrington <john@darrington.wattle.id.au> | 2019-05-21 10:11:40 +0200 |
---|---|---|
committer | John Darrington <john@darrington.wattle.id.au> | 2019-05-21 10:29:15 +0200 |
commit | e2d1595531b62487749e1af680d8f0c48c684feb (patch) | |
tree | 1fa82c246269596f8b761e726779c788a9451289 /gas/config/tc-ip2k.h | |
parent | 7622049e0bef81fab900860400838bc977449892 (diff) | |
download | binutils-e2d1595531b62487749e1af680d8f0c48c684feb.zip binutils-e2d1595531b62487749e1af680d8f0c48c684feb.tar.gz binutils-e2d1595531b62487749e1af680d8f0c48c684feb.tar.bz2 |
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.
Also, move this instance of "case '$'" next to the other one, and
enable it only in the complementary proprocessor case.
* 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
Diffstat (limited to 'gas/config/tc-ip2k.h')
-rw-r--r-- | gas/config/tc-ip2k.h | 1 |
1 files changed, 0 insertions, 1 deletions
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 |