diff mbox

[PR68432,13/22] Use code,alternative attributes for m68k

Message ID 87h9kagszq.fsf@e105548-lin.cambridge.arm.com
State New
Headers show

Commit Message

Richard Sandiford Nov. 25, 2015, 12:31 p.m. UTC
Tested as described in the covering note.  I plan to commit this as obvious
if the prerequisites are approved.

gcc/
	* config/m68k/m68k.md (ok_for_coldfire): Turn into a code,alternative
	attribute.
	(enabled): Likewise.
diff mbox

Patch

diff --git a/gcc/config/m68k/m68k.md b/gcc/config/m68k/m68k.md
index 1c7309b..e391927 100644
--- a/gcc/config/m68k/m68k.md
+++ b/gcc/config/m68k/m68k.md
@@ -248,14 +248,17 @@ 
   (symbol_ref "m68k_sched_attr_size (insn)"))
 
 ;; Alternative is OK for ColdFire.
-(define_attr "ok_for_coldfire" "yes,no" (const_string "yes"))
+(define_attr "ok_for_coldfire" "yes,no"
+  (const_string "yes")
+  "code,alternative")
 
 ;; Define 'enabled' attribute.
 (define_attr "enabled" ""
   (cond [(and (match_test "TARGET_COLDFIRE")
 	      (eq_attr "ok_for_coldfire" "no"))
 	 (const_int 0)]
- 	(const_int 1)))
+ 	(const_int 1))
+  "code,alternative")
 
 ;; Mode macros for integer operations.
 (define_mode_iterator I [QI HI SI])