aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.h
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-07-19 15:18:08 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-07-30 18:02:59 +0200
commitfebd7c43bce0a305aa24ed214ea6a5cba69753dd (patch)
treee8ccc50f5a38f3ab0d85756c5b235a0830b74d5b /gcc/builtins.h
parentab0edbcb371cce5f82136f20ad45155c003d4982 (diff)
downloadgcc-febd7c43bce0a305aa24ed214ea6a5cba69753dd.zip
gcc-febd7c43bce0a305aa24ed214ea6a5cba69753dd.tar.gz
gcc-febd7c43bce0a305aa24ed214ea6a5cba69753dd.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/builtins.h')
0 files changed, 0 insertions, 0 deletions