diff mbox

Fix PR middle-end/47319 typo

Message ID 20110117010822.GA22177@bromo.med.uc.edu
State New
Headers show

Commit Message

Jack Howarth Jan. 17, 2011, 1:08 a.m. UTC
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.

Comments

Richard Biener Jan. 17, 2011, 10:51 a.m. UTC | #1
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)
>
diff mbox

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)