diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2015-08-14 12:37:14 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gcc.gnu.org> | 2015-08-14 12:37:14 +0200 |
commit | c9665100d6ee2421d8dfe4d001d23019bd4e656b (patch) | |
tree | 8189e99af744125ec05335a8f2882bd1a974d006 /gcc/debug.h | |
parent | 4436a80d12ba748d790b0c699641a065a5599a3d (diff) | |
download | gcc-c9665100d6ee2421d8dfe4d001d23019bd4e656b.zip gcc-c9665100d6ee2421d8dfe4d001d23019bd4e656b.tar.gz gcc-c9665100d6ee2421d8dfe4d001d23019bd4e656b.tar.bz2 |
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 <bernds@codesourcery.com>
From-SVN: r226890
Diffstat (limited to 'gcc/debug.h')
-rw-r--r-- | gcc/debug.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/debug.h b/gcc/debug.h index 269c4d8..9784300 100644 --- a/gcc/debug.h +++ b/gcc/debug.h @@ -207,6 +207,7 @@ extern const struct gcc_debug_hooks dbx_debug_hooks; extern const struct gcc_debug_hooks sdb_debug_hooks; extern const struct gcc_debug_hooks xcoff_debug_hooks; extern const struct gcc_debug_hooks dwarf2_debug_hooks; +extern const struct gcc_debug_hooks dwarf2_lineno_debug_hooks; extern const struct gcc_debug_hooks vmsdbg_debug_hooks; /* Dwarf2 frame information. */ |