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 4/4] define ASM_OUTPUT_LABEL to the name of a function


On Fri, Jul 24, 2015 at 10:37:00PM -0400, tbsaunde+gcc@tbsaunde.org wrote:
> --- a/gcc/config/pa/pa.c
> +++ b/gcc/config/pa/pa.c
> @@ -9761,6 +9761,18 @@ pa_reloc_rw_mask (void)
>    return 3;
>  }
>  
> +/* Assemble a lable.  */

Typo.

> +void
> +pa_output_label (FILE *f, const char *label)
> +{
> +  assemble_name (f, label);
> +  if (TARGET_GAS)
> +    fputs (":\n", f);
> +  else
> +    fputc ('\n', (f));

You forgot to remove the extra parens here :-)

If so many targets use default_assemble_label, can you make it an actual
default instead of defining it everywhere?


Segher


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