This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PR68432 10/22] Use code,alternative attributes for avr
- 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:30:42 +0000
- Subject: [PR68432 10/22] Use code,alternative attributes for avr
- 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/avr/avr.md (isa): Turn into a code,alternative attribute.
(enabled): Likewise.
diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md
index 1b39ddb..eb200ce 100644
--- a/gcc/config/avr/avr.md
+++ b/gcc/config/avr/avr.md
@@ -173,7 +173,8 @@
(define_attr "isa"
"mov,movw, rjmp,jmp, ijmp,eijmp, lpm,lpmx, elpm,elpmx, no_xmega,xmega, no_tiny,tiny,
standard"
- (const_string "standard"))
+ (const_string "standard")
+ "code,alternative")
(define_attr "enabled" ""
(cond [(eq_attr "isa" "standard")
@@ -235,7 +236,8 @@
(match_test "!AVR_TINY"))
(const_int 1)
- ] (const_int 0)))
+ ] (const_int 0))
+ "code,alternative")
;; Define mode iterators