This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PR68432 13/22] Use code,alternative attributes for m68k
- From: Richard Sandiford <richard dot sandiford at arm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 25 Nov 2015 12:31:53 +0000
- Subject: [PR68432 13/22] Use code,alternative attributes for m68k
- Authentication-results: sourceware.org; auth=none
- References: <874mgajmo9 dot fsf at e105548-lin dot cambridge dot arm dot com>
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])