your recent loop.c change

Bernd Schmidt bernds@pathia.cygnus.co.uk
Fri Nov 26 03:45:00 GMT 1999


On Thu, 25 Nov 1999, Robert Lipe wrote:

> How do you feel about something like the following to eliminate the
> use of a GNU C extension?

I've installed this (obvious bugfix).

Thanks,

Bernd

> Index: loop.c
> ===================================================================
> RCS file: /cvs/gcc/egcs/gcc/loop.c,v
> retrieving revision 1.200
> diff -u -p -r1.200 loop.c
> --- loop.c	1999/11/24 01:24:42	1.200
> +++ loop.c	1999/11/25 23:52:03
> @@ -9961,7 +9961,11 @@ try_copy_prop (scan_start, loop_top, end
>         insn = next_insn_in_loop (insn, scan_start, end, loop_top))
>      {
>        rtx set;
> -      rtx array[3] = { regno_reg_rtx[regno], replacement, insn };
> +      rtx array[3];
> +
> +      array[0] = regno_reg_rtx[regno];
> +      array[1] = replacement;
> +      array[2] = insn;
>        if (GET_RTX_CLASS (GET_CODE (insn)) != 'i')
>  	continue;
>        set = single_set (insn);
> 



More information about the Gcc-patches mailing list