This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Better handling of PIC suffixes in GAS expression parser


On Apr  9, 2001, Alexandre Oliva <aoliva@redhat.com> wrote:

> On Apr  9, 2001, Alan Modra <alan@linuxcare.com.au> wrote:
>>> I don't like changing hooks.

>> I think it worth the few changes you'd need to make, just so that we don't
>> have "old deprecated hooks" hanging around.

> Ok, will do.

Done.  Ok to install?  (note that the struc-symbol.h patch is missing;
I'll post it separately, since it's actually an unrelated change)

Index: gas/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* expr.c (operand): Pass &c to md_parse_name().
	* config/tc-ia64.h, config/tc-ppc.h, config/tc-tic54x.h: Adjust.

Index: gas/expr.c
===================================================================
RCS file: /cvs/src/src/gas/expr.c,v
retrieving revision 1.31
diff -u -p -r1.31 expr.c
--- gas/expr.c 2001/03/30 07:07:09 1.31
+++ gas/expr.c 2001/04/09 09:20:06
@@ -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;
Index: gas/config/tc-ia64.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ia64.h,v
retrieving revision 1.11
diff -u -p -r1.11 tc-ia64.h
--- gas/config/tc-ia64.h 2001/03/08 23:24:24 1.11
+++ gas/config/tc-ia64.h 2001/04/09 09:17:10
@@ -92,7 +92,7 @@ extern void ia64_handle_align PARAMS ((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)
Index: gas/config/tc-ppc.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-ppc.h,v
retrieving revision 1.9
diff -u -p -r1.9 tc-ppc.h
--- gas/config/tc-ppc.h 2001/03/08 23:24:24 1.9
+++ gas/config/tc-ppc.h 2001/04/09 09:17:10
@@ -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)
Index: gas/config/tc-tic54x.h
===================================================================
RCS file: /cvs/src/src/gas/config/tc-tic54x.h,v
retrieving revision 1.5
diff -u -p -r1.5 tc-tic54x.h
--- gas/config/tc-tic54x.h 2001/03/08 23:24:25 1.5
+++ gas/config/tc-tic54x.h 2001/04/09 09:17:12
@@ -88,7 +88,7 @@ extern void tic54x_number_to_chars PARAM
 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));

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]