[PATCH] dwarf.c handle new DWARFv5 C11, C++11 and C++14 DW_LANG constants.

Sebastian Huber sebastian.huber@embedded-brains.de
Thu Nov 27 15:10:00 GMT 2014


On 26/11/14 17:24, Mark Wielaard wrote:
> +2014-11-24  Mark Wielaard<mjw@redhat.com>
> +
> +	* dwarf.c (read_and_display_attr_value): Handle DW_LANG_C11,
> +	DW_LANG_C_plus_plus_11 and DW_LANG_C_plus_plus_14.
> +
>   2014-11-26  Nick Clifton<nickc@redhat.com>
>   
>   	PR binutils/17512
> diff --git a/binutils/dwarf.c b/binutils/dwarf.c
> index 622fe91..e2bac1f 100644
> --- a/binutils/dwarf.c
> +++ b/binutils/dwarf.c
> @@ -1935,6 +1935,9 @@ read_and_display_attr_value (unsigned long attribute,
>   	case DW_LANG_Python:		printf ("(Python)"); break;
>   	  /* DWARF 5 values.  */
>   	case DW_LANG_Go:		printf ("(Go)"); break;
> +	case DW_LANG_C_plus_plus_11:	printf ("(C++11)"); break;
> +	case DW_LANG_C11:		printf ("(ANSI C11)"); break;
> +	case DW_LANG_C_plus_plus_14:	printf ("(C++14)"); break;
>   	  /* MIPS extension.  */
>   	case DW_LANG_Mips_Assembler:	printf ("(MIPS assembler)"); break;
>   	  /* UPC extension.  */

Out of curiosity why is this "ANSI C11" and not simply "C11" (like 
"C++11") or "ISO C11"?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the Binutils mailing list