From 88bdba96d92d97a61a674b1f4aa86364e0a1be60 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Mon, 21 Mar 1994 14:08:57 -0800 Subject: [PATCH] (source_label_number): New variable. (dbxout_source_file): Use it. Output an Ltext label. From-SVN: r6841 --- gcc/dbxout.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gcc/dbxout.c b/gcc/dbxout.c index c3e611d17a5..b5b58364e42 100644 --- a/gcc/dbxout.c +++ b/gcc/dbxout.c @@ -132,6 +132,11 @@ static int flag_minimal_debug = 1; static int have_used_extensions = 0; +/* Number for the next N_SOL filename stabs label. The number 0 is reserved + for the N_SO filename stabs label. */ + +static int source_label_number = 1; + char *getpwd (); /* Typical USG systems don't have stab.h, and they also have @@ -508,10 +513,13 @@ dbxout_source_file (file, filename) #ifdef DBX_OUTPUT_SOURCE_FILENAME DBX_OUTPUT_SOURCE_FILENAME (file, filename); #else - ASM_GENERATE_INTERNAL_LABEL (ltext_label_name, "Ltext", 0); + ASM_GENERATE_INTERNAL_LABEL (ltext_label_name, "Ltext", + 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]); + text_section (); + ASM_OUTPUT_INTERNAL_LABEL (asmfile, "Ltext", source_label_number++); #endif lastfile = filename; } -- 2.30.2