mips-hack
authorMatthias Klose <doko@debian.org>
Sun, 25 Aug 2024 15:32:28 +0000 (17:32 +0200)
committerMatthias Klose <doko@debian.org>
Sun, 25 Aug 2024 15:32:28 +0000 (17:32 +0200)
Gbp-Pq: Name mips-hack.diff

gas/config/tc-mips.c

index 28d3ed839a4519555ee67ed4534ec369a4fe12a1..cb7f391013c3662b562b10bb5baa030cd07eccc3 100644 (file)
@@ -16748,6 +16748,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;
 }