> DW_LANG_Fortran03 and DW_LANG_Fortran08 DW_AT_language values were recently > accepted into DWARF5. This patch changes GCC to handle those similarly to > how e.g. the -std=c++11, -std=c++14 or -std=c11 are handled. > > As it will take some time for consumers to catch up, I'm enabling that > only if -gdwarf-5 is used for now.
My concern with enabling -gdwarf-5 at this point is that all we're really doing with it is enabling a subset of DWARF-5 features (as we did with -gdwarf-4). We're still putting a version number of 2 in the compilation unit header! But I guess even upgrading the CU header to version 3 is something not all consumers are yet ready for. As long as we selectively enable DWARF-5 features while still claiming to be DWARF-2, I guess we're OK, but how will we decide to upgrade fully beyond DWARF-2, and what option will we use for that? The DWARF bits of this patch are OK with me. -cary