mips-hack
authorMatthias Klose <doko@debian.org>
Thu, 10 Feb 2022 12:05:47 +0000 (12:05 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 10 Feb 2022 12:05:47 +0000 (12:05 +0000)
Gbp-Pq: Name mips-hack.diff

gas/config/tc-mips.c

index f632e94e020b6c05b86a073a5c68312a72222933..7bc62e569261ae4fd41a77237fcb7f3d4d761767 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;
 }