aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/module.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/module.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/module.c')
-rw-r--r--gcc/fortran/module.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/fortran/module.c b/gcc/fortran/module.c
index c47489a..4cfc0e2 100644
--- a/gcc/fortran/module.c
+++ b/gcc/fortran/module.c
@@ -1536,7 +1536,10 @@ static void
write_atom (atom_type atom, const void *v)
{
char buffer[20];
- int i, len;
+
+ /* Workaround -Wmaybe-uninitialized false positive during
+ profiledbootstrap by initializing them. */
+ int i = 0, len;
const char *p;
switch (atom)
@@ -4908,7 +4911,9 @@ read_module (void)
const char *p;
char name[GFC_MAX_SYMBOL_LEN + 1];
int i;
- int ambiguous, j, nuse, symbol;
+ /* Workaround -Wmaybe-uninitialized false positive during
+ profiledbootstrap by initializing them. */
+ int ambiguous = 0, j, nuse, symbol = 0;
pointer_info *info, *q;
gfc_use_rename *u = NULL;
gfc_symtree *st;