aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.cc
diff options
context:
space:
mode:
authorSteve Baird <baird@adacore.com>2024-04-30 13:44:25 -0700
committerMarc Poulhiès <poulhies@adacore.com>2024-06-13 15:30:33 +0200
commitcc960e70b800e6739f16a3e890d27bad48550297 (patch)
treea9f2e0075f3df0408b775f3ec1b8cce0a8d411be /gcc/expr.cc
parent79a35e558e74fd61fa265e0307f2296114ab1b86 (diff)
downloadgcc-cc960e70b800e6739f16a3e890d27bad48550297.zip
gcc-cc960e70b800e6739f16a3e890d27bad48550297.tar.gz
gcc-cc960e70b800e6739f16a3e890d27bad48550297.tar.bz2
ada: Deep copy of an expression sometimes fails to copy entities
An entity can be defined within an expression (the best example is probably a declare expression, but a quantified expression is another; there are others). When making a deep copy of an expression, the Entity nodes for such entities were sometimes not copied, apparently for performance reasons. This caused correctness problems in some cases, so do not perform that "optimization". gcc/ada/ * sem_util.adb (New_Copy_Tree.Visit_Entity): Delete code that prevented copying some entities.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions