aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/constexpr.c
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-07-19 15:18:08 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:20:17 -0300
commit5a467bb74a261df22772e60d9ab2ea22439d6d27 (patch)
tree715ba053befde079ca7dc10844e72b8bca92a4ef /gcc/cp/constexpr.c
parentaa68ce4e740c2c579fb778d6c2f39ca7307fc1d1 (diff)
downloadgcc-5a467bb74a261df22772e60d9ab2ea22439d6d27.zip
gcc-5a467bb74a261df22772e60d9ab2ea22439d6d27.tar.gz
gcc-5a467bb74a261df22772e60d9ab2ea22439d6d27.tar.bz2
d: Inline bounds checking for simple array assignments.
This optimizes the code generation of simple array assignments, inlining the array bounds checking code so there is no reliance on the library routine _d_arraycopy(), which also deals with postblit and copy constructors for non-trivial arrays. gcc/d/ChangeLog: * expr.cc (ExprVisitor::visit (AssignExp *)): Inline bounds checking for simple array assignments. gcc/testsuite/ChangeLog: * gdc.dg/array1.d: New test.
Diffstat (limited to 'gcc/cp/constexpr.c')
0 files changed, 0 insertions, 0 deletions