2003-10-21 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Oct 2003 15:32:27 +0000 (15:32 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Oct 2003 15:32:27 +0000 (15:32 +0000)
        * varasm.c (output_constructor): Annotate constructor.

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

gcc/ChangeLog
gcc/varasm.c

index ae773f0..f00f896 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-21  Andrew Haley  <aph@redhat.com>
+
+       * varasm.c (output_constructor): Annotate constructor.
+
 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
 
        * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
index 561dc4a..4568194 100644 (file)
@@ -3931,6 +3931,13 @@ output_constructor (tree exp, unsigned HOST_WIDE_INT size,
       else if (TREE_CODE (type) == ARRAY_TYPE)
        index = TREE_PURPOSE (link);
 
+      if (field && flag_verbose_asm)
+       fprintf (asm_out_file, "%s %s:\n",
+                ASM_COMMENT_START, 
+                DECL_NAME (field) 
+                ? IDENTIFIER_POINTER (DECL_NAME (field))
+                : "<anonymous>");
+
       /* Eliminate the marker that makes a cast not be an lvalue.  */
       if (val != 0)
        STRIP_NOPS (val);