From patchwork Thu Jul 17 02:25:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DJ Delorie X-Patchwork-Id: 370939 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 146BC14009B for ; Thu, 17 Jul 2014 12:26:04 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :message-id:from:to:subject; q=dns; s=default; b=rKkKUAKE1y9b6Vu JcFyUoVzSFamr9MYTvYuHWuQPgGc4oxBW0awknqWwvkz03wroVwXoeI+QqEEkLO+ lKTbHilS1zXG+pvj6kZkPLSpxs2An6yJbx0Vrf1FbR1mABR7cPHT8Zrc2NDScb8N GERO1BfOUEV2mYTdUn2mBN+HVDfw= 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:date :message-id:from:to:subject; s=default; bh=MCXYIuvoDZRQvbN9OshOn jKvcfM=; b=HbO/hzq2NEPjXPA9UIrxhngYSiu8QbR2tPzJ5isxwsZmBYUlr+R1l DiBz7cKnQg/VrSeruRg2PEQBBA4Jrjewvu3s0jYhSy3WvVYSqj/fRKnCFCkOw8G3 q25CSERHwxml+RdSoAixC16f8O6Tkv4RBjdk3Zk245dOJc16xSr5yE= Received: (qmail 13279 invoked by alias); 17 Jul 2014 02:25:48 -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 12581 invoked by uid 89); 17 Jul 2014 02:25:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 17 Jul 2014 02:25:09 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s6H2P7G4019139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 16 Jul 2014 22:25:07 -0400 Received: from greed.delorie.com ([10.3.113.2]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s6H2P6eS018463 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 16 Jul 2014 22:25:07 -0400 Received: from greed.delorie.com (greed.delorie.com [127.0.0.1]) by greed.delorie.com (8.14.4/8.14.4) with ESMTP id s6H2P5sR017491 for ; Wed, 16 Jul 2014 22:25:05 -0400 Received: (from dj@localhost) by greed.delorie.com (8.14.4/8.14.4/Submit) id s6H2P5i4017490; Wed, 16 Jul 2014 22:25:05 -0400 Date: Wed, 16 Jul 2014 22:25:05 -0400 Message-Id: <201407170225.s6H2P5i4017490@greed.delorie.com> From: DJ Delorie To: gcc-patches@gcc.gnu.org Subject: [rx] fix some alignment constants X-IsSubscribed: yes Minor bugfix, committed. * config/rx/rx.c (rx_option_override): Fix alignment values. (rx_align_for_label): Likewise. Index: config/rx/rx.c =================================================================== --- config/rx/rx.c (revision 212709) +++ config/rx/rx.c (working copy) @@ -2787,12 +2787,13 @@ rx_override_options_after_change (); + /* These values are bytes, not log. */ if (align_jumps == 0 && ! optimize_size) - align_jumps = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 2 : 3); + align_jumps = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 4 : 8); if (align_loops == 0 && ! optimize_size) - align_loops = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 2 : 3); + align_loops = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 4 : 8); if (align_labels == 0 && ! optimize_size) - align_labels = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 2 : 3); + align_labels = ((rx_cpu_type == RX100 || rx_cpu_type == RX200) ? 4 : 8); } @@ -3199,9 +3200,10 @@ if (optimize_size) return 0; + /* These values are log, not bytes. */ if (rx_cpu_type == RX100 || rx_cpu_type == RX200) - return 2; - return 2; + return 2; /* 4 bytes */ + return 3; /* 8 bytes */ } static int