aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2001-07-10 11:54:38 -0400
committerJason Merrill <jason@gcc.gnu.org>2001-07-10 11:54:38 -0400
commit8aaf55acebcd09df62ecef78d9fda9f033b7ebcf (patch)
treedcd1e3811c80fd9457f69e5fec03ebf731b9cb47
parent84db136d7c157f2268499ade5ae9cedf54d1fa5d (diff)
downloadgcc-8aaf55acebcd09df62ecef78d9fda9f033b7ebcf.zip
gcc-8aaf55acebcd09df62ecef78d9fda9f033b7ebcf.tar.gz
gcc-8aaf55acebcd09df62ecef78d9fda9f033b7ebcf.tar.bz2
dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have .loc support.
* dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have .loc support. From-SVN: r43904
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/dwarf2out.c11
2 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e408ec4..2c524a3 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2001-07-10 Jason Merrill <jason_merrill@redhat.com>
+ * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
+ .loc support.
+
* collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
(dump_file): Only pad the demangled name with spaces if the
mangled name was padded with spaces.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index f5b508c..a20e5cb 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -11202,6 +11202,11 @@ dwarf2out_line (filename, line)
{
function_section (current_function_decl);
+ /* If requested, emit something human-readable. */
+ if (flag_debug_asm)
+ fprintf (asm_out_file, "\t%s %s:%d\n", ASM_COMMENT_START,
+ filename, line);
+
if (DWARF2_ASM_LINE_DEBUG_INFO)
{
unsigned file_num = lookup_filename (filename);
@@ -11221,9 +11226,6 @@ dwarf2out_line (filename, line)
register dw_separate_line_info_ref line_info;
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, SEPARATE_LINE_CODE_LABEL,
separate_line_info_table_in_use);
- if (flag_debug_asm)
- fprintf (asm_out_file, "\t%s %s:%d\n", ASM_COMMENT_START,
- filename, line);
/* expand the line info table if necessary */
if (separate_line_info_table_in_use
@@ -11250,9 +11252,6 @@ dwarf2out_line (filename, line)
ASM_OUTPUT_INTERNAL_LABEL (asm_out_file, LINE_CODE_LABEL,
line_info_table_in_use);
- if (flag_debug_asm)
- fprintf (asm_out_file, "\t%s %s:%d\n", ASM_COMMENT_START,
- filename, line);
/* Expand the line info table if necessary. */
if (line_info_table_in_use == line_info_table_allocated)