diff options
author | Alan Modra <amodra@gmail.com> | 2005-11-06 23:04:10 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-11-06 23:04:10 +0000 |
commit | fee9cbc7767e2bada8ff2b7bcde1284fe6b50b4e (patch) | |
tree | 3e069b13b58da125db02d2768c774086fb9723b9 /gas/expr.c | |
parent | a6c44b330736ce7dc7f7078f8e8543d56def7911 (diff) | |
download | gdb-fee9cbc7767e2bada8ff2b7bcde1284fe6b50b4e.zip gdb-fee9cbc7767e2bada8ff2b7bcde1284fe6b50b4e.tar.gz gdb-fee9cbc7767e2bada8ff2b7bcde1284fe6b50b4e.tar.bz2 |
* expr.c (integer_constant): Match only 'B' as binary suffix if
NUMBERS_WITH_SUFFIX and LOCAL_LABELS_FB. Allow both 'b' and 'B'
otherwise.
Diffstat (limited to 'gas/expr.c')
-rw-r--r-- | gas/expr.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -301,7 +301,10 @@ integer_constant (int radix, expressionS *expressionP) { c = *--suffix; c = TOUPPER (c); - if (c == 'B') + /* If we have both NUMBERS_WITH_SUFFIX and LOCAL_LABELS_FB, + we distinguish between 'B' and 'b'. This is the case for + Z80. */ + if ((NUMBERS_WITH_SUFFIX && LOCAL_LABELS_FB ? *suffix : c) == 'B') radix = 2; else if (c == 'D') radix = 10; |