From patchwork Wed Nov 25 12:30:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 548521 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id C6BEB1401E7 for ; Wed, 25 Nov 2015 23:31:01 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=rl6YuTUn; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=gei 6RfxvQkYoxXWo0A4YqHzp1u/kTOy6yTJPT8MCSBIkKwiPtN7Jzf2K8nTx1SyqlKT 9Ru0NPYxVoLdLB8djLohG5F43ujvbA/tndwYxIm8IFBLMClX0LKGdSd2kPEy+LdX LjQ55WYhrF0xaUU0g/+n94s4sXvOUuHZBkGvFe7w= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=default; bh=+N89odQMx QbDWkbAS9qtRFoKPOc=; b=rl6YuTUnMighR0eBESARTmO5oWdgul9GtOyS6KNYh D4crDRwwcuSh/ygVwv6TGtHYze10nftvCjPjveIeqKwog2w++v8T+026o8MJyVbo iiaoYxt/pQ3OWX7QueVC0ZHQLK+EXHrsVslUV0N+1rZCr219iRr60duAccM345WH CU= Received: (qmail 403 invoked by alias); 25 Nov 2015 12:30:49 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 130823 invoked by uid 89); 25 Nov 2015 12:30:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, SPF_PASS autolearn=ham version=3.3.2 X-HELO: eu-smtp-delivery-143.mimecast.com Received: from eu-smtp-delivery-143.mimecast.com (HELO eu-smtp-delivery-143.mimecast.com) (207.82.80.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Nov 2015 12:30:47 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-20-zNdbDazeQUiXACaW4XZjEA-1; Wed, 25 Nov 2015 12:30:42 +0000 Received: from localhost ([10.1.2.79]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 25 Nov 2015 12:30:41 +0000 From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [PR68432 10/22] Use code,alternative attributes for avr References: <874mgajmo9.fsf@e105548-lin.cambridge.arm.com> Date: Wed, 25 Nov 2015 12:30:42 +0000 In-Reply-To: <874mgajmo9.fsf@e105548-lin.cambridge.arm.com> (Richard Sandiford's message of "Wed, 25 Nov 2015 12:20:06 +0000") Message-ID: <87twoagt1p.fsf@e105548-lin.cambridge.arm.com> User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-MC-Unique: zNdbDazeQUiXACaW4XZjEA-1 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