summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-05 11:44:00 +0000
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2015-03-05 11:44:00 +0000
commitfece9deff44f6247e12f74f302c000486d3adf48 (patch)
treeb7766739750e46911eca94a995636864cd427fbd
parentf125e673e22a37886e1639799e950918849c02df (diff)
downloadgcc-fece9deff44f6247e12f74f302c000486d3adf48.tar.gz
Fix warnings occured during profiledboostrap on
* ipa-inline.c (inline_small_functions): Set default value to prevent warning during bootstrap. * tree.h: Add pragma guard that ignores false positives during bootstrap. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221211 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/ipa-inline.c2
-rw-r--r--gcc/tree.h9
3 files changed, 17 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 2d5e2457a4e..cfacea1775b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2015-03-05 Martin Liska <mliska@suse.cz>
+
+ * ipa-inline.c (inline_small_functions): Set default value to
+ prevent warning during bootstrap.
+ * tree.h: Add pragma guard that ignores false positives during
+ bootstrap.
+
2015-03-05 Richard Biener <rguenther@suse.de>
PR tree-optimization/65310
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 0b38b4c6225..dd2e64ce28e 100644
--- a/gcc/ipa-inline.c
+++ b/gcc/ipa-inline.c
@@ -1712,7 +1712,7 @@ inline_small_functions (void)
FOR_EACH_DEFINED_FUNCTION (node)
{
bool update = false;
- struct cgraph_edge *next;
+ struct cgraph_edge *next = NULL;
bool has_speculative = false;
if (dump_file)
diff --git a/gcc/tree.h b/gcc/tree.h
index c3e9a63e96c..8f93a512a78 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3278,6 +3278,11 @@ non_type_check (const_tree __t, const char *__f, int __l, const char *__g)
return __t;
}
+# if GCC_VERSION >= 4006
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wstrict-overflow"
+#endif
+
inline const_tree *
tree_vec_elt_check (const_tree __t, int __i,
const char *__f, int __l, const char *__g)
@@ -3290,6 +3295,10 @@ tree_vec_elt_check (const_tree __t, int __i,
//return &__t->vec.a[__i];
}
+# if GCC_VERSION >= 4006
+#pragma GCC diagnostic pop
+#endif
+
inline const_tree *
omp_clause_elt_check (const_tree __t, int __i,
const char *__f, int __l, const char *__g)