diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-03-21 14:08:57 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-03-21 14:08:57 -0800 |
commit | 88bdba96d92d97a61a674b1f4aa86364e0a1be60 (patch) | |
tree | 09ab76e298c6c50dec7d7df33f16ac8b9ed2b7d1 /gcc | |
parent | a1a77352f64af201ef95c0acb964284194dcd278 (diff) | |
download | gcc-88bdba96d92d97a61a674b1f4aa86364e0a1be60.zip gcc-88bdba96d92d97a61a674b1f4aa86364e0a1be60.tar.gz gcc-88bdba96d92d97a61a674b1f4aa86364e0a1be60.tar.bz2 |
(source_label_number): New variable.
(dbxout_source_file): Use it. Output an Ltext label.
From-SVN: r6841
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/dbxout.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c index c3e611d..b5b5836 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; } |