[PATCH] Emit DW_AT_linkage_name instead of DW_AT_MIPS_linkage_name for -gdwarf-4

Jason Merrill jason@redhat.com
Mon Apr 19 23:26:00 GMT 2010


On 04/19/2010 05:57 PM, Jakub Jelinek wrote:
> +	    add_AT_string (die, dwarf_version>= 4
> +				? DW_AT_linkage_name : DW_AT_MIPS_linkage_name,
> +  gcc_assert (linkage.dw_attr == (dwarf_version>= 4
> +				  ? DW_AT_linkage_name
> +				  : DW_AT_MIPS_linkage_name));
> +	  add_AT_string (node->die, dwarf_version>= 4 ?
> +				    DW_AT_linkage_name
> +				    : DW_AT_MIPS_linkage_name,

Rather than write the ?: in three places, let's make it a macro.

Jason



More information about the Gcc-patches mailing list