warnings fix, i386.[ch]
Zack Weinberg
zack@bitmover.com
Tue Aug 31 22:41:00 GMT 1999
Jeffrey A Law wrote:
>
> In message < 199908252103.OAA07387@zack.bitmover.com >you write:
> >
> > This patch shuts up the "initialization from incompatible pointer
> > type" warnings when compiling toplev.c on x86.
> >
> > zw
> >
> > 1999-08-25 14:00 -0700 Zack Weinberg <zack@bitmover.com>
> >
> > * i386.h: Declare ix86_cpu_string, ix86_arch_string,
> > i386_reg_alloc_order, i386_regparm_string,
> > i386_align_loops_string, i386_align_jumps_string,
> > i386_align_funcs_string, i386_preferred_stack_boundary_string,
> > and i386_branch_cost_string as type "const char *".
> > * i386.c: Define all above strings as type "const char *".
> Approved. Can you please install this change? Thanks.
Done.
> ps. At first I thought you had botched i386_reg_alloc_order, but
> then I realized that i386.c::order_regs_for_local_alloc was
> modifying reg_alloc_order, not i386_reg_alloc_order.
Yeah, it's confusing because it doesn't match the names of all the
other strings set from TARGET_OPTIONS. It should maybe get renamed
i386_reg_alloc_order_string.
zw
More information about the Gcc-patches
mailing list