diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-17 06:56:47 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-17 06:56:47 +0000 |
| commit | e83ff88ba284a3852c19a2dad4682c9b8b6e52e6 (patch) | |
| tree | 052358a4ba373ec54ae0d5b223c56dd528b51e0b | |
| parent | 8837693a0407cc0ccc3ccb25c2288664f1182e5e (diff) | |
| download | ppe42-gcc-e83ff88ba284a3852c19a2dad4682c9b8b6e52e6.tar.gz ppe42-gcc-e83ff88ba284a3852c19a2dad4682c9b8b6e52e6.zip | |
* expr.c (emit_block_move): Set memory block size as appropriate
for the copy.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57233 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/expr.c | 10 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b1d3dea5aa..ee29a5a3238 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2002-09-16 Richard Henderson <rth@redhat.com> + * expr.c (emit_block_move): Set memory block size as appropriate + for the copy. + +2002-09-16 Richard Henderson <rth@redhat.com> + PR fortran/3924 * sdbout.c (sdbout_symbol): Don't handle offsets from a symbol. diff --git a/gcc/expr.c b/gcc/expr.c index 5872ab055fb..4ac7252332f 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -1733,6 +1733,16 @@ emit_block_move (x, y, size, method) if (size == 0) abort (); + /* Set MEM_SIZE as appropriate for this block copy. The main place this + can be incorrect is coming from __builtin_memcpy. */ + if (GET_CODE (size) == CONST_INT) + { + x = shallow_copy_rtx (x); + y = shallow_copy_rtx (y); + set_mem_size (x, size); + set_mem_size (y, size); + } + if (GET_CODE (size) == CONST_INT && MOVE_BY_PIECES_P (INTVAL (size), align)) move_by_pieces (x, y, INTVAL (size), align); else if (emit_block_move_via_movstr (x, y, size, align)) |

