]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas/
authorJan Beulich <jbeulich@novell.com>
Thu, 10 Mar 2005 09:32:20 +0000 (09:32 +0000)
committerJan Beulich <jbeulich@novell.com>
Thu, 10 Mar 2005 09:32:20 +0000 (09:32 +0000)
2005-03-10  Jan Beulich  <jbeulich@novell.com>

* config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
* config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
crafted structure declarations with the types from macro.h.

gas/ChangeLog
gas/config/tc-tic54x.c
gas/config/tc-tic54x.h

index d47f020b91890aab7b3ee3869c4be0cee3cf159c..57a9b9437d589f8a1749dd5677fde2aeb1580267 100644 (file)
@@ -1,3 +1,9 @@
+2005-03-10  Jan Beulich  <jbeulich@novell.com>
+
+       * config/tc-tic54x.h (tic54x_macro_info): Change parameter type.
+       * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand-
+       crafted structure declarations with the types from macro.h.
+
 2005-03-09  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/tc-mips.c (s_cpsetup): Use '__gnu_local_gp' instead of '_gp'
index 5ff3fdd6a41c2cfb4298eb902e50e0fb5d382058..e08a4dfcdaa67a9d3166421e73fafd7e5d50f237 100644 (file)
@@ -2700,29 +2700,10 @@ tic54x_macro_start ()
 }
 
 void
-tic54x_macro_info (info)
-     void *info;
+tic54x_macro_info (macro)
+     const macro_entry *macro;
 {
-  struct formal_struct
-  {
-    struct formal_struct *next;        /* Next formal in list  */
-    sb name;                   /* Name of the formal  */
-    sb def;                    /* The default value  */
-    sb actual;                 /* The actual argument (changed on
-                                   each expansion) */
-    int index;                 /* The index of the formal
-                                   0 .. formal_count - 1 */
-  } *entry;
-  struct macro_struct
-  {
-    sb sub;                    /* Substitution text.  */
-    int formal_count;          /* Number of formal args.  */
-    struct formal_struct *formals;     /* Pointer to list of
-                                           formal_structs.  */
-    struct hash_control *formal_hash; /* Hash table of formals.  */
-  } *macro;
-
-  macro = (struct macro_struct *) info;
+  const formal_entry *entry;
 
   /* Put the formal args into the substitution symbol table.  */
   for (entry = macro->formals; entry; entry = entry->next)
index 07b1f67e98c0aff93619a078219ca2fded3deb10..5d36fdc4c04b6a415d480a7587c76c92f7a4b728 100644 (file)
@@ -97,7 +97,8 @@ extern void tic54x_macro_start (void);
 #define md_macro_end() tic54x_macro_end()
 extern void tic54x_macro_end (void);
 #define md_macro_info(args) tic54x_macro_info(args)
-extern void tic54x_macro_info PARAMS((void *macro));
+struct macro_struct;
+extern void tic54x_macro_info PARAMS((const struct macro_struct *));
 #define tc_frob_label(sym) tic54x_define_label (sym)
 extern void tic54x_define_label PARAMS((symbolS *));