[ARC] Rename "class" named attributes.
authorClaudiu Zissulescu <claziss@synopsys.com>
Mon, 23 May 2016 15:25:46 +0000 (17:25 +0200)
committerClaudiu Zissulescu <claziss@synopsys.com>
Mon, 23 May 2016 15:25:46 +0000 (17:25 +0200)
gas/
2016-05-23  Cupertino Miranda  <cmiranda@synopsys.com>

* config/tc-arc.c (attributes_t): Renamed attribute class to
attr_class.
(find_opcode_match, assemble_insn, tokenize_extinsn): Changed.

opcode/
2016-05-23  Cupertino Miranda  <cmiranda@synopsys.com>

* arc-dis.c (find_format, find_format, get_auxreg)
(print_insn_arc): Changed.
* arc-ext.h (INSERT_XOP): Likewise.

include/
2016-05-23  Cupertino Miranda  <cmiranda@synopsys.com>

* opcode/arc.h (struct arc_opcode): Renamed attribute class to
insn_class.
(struct arc_flag_class): Renamed attribute class to flag_class.

gas/ChangeLog
gas/config/tc-arc.c
include/ChangeLog
include/opcode/arc.h
opcodes/ChangeLog
opcodes/arc-dis.c
opcodes/arc-ext.h

index 6bfc6d59c12cee34b0f87406aa0310590c19431b..a2b1dcbf8d3be8089a789c1873d31f53bb47410c 100644 (file)
@@ -1,3 +1,9 @@
+2016-05-23  Cupertino Miranda  <cmiranda@synopsys.com>
+
+       * config/tc-arc.c (attributes_t): Renamed attribute class to
+       attr_class.
+       (find_opcode_match, assemble_insn, tokenize_extinsn): Changed.
+
 2016-05-23  Kuba Sejdak  <jakub.sejdak@phoesys.com>
 
        * configuse.tgt: Add entry for arm-phoenix.
index c9d772f1503883fdb94206fce68f4ce1c635c1e6..7f8ca26fe79e0407508071d8d97223a3300155db 100644 (file)
@@ -98,8 +98,8 @@ enum arc_rlx_types
 #define is_spfp_p(op)           (((sc) == SPX))
 #define is_dpfp_p(op)           (((sc) == DPX))
 #define is_fpuda_p(op)          (((sc) == DPA))
-#define is_br_jmp_insn_p(op)    (((op)->class == BRANCH || (op)->class == JUMP))
-#define is_kernel_insn_p(op)    (((op)->class == KERNEL))
+#define is_br_jmp_insn_p(op)    (((op)->insn_class == BRANCH || (op)->insn_class == JUMP))
+#define is_kernel_insn_p(op)    (((op)->insn_class == KERNEL))
 
 /* Generic assembler global variables which must be defined by all
    targets.  */
@@ -323,7 +323,7 @@ typedef struct
 {
   const char *name;
   int  len;
-  int  class;
+  int  attr_class;
 } attributes_t;
 
 static const attributes_t suffixclass[] =
@@ -1692,7 +1692,7 @@ find_opcode_match (const struct arc_opcode_hash_entry *entry,
                    const char *p;
                    const struct arc_aux_reg *auxr;
 
-                   if (opcode->class != AUXREG)
+                   if (opcode->insn_class != AUXREG)
                      goto de_fault;
                    p = S_GET_NAME (tok[tokidx].X_add_symbol);
 
@@ -1846,7 +1846,7 @@ find_opcode_match (const struct arc_opcode_hash_entry *entry,
 
          /* Check for extension conditional codes.  */
          if (ext_condcode.arc_ext_condcode
-             && cl_flags->class & F_CLASS_EXTEND)
+             && cl_flags->flag_class & F_CLASS_EXTEND)
            {
              struct arc_flag_operand *pf = ext_condcode.arc_ext_condcode;
              while (pf->name)
@@ -1890,9 +1890,9 @@ find_opcode_match (const struct arc_opcode_hash_entry *entry,
                }
            }
 
-         if ((cl_flags->class & F_CLASS_REQUIRED) && cl_matches == 0)
+         if ((cl_flags->flag_class & F_CLASS_REQUIRED) && cl_matches == 0)
            goto match_failed;
-         if ((cl_flags->class & F_CLASS_OPTIONAL) && cl_matches > 1)
+         if ((cl_flags->flag_class & F_CLASS_OPTIONAL) && cl_matches > 1)
            goto match_failed;
        }
       /* Did I check all the parsed flags?  */
@@ -3614,7 +3614,7 @@ assemble_insn (const struct arc_opcode *opcode,
          switch (t->X_md)
            {
            case O_plt:
-             if (opcode->class == JUMP)
+             if (opcode->insn_class == JUMP)
                as_bad_where (frag_now->fr_file, frag_now->fr_line,
                              _("Unable to use @plt relocatio for insn %s"),
                              opcode->name);
@@ -3631,7 +3631,7 @@ assemble_insn (const struct arc_opcode *opcode,
              break;
            case O_pcl:
              reloc = ARC_RELOC_TABLE (t->X_md)->reloc;
-             if (ARC_SHORT (opcode->mask) || opcode->class == JUMP)
+             if (ARC_SHORT (opcode->mask) || opcode->insn_class == JUMP)
                as_bad_where (frag_now->fr_file, frag_now->fr_line,
                              _("Unable to use @pcl relocation for insn %s"),
                              opcode->name);
@@ -4063,7 +4063,7 @@ tokenize_extinsn (extInstruction_t *einsn)
          if (!strncmp (suffixclass[i].name, input_line_pointer,
                        suffixclass[i].len))
            {
-             suffix_class |= suffixclass[i].class;
+             suffix_class |= suffixclass[i].attr_class;
              input_line_pointer += suffixclass[i].len;
              break;
            }
@@ -4103,7 +4103,7 @@ tokenize_extinsn (extInstruction_t *einsn)
                        input_line_pointer,
                        syntaxclassmod[i].len))
            {
-             syntax_class_modifiers |= syntaxclassmod[i].class;
+             syntax_class_modifiers |= syntaxclassmod[i].attr_class;
              input_line_pointer += syntaxclassmod[i].len;
              break;
            }
@@ -4117,7 +4117,7 @@ tokenize_extinsn (extInstruction_t *einsn)
                            input_line_pointer,
                            syntaxclass[i].len))
                {
-                 syntax_class |= syntaxclass[i].class;
+                 syntax_class |= syntaxclass[i].attr_class;
                  input_line_pointer += syntaxclass[i].len;
                  break;
                }
index 4b452538640c95b93dc42de8f2691548b20d1edb..1e64ac33a651f7e7c8ffee78d2df84a2e32502b7 100644 (file)
@@ -1,3 +1,9 @@
+2016-05-23  Cupertino Miranda  <cmiranda@synopsys.com>
+
+       * opcode/arc.h (struct arc_opcode): Renamed attribute class to
+       insn_class.
+       (struct arc_flag_class): Renamed attribute class to flag_class.
+
 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
 
        * opcode/tic54x.h (struct symbol_): typedef to tic54x_symbol instead of
index d10e311404012087d7f0b425990203bb0ce35185..2e5de9c5ae070c1f6b3df88907d8e5f913b71e10 100644 (file)
@@ -116,7 +116,7 @@ struct arc_opcode
   unsigned cpu;
 
   /* The instruction class.  This is used by gdb.  */
-  insn_class_t class;
+  insn_class_t insn_class;
 
   /* The instruction subclass.  */
   insn_subclass_t subclass;
@@ -335,7 +335,7 @@ extern const unsigned arc_num_flag_operands;
 struct arc_flag_class
 {
   /* Flag class.  */
-  flag_class_t class;
+  flag_class_t flag_class;
 
   /* List of valid flags (codes).  */
   unsigned flags[256];
index 49822804c330e71c8676052086de1278644214cf..02d24197ec20cca2468bf505908f4143a99694c4 100644 (file)
@@ -1,3 +1,9 @@
+2016-05-23  Cupertino Miranda  <cmiranda@synopsys.com>
+
+       * arc-dis.c (find_format, find_format, get_auxreg)
+       (print_insn_arc): Changed.
+       * arc-ext.h (INSERT_XOP): Likewise.
+
 2016-05-23  Trevor Saunders  <tbsaunde+binutils@tbsaunde.org>
 
        * tic54x-dis.c (sprint_mmr): Adjust.
index 7757ef636cf3fcfabf76b91fc9eb4f514d67d20a..96fd092e8db2acbc6dec0f4abb1ff2d725735731 100644 (file)
@@ -175,7 +175,7 @@ find_format (const struct arc_opcode *arc_table,
        unsigned int value;
 
        /* Check first the extensions.  */
-       if (cl_flags->class & F_CLASS_EXTEND)
+       if (cl_flags->flag_class & F_CLASS_EXTEND)
          {
            value = (insn[0] & 0x1F);
            if (arcExtMap_condCodeName (value))
@@ -226,7 +226,7 @@ print_flags (const struct arc_opcode *opcode,
       const unsigned *flgopridx;
 
       /* Check first the extensions.  */
-      if (cl_flags->class & F_CLASS_EXTEND)
+      if (cl_flags->flag_class & F_CLASS_EXTEND)
        {
          const char *name;
          value = (insn[0] & 0x1F);
@@ -289,7 +289,7 @@ get_auxreg (const struct arc_opcode *opcode,
   unsigned int i;
   const struct arc_aux_reg *auxr = &arc_aux_regs[0];
 
-  if (opcode->class != AUXREG)
+  if (opcode->insn_class != AUXREG)
     return NULL;
 
   name = arcExtMap_auxRegName (value);
@@ -527,7 +527,7 @@ print_insn_arc (bfd_vma memaddr,
   (*info->fprintf_func) (info->stream, "%s", opcode->name);
 
   /* Preselect the insn class.  */
-  switch (opcode->class)
+  switch (opcode->insn_class)
     {
     case BRANCH:
     case JUMP:
index fcce7e2bd4ea1c81ba52fa4bb5f4bdbf9a7b38ee..e92a3506eeec84b0aff95cfd29ecbd31574a1125 100644 (file)
@@ -80,7 +80,7 @@ enum ExtReadWrite
     (OP)->opcode = CODE;                               \
     (OP)->mask   = MASK;                               \
     (OP)->cpu    = CPU;                                        \
-    (OP)->class  = ARITH;                              \
+    (OP)->insn_class  = ARITH;                         \
     (OP)->subclass = NONE;                             \
     memcpy ((OP)->operands, (ARG), MAX_INSN_ARGS);     \
     memcpy ((OP)->flags, (FLG), MAX_INSN_FLGS);                \
This page took 0.03294 seconds and 4 git commands to generate.