]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix warnings occured during profiledboostrap on
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Mar 2015 11:44:00 +0000 (11:44 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Mar 2015 11:44:00 +0000 (11:44 +0000)
* 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

gcc/ChangeLog
gcc/ipa-inline.c
gcc/tree.h

index 2d5e2457a4ec3981bd8a8310b4a9c98bbae38293..cfacea1775bc499a4b664e5641325bfaea9c039e 100644 (file)
@@ -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
index 0b38b4c6225c6823b2a0f8a3176ef11dfe9292f5..dd2e64ce28e2b50b0ad1cc08eb366c2a5ff0ae83 100644 (file)
@@ -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)
index c3e9a63e96c22a7a87301811413ca5862466c26b..8f93a512a78fc87375d2f0f8f3a7d77dfe033482 100644 (file)
@@ -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)