From a8a22e336510477a9710d98a7d57ec56fc167c2e Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 12 Apr 2001 07:03:10 +0000 Subject: [PATCH] * expr.c (operand): Pass &c to md_parse_name(). * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust. --- gas/ChangeLog | 5 +++++ gas/config/tc-ia64.h | 2 +- gas/config/tc-ppc.h | 2 +- gas/config/tc-tic54x.h | 2 +- gas/expr.c | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index a202bb1ac0c..d75371ef84d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2001-04-12 Alexandre Oliva + + * expr.c (operand): Pass &c to md_parse_name(). + * config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust. + 2001-04-07 Steven J. Hill * config/tc-mips.c: Support ELF64 for traditional MIPS targets. diff --git a/gas/config/tc-ia64.h b/gas/config/tc-ia64.h index a0b1a35202a..fc587261295 100644 --- a/gas/config/tc-ia64.h +++ b/gas/config/tc-ia64.h @@ -92,7 +92,7 @@ extern void ia64_handle_align PARAMS ((fragS *f)); #define tc_unrecognized_line(ch) ia64_unrecognized_line (ch) #define tc_frob_label(s) ia64_frob_label (s) #define md_flush_pending_output() ia64_flush_pending_output () -#define md_parse_name(s,e) ia64_parse_name (s, e) +#define md_parse_name(s,e,c) ia64_parse_name (s, e) #define tc_canonicalize_symbol_name(s) ia64_canonicalize_symbol_name (s) #define md_optimize_expr(l,o,r) ia64_optimize_expr (l, o, r) #define md_cons_align(n) ia64_cons_align (n) diff --git a/gas/config/tc-ppc.h b/gas/config/tc-ppc.h index c2876bfa35b..d2cd1b84616 100644 --- a/gas/config/tc-ppc.h +++ b/gas/config/tc-ppc.h @@ -268,7 +268,7 @@ extern const char *ppc_comment_chars; #define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section(FIXP, SEC) extern long md_pcrel_from_section PARAMS ((struct fix *, segT)); -#define md_parse_name(name, exp) ppc_parse_name (name, exp) +#define md_parse_name(name, exp, c) ppc_parse_name (name, exp) extern int ppc_parse_name PARAMS ((const char *, struct expressionS *)); #define md_operand(x) diff --git a/gas/config/tc-tic54x.h b/gas/config/tc-tic54x.h index 9e7e4aab62e..f239fc9570e 100644 --- a/gas/config/tc-tic54x.h +++ b/gas/config/tc-tic54x.h @@ -88,7 +88,7 @@ extern void tic54x_number_to_chars PARAMS((char *, valueT, int)); extern void tic54x_adjust_symtab PARAMS(()); #define tc_unrecognized_line(ch) tic54x_unrecognized_line(ch) extern int tic54x_unrecognized_line PARAMS((int ch)); -#define md_parse_name(s,e) tic54x_parse_name(s,e) +#define md_parse_name(s,e,c) tic54x_parse_name(s,e) extern int tic54x_parse_name PARAMS((char *name, expressionS *e)); #define md_undefined_symbol(s) tic54x_undefined_symbol(s) extern symbolS *tic54x_undefined_symbol PARAMS((char *name)); diff --git a/gas/expr.c b/gas/expr.c index 8ddc965c7aa..1fa5f7e2569 100644 --- a/gas/expr.c +++ b/gas/expr.c @@ -1231,7 +1231,7 @@ operand (expressionP) specially in certain contexts. If a name always has a specific value, it can often be handled by simply entering it in the symbol table. */ - if (md_parse_name (name, expressionP)) + if (md_parse_name (name, expressionP, &c)) { *input_line_pointer = c; break; -- 2.30.2