[Ada] Restrict initialization of External_Tag and Expanded_Name
authorJavier Miranda <miranda@adacore.com>
Wed, 23 May 2018 10:22:47 +0000 (10:22 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Wed, 23 May 2018 10:22:47 +0000 (10:22 +0000)
commit51ab2a39e9baae7fe1552daca02337050b11cfb6
treec0156481dff84dfa33dbdcd1b561a7c3de7a4f19
parent6734617cedcadfddfc33378ce824b4620381d91c
[Ada] Restrict initialization of External_Tag and Expanded_Name

2018-05-23  Javier Miranda  <miranda@adacore.com>

gcc/ada/

* exp_disp.adb (Make_DT): Restrict the initialization of
External_Tag and Expanded_Name to an empty string to the case where
both pragmas apply (i.e. No_Tagged_Streams and Discard_Names), since
restricted runtimes are compiled with pragma Discard_Names.
* doc/gnat_rm/implementation_defined_pragmas.rst,
doc/gnat_rm/implementation_defined_characteristics.rst: Add
documentation.
* gnat_rm.texi: Regenerate.

From-SVN: r260584
gcc/ada/ChangeLog
gcc/ada/doc/gnat_rm/implementation_defined_characteristics.rst
gcc/ada/doc/gnat_rm/implementation_defined_pragmas.rst
gcc/ada/exp_disp.adb
gcc/ada/gnat_rm.texi