aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2012-01-02 13:56:36 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2012-01-02 13:56:36 +0000
commit0d8f5d625faf1a8a063bb849770665e743110aaf (patch)
tree39f96b35ec1e219ff6c91560fb53beab4a2ffdcc /gcc/expr.c
parent9f929ce61f62c3dd84bb773b056652cadeebdec5 (diff)
downloadgcc-0d8f5d625faf1a8a063bb849770665e743110aaf.zip
gcc-0d8f5d625faf1a8a063bb849770665e743110aaf.tar.gz
gcc-0d8f5d625faf1a8a063bb849770665e743110aaf.tar.bz2
expr.h (move_by_pieces_ninsns): Declare.
gcc/ * expr.h (move_by_pieces_ninsns): Declare. * expr.c (move_by_pieces_ninsns): Make external. * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare. (mips_store_by_pieces_p): Likewise. * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p. (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p. * config/mips/mips.c (mips_move_by_pieces_p): New function. (mips_store_by_pieces_p): Likewise. gcc/testsuite/ * gcc.dg/memcpy-4.c: Add nomips16 attribute for MIPS targets. Increase copy to 5 bytes. Look for at least two "mem/s/u"s, rather than a specific number. From-SVN: r182801
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index c10f915..9825d12 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -123,9 +123,6 @@ struct store_by_pieces_d
int reverse;
};
-static unsigned HOST_WIDE_INT move_by_pieces_ninsns (unsigned HOST_WIDE_INT,
- unsigned int,
- unsigned int);
static void move_by_pieces_1 (rtx (*) (rtx, ...), enum machine_mode,
struct move_by_pieces_d *);
static bool block_move_libcall_safe_for_call_parm (void);
@@ -1016,7 +1013,7 @@ move_by_pieces (rtx to, rtx from, unsigned HOST_WIDE_INT len,
/* Return number of insns required to move L bytes by pieces.
ALIGN (in bits) is maximum alignment we can assume. */
-static unsigned HOST_WIDE_INT
+unsigned HOST_WIDE_INT
move_by_pieces_ninsns (unsigned HOST_WIDE_INT l, unsigned int align,
unsigned int max_size)
{