Patchwork [Ada] Do not make enumeration types always artificial

login
register
mail settings
Submitter Eric Botcazou
Date April 2, 2011, 8:53 a.m.
Message ID <201104021053.39641.ebotcazou@adacore.com>
Download mbox | patch
Permalink /patch/89439/
State New
Headers show

Comments

Eric Botcazou - April 2, 2011, 8:53 a.m.
Self-explanatory.

Tested on i586-suse-linux, applied on the mainline.


2011-04-02  Eric Botcazou  <ebotcazou@adacore.com>

	* gcc-interface/decl.c (gnat_to_gnu_entity): Do not force the
	DECL_ARTIFICIAL flag on enumeration types.

Patch

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);
 	}