+2019-07-09 Arnaud Charlet <charlet@adacore.com>
+
+ * doc/gnat_ugn/the_gnat_compilation_model.rst: Update doc on
+ -fdump-ada-spec now that we generate Ada 2012.
+ * gnat_ugn.texi: Regenerate.
+
2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
* repinfo.adb (List_Common_Type_Info): New procedure extracted
* 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:
.. 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
errors (e.g. @code{shm_get} vs @code{SHM_GET}).
@end itemize
-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. @code{-gnat95}).
@menu
* Running the Binding Generator::
@example
$ g++ -c -fdump-ada-spec -C /usr/include/time.h
-$ gcc -c -gnat05 *.ads
+$ gcc -c *.ads
@end example
will generate, under GNU/Linux, the following files: @code{time_h.ads},