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