From 33c7f925c66c9e03e95c3ceaf76cb65bf4d218c1 Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Sat, 26 Jan 2002 02:38:57 +0000 Subject: Index: gcc/ChangeLog * dbxout.c (dbxout_init): Use assemble_name rather than just stripping off the first character. (dbxout_source_file): Likewise. Index: gcc/testsuite/ChangeLog * gcc.dg/debug/debug.exp: New file. * gcc.dg/debug/trivial.c: New file. * gcc.dg/debug/20000503-1.c: Moved from gcc.dg/. * gcc.dg/debug/20010207-1.c: Moved from gcc.dg/. * gcc.dg/debug/20011223-1.c: Moved from gcc.dg/. * gcc.dg/debug/20020104-2.c: Moved from gcc.dg/. * gcc.dg/debug/debug-1.c: Moved from gcc.dg/. * gcc.dg/debug/debug-2.c: Moved from gcc.dg/. * gcc.dg/debug/debug-3.c: Moved from gcc.dg/. * gcc.dg/debug/debug-4.c: Moved from gcc.dg/. * gcc.dg/debug/debug-5.c: Moved from gcc.dg/. * gcc.dg/debug/debug-6.c: Moved from gcc.dg/. * gcc.dg/debug/dwarf2-1.c: Moved from gcc.dg/. * gcc.dg/debug/dwarf2-2.c: Moved from gcc.dg/. * gcc.dg/20000503-1.c: Removed. * gcc.dg/20010207-1.c: Removed. * gcc.dg/20011223-1.c: Removed. * gcc.dg/20020104-2.c: Removed. * gcc.dg/debug-1.c: Removed. * gcc.dg/debug-2.c: Removed. * gcc.dg/debug-3.c: Removed. * gcc.dg/debug-4.c: Removed. * gcc.dg/debug-5.c: Removed. * gcc.dg/debug-6.c: Removed. * gcc.dg/dwarf2-1.c: Removed. * gcc.dg/dwarf2-2.c: Removed. From-SVN: r49238 --- gcc/dbxout.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'gcc/dbxout.c') diff --git a/gcc/dbxout.c b/gcc/dbxout.c index abcbee0..f352745 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -439,7 +439,9 @@ dbxout_init (input_file_name) #else /* no DBX_OUTPUT_MAIN_SOURCE_DIRECTORY */ fprintf (asmfile, "%s", ASM_STABS_OP); output_quoted_string (asmfile, cwd); - fprintf (asmfile, ",%d,0,0,%s\n", N_SO, <ext_label_name[1]); + fprintf (asmfile, ",%d,0,0,", N_SO); + assemble_name (asmfile, ltext_label_name); + fputc ('\n', asmfile); #endif /* no DBX_OUTPUT_MAIN_SOURCE_DIRECTORY */ } } @@ -454,8 +456,9 @@ dbxout_init (input_file_name) /* Used to put `Ltext:' before the reference, but that loses on sun 4. */ fprintf (asmfile, "%s", ASM_STABS_OP); output_quoted_string (asmfile, input_file_name); - fprintf (asmfile, ",%d,0,0,%s\n", - N_SO, <ext_label_name[1]); + fprintf (asmfile, ",%d,0,0,", N_SO); + assemble_name (asmfile, ltext_label_name); + fputc ('\n', asmfile); text_section (); ASM_OUTPUT_INTERNAL_LABEL (asmfile, "Ltext", 0); #endif /* no DBX_OUTPUT_MAIN_SOURCE_FILENAME */ @@ -577,7 +580,9 @@ dbxout_source_file (file, filename) source_label_number); fprintf (file, "%s", ASM_STABS_OP); output_quoted_string (file, filename); - fprintf (file, ",%d,0,0,%s\n", N_SOL, <ext_label_name[1]); + fprintf (asmfile, ",%d,0,0,", N_SOL); + assemble_name (asmfile, ltext_label_name); + fputc ('\n', asmfile); if (current_function_decl != NULL_TREE && DECL_SECTION_NAME (current_function_decl) != NULL_TREE) ; /* Don't change section amid function. */ -- cgit v1.1