aboutsummaryrefslogtreecommitdiff
path: root/libssp/stpcpy-chk.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2024-11-10 19:20:13 +0100
committerMarc Poulhiès <dkm@gcc.gnu.org>2024-11-18 15:06:55 +0100
commit70999668a1305571d3b5fc57168fcb060a976418 (patch)
tree3dc21379637e5cb4447bc86cff85aadd26082823 /libssp/stpcpy-chk.c
parent4e23ce507067b04865342bb1a22a3651caaf28bc (diff)
downloadgcc-master.zip
gcc-master.tar.gz
gcc-master.tar.bz2
ada: Fix interaction of aspect Predicate and static case expressionsHEADtrunkmaster
The semantics of the GNAT-specific Predicate aspect should be equivalent to those of the Static_Predicate aspect when the predicate expression is static, but that is not correctly implemented for static case expressions. gcc/ada/ChangeLog: * exp_ch4.adb (Expand_N_Case_Expression): Remove the test on enclosing predicate function for the return optimization. Rewrite it in the general case to catch all nondynamic predicates. (Expand_N_If_Expression): Remove the test on enclosing predicate function for the return optimization.
Diffstat (limited to 'libssp/stpcpy-chk.c')
0 files changed, 0 insertions, 0 deletions