Hi, The help text for the --with-dwarf2 configure option says it forces the default debug format to be DWARF 2. However, the built compiler still produces DWARF 4, unless -gdwarf-2 is explicitly specified when compiling.
I see that the darwin target gets around this by using the SUBSUBTARGET_OVERRIDE_OPTIONS hook and setting dwarf_version to 2 if no specific dwarf version was requested. Is this the recommended way to go? If yes, isn't the help text for --with-dwarf2 misleading? Or should --with-dwarf2 be fixed to do what it says? Regards Senthil