OSDN Git Service

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Apr 2010 07:58:08 +0000 (07:58 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 14 Apr 2010 07:58:08 +0000 (07:58 +0000)
commitdd3b3682dc5dc5c388e306d7fbe35e4b4ebbcc5a
tree4b46042a0e42b435c60928bcc65d4be4f33502d8
parent5d0d06880c3419bd2707a0d8382305f6946eaf5c
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
comment.
* gcc-interface/trans.c (process_freeze_entity): Use local copy of
Ekind.  Return early for class-wide types.  Do not compute initializer
unless necessary.  Reuse the tree for an associated class-wide type
only if processing its root type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158295 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/class_wide1.adb [moved from gcc/testsuite/gnat.dg/class_wide.adb with 94% similarity]
gcc/testsuite/gnat.dg/class_wide2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/class_wide2.ads [new file with mode: 0644]