mips-hack
authorMatthias Klose <doko@debian.org>
Wed, 10 Jul 2024 10:55:51 +0000 (12:55 +0200)
committerMatthias Klose <doko@debian.org>
Wed, 10 Jul 2024 10:55:51 +0000 (12:55 +0200)
Gbp-Pq: Name mips-hack.diff

gas/config/tc-mips.c

index 8f54cb8937af379e07a83ab431d5c1239dbe148c..186021661d916f25b2b63d22a9c4ae9fdc27ccea 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;
 }