varasm.c (output_constructor): Annotate constructor.
authorAndrew Haley <aph@redhat.com>
Tue, 21 Oct 2003 15:32:27 +0000 (15:32 +0000)
committerAndrew Haley <aph@gcc.gnu.org>
Tue, 21 Oct 2003 15:32:27 +0000 (15:32 +0000)
2003-10-21  Andrew Haley  <aph@redhat.com>

        * varasm.c (output_constructor): Annotate constructor.

From-SVN: r72759

gcc/ChangeLog
gcc/varasm.c

index ae773f0ba997bd2c99c15e199dec969bef76af12..f00f896a3e6b396387ee8b1ebc5d4d66a9fccc4f 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 561dc4ace229efd97b636f3d2ee963d5938c71c4..45681941d1a0f9cd3c2cf481c654ba0c720182d3 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);