From patchwork Sun Sep 19 13:49:11 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Ada] Small adjustment in gigi Date: Sun, 19 Sep 2010 03:49:11 -0000 From: Eric Botcazou X-Patchwork-Id: 65161 Message-Id: <201009191549.11821.ebotcazou@adacore.com> To: gcc-patches@gnu.org This adjusts the type of the incomplete type, aka dummy type, built by gigi when fat pointers are being defined under certain circumstances. Tested on i586-suse-linux, applied on the mainline. 2010-09-19 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity) : Use record type instead of enumeral type as the dummy type built for the template type of fat pointers. Index: gcc-interface/decl.c =================================================================== --- gcc-interface/decl.c (revision 164416) +++ gcc-interface/decl.c (working copy) @@ -3558,7 +3558,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entit 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);