diff options
author | 2003-08-07 12:33:55 +0000 | |
---|---|---|
committer | 2003-08-07 12:33:55 +0000 | |
commit | 11bc01a64da9edb777618a132cd1ae2bdd56f1be (patch) | |
tree | d89dbf50bcb03b9606d00aceb7b656fbd4b494d1 | |
parent | trivial clean-up: indent tests and mark phony targets. (diff) | |
download | wireguard-openbsd-11bc01a64da9edb777618a132cd1ae2bdd56f1be.tar.xz wireguard-openbsd-11bc01a64da9edb777618a132cd1ae2bdd56f1be.zip |
Disable the so-called optimized memcpy functions for small (less than a few
hundred bytes) block copies. While the functions themselves are probably
optimal or not far from it, the code responsible for their invocation is not,
and has a bad tendency of miscomputing the destination buffer address,
especially when optimization is used.
This is a temporary measure, these functions will be reenabled once a good fix
is ready.
ok deraadt@ espie@
-rw-r--r-- | gnu/egcs/gcc/config/m88k/m88k.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/egcs/gcc/config/m88k/m88k.c b/gnu/egcs/gcc/config/m88k/m88k.c index bf3f65fd738..3545329a2b8 100644 --- a/gnu/egcs/gcc/config/m88k/m88k.c +++ b/gnu/egcs/gcc/config/m88k/m88k.c @@ -515,6 +515,7 @@ expand_block_move (dest_mem, src_mem, operands) block_move_sequence (operands[0], dest_mem, operands[1], src_mem, bytes, align, 0); +#if 0 /* XXX */ else if (constp && bytes <= best_from_align[target][align]) block_move_no_loop (operands[0], dest_mem, operands[1], src_mem, bytes, align); @@ -523,6 +524,7 @@ expand_block_move (dest_mem, src_mem, operands) block_move_loop (operands[0], dest_mem, operands[1], src_mem, bytes, align); +#endif else { #ifdef TARGET_MEM_FUNCTIONS |