From c9665100d6ee2421d8dfe4d001d23019bd4e656b Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 14 Aug 2015 12:37:14 +0200 Subject: Add DWARF2_LINENO_DEBUGGING_INFO, and use it for nvptx gcc/ * config/nvptx/nvptx.c (nvptx_option_override): Don't override debug options. * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define. (DWARF2_DEBUGGING_INFO): Don't define. * debug.h (dwarf2_lineno_debug_hooks): Declare. * toplev.c (process_options): Add a case for it. * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable. (dwarf2out_init): Skip most initializations if DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that case. * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if DWARF2_LINENO_DEBUGGING_INFO. * opts.c (set_debug_level): Likewise. Co-Authored-By: Bernd Schmidt From-SVN: r226890 --- gcc/toplev.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index 0b0c7f1..d6efd0e 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1482,6 +1482,10 @@ process_options (void) else if (write_symbols == VMS_DEBUG || write_symbols == VMS_AND_DWARF2_DEBUG) debug_hooks = &vmsdbg_debug_hooks; #endif +#ifdef DWARF2_LINENO_DEBUGGING_INFO + else if (write_symbols == DWARF2_DEBUG) + debug_hooks = &dwarf2_lineno_debug_hooks; +#endif else error ("target system does not support the %qs debug format", debug_type_names[write_symbols]); -- cgit v1.1