aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2010-10-22 18:26:59 -0400
committerDJ Delorie <dj@gcc.gnu.org>2010-10-22 18:26:59 -0400
commitb3f85ff2b7a16dcf31d6c2c60cfddc9d55d21d1a (patch)
tree44e893c26a2ad9454778ac9c51cbce89e61731d3 /gcc
parent5fd5d7136ebfaa5619f4d4c89e383d30446b1e0e (diff)
downloadgcc-b3f85ff2b7a16dcf31d6c2c60cfddc9d55d21d1a.zip
gcc-b3f85ff2b7a16dcf31d6c2c60cfddc9d55d21d1a.tar.gz
gcc-b3f85ff2b7a16dcf31d6c2c60cfddc9d55d21d1a.tar.bz2
extend.texi (Named Address Spaces): Document the M32C named address space.
* doc/extend.texi (Named Address Spaces): Document the M32C named address space. From-SVN: r165873
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/doc/extend.texi7
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2ddd304..52856cf 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2010-10-22 DJ Delorie <dj@redhat.com>
+ * doc/extend.texi (Named Address Spaces): Document the M32C named
+ address space.
+
* config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
__far address space.
* config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 0828ff1..c37e4b3 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -1220,7 +1220,7 @@ 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:
@@ -1237,6 +1237,11 @@ 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