OSDN Git Service

* gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 19 Sep 2010 13:55:36 +0000 (13:55 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 19 Sep 2010 13:55:36 +0000 (13:55 +0000)
type instead of enumeral type as the dummy type built for the template
type of fat pointers.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164417 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/gcc-interface/decl.c

index b91bd5c..44a8890 100644 (file)
@@ -1,5 +1,11 @@
 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
 
+       * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
+       type instead of enumeral type as the dummy type built for the template
+       type of fat pointers.
+
+2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
+
        * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
        (gnat_zaplevel): Likewise.
        * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
index 32b499b..d1b0279 100644 (file)
@@ -3558,7 +3558,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entity, tree gnu_expr, int definition)
            gnu_type = TYPE_POINTER_TO (gnu_desig_type);
            if (!gnu_type)
              {
-               tree gnu_template_type = make_node (ENUMERAL_TYPE);
+               tree gnu_template_type = make_node (RECORD_TYPE);
                tree gnu_ptr_template = build_pointer_type (gnu_template_type);
                tree gnu_array_type = make_node (ENUMERAL_TYPE);
                tree gnu_ptr_array = build_pointer_type (gnu_array_type);