From 168be70b19ebf4e7fad48b4b68d52549f12b0b78 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 30 Jan 2015 12:57:57 +0100 Subject: [PATCH] Guard GCC version for a pragma ifdef. * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006 in #pragma GCC diagnostic guards. From-SVN: r220280 --- gcc/ChangeLog | 5 +++++ gcc/tree.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ddbc93bcb0..a58362ac504 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-01-30 Martin Liska + + * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006 + in #pragma GCC diagnostic guards. + 2015-01-30 Richard Biener PR tree-optimization/64829 diff --git a/gcc/tree.h b/gcc/tree.h index 6c69fce4f51..c3e9a63e96c 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.30.2