aboutsummaryrefslogtreecommitdiff
path: root/gcc/file-prefix-map.h
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@marvell.com>2023-03-01 11:13:21 -0800
committerAndrew Pinski <apinski@marvell.com>2023-03-09 18:28:09 +0000
commitc6232ba229a4fcd453b50f11351fcbd35296809c (patch)
tree90c72caae0dbac71dfaeb51073a545c3668594ac /gcc/file-prefix-map.h
parent3df9760d56662bdf38dd45f7398f003bbd64fdfe (diff)
downloadgcc-c6232ba229a4fcd453b50f11351fcbd35296809c.zip
gcc-c6232ba229a4fcd453b50f11351fcbd35296809c.tar.gz
gcc-c6232ba229a4fcd453b50f11351fcbd35296809c.tar.bz2
Fix PR 108980: note without warning due to array bounds check
The problem here is after r13-4748-g2a27ae32fabf85, in some cases we were calling inform without a corresponding warning. This changes the logic such that we only cause that to happen if there was a warning happened before hand. Changes since * v1: Fix formating and dump message as suggested by Jakub. OK? Bootstrapped and tested on x86_64-linux-gnu with no regressions. gcc/ChangeLog: PR tree-optimization/108980 * gimple-array-bounds.cc (array_bounds_checker::check_array_ref): Reorgnize the call to warning for not strict flexible arrays to be before the check of warned.
Diffstat (limited to 'gcc/file-prefix-map.h')
0 files changed, 0 insertions, 0 deletions