Message ID | 54CB6F23.3070506@suse.cz |
---|---|
State | New |
Headers | show |
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
From 8d0b78b9106f3b9d1c0cdb6c191dc5ac5b93babe Mon Sep 17 00:00:00 2001 From: mliska <mliska@suse.cz> Date: Fri, 30 Jan 2015 12:44:17 +0100 Subject: [PATCH] Guard GCC version for a pragma ifdef. gcc/ChangeLog: 2015-01-30 Martin Liska <mliska@suse.cz> * tree.h: Guard GCC version for a pragma ifdef. --- gcc/tree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/tree.h b/gcc/tree.h index 6c69fce..c3e9a63 100644 --- 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