aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2000-11-17 15:53:38 -0800
committerRichard Henderson <rth@gcc.gnu.org>2000-11-17 15:53:38 -0800
commit9d1470857bd6726bc7f3613d79dcf9113da36283 (patch)
treef71aaf32418bdb5d774b9090aea6ac661b94971b /gcc/dwarf2out.c
parent5b87e928be9fb73c2af33310bf110452f2fdd98f (diff)
downloadgcc-9d1470857bd6726bc7f3613d79dcf9113da36283.zip
gcc-9d1470857bd6726bc7f3613d79dcf9113da36283.tar.gz
gcc-9d1470857bd6726bc7f3613d79dcf9113da36283.tar.bz2
configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New.
* configure.in (HAVE_AS_DWARF2_DEBUG_LINE): New. Detect whether as accepts .file/.loc and produces dwarf2 line info. * dwarf2out.c (DWARF2_ASM_LINE_DEBUG_INFO): Default on if the assembler supports it. * config.in, configure: Regenerate. From-SVN: r37534
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index a96c01d..dba0147 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -3127,10 +3127,14 @@ extern int flag_traditional;
(DWARF_ROUND (2 * DWARF_OFFSET_SIZE + 4, DWARF2_ADDR_SIZE * 2) \
- (2 * DWARF_OFFSET_SIZE + 4))
-/* The default is to have gcc emit the line number tables. */
+/* Use assembler line directives if available. */
#ifndef DWARF2_ASM_LINE_DEBUG_INFO
+#ifdef HAVE_AS_DWARF2_DEBUG_LINE
+#define DWARF2_ASM_LINE_DEBUG_INFO 1
+#else
#define DWARF2_ASM_LINE_DEBUG_INFO 0
#endif
+#endif
/* Define the architecture-dependent minimum instruction length (in bytes).
In this implementation of DWARF, this field is used for information