aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/doc
diff options
context:
space:
mode:
authorBob Duff <duff@adacore.com>2019-08-19 08:37:39 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-08-19 08:37:39 +0000
commit8fd97fcdba9da64bfd0988122e012057d0a6ed40 (patch)
tree8d683bc57edc12cc616ba91fe94cb077b5aa6cd7 /gcc/ada/doc
parentc27a8bce8a2d215cf265d15f8b57f379ad4d16a0 (diff)
downloadgcc-8fd97fcdba9da64bfd0988122e012057d0a6ed40.zip
gcc-8fd97fcdba9da64bfd0988122e012057d0a6ed40.tar.gz
gcc-8fd97fcdba9da64bfd0988122e012057d0a6ed40.tar.bz2
[Ada] Fix documentation for stream oriented attributes
2019-08-19 Bob Duff <duff@adacore.com> gcc/ada/ * doc/gnat_rm/implementation_advice.rst: Fix documentation for stream oriented attributes. * gnat_rm.texi: Regenerate. From-SVN: r274666
Diffstat (limited to 'gcc/ada/doc')
-rw-r--r--gcc/ada/doc/gnat_rm/implementation_advice.rst28
1 files changed, 14 insertions, 14 deletions
diff --git a/gcc/ada/doc/gnat_rm/implementation_advice.rst b/gcc/ada/doc/gnat_rm/implementation_advice.rst
index b006f32..31376d9 100644
--- a/gcc/ada/doc/gnat_rm/implementation_advice.rst
+++ b/gcc/ada/doc/gnat_rm/implementation_advice.rst
@@ -703,23 +703,23 @@ Followed.
.. index:: Stream oriented attributes
-RM 13.13.2(17): Stream Oriented Attributes
-==========================================
+RM 13.13.2(1.6): Stream Oriented Attributes
+===========================================
+
+ "If not specified, the value of Stream_Size for an elementary type
+ should be the number of bits that corresponds to the minimum number of
+ stream elements required by the first subtype of the type, rounded up
+ to the nearest factor or multiple of the word size that is also a
+ multiple of the stream element size."
- "If a stream element is the same size as a storage element, then the
- normal in-memory representation should be used by ``Read`` and
- ``Write`` for scalar objects. Otherwise, ``Read`` and ``Write``
- should use the smallest number of stream elements needed to represent
- all values in the base range of the scalar type."
+Followed, except that the number of stream elements is a power of 2.
+The Stream_Size may be used to override the default choice.
-Followed. By default, GNAT uses the interpretation suggested by AI-195,
-which specifies using the size of the first subtype.
However, such an implementation is based on direct binary
-representations and is therefore target- and endianness-dependent.
-To address this issue, GNAT also supplies an alternate implementation
-of the stream attributes ``Read`` and ``Write``,
-which uses the target-independent XDR standard representation
-for scalar types.
+representations and is therefore target- and endianness-dependent. To
+address this issue, GNAT also supplies an alternate implementation of
+the stream attributes ``Read`` and ``Write``, which uses the
+target-independent XDR standard representation for scalar types.
.. index:: XDR representation