From 9d1470857bd6726bc7f3613d79dcf9113da36283 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Fri, 17 Nov 2000 15:53:38 -0800 Subject: 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 --- gcc/dwarf2out.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/dwarf2out.c') 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 -- cgit v1.1