On Thu, Jun 07, 2018 at 10:31:29AM +0200, Olivier Hainque wrote: > Hello, > > dwarf2out currently prevents advertising DW_LANG_Ada if > version < 3 and strict_dwarf. There is no good reason for > this and it is detrimental to gdb on some VxWorks configurations. > > This patch just moves the DW_LANG_Ada language selection > out of the section guarded by the special version check. > > We have been using this for months on gcc-6 and gcc-7 on all > our targets without unexpected fallouts and it fixed a few issues > with gdb on VxWorks. > > Bootstrapped and regression tests fine with trunk on x86_64-linux. > > Ok to commit ?
No, this is just wrong. The whole point of -gstrict-dwarf is that it doesn't allow any extensions, and DW_LANG_Ada83/DW_LANG_Ada95 only appeared in DWARF3. Perhaps don't use -gstrict-dwarf if you are using gdb which should handle not just DWARF extensions, but also DWARF3/4, so even -gdwarf-4 -gno-strict-dwarf? Jakub