re PR lto/67568 (lto-streamer-in.c sanitizer runtime error: load of value 255, which...
authorRichard Biener <rguenther@suse.de>
Tue, 15 Sep 2015 08:00:30 +0000 (08:00 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 15 Sep 2015 08:00:30 +0000 (08:00 +0000)
2015-09-15  Richard Biener  <rguenther@suse.de>

PR lto/67568
* lto-streamer.h (lto_location_cache::current_sysp): Properly
initialize.
* lto-streamer-out.c (clear_line_info): Likewise.

From-SVN: r227779

gcc/ChangeLog
gcc/lto-streamer-out.c
gcc/lto-streamer.h

index 29d778da720e72a7fc4d3504b4475c1fef63cdb9..7eace8ef656f6a6f6aafb1d6bc520980050b07fb 100644 (file)
@@ -1,3 +1,10 @@
+2015-09-15  Richard Biener  <rguenther@suse.de>
+
+       PR lto/67568
+       * lto-streamer.h (lto_location_cache::current_sysp): Properly
+       initialize.
+       * lto-streamer-out.c (clear_line_info): Likewise.
+
 2015-09-15  Richard Biener  <rguenther@suse.de>
 
        * doc/match-and-simplify.texi: Fix wording.
index b6bc515201d8a4682d22d22778e6bced225aa38f..d8a7ced5142c4ec8f88cba19ee24494a346b0ed9 100644 (file)
@@ -66,6 +66,7 @@ clear_line_info (struct output_block *ob)
   ob->current_file = NULL;
   ob->current_line = 0;
   ob->current_col = 0;
+  ob->current_sysp = false;
 }
 
 
index 21c41c5a6210f38dbb65f40302c1db9af2308c41..5aae9e9bfa72b51dc37d9e2d14380a82bcfba11a 100644 (file)
@@ -320,7 +320,7 @@ public:
                       struct data_in *data_in);
   lto_location_cache ()
      : loc_cache (), accepted_length (0), current_file (NULL), current_line (0),
-       current_col (0), current_loc (UNKNOWN_LOCATION)
+       current_col (0), current_sysp (false), current_loc (UNKNOWN_LOCATION)
   {
     gcc_assert (!current_cache);
     current_cache = this;