This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, testsuite] Add missing -gdwarf-2 flag in debug/dwarf2 testcase


On 04/02/2013 03:25 PM, Senthil Kumar Selvaraj wrote:
+gdwarf
+Common UInteger Var(dwarf_default_version, 4) Negative(gdwarf-)
+Generate debug information in the default DWARF version format

The Negative options need to form a circular chain, so gcoff should have Negative(gdwarf) and gdwarf should have Negative(gdwarf-).

I don't think you need a dwarf_default_version variable since there's already dwarf_version.

It would be nice to give a helpful diagnostic if people try to write -gdwarf2 to suggest that they either write -gdwarf-2 or -gdwarf -g2.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]