From patchwork Sat Apr 2 08:53:39 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [Ada] Do not make enumeration types always artificial Date: Fri, 01 Apr 2011 22:53:39 -0000 From: Eric Botcazou X-Patchwork-Id: 89439 Message-Id: <201104021053.39641.ebotcazou@adacore.com> To: gcc-patches@gcc.gnu.org Self-explanatory. Tested on i586-suse-linux, applied on the mainline. 2011-04-02 Eric Botcazou * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the DECL_ARTIFICIAL flag on enumeration types. Index: gcc-interface/decl.c =================================================================== --- gcc-interface/decl.c (revision 171883) +++ gcc-interface/decl.c (working copy) @@ -4960,9 +4960,7 @@ gnat_to_gnu_entity (Entity_Id gnat_entit SET_TYPE_RM_MIN_VALUE (gnu_scalar_type, gnu_low_bound); SET_TYPE_RM_MAX_VALUE (gnu_scalar_type, gnu_high_bound); - /* Write full debugging information. Since this has both a - typedef and a tag, avoid outputting the name twice. */ - DECL_ARTIFICIAL (gnu_decl) = 1; + /* Write full debugging information. */ rest_of_type_decl_compilation (gnu_decl); }