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: FYI: fix PR preprocessor/39512


I'm checking this in.

This fixes PR preprocessor/39512.  linemap_init fails to initialize a
field.

This does not affect gcc, because the field is initialized in
toplev.c, just after the call to linemap_init.  So, I am not putting
this into 4.4.

Bootstrapped and regtested on x86-64 (compile farm).

Tom

2009-03-30  Tom Tromey  <tromey@redhat.com>

	PR preprocessor/39512:
	* line-map.c (linemap_init): Initialize 'reallocator' field.

Index: line-map.c
===================================================================
--- line-map.c	(revision 145295)
+++ line-map.c	(working copy)
@@ -41,6 +41,7 @@
   set->highest_location = 0;
   set->highest_line = 0;
   set->max_column_hint = 0;
+  set->reallocator = 0;
 }
 
 /* Check for and warn about line_maps entered but not exited.  */


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