This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Workaround -Wmaybe-uninitialized false positives during profiledbootstrap
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Martin LiÅka <mliska at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Jan 2015 12:49:31 +0100
- Subject: Re: [PATCH] Workaround -Wmaybe-uninitialized false positives during profiledbootstrap
- Authentication-results: sourceware.org; auth=none
- References: <20150115111038 dot GD1405 at tucnak dot redhat dot com> <CAFiYyc1X29+pp64chDTHrb5s7xintzLYTWZjFdWvbD=L=x_1iw at mail dot gmail dot com> <20150115112905 dot GF1405 at tucnak dot redhat dot com> <CAFiYyc2mCLveTpLT9ryc00ZAVZrQ6OerD7zpb42HSnYYJ1_ROQ at mail dot gmail dot com> <54BD1844 dot 1060203 at suse dot cz> <20150119144800 dot GL1405 at tucnak dot redhat dot com> <54BD4D41 dot 1050506 at suse dot cz> <201501270423 dot t0R4NCnO017873 at greed dot delorie dot com> <54C78521 dot 5070706 at suse dot cz> <54CB6F23 dot 3070506 at suse dot cz>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Jan 30, 2015 at 12:46:43PM +0100, Martin LiÅka wrote:
> There's a small patch that updates the version.
>
> Ready for trunk?
> 2015-01-30 Martin Liska <mliska@suse.cz>
>
> * tree.h: Guard GCC version for a pragma ifdef.
* tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
in #pragma GCC diagnostic guards.
?
Ok with that change.
> --- a/gcc/tree.h
> +++ b/gcc/tree.h
> @@ -3052,7 +3052,7 @@ tree_int_cst_elt_check (tree __t, int __i,
>
> /* Workaround -Wstrict-overflow false positive during profiledbootstrap. */
>
> -# if GCC_VERSION >= 4004
> +# if GCC_VERSION >= 4006
> #pragma GCC diagnostic push
> #pragma GCC diagnostic ignored "-Wstrict-overflow"
> #endif
> @@ -3068,7 +3068,7 @@ tree_vec_elt_check (tree __t, int __i,
> return &CONST_CAST_TREE (__t)->vec.a[__i];
> }
>
> -# if GCC_VERSION >= 4004
> +# if GCC_VERSION >= 4006
> #pragma GCC diagnostic pop
> #endif
>
> --
> 2.1.2
>
Jakub