decl.c (gnat_to_gnu_entity): Remove dead code.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 1 Aug 2008 12:39:57 +0000 (12:39 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 1 Aug 2008 12:39:57 +0000 (12:39 +0000)
commit8df2e9022925c06ab369d74a301bcf081ddc417e
treef4efd12be81b0704af9d6a64d314a9b55e716b01
parent5c3554b7ad2c8041a923228037141f83c9e70fc6
decl.c (gnat_to_gnu_entity): Remove dead code.

2008-08-01  Eric Botcazou  <ebotcazou@adacore.com>

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
code.  Do not get full definition of deferred constants with address
clause for a use.  Do not ignore deferred constant definitions with
address clause.  Ignore constant definitions already marked with the
error node.
<object>: Remove obsolete comment.  For a deferred constant with
address clause, get the initializer from the full view.
* gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
Rework and remove obsolete comment.
<N_Object_Declaration>: For a deferred constant with address clause,
mark the full view with the error node.
*  gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
formatting nits.

From-SVN: r138513
12 files changed:
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/trans.c
gcc/ada/gcc-interface/utils.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/deferred_const1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/deferred_const2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/deferred_const2_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/deferred_const2_pkg.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/deferred_const3.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/deferred_const3_pkg.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/deferred_const3_pkg.ads [new file with mode: 0644]