From a954833dfb8100b290d68894b8f573984ecbe5c9 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 5 Jan 2017 01:46:52 +0000 Subject: [PATCH] [bootstrap-O3] add a default initializer to avoid a warning at -O3 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 | 5 +++++ gcc/input.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 88fb3b4b2b5..ce11bc4ca0b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-01-04 Alexandre Oliva + + * input.c (assert_char_at_range): Default-initialize + actual_range. + 2017-01-04 Alexandre Oliva * df-scan.c (df_ref_create_structure): Make regno unsigned, diff --git a/gcc/input.c b/gcc/input.c index 0294034114b..195f72e0619 100644 --- a/gcc/input.c +++ b/gcc/input.c @@ -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); -- 2.30.2