aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/matchexp.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2015-01-23 16:09:08 +0100
committerMartin Liska <marxin@gcc.gnu.org>2015-01-23 15:09:08 +0000
commit97440db5eb18806601d0386c9bda9d7b759e1946 (patch)
treebbb02f98da538862784e8a813e85f9f6b000d710 /gcc/fortran/matchexp.c
parent7c83622c6b1c95cdeb12fa5e6b0ef294c78eff16 (diff)
downloadgcc-97440db5eb18806601d0386c9bda9d7b759e1946.zip
gcc-97440db5eb18806601d0386c9bda9d7b759e1946.tar.gz
gcc-97440db5eb18806601d0386c9bda9d7b759e1946.tar.bz2
Remove false positives for warnings that break LTO profiled
* tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow false positive during profiledbootstrap. * decl.c (attr_decl1): Workaround -Wmaybe-uninitialized false positive during profiledbootstrap by initializing them. * matchexp.c (match_mult_operand): Likewise. * module.c (write_atom): Likewise. (read_module): Likewise. From-SVN: r220042
Diffstat (limited to 'gcc/fortran/matchexp.c')
-rw-r--r--gcc/fortran/matchexp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/fortran/matchexp.c b/gcc/fortran/matchexp.c
index ec07dfc..fc35c8c 100644
--- a/gcc/fortran/matchexp.c
+++ b/gcc/fortran/matchexp.c
@@ -258,7 +258,9 @@ match_add_op (void)
static match
match_mult_operand (gfc_expr **result)
{
- gfc_expr *e, *exp, *r;
+ /* Workaround -Wmaybe-uninitialized false positive during
+ profiledbootstrap by initializing them. */
+ gfc_expr *e = NULL, *exp, *r;
locus where;
match m;