mips-hack
authorMatthias Klose <doko@debian.org>
Sun, 1 Jan 2023 12:37:39 +0000 (12:37 +0000)
committerMatthias Klose <doko@debian.org>
Sun, 1 Jan 2023 12:37:39 +0000 (12:37 +0000)
Gbp-Pq: Name mips-hack.diff

gas/config/tc-mips.c

index 9abdf389aca16434b2b67066ba015f3e20f9ff85..0182e36a347541abed4082377802eac0362a1b9d 100644 (file)
@@ -16728,6 +16728,9 @@ parse_code_option (char * name)
   else
     return OPTION_TYPE_BAD;
 
+  if (mips_opts.isa == ISA_MIPS1 && mips_opts.fp == 0)
+    mips_opts.isa = ISA_MIPS2;
+
   return isa_set ? OPTION_TYPE_ISA : OPTION_TYPE_NORMAL;
 }