]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-i386.c
x86-64: avoid bogus warnings with 32-bit addressing
[thirdparty/binutils-gdb.git] / gas / config / tc-i386.c
index 9dbe6dcd954f90d0948092b5da43c50b7074327a..249f1c366781541385bdc63b36584deb3d934a03 100644 (file)
@@ -5932,6 +5932,8 @@ optimize_disp (void)
                 || i.types[op].bitfield.disp16)
                && fits_in_disp8 (op_disp))
              i.types[op].bitfield.disp8 = 1;
+
+           i.op[op].disps->X_add_number = op_disp;
          }
        else if (i.reloc[op] == BFD_RELOC_386_TLS_DESC_CALL
                 || i.reloc[op] == BFD_RELOC_X86_64_TLSDESC_CALL)