]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/nds32/nds32.c
[NDS32] Add -march=v3j.
[thirdparty/gcc.git] / gcc / config / nds32 / nds32.c
index a0b6443e5d21930874fd69f64511bce3a07b28eb..85a29865c7a31e29e6e0a56e69608ae9d83329c8 100644 (file)
@@ -4087,7 +4087,9 @@ nds32_option_override (void)
     }
   if (TARGET_ISA_V3)
     {
-      /* Under V3 ISA, currently nothing should be strictly set.  */
+      /* If this is ARCH_V3J, we need to enable TARGET_REDUCED_REGS.  */
+      if (nds32_arch_option == ARCH_V3J)
+       target_flags |= MASK_REDUCED_REGS;
     }
   if (TARGET_ISA_V3M)
     {