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: Jason Merrill <jason at redhat dot com>
- To: Senthil Kumar Selvaraj <senthil_kumar dot selvaraj at atmel 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: Thu, 04 Apr 2013 13:41:30 -0400
- Subject: Re: [Patch, testsuite] Add missing -gdwarf-2 flag in debug/dwarf2 testcase
- References: <20130328105752 dot GA887 at atmel dot com> <74DC064C-48E4-4462-A3EB-645F263A7FD4 at comcast dot net> <5155E199 dot 6070603 at redhat dot com> <20130330062307 dot GA13331 at atmel dot com> <515A37AA dot 1050702 at redhat dot com> <F1D390C2-2D95-48F2-AFB5-210F895FD80F at comcast dot net> <20130402130743 dot GA20532 at atmel dot com> <515AF498 dot 7000107 at redhat dot com> <20130402192420 dot GA23848 at atmel dot com> <515CEE58 dot 3010501 at redhat dot com> <20130404154841 dot GA7184 at atmel dot com>
On 04/04/2013 11:48 AM, Senthil Kumar Selvaraj wrote:
+Common Var(dwarf_version, 4) Negative(gdwarf-)
I don't think you need to mention the variable on this line; it's
already there and statically initialized for gdwarf-.
I wasn't able to get this done in a clean way. To make the gdwarf option
handling code detect this error, the only I found was to make it
JoinedOrMissing, and then raise the error if there was an argument
provided.
That sounds clean enough to me.
Jason