diff mbox

PATCH to gengtype to fix diagnostics

Message ID 4FA2F7A9.6000909@redhat.com
State New
Headers show

Commit Message

Jason Merrill May 3, 2012, 9:24 p.m. UTC
While adjusting some GTY markers I started getting warnings about '^C' 
used but not defined; this looks to be a cut and paste error.

Applying as obvious.

Comments

Laurynas Biveinis May 4, 2012, 3:04 a.m. UTC | #1
> While adjusting some GTY markers I started getting warnings about '^C' used
> but not defined; this looks to be a cut and paste error.
>
> Applying as obvious.

Good catch, thanks for fixing this.
diff mbox

Patch

commit 26c4827e3ffe0be492e68a31193c120fdf806756
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Apr 26 19:17:21 2012 -0400

    	* gengtype.c (write_types): Fix warning message.
    	(write_local): Likewise.

diff --git a/gcc/gengtype.c b/gcc/gengtype.c
index 02d4c8c..814d9e0 100644
--- a/gcc/gengtype.c
+++ b/gcc/gengtype.c
@@ -3286,7 +3286,7 @@  write_types (outf_p output_header, type_p structures, type_p param_structs,
 	if (stru->u.s.line.file == NULL)
 	  {
 	    fprintf (stderr, "warning: structure `%s' used but not defined\n",
-		     s->u.s.tag);
+		     stru->u.s.tag);
 	    continue;
 	  }
       }
@@ -3522,7 +3522,7 @@  write_local (outf_p output_header, type_p structures, type_p param_structs)
 	if (stru->u.s.line.file == NULL)
 	  {
 	    fprintf (stderr, "warning: structure `%s' used but not defined\n",
-		     s->u.s.tag);
+		     stru->u.s.tag);
 	    continue;
 	  }