aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/doc/gnat_ugn
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@adacore.com>2019-07-09 07:53:11 +0000
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>2019-07-09 07:53:11 +0000
commit0cb51ac7fb5f28e069cc2a6094a6c0188b1aa02e (patch)
tree3afcbd51f79ccf174149cfd2de1a8236bdce48df /gcc/ada/doc/gnat_ugn
parent7a26ff040e7b1d93e364010ac44f4b4797de778c (diff)
downloadgcc-0cb51ac7fb5f28e069cc2a6094a6c0188b1aa02e.zip
gcc-0cb51ac7fb5f28e069cc2a6094a6c0188b1aa02e.tar.gz
gcc-0cb51ac7fb5f28e069cc2a6094a6c0188b1aa02e.tar.bz2
[Ada] Update -fdump-ada-spec documentation
2019-07-09 Arnaud Charlet <charlet@adacore.com> gcc/ada/ * doc/gnat_ugn/the_gnat_compilation_model.rst: Update doc on -fdump-ada-spec now that we generate Ada 2012. * gnat_ugn.texi: Regenerate. From-SVN: r273264
Diffstat (limited to 'gcc/ada/doc/gnat_ugn')
-rw-r--r--gcc/ada/doc/gnat_ugn/the_gnat_compilation_model.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/ada/doc/gnat_ugn/the_gnat_compilation_model.rst b/gcc/ada/doc/gnat_ugn/the_gnat_compilation_model.rst
index 48fedfe..d7388bb 100644
--- a/gcc/ada/doc/gnat_ugn/the_gnat_compilation_model.rst
+++ b/gcc/ada/doc/gnat_ugn/the_gnat_compilation_model.rst
@@ -4531,8 +4531,9 @@ Some of the known limitations include:
* identifiers with identical name (except casing) will generate compilation
errors (e.g. ``shm_get`` vs ``SHM_GET``).
-The code generated is using the Ada 2005 syntax, which makes it
-easier to interface with other languages than previous versions of Ada.
+The code is generated using Ada 2012 syntax, which makes it easier to interface
+with other languages. In most cases you can still use the generated binding
+even if your code is compiled using earlier versions of Ada (e.g. ``-gnat95``).
.. _Running_the_binding_generator:
@@ -4547,7 +4548,7 @@ header files needed by these files transitively. For example:
.. code-block:: sh
$ g++ -c -fdump-ada-spec -C /usr/include/time.h
- $ gcc -c -gnat05 *.ads
+ $ gcc -c *.ads
will generate, under GNU/Linux, the following files: :file:`time_h.ads`,
:file:`bits_time_h.ads`, :file:`stddef_h.ads`, :file:`bits_types_h.ads` which