]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[bootstrap-O3] add a default initializer to avoid a warning at -O3
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 5 Jan 2017 01:46:52 +0000 (01:46 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Thu, 5 Jan 2017 01:46:52 +0000 (01:46 +0000)
Building with the bootstrap-O3 configuration option fails to compile
input.c due to an AFAICT false-positive warning about an uninitialized
use of a variable.

This patch adds a default initializer to silence it.

for  gcc/ChangeLog

* input.c (assert_char_at_range): Default-initialize
actual_range.

From-SVN: r244091

gcc/ChangeLog
gcc/input.c

index 88fb3b4b2b53bb2aa1ab74f7bcd8c4a3a39d1831..ce11bc4ca0b2cff19e408c04f1f1bb57cae023e4 100644 (file)
@@ -1,3 +1,8 @@
+2017-01-04  Alexandre Oliva <aoliva@redhat.com>
+
+       * input.c (assert_char_at_range): Default-initialize
+       actual_range.
+
 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
 
        * df-scan.c (df_ref_create_structure): Make regno unsigned,
index 0294034114bde6774cfc6f6aeb3dee1e32b23998..195f72e06197112bd7c060b7ea041c3f0d82243e 100644 (file)
@@ -2173,7 +2173,7 @@ assert_char_at_range (const location &loc,
   cpp_reader *pfile = test.m_parser;
   string_concat_db *concats = &test.m_concats;
 
-  source_range actual_range;
+  source_range actual_range = source_range();
   const char *err
     = get_source_range_for_char (pfile, concats, strloc, type, idx,
                                 &actual_range);