Message ID | 4F031D1D.5050607@gmail.com |
---|---|
State | New |
Headers | show |
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: gcc/dwarf2out.c =================================================================== --- gcc/dwarf2out.c (revision 182848) +++ gcc/dwarf2out.c (working copy) @@ -20904,7 +20904,6 @@ output_macinfo (void) case DW_MACINFO_end_file: if (!VEC_empty (macinfo_entry, files)) { - macinfo_entry *file = VEC_last (macinfo_entry, files); VEC_pop (macinfo_entry, files); } break;