This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Use ggc allocated strings instead of malloced for debug macro sections (PR pch/51722)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Patrick Marlier <patrick dot marlier at gmail dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 3 Jan 2012 16:34:53 +0100
- Subject: Re: [PATCH] Use ggc allocated strings instead of malloced for debug macro sections (PR pch/51722)
- References: <20120103132524.GV18937@tyan-ft48-01.lab.bos.redhat.com> <4F031D1D.5050607@gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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