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 --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])

Reply via email to