mips-hack
authorMatthias Klose <doko@debian.org>
Wed, 10 Jun 2026 06:16:33 +0000 (08:16 +0200)
committerMatthias Klose <doko@debian.org>
Wed, 10 Jun 2026 06:16:33 +0000 (08:16 +0200)
Gbp-Pq: Name mips-hack.diff

gas/config/tc-mips.c

index afe8e1a691812e6e93119773048f400a706a1a35..097a70b429455c84b3e99d83cd246995fa72e5f5 100644 (file)
@@ -17074,6 +17074,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;
 }