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/defaults.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/defaults.h') diff --git a/gcc/defaults.h b/gcc/defaults.h index 9d38ba1..713ca07 100644 --- a/gcc/defaults.h +++ b/gcc/defaults.h @@ -932,7 +932,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see #elif defined SDB_DEBUGGING_INFO #define PREFERRED_DEBUGGING_TYPE SDB_DEBUG -#elif defined DWARF2_DEBUGGING_INFO +#elif defined DWARF2_DEBUGGING_INFO || defined DWARF2_LINENO_DEBUGGING_INFO #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG #elif defined VMS_DEBUGGING_INFO -- cgit v1.1