Re: [Patch] Add -gdwarf option to make gcc generate DWARF with the default version

2013-04-11 Thread Jakub Jelinek
On Thu, Apr 11, 2013 at 02:32:51PM +0530, Senthil Kumar Selvaraj wrote: > gcc/ChangeLog > > 2013-04-11 Senthil Kumar Selvaraj > > * gcc/opts.c : Fix formatting and add comment. The ChangeLog entry should have been * opts.c (common_handle_option): Fix formatting and add FALLTHRU

Re: [Patch] Add -gdwarf option to make gcc generate DWARF with the default version

2013-04-11 Thread Senthil Kumar Selvaraj
On Thu, Apr 11, 2013 at 09:08:08AM +0200, Jakub Jelinek wrote: > On Wed, Apr 10, 2013 at 06:55:10PM +0530, Senthil Kumar Selvaraj wrote: > > --- gcc/opts.c > > +++ gcc/opts.c > > @@ -1699,6 +1699,18 @@ common_handle_option (struct gcc_options *opts, > >set_debug_level (SDB_DEBUG, false, arg

Re: [Patch] Add -gdwarf option to make gcc generate DWARF with the default version

2013-04-11 Thread Jakub Jelinek
On Wed, Apr 10, 2013 at 06:55:10PM +0530, Senthil Kumar Selvaraj wrote: > --- gcc/opts.c > +++ gcc/opts.c > @@ -1699,6 +1699,18 @@ common_handle_option (struct gcc_options *opts, >set_debug_level (SDB_DEBUG, false, arg, opts, opts_set, loc); >break; > > +case OPT_gdwarf: > +

Re: [Patch] Add -gdwarf option to make gcc generate DWARF with the default version

2013-04-10 Thread Jason Merrill
Applied, thanks. Jason

[Patch] Add -gdwarf option to make gcc generate DWARF with the default version

2013-04-10 Thread Senthil Kumar Selvaraj
Hi, This patch adds a -gdwarf option to make gcc generate DWARF with the default version (currently 4). A bunch of tests in the dejagnu dwarf test suite fail right now if gcc is configured/built with support for multiple debugging formats and DWARF is not the default. The failing tests don't expl