aboutsummaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2009-03-30 15:25:42 +0000
committerTom Tromey <tromey@gcc.gnu.org>2009-03-30 15:25:42 +0000
commitc1a8a3c6fff7f341d1b2c076c634aa2fbf94ad81 (patch)
tree7898ad3c70ce756d10e9d36dcd582611a619d3d9 /libcpp
parenta37a7b8a0199e76227055ed537c54ddd022eb8a5 (diff)
downloadgcc-c1a8a3c6fff7f341d1b2c076c634aa2fbf94ad81.zip
gcc-c1a8a3c6fff7f341d1b2c076c634aa2fbf94ad81.tar.gz
gcc-c1a8a3c6fff7f341d1b2c076c634aa2fbf94ad81.tar.bz2
re PR preprocessor/39512 (linemap_init in lex.c does not initialize reallocator)
PR preprocessor/39512: * line-map.c (linemap_init): Initialize 'reallocator' field. From-SVN: r145300
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog5
-rw-r--r--libcpp/line-map.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 4bf5869..2672832 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-30 Tom Tromey <tromey@redhat.com>
+
+ PR preprocessor/39512:
+ * line-map.c (linemap_init): Initialize 'reallocator' field.
+
2009-03-30 Jakub Jelinek <jakub@redhat.com>
PR target/39558
diff --git a/libcpp/line-map.c b/libcpp/line-map.c
index 2802c67..1c82902 100644
--- a/libcpp/line-map.c
+++ b/libcpp/line-map.c
@@ -41,6 +41,7 @@ linemap_init (struct line_maps *set)
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. */