fix for section redeclarations

Richard Henderson rth@redhat.com
Mon Oct 8 14:38:00 GMT 2001


On Mon, Oct 08, 2001 at 04:39:27PM -0500, Robert Lipe wrote:
> +bool
> +named_section_first_declaration (name)
> +     const char *name;

This needs to be declared in output.h.

> -  if (flags & SECTION_ENTSIZE)
> -    fprintf (asm_out_file, "\t.section\t%s,\"%s\",@%s,%d\n",
> -	     name, flagchars, type, flags & SECTION_ENTSIZE);
> -  else
> -    fprintf (asm_out_file, "\t.section\t%s,\"%s\",@%s\n",
> -	     name, flagchars, type);
> +  fprintf (asm_out_file, "\t.section\t%s,\"%s\",@%s", name, flagchars, type);
> +  if (flags & SECTION_ENTSIZE) 
> +    fprintf(asm_out_file, ",%d", flags & SECTION_ENTSIZE);
> +  fprintf(asm_out_file, "\n");

Why?


r~



More information about the Gcc-patches mailing list