diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2023-03-02 15:11:40 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2023-05-25 09:44:15 +0200 |
commit | 6b5960e77598c64ea1e5e41e74e4d9a155a95e83 (patch) | |
tree | 38c8486eeebc1951dc51c9983673959b2f6ed8fb /gcc/tree-vectorizer.h | |
parent | 5bf5aa1bfdb6c090d9d24dc6835aba0005f68fca (diff) | |
download | gcc-6b5960e77598c64ea1e5e41e74e4d9a155a95e83.zip gcc-6b5960e77598c64ea1e5e41e74e4d9a155a95e83.tar.gz gcc-6b5960e77598c64ea1e5e41e74e4d9a155a95e83.tar.bz2 |
ada: Tune warning about assignment just before a raise statement
Tune warning about a possibly ineffective assignment to a formal
parameter that happens just before a raise statement.
The warning is now emitted for parameters of all by-copy types and not
just of scalar types (this gives more warnings), but is suppressed for
aliased parameters (this removes some spurious warnings).
gcc/ada/
* sem_ch11.adb (Analyze_Raise_Expression): Tune warning condition.
* libgnat/g-dirope.ads (Open): Remove a potentially inaccurate comment.
* libgnat/g-dirope.adb (Open): Remove a potentially useless assignment;
the Dir output parameter should be assigned a null value anyway by the
preceding call to Free.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions