From a63067c24870d211f8a9398743920fc35cf71326 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Sat, 7 Nov 1992 03:56:24 +0000 Subject: [PATCH] (dbxout_symbol): Give name ` ' to unnamed enums. From-SVN: r2709 --- gcc/dbxout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/dbxout.c b/gcc/dbxout.c index 94fb6ca98e6..447546e4ac3 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -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); } -- 2.30.2