This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PR debug/38757 gcc does not emit DW_LANG_C99


On Thu, Nov 13, 2014 at 12:17 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Thu, Nov 13, 2014 at 12:08:01PM +0100, Richard Biener wrote:
>> Btw, I have nothing against changing TRANSLATION_UNIT_LANGUAGE
>> to DW_LANG_* directly - we only use it for choosing the language
>> of the dwarf unit.  This would of course mean to change its initialization
>> from
>>
>>   TRANSLATION_UNIT_LANGUAGE (tu) = lang_hooks.name;
>>
>> to sth like
>>
>>   TRANSLATION_UNIT_LANGUAGE (tu) = lang_hooks.dw_lang;
>>
>> which means adding a langhook (thus more similar to your original
>> patch).
>
> But that would mean having to include dwarf2 headers in every FE.

Don't see what would be bad about this, but well...

Richard.

>         Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]