Fix formatting in df-problems.c

Seongbae Park (박성배, 朴成培) seongbae.park@gmail.com
Fri Jun 29 18:56:00 GMT 2007


On 6/29/07, Richard Sandiford <rsandifo@nildram.co.uk> wrote:
> This patch fixes some formatting problems in df-problem.c
> Bootstrapped & regression-tested on x86_64-linux-gnu,
> applied as obvious.
>
> Richard
>
>
> gcc/
>         * df-problems.c (df_set_unused_notes_for_mw): Fix formatting.
>         (df_set_dead_notes_for_mw): Likewise.
>
> Index: gcc/df-problems.c
> ===================================================================
> --- gcc/df-problems.c   (revision 126108)
> +++ gcc/df-problems.c   (working copy)
> @@ -3757,11 +3757,10 @@ df_set_unused_notes_for_mw (rtx insn, rt
>        /* Only do this if the value is totally dead.  */
>      }
>    else
> -    for (r=mws->start_regno; r <= mws->end_regno; r++)
> +    for (r = mws->start_regno; r <= mws->end_regno; r++)
>        {
> -
> -       if ((!bitmap_bit_p (live, r))
> -           && (!bitmap_bit_p (artificial_uses, r)))
> +       if (!bitmap_bit_p (live, r)
> +           && !bitmap_bit_p (artificial_uses, r))
>           {
>             old = df_set_note (REG_UNUSED, insn, old, regno_reg_rtx[r]);
>  #ifdef REG_DEAD_DEBUGGING
> @@ -3823,17 +3822,15 @@ df_set_dead_notes_for_mw (rtx insn, rtx
>    else
>      {
>        for (r = mws->start_regno; r <= mws->end_regno; r++)
> -       {
> -         if ((!bitmap_bit_p (live, r))
> -             && (!bitmap_bit_p (artificial_uses, r))
> -             && (!bitmap_bit_p (do_not_gen, r)))
> -           {
> -             old = df_set_note (REG_DEAD, insn, old, regno_reg_rtx[r]);
> +       if (!bitmap_bit_p (live, r)
> +           && !bitmap_bit_p (artificial_uses, r)
> +           && !bitmap_bit_p (do_not_gen, r))
> +         {
> +           old = df_set_note (REG_DEAD, insn, old, regno_reg_rtx[r]);
>  #ifdef REG_DEAD_DEBUGGING
> -             df_print_note ("adding 2: ", insn, REG_NOTES (insn));
> +           df_print_note ("adding 2: ", insn, REG_NOTES (insn));
>  #endif
> -           }
> -       }
> +         }
>      }
>    return old;
>  }

This is OK. Thanks for cleaning it up.
-- 
#pragma ident "Seongbae Park, compiler, http://seongbae.blogspot.com"



More information about the Gcc-patches mailing list