mips-hack
authorMatthias Klose <doko@debian.org>
Thu, 7 Jul 2022 10:29:59 +0000 (11:29 +0100)
committerMatthias Klose <doko@debian.org>
Thu, 7 Jul 2022 10:29:59 +0000 (11:29 +0100)
Gbp-Pq: Name mips-hack.diff

gas/config/tc-mips.c

index 406a04aeae6f97fb213dfabd4e578b0882952be9..9b64ff261b38d3d110fab34f14845c9c349638a5 100644 (file)
@@ -16734,6 +16734,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;
 }