diff options
author | Ronan Desplanques <desplanques@adacore.com> | 2024-02-14 15:12:15 +0100 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2024-05-14 10:19:57 +0200 |
commit | faf462cfe686228113fc9d968809dd4f40395dde (patch) | |
tree | 5cbc8183d17cdc513be815148de64e44782cafcb /gcc/expr.cc | |
parent | 08039257610508b153d13b6cab1f252297d143a9 (diff) | |
download | gcc-faf462cfe686228113fc9d968809dd4f40395dde.zip gcc-faf462cfe686228113fc9d968809dd4f40395dde.tar.gz gcc-faf462cfe686228113fc9d968809dd4f40395dde.tar.bz2 |
ada: Fix crash with -gnatdJ and -gnatyz
This patch makes it so -gnatyz style checks reports specify a node
ID. That is required since those checks are sometimes made during
semantic analysis of short-circuit operators, where the Current_Node
mechanism that -gnatdJ uses is not operational.
Check_Xtra_Parens_Precedence is moved from Styleg to Style to make
this possible.
gcc/ada/
* styleg.ads (Check_Xtra_Parens_Precedence): Moved ...
* style.ads (Check_Xtra_Parens_Precedence): ... here. Also
replace corresponding renaming.
* styleg.adb (Check_Xtra_Parens_Precedence): Moved ...
* style.adb (Check_Xtra_Parens_Precedence): here. Also use
Errout.Error_Msg and pass it a node parameter.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions