Patchwork Fix PR middle-end/47319 typo

login
register
mail settings
Submitter Jack Howarth
Date Jan. 17, 2011, 1:08 a.m.
Message ID <20110117010822.GA22177@bromo.med.uc.edu>
Download mbox | patch
Permalink /patch/79112/
State New
Headers show

Comments

Jack Howarth - Jan. 17, 2011, 1:08 a.m.
Currently a typo exists in dump_eh_tree() introduced at r151696.
The attached patch removes the erroneous ';' from the for statement so
that the braced code that follows is properly executed. Bootstrap
and regression tested on x86_64-apple-darwin10. Okay for gcc trunk
under the obvious rule?
               Jack

2011-01-16  Jack Howarth <howarth@bromo.med.uc.edu>

	PR middle-end/47319
	* gcc/except.c (dump_eh_tree): Fix typo.
Richard Guenther - Jan. 17, 2011, 10:51 a.m.
On Mon, Jan 17, 2011 at 2:08 AM, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
>   Currently a typo exists in dump_eh_tree() introduced at r151696.
> The attached patch removes the erroneous ';' from the for statement so
> that the braced code that follows is properly executed. Bootstrap
> and regression tested on x86_64-apple-darwin10. Okay for gcc trunk
> under the obvious rule?

Ok.

Thanks,
Richard.

>               Jack
>
> 2011-01-16  Jack Howarth <howarth@bromo.med.uc.edu>
>
>        PR middle-end/47319
>        * gcc/except.c (dump_eh_tree): Fix typo.
>
> Index: gcc/except.c
> ===================================================================
> --- gcc/except.c        (revision 168859)
> +++ gcc/except.c        (working copy)
> @@ -3194,7 +3194,7 @@ dump_eh_tree (FILE * out, struct functio
>            }
>          else
>            {
> -             for (lp = i->landing_pads; lp ; lp = lp->next_lp);
> +             for (lp = i->landing_pads; lp ; lp = lp->next_lp)
>                {
>                  fprintf (out, "{%i,", lp->index);
>                  if (lp->landing_pad)
>

Patch

Index: gcc/except.c
===================================================================
--- gcc/except.c	(revision 168859)
+++ gcc/except.c	(working copy)
@@ -3194,7 +3194,7 @@  dump_eh_tree (FILE * out, struct functio
 	    }
 	  else
 	    {
-	      for (lp = i->landing_pads; lp ; lp = lp->next_lp);
+	      for (lp = i->landing_pads; lp ; lp = lp->next_lp)
 		{
 		  fprintf (out, "{%i,", lp->index);
 		  if (lp->landing_pad)