This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC PATCH] Emit DW_LANG_Fortran{03,08}
- From: Cary Coutant <ccoutant at google dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>, Jason Merrill <jason at redhat dot com>, David Malcolm <dmalcolm at redhat dot com>, gcc-patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Wed, 4 Feb 2015 13:58:32 -0800
- Subject: Re: [RFC PATCH] Emit DW_LANG_Fortran{03,08}
- Authentication-results: sourceware.org; auth=none
- References: <20150127181926 dot GK1746 at tucnak dot redhat dot com>
> 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