* config/tc-mips.c (mips16_ip): Handle a missing expression like
[deliverable/binutils-gdb.git] / gas / config / tc-mips.c
index 961c4349f56da0f16c2f2269860f36ddfae29a77..3eadbbe561a97d8a2b0eef0a8516a86b4f36b27e 100644 (file)
@@ -7144,7 +7144,12 @@ mips16_ip (str, ip)
                {
                  /* It looks like the expression was omitted before a
                      register indirection, which means that the
-                     expression is implicitly zero.  */
+                     expression is implicitly zero.  We still set up
+                     imm_expr, so that we handle explicit extensions
+                     correctly.  */
+                 imm_expr.X_op = O_constant;
+                 imm_expr.X_add_number = 0;
+                 imm_reloc = (int) BFD_RELOC_UNUSED + c;
                  continue;
                }
 
This page took 0.023721 seconds and 4 git commands to generate.