On Mon, Jan 19, 2015 at 03:44:20PM +0100, Martin Liška wrote: > There's a bunch of another places that emit false positives. With following > patch, > I am able to run profiledbootstrap on x86_64-linux-pc and ppc64-linux-pc.
I don't know what we consider standard and where we allow warnings and thus require --disable-werror, so will defer to Richard. > --- a/gcc/tree.h > +++ b/gcc/tree.h > @@ -3050,6 +3050,11 @@ 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. */ > + > +#pragma GCC diagnostic push > +#pragma GCC diagnostic ignored "-Wstrict-overflow" Just I wonder if this shouldn't be guarded by GCC_VERSION >= something that actually supports those. > + > inline tree * > tree_vec_elt_check (tree __t, int __i, > const char *__f, int __l, const char *__g) > @@ -3061,6 +3066,8 @@ tree_vec_elt_check (tree __t, int __i, > return &CONST_CAST_TREE (__t)->vec.a[__i]; > } > > +#pragma GCC diagnostic pop > + > inline tree * > omp_clause_elt_check (tree __t, int __i, > const char *__f, int __l, const char *__g) Jakub