From patchwork Wed Nov 25 12:31:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 548522 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 351E41401E7 for ; Wed, 25 Nov 2015 23:31:22 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=Hu4QsX6j; 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=T9g twpM+cekU8VY7AXxunDH+FQ7rPtoLDUSDlQfnvF83dK0cDnX47XXLsLsG6kF/O6c damN6RNTF96CWPdXdIijDEOk/WTlxTt1Fx31McduOPDJfF2b3cNIivQLy9d/FaEz Sb3mlsfmQH73neR07Gy9RlBrfnUthPD0SiJ4bO50= 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=f8tOqLHo4 +c0m20aF6KN0pR0x4M=; b=Hu4QsX6jj+VyJKLkYRDWm8Ls60Lj2CjURzSY6CxfV RlgU4AkeBI5EacXRb1rBktOFyEPxKM233qsur15tLp8vG+arhsTaqWafcQeB7rIl uWb/c8fkauwvPyCv3CYG/Woz87hFxew6/qPgOeQV57jtNFsWd7wrWnFttTgHA6PU Qs= Received: (qmail 6324 invoked by alias); 25 Nov 2015 12:31:15 -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 6304 invoked by uid 89); 25 Nov 2015 12:31:14 -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) (146.101.78.143) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Nov 2015 12:31:14 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-5-Lx3lCPUSSwmadYsFMAztbA-1; Wed, 25 Nov 2015 12:31:09 +0000 Received: from localhost ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 25 Nov 2015 12:31:09 +0000 From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, richard.sandiford@arm.com Subject: [PR68432 11/22] Use code,alternative attributes for c6x References: <874mgajmo9.fsf@e105548-lin.cambridge.arm.com> Date: Wed, 25 Nov 2015 12:31:08 +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: <87poyygt0z.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: Lx3lCPUSSwmadYsFMAztbA-1 Tested as described in the covering note. I plan to commit this as obvious if the prerequisites are approved. gcc/ * config/c6x/c6x (enabled): Turn into a code,alternative attribute. diff --git a/gcc/config/c6x/c6x.md b/gcc/config/c6x/c6x.md index fa89587..8297514 100644 --- a/gcc/config/c6x/c6x.md +++ b/gcc/config/c6x/c6x.md @@ -216,7 +216,8 @@ (const_string "yes")) (define_attr "enabled" "no,yes" - (const_string "yes")) + (const_string "yes") + "code,alternative") ;; Specify which units can be used by a given instruction. Normally, ;; dest_regfile is used to select between the two halves of the machine.