gcc/ChangeLog:

        * config/csky/csky.c (csky_option_override):
        Init csky_arch_isa_features[]  advanced, so TARGET_DSP
        and TARGET_DIV can be set well.
---
 gcc/config/csky/csky.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/gcc/config/csky/csky.c b/gcc/config/csky/csky.c
index b2160b9..1a6cfd7 100644
--- a/gcc/config/csky/csky.c
+++ b/gcc/config/csky/csky.c
@@ -2680,6 +2680,18 @@ csky_option_override (void)
       TARGET_FDIVDU = 0;
     }
 
+  /* Initialize boolean versions of the architectural flags, for use
+     in the .md file.  */
+
+#undef CSKY_ISA
+#define CSKY_ISA(IDENT, DESC)                                            \
+  {                                                                      \
+    csky_arch_isa_features[CSKY_ISA_FEATURE_GET (IDENT)] =                \
+      bitmap_bit_p (csky_active_target.isa, CSKY_ISA_FEATURE_GET (IDENT)); \
+  }
+#include "csky_isa.def"
+#undef CSKY_ISA
+
   /* Extended LRW instructions are enabled by default on CK801, disabled
      otherwise.  */
   if (TARGET_ELRW == -1)
@@ -2752,18 +2764,6 @@ csky_option_override (void)
       TARGET_MULTIPLE_STLD = 0;
     }
 
-  /* Initialize boolean versions of the architectural flags, for use
-     in the .md file.  */
-
-#undef CSKY_ISA
-#define CSKY_ISA(IDENT, DESC)                                            \
-  {                                                                      \
-    csky_arch_isa_features[CSKY_ISA_FEATURE_GET (IDENT)] =                \
-      bitmap_bit_p (csky_active_target.isa, CSKY_ISA_FEATURE_GET (IDENT)); \
-  }
-#include "csky_isa.def"
-#undef CSKY_ISA
-
   /* TODO  */
 
   /* Resynchronize the saved target options.  */
-- 
2.7.4

Reply via email to