* config/tc-mmix.c (get_putget_operands): Mark both possible
authorHans-Peter Nilsson <hp@axis.com>
Sun, 10 Nov 2002 18:35:51 +0000 (18:35 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Sun, 10 Nov 2002 18:35:51 +0000 (18:35 +0000)
operands as invalid at beginning.

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

index 447b01dd569e7266929b34fe29852b98ebc5bb35..4f25aae6e3cc054916a009095d30ab5b43c03170 100644 (file)
@@ -1,5 +1,8 @@
 2002-11-10  Hans-Peter Nilsson  <hp@bitrange.com>
 
+       * config/tc-mmix.c (get_putget_operands): Mark both possible
+       operands as invalid at beginning.
+
        * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
        Initialize target of fixup to zero.
 
index b22ad2ee3567dbbae34464298b1aa5db060e5568..1a5f7ae44342f7d0b22d32b9b42c55e1dfbca580 100644 (file)
@@ -542,6 +542,11 @@ get_putget_operands (insn, operands, exp)
 
   input_line_pointer = p;
 
+  /* Initialize both possible operands to error state, in case we never
+     get further.  */
+  exp[0].X_op = O_illegal;
+  exp[1].X_op = O_illegal;
+
   if (insn->operands == mmix_operands_get)
     {
       expp_reg = &exp[0];
@@ -573,10 +578,6 @@ get_putget_operands (insn, operands, exp)
       expp_sreg = &exp[0];
       expp_reg = &exp[1];
 
-      /* Initialize to error state in case we'll never call expression on
-         this operand.  */
-      expp_reg->X_op = O_illegal;
-
       sregp = p;
       c = get_symbol_end ();
       sregend = p = input_line_pointer;
This page took 0.030555 seconds and 4 git commands to generate.