From patchwork Fri Oct 22 21:57:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DJ Delorie X-Patchwork-Id: 68979 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]) by ozlabs.org (Postfix) with SMTP id 39A62B70CB for ; Sat, 23 Oct 2010 08:57:41 +1100 (EST) Received: (qmail 22982 invoked by alias); 22 Oct 2010 21:57:40 -0000 Received: (qmail 22973 invoked by uid 22791); 22 Oct 2010 21:57:40 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL, BAYES_00, MAY_BE_FORGED, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 22 Oct 2010 21:57:33 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9MLvWmd023892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 22 Oct 2010 17:57:32 -0400 Received: from greed.delorie.com ([10.3.112.3]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o9MLvSur016795 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 22 Oct 2010 17:57:31 -0400 Received: from greed.delorie.com (greed.delorie.com [127.0.0.1] (may be forged)) by greed.delorie.com (8.14.3/8.14.3) with ESMTP id o9MLvQor016919 for ; Fri, 22 Oct 2010 17:57:26 -0400 Received: (from dj@localhost) by greed.delorie.com (8.14.3/8.14.3/Submit) id o9MLvQb4016916; Fri, 22 Oct 2010 17:57:26 -0400 Date: Fri, 22 Oct 2010 17:57:26 -0400 Message-Id: <201010222157.o9MLvQb4016916@greed.delorie.com> From: DJ Delorie To: gcc-patches@gcc.gnu.org Subject: [m32c] document named address space option. X-IsSubscribed: yes 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 Here's the corresponding doc changes... Ok to apply? * doc/extend.texi (Named Address Spaces): Document the M32C named address space. Index: doc/extend.texi =================================================================== --- doc/extend.texi (revision 165861) +++ doc/extend.texi (working copy) @@ -1217,13 +1217,13 @@ Fixed-point types are supported by the D @cindex named address spaces As an extension, the GNU C compiler supports named address spaces as defined in the N1275 draft of ISO/IEC DTR 18037. Support for named address spaces in GCC will evolve as the draft technical report changes. Calling conventions for any target might also change. At present, only -the SPU target supports other address spaces. On the SPU target, for +the SPU and M32C targets support other address spaces. On the SPU target, for example, variables may be declared as belonging to another address space by qualifying the type with the @code{__ea} address space identifier: @smallexample extern int __ea i; @end smallexample @@ -1234,12 +1234,17 @@ support, or generate special machine ins space. The @code{__ea} identifier may be used exactly like any other C type qualifier (e.g., @code{const} or @code{volatile}). See the N1275 document for more details. +On the M32C target, with the R8C and M16C cpu variants, variables +qualified with @code{__far} are accessed using 32-bit addresses in +order to access memory beyond the first 64k bytes. If @code{__far} is +used with the M32CM or M32C cpu variants, it has no effect. + @node Zero Length @section Arrays of Length Zero @cindex arrays of length zero @cindex zero-length arrays @cindex length-zero arrays @cindex flexible array members