Default AVR to DWARF2 debug

Message ID r4o1p340-86o1-6nqp-1oqo-935211q0nq47@fhfr.qr
State New
Headers show
Series
  • Default AVR to DWARF2 debug
Related show

Commit Message

Ville Voutilainen via Gcc-patches Sept. 10, 2021, 7:13 a.m.
This switches the AVR port to generate DWARF2 debugging info by
default since the support for STABS is going to be deprecated for
GCC 12.

OK for trunk?

Thanks,
Richard.

2021-09-10  Richard Biener  <rguenther@suse.de>

	* config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove
	override, pick up DWARF2_DEBUG define from elfos.h
---
 gcc/config/avr/elf.h | 3 ---
 1 file changed, 3 deletions(-)

-- 
2.31.1

Comments

Ville Voutilainen via Gcc-patches Sept. 10, 2021, 1:48 p.m. | #1
On 9/10/2021 1:13 AM, Richard Biener via Gcc-patches wrote:
> This switches the AVR port to generate DWARF2 debugging info by

> default since the support for STABS is going to be deprecated for

> GCC 12.

>

> OK for trunk?

>

> Thanks,

> Richard.

>

> 2021-09-10  Richard Biener  <rguenther@suse.de>

>

> 	* config/avr/elf.h (PREFERRED_DEBUGGING_TYPE): Remove

> 	override, pick up DWARF2_DEBUG define from elfos.h

OK.  And my tester does spin avr-elf, so if there's major breakage we'll 
know.

jeff

Patch

diff --git a/gcc/config/avr/elf.h b/gcc/config/avr/elf.h
index 2f0eb0de775..5f2d1e03936 100644
--- a/gcc/config/avr/elf.h
+++ b/gcc/config/avr/elf.h
@@ -22,9 +22,6 @@ 
 
 #undef PCC_BITFIELD_TYPE_MATTERS
 
-#undef PREFERRED_DEBUGGING_TYPE
-#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
-
 #undef MAX_OFILE_ALIGNMENT
 #define MAX_OFILE_ALIGNMENT (32768 * 8)