diff options
author | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-04-02 16:38:40 -0400 |
---|---|---|
committer | Trevor Saunders <tbsaunde+binutils@tbsaunde.org> | 2016-04-03 19:50:02 -0400 |
commit | ae2689b09ff821b285159db064705068bb4cfa02 (patch) | |
tree | ff782f0cb18bfbbccc8b4857920c90462e023856 /gas/config/tc-mmix.c | |
parent | a51ef392919e80a3131418efbea6717d2ca4dbee (diff) | |
download | gdb-ae2689b09ff821b285159db064705068bb4cfa02.zip gdb-ae2689b09ff821b285159db064705068bb4cfa02.tar.gz gdb-ae2689b09ff821b285159db064705068bb4cfa02.tar.bz2 |
cleanup FLT_CHARS and EXP_CHARS
Providing declarations in tc.h points out that alpha wasn't properly marking
FLT_CHARS as const. We can also get rid of the confusing redefinition of
X_CHARS to mmix_x_chars. Finally we can get rid of some now redundant
declarations of these constants.
gas/ChangeLog:
2016-04-03 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
* config/tc-alpha.c: Const qualify FLT_CHARS.
* config/atof-ieee.c: Remove declarations of FLT_CHARS and EXP_CHARS.
* config/tc-cris.h: Likewise.
* expr.c: Likewise.
* config/tc-mmix.c (md_atof): Adjust comment.
* config/tc-mmix.h: Stop defining FLT_CHARS and EXP_CHARS as macros.
* tc.h: Declare FLT_CHARS and EXP_CHARS.
Diffstat (limited to 'gas/config/tc-mmix.c')
-rw-r--r-- | gas/config/tc-mmix.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gas/config/tc-mmix.c b/gas/config/tc-mmix.c index 2400a0b..d6992b4 100644 --- a/gas/config/tc-mmix.c +++ b/gas/config/tc-mmix.c @@ -395,9 +395,9 @@ const char line_comment_chars[] = "*#"; const char line_separator_chars[] = ";"; -const char mmix_exp_chars[] = "eE"; +const char EXP_CHARS[] = "eE"; -const char mmix_flt_chars[] = "rf"; +const char FLT_CHARS[] = "rf"; /* Fill in the offset-related part of GETA or Bcc. */ @@ -2277,7 +2277,7 @@ md_atof (int type, char *litP, int *sizeP) { if (type == 'r') type = 'f'; - /* FIXME: Having 'f' in mmix_flt_chars (and here) makes it + /* FIXME: Having 'f' in FLT_CHARS (and here) makes it problematic to also have a forward reference in an expression. The testsuite wants it, and it's customary. We'll deal with the real problems when they come; we share the |