This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH to gengtype to fix diagnostics


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.
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;
 	  }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]