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: [vta,vta4.3,trunk?] don't compute DECL_ASSEMBLER_NAME because of debugging dumps


Alexandre Oliva <aoliva@redhat.com> writes:

>        fprintf (dump_orig, " (%s)\n",
> -	       IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (fndecl)));
> +	       !DECL_ASSEMBLER_NAME_SET_P (fndecl) ? NULL
> +	       : IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (fndecl)));

Don't pass NULL to fprintf for a %s argument.

Use parentheses around the multi-line ternary expression.

A patch to pass "null", or similar, instead is OK.

Thanks.

Ian


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