aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
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/tree.h
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/tree.h')
-rw-r--r--gcc/tree.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index d8eaff6..6c69fce 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3050,6 +3050,13 @@ tree_int_cst_elt_check (tree __t, int __i,
return &CONST_CAST_TREE (__t)->int_cst.val[__i];
}
+/* Workaround -Wstrict-overflow false positive during profiledbootstrap. */
+
+# if GCC_VERSION >= 4004
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-overflow"
+#endif
+
inline tree *
tree_vec_elt_check (tree __t, int __i,
const char *__f, int __l, const char *__g)
@@ -3061,6 +3068,10 @@ tree_vec_elt_check (tree __t, int __i,
return &CONST_CAST_TREE (__t)->vec.a[__i];
}
+# if GCC_VERSION >= 4004
+#pragma GCC diagnostic pop
+#endif
+
inline tree *
omp_clause_elt_check (tree __t, int __i,
const char *__f, int __l, const char *__g)