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]

Re: [PATCH] Use ggc allocated strings instead of malloced for debug macro sections (PR pch/51722)


On Tue, Jan 03, 2012 at 10:22:05AM -0500, Patrick Marlier wrote:
> >@@ -20909,7 +20905,6 @@ output_macinfo (void)
> >  	  if (!VEC_empty (macinfo_entry, files))
> >  	    {
> >  	      macinfo_entry *file = VEC_last (macinfo_entry, files);
> >-	      free (CONST_CAST (char *, file->info));
> >  	      VEC_pop (macinfo_entry, files);
> >  	    }
> >  	  break;
> 
> This breaks bootstrap:
> ../../trunk/gcc/dwarf2out.c: In function âvoid output_macinfo()â:
> ../../trunk/gcc/dwarf2out.c:20907:23: error: unused variable âfileâ
> [-Werror=unused-variable]
> cc1plus: all warnings being treated as errors
> 
> I guess it is a way to fix it.

Just svn update, I've noticed it in my bootstrap and fixed it
for that, but forgot to update the patch I checked in.  Sorry.

	Jakub


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