Re: [PATCH] Default to -gdwarf-4

2012-04-27 Thread H.J. Lu
On Wed, Apr 25, 2012 at 6:47 AM, Jakub Jelinek wrote: > Hi! > > For reasonable debugging experience recent GCC versions need > GDB >= 7.0 for quite some time, and DWARF4 is almost 2 years old now, > and offers lots of improvements over DWARF2 we still default to. > > So, I'd like to make -gdwarf-4

Re: [PATCH] Default to -gdwarf-4

2012-04-25 Thread Richard Henderson
On 04/25/12 06:47, Jakub Jelinek wrote: > 2012-04-25 Jakub Jelinek > > * common.opt (flag_debug_types_section): Default to 0. > (dwarf_version): Default to 4. > (dwarf_record_gcc_switches): Default to 1. > (dwarf_strict): Default to 0. > * toplev.c (process_options

[PATCH] Default to -gdwarf-4

2012-04-25 Thread Jakub Jelinek
Hi! For reasonable debugging experience recent GCC versions need GDB >= 7.0 for quite some time, and DWARF4 is almost 2 years old now, and offers lots of improvements over DWARF2 we still default to. So, I'd like to make -gdwarf-4 (just the version, of course -g is needed to enable debug info gen