mips-hack
authorMatthias Klose <doko@debian.org>
Mon, 3 Mar 2025 21:01:22 +0000 (22:01 +0100)
committerMatthias Klose <doko@debian.org>
Mon, 3 Mar 2025 21:01:22 +0000 (22:01 +0100)
Gbp-Pq: Name mips-hack.diff

gas/config/tc-mips.c

index 3c3383436115625734745ff16e9e7aa65b6ef51c..efd56bf6b000d4441b05caca0b23db8c99a5d2a6 100644 (file)
@@ -16745,6 +16745,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;
 }