gas/
authorJan Beulich <jbeulich@novell.com>
Tue, 8 Oct 2013 15:21:58 +0000 (15:21 +0000)
committerJan Beulich <jbeulich@novell.com>
Tue, 8 Oct 2013 15:21:58 +0000 (15:21 +0000)
2013-10-08  Jan Beulich <jbeulich@suse.com>

* tc-i386.c (check_word_reg): Remove misplaced "else".
(check_long_reg): Restore symmetry with check_word_reg.

gas/ChangeLog
gas/config/tc-i386.c

index 3712f8b996f712027ea6043d9136c7c037c964ee..58090047cadc9dd8c56b04a3633e6f363c059f41 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-08  Jan Beulich <jbeulich@suse.com>
+
+       * tc-i386.c (check_word_reg): Remove misplaced "else".
+       (check_long_reg): Restore symmetry with check_word_reg.
+
 2013-10-08  Jan Beulich <jbeulich@suse.com>
 
        * gas/config/tc-arm.c (do_t_push_pop): Honor inst.size_req. Simplify
index f4e5c5199a82cb60e0846034e5d4dd25fae6c603..32f6d48aac997b5034d67afceb1c0379e9e6e22d 100644 (file)
@@ -5434,13 +5434,10 @@ check_long_reg (void)
            return 0;
          }
 #if REGISTER_WARNINGS
-       else
-         as_warn (_("using `%s%s' instead of `%s%s' due to `%c' suffix"),
-                  register_prefix,
-                  (i.op[op].regs + REGNAM_EAX - REGNAM_AX)->reg_name,
-                  register_prefix,
-                  i.op[op].regs->reg_name,
-                  i.suffix);
+       as_warn (_("using `%s%s' instead of `%s%s' due to `%c' suffix"),
+                register_prefix,
+                (i.op[op].regs + REGNAM_EAX - REGNAM_AX)->reg_name,
+                register_prefix, i.op[op].regs->reg_name, i.suffix);
 #endif
       }
   /* Warn if the r prefix on a general reg is missing.  */
@@ -5546,14 +5543,11 @@ check_word_reg (void)
                    i.suffix);
            return 0;
          }
-       else
 #if REGISTER_WARNINGS
-         as_warn (_("using `%s%s' instead of `%s%s' due to `%c' suffix"),
-                  register_prefix,
-                  (i.op[op].regs + REGNAM_AX - REGNAM_EAX)->reg_name,
-                  register_prefix,
-                  i.op[op].regs->reg_name,
-                  i.suffix);
+       as_warn (_("using `%s%s' instead of `%s%s' due to `%c' suffix"),
+                register_prefix,
+                (i.op[op].regs + REGNAM_AX - REGNAM_EAX)->reg_name,
+                register_prefix, i.op[op].regs->reg_name, i.suffix);
 #endif
       }
   return 1;