This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: FYI: fix PR preprocessor/39512
- From: Tom Tromey <tromey at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Mar 2009 09:24:17 -0600
- Subject: Patch: FYI: fix PR preprocessor/39512
- Reply-to: tromey at redhat dot com
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. */