This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, testsuite] Add missing -gdwarf-2 flag in debug/dwarf2 testcase
- From: Senthil Kumar Selvaraj <senthil_kumar dot selvaraj at atmel dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Mike Stump <mikestump at comcast dot net>, "gcc at gcc dot gnu dot org List" <gcc at gcc dot gnu dot org>, "dodji at redhat dot com Seketeli" <dodji at redhat dot com>, "janisjo at codesourcery dot com Johnson" <janisjo at codesourcery dot com>
- Date: Sat, 30 Mar 2013 11:53:12 +0530
- Subject: Re: [Patch, testsuite] Add missing -gdwarf-2 flag in debug/dwarf2 testcase
- References: <20130327080214 dot GA7422 at atmel dot com> <57AC2D0F-7AB7-46A0-BA38-6BC66B876838 at comcast dot net> <20130328105752 dot GA887 at atmel dot com> <74DC064C-48E4-4462-A3EB-645F263A7FD4 at comcast dot net> <5155E199 dot 6070603 at redhat dot com>
On Fri, Mar 29, 2013 at 02:46:49PM -0400, Jason Merrill wrote:
> On 03/28/2013 06:09 PM, Mike Stump wrote:
> >Humâ I can't help but wonder if there was supposed to be code that checks to ensure dwarf is supported and the default before doing the entire test suite.
>
> That's what I thought, yes. And we don't want to specify -gdwarf-2
> explicitly, as now -gdwarf-4 is the default.
>
dwarf2.exp does check if DWARF is supported by compiling a test file with
-gdwarf-2, but it doesn't check if it's the default.
I couldn't find a way to ask gcc to just generate DWARF (default
version) either. How should this be fixed?
Regards
Senthil