diff options
author | Bob Duff <duff@adacore.com> | 2022-06-24 14:25:48 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-07-12 12:24:12 +0000 |
commit | e124352c0ada83486926f110c8b28a0a431c98b4 (patch) | |
tree | 39b9113a69497e0d183cb28e60625ccb37ccfec8 /gcc/ada/fe.h | |
parent | 6a64ee3903166dcb1a7803fbf49c31d0f89875a8 (diff) | |
download | gcc-e124352c0ada83486926f110c8b28a0a431c98b4.zip gcc-e124352c0ada83486926f110c8b28a0a431c98b4.tar.gz gcc-e124352c0ada83486926f110c8b28a0a431c98b4.tar.bz2 |
[Ada] Refine heuristics for unreachable-code warnings
This patch refines the heuristics for when we warn about unreachable
code, to avoid common false alarms.
gcc/ada/
* sem_ch5.adb (Check_Unreachable_Code): Refine heuristics.
* sem_util.ads, sem_util.adb (Is_Static_Constant_Name): Remove
this; instead we have a new function Is_Simple_Case in
Sem_Ch5.Check_Unreachable_Code.
Diffstat (limited to 'gcc/ada/fe.h')
0 files changed, 0 insertions, 0 deletions