[PR68432 18/22] Use code,alternative attributes for sparc

Richard Sandiford richard.sandiford@arm.com
Wed Nov 25 12:34:00 GMT 2015


Tested as described in the covering note.  I plan to commit this as obvious
if the prerequisites are approved.

gcc/
	* config/sparc/sparc.md (cpu_feature): Turn into a code,alternative
	attribute.
	(enabled): Likewise.

diff --git a/gcc/config/sparc/sparc.md b/gcc/config/sparc/sparc.md
index 5c32689..56c1227 100644
--- a/gcc/config/sparc/sparc.md
+++ b/gcc/config/sparc/sparc.md
@@ -247,7 +247,9 @@
 	 (symbol_ref "TARGET_SPARCLET") (const_string "sparclet")]
 	(const_string "v7"))))
 
-(define_attr "cpu_feature" "none,fpu,fpunotv9,v9,vis,vis3" (const_string "none"))
+(define_attr "cpu_feature" "none,fpu,fpunotv9,v9,vis,vis3"
+  (const_string "none")
+  "code,alternative")
 
 (define_attr "enabled" ""
   (cond [(eq_attr "cpu_feature" "none") (const_int 1)
@@ -256,7 +258,8 @@
          (eq_attr "cpu_feature" "v9") (symbol_ref "TARGET_V9")
          (eq_attr "cpu_feature" "vis") (symbol_ref "TARGET_VIS")
          (eq_attr "cpu_feature" "vis3") (symbol_ref "TARGET_VIS3")]
-        (const_int 0)))
+        (const_int 0))
+  "code,alternative")
 
 ;; Insn type.
 (define_attr "type"



More information about the Gcc-patches mailing list