public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] C-SKY: Bug fix for bad setting of TARGET_DSP and TARGET_DIV.
@ 2021-04-30 12:59 Geng Qi
  0 siblings, 0 replies; only message in thread
From: Geng Qi @ 2021-04-30 12:59 UTC (permalink / raw)
  To: gcc-patches, cooper.qu; +Cc: Geng Qi

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-30 13:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 12:59 [PATCH] C-SKY: Bug fix for bad setting of TARGET_DSP and TARGET_DIV Geng Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).