summaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2019-12-18 17:26:01 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2019-12-18 17:26:01 +0000
commit6dd0c82021133b862c2250a7c6942030f191e568 (patch)
tree8f99e70a6a8efabd69d9fc2c2b5d860a87c34925 /libcpp
parent77ce5555480140ec57c4d39169dfff19ad4a7d96 (diff)
Drop unused member from cpp_string_location_reader (PR preprocessor/92982)
libcpp/ChangeLog: PR preprocessor/92982 * charset.c (cpp_string_location_reader::cpp_string_location_reader): Delete initialization of m_line_table. * include/cpplib.h (cpp_string_location_reader::m_line_table): Delete unused member. From-SVN: r279541
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog9
-rw-r--r--libcpp/charset.c1
-rw-r--r--libcpp/include/cpplib.h1
3 files changed, 9 insertions, 2 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 69b1c0c4940..a11da283522 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,12 @@
+2019-12-18 David Malcolm <dmalcolm@redhat.com>
+
+ PR preprocessor/92982
+ * charset.c
+ (cpp_string_location_reader::cpp_string_location_reader): Delete
+ initialization of m_line_table.
+ * include/cpplib.h (cpp_string_location_reader::m_line_table):
+ Delete unused member.
+
2019-12-14 Jakub Jelinek <jakub@redhat.com>
PR preprocessor/92919
diff --git a/libcpp/charset.c b/libcpp/charset.c
index a638a1b98fa..5da39a643d7 100644
--- a/libcpp/charset.c
+++ b/libcpp/charset.c
@@ -2248,7 +2248,6 @@ _cpp_default_encoding (void)
cpp_string_location_reader::
cpp_string_location_reader (location_t src_loc,
line_maps *line_table)
-: m_line_table (line_table)
{
src_loc = get_range_from_loc (line_table, src_loc).m_start;
diff --git a/libcpp/include/cpplib.h b/libcpp/include/cpplib.h
index e199aecfa48..1349871dc38 100644
--- a/libcpp/include/cpplib.h
+++ b/libcpp/include/cpplib.h
@@ -912,7 +912,6 @@ class cpp_string_location_reader {
private:
location_t m_loc;
int m_offset_per_column;
- line_maps *m_line_table;
};
/* A class for storing the source ranges of all of the characters within