On Wed, 2013-09-25 at 09:16 -0700, Michael Eager wrote: > On 09/25/13 03:38, Mark Wielaard wrote: > > Asking because I was wondering if it would make sense to propose > > DW_LANG_C11 (ISO/IEC 9899:2011) for DWARF5? > > Yes, if there are differences in meaning for DWARF attributes which > depend on the language version. Please use the Comment page: > http://dwarfstd.org/Comment.php.
At first I didn't file an enhancement request since there are probably no changes in how to interpret the meaning of DWARF attributes. But for debuggers it is needed information to be able to correctly handle expressions for the user related to the current CU since C11 did add some keywords and so allows some expressions that are not valid in earlier standards. Filed as follows (I got no issue number yet): Subject: Add language code DW_LANG_C11 for ISO/IEC 9899:2011 Name: Mark Wielaard Email: [email protected] Section: 3.1 Page: 44 Type: Enhancement DWARFv4 defines DW_LANG_C for Non-standardized C, DW_LANG_C89 for ISO C:1989 and DW_LANG_C99 for ISO C:1999. ISO/IEC 9899:2011 is an extension of ISO C:1999 that adds some keywords allowing some new expressions. This matters for debuggers that allow the user to construct expressions in the language (variant) of the current CU. Therefore producers should be able to express that code was compiled for the new C standard. Page 44, Section 3.1.1, Figure 8. Language names add: DW_LANG_C11 ISO/IEC 9899:2011 Page 172, Section 7.12, Figure 31. Language encodings add: DW_LANG_C11 0x001X 0 _______________________________________________ Dwarf-Discuss mailing list [email protected] http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org
