OSDN Git Service

(dbxout_symbol): Give name ` ' to unnamed enums.
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Nov 1992 03:56:24 +0000 (03:56 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 7 Nov 1992 03:56:24 +0000 (03:56 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2709 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/dbxout.c

index 94fb6ca..447546e 100644 (file)
@@ -1542,7 +1542,9 @@ dbxout_symbol (decl, local)
            current_sym_addr = 0;
            current_sym_nchars = 2;
 
-           fprintf (asmfile, "%s \":T", ASM_STABS_OP);
+           /* Some debuggers fail when given NULL names, so give this a
+              harmless name of ` '.  */
+           fprintf (asmfile, "%s \" :T", ASM_STABS_OP);
            dbxout_type (type, 1, 0);
            dbxout_finish_symbol (NULL_TREE);
          }