diff options
author | Martin Liska <mliska@suse.cz> | 2015-01-23 16:09:08 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2015-01-23 15:09:08 +0000 |
commit | 97440db5eb18806601d0386c9bda9d7b759e1946 (patch) | |
tree | bbb02f98da538862784e8a813e85f9f6b000d710 /gcc/fortran/decl.c | |
parent | 7c83622c6b1c95cdeb12fa5e6b0ef294c78eff16 (diff) | |
download | gcc-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/decl.c')
-rw-r--r-- | gcc/fortran/decl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/fortran/decl.c b/gcc/fortran/decl.c index 2a200fc..cc35c65 100644 --- a/gcc/fortran/decl.c +++ b/gcc/fortran/decl.c @@ -6391,7 +6391,10 @@ attr_decl1 (void) { char name[GFC_MAX_SYMBOL_LEN + 1]; gfc_array_spec *as; - gfc_symbol *sym; + + /* Workaround -Wmaybe-uninitialized false positive during + profiledbootstrap by initializing them. */ + gfc_symbol *sym = NULL; locus var_locus; match m; |