mips-hack
authorMatthias Klose <doko@debian.org>
Sun, 2 Jan 2022 08:17:30 +0000 (08:17 +0000)
committerBastian Blank <waldi@debian.org>
Sun, 2 Jan 2022 08:17:30 +0000 (08:17 +0000)
Gbp-Pq: Name mips-hack.diff

gas/config/tc-mips.c

index 0201f8168147a2985b06a5ee9542b35307719b7e..afdf78a17da1931e0dc0591fce9826bbf49ac96c 100644 (file)
@@ -16741,6 +16741,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;
 }