diff options
Diffstat (limited to 'gcc/gimple-ssa-warn-restrict.c')
-rw-r--r-- | gcc/gimple-ssa-warn-restrict.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gimple-ssa-warn-restrict.c b/gcc/gimple-ssa-warn-restrict.c index 01503d6..977dd86 100644 --- a/gcc/gimple-ssa-warn-restrict.c +++ b/gcc/gimple-ssa-warn-restrict.c @@ -1618,6 +1618,7 @@ maybe_diag_offset_bounds (location_t loc, gimple *call, tree func, int strict, if (DECL_P (ref.base) && TREE_CODE (type = TREE_TYPE (ref.base)) == ARRAY_TYPE) { + auto_diagnostic_group d; if (warning_at (loc, OPT_Warray_bounds, "%G%qD pointer overflow between offset %s " "and size %s accessing array %qD with type %qT", @@ -1650,6 +1651,7 @@ maybe_diag_offset_bounds (location_t loc, gimple *call, tree func, int strict, if (DECL_P (ref.base)) { + auto_diagnostic_group d; if ((ref.basesize < maxobjsize && warning_at (loc, OPT_Warray_bounds, form |