+2014-12-12  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * mips-tdep.h (MSYMBOL_TARGET_FLAG_MIPS16): New macro.
+       (MSYMBOL_TARGET_FLAG_MICROMIPS): Likewise.
+       * mips-tdep.c (mips_elf_make_msymbol_special): Use the new
+       macros.
+       (msymbol_is_mips, msymbol_is_mips16, msymbol_is_micromips):
+       Likewise.
+
 2014-12-12  Andreas Arnez  <arnez@linux.vnet.ibm.com>
 
        * completer.c: Include "target.h", "reggroups.h", and
 
 
   if (ELF_ST_IS_MICROMIPS (st_other))
     {
-      MSYMBOL_TARGET_FLAG_2 (msym) = 1;
+      MSYMBOL_TARGET_FLAG_MICROMIPS (msym) = 1;
       SET_MSYMBOL_VALUE_ADDRESS (msym, MSYMBOL_VALUE_RAW_ADDRESS (msym) | 1);
     }
   else if (ELF_ST_IS_MIPS16 (st_other))
     {
-      MSYMBOL_TARGET_FLAG_1 (msym) = 1;
+      MSYMBOL_TARGET_FLAG_MIPS16 (msym) = 1;
       SET_MSYMBOL_VALUE_ADDRESS (msym, MSYMBOL_VALUE_RAW_ADDRESS (msym) | 1);
     }
 }
 static int
 msymbol_is_mips (struct minimal_symbol *msym)
 {
-  return !(MSYMBOL_TARGET_FLAG_1 (msym) | MSYMBOL_TARGET_FLAG_2 (msym));
+  return !(MSYMBOL_TARGET_FLAG_MIPS16 (msym)
+          | MSYMBOL_TARGET_FLAG_MICROMIPS (msym));
 }
 
 /* Return one iff MSYM refers to MIPS16 code.  */
 static int
 msymbol_is_mips16 (struct minimal_symbol *msym)
 {
-  return MSYMBOL_TARGET_FLAG_1 (msym);
+  return MSYMBOL_TARGET_FLAG_MIPS16 (msym);
 }
 
 /* Return one iff MSYM refers to microMIPS code.  */
 static int
 msymbol_is_micromips (struct minimal_symbol *msym)
 {
-  return MSYMBOL_TARGET_FLAG_2 (msym);
+  return MSYMBOL_TARGET_FLAG_MICROMIPS (msym);
 }
 
 /* Set the ISA bit in the main symbol too, complementing the corresponding
 
     ISA_MICROMIPS
   };
 
+/* Corresponding MSYMBOL_TARGET_FLAG aliases.  */
+#define MSYMBOL_TARGET_FLAG_MIPS16 MSYMBOL_TARGET_FLAG_1
+#define MSYMBOL_TARGET_FLAG_MICROMIPS MSYMBOL_TARGET_FLAG_2
+
 /* Return the MIPS ISA's register size.  Just a short cut to the BFD
    architecture's word size.  */
 extern int mips_isa_regsize (struct gdbarch *gdbarch);