From 4b297e2e8e39dbf2c0c3ac6c00da3c3f4ac0f1e5 Mon Sep 17 00:00:00 2001 From: sandra Date: Fri, 24 Aug 2007 23:54:05 +0000 Subject: 2007-08-24 Sandra Loosemore Nigel Stephens PR target/11787 gcc/ * doc/tm.texi (SET_RATIO, SET_BY_PIECES_P): Document new macros. (STORE_BY_PIECES_P): No longer applies to __builtin_memset. * expr.c (SET_BY_PIECES_P): Define. (can_store_by_pieces, store_by_pieces): Add MEMSETP argument; use it to decide whether to use SET_BY_PIECES_P or STORE_BY_PIECES_P. (store_expr): Pass MEMSETP argument to can_store_by_pieces and store_by_pieces. * expr.h (SET_RATIO): Define. (can_store_by_pieces, store_by_pieces): Update prototypes. * builtins.c (expand_builtin_memcpy): Pass MEMSETP argument to can_store_by_pieces/store_by_pieces. (expand_builtin_memcpy_args): Likewise. (expand_builtin_strncpy): Likewise. (expand_builtin_memset_args): Likewise. Also remove special case for optimize_size so that can_store_by_pieces/SET_BY_PIECES_P can decide what to do instead. * value-prof.c (tree_stringops_transform): Pass MEMSETP argument to can_store_by_pieces. * config/sh/sh.h (SET_BY_PIECES_P): Clone from STORE_BY_PIECES_P. * config/s390/s390.h (SET_BY_PIECES_P): Likewise. * config/mips/mips.opt (mmemcpy): Change from Var to Mask. * config/mips/mips.c (override_options): Make -Os default to -mmemcpy. * config/mips/mips.h (MIPS_CALL_RATIO): Define. (MOVE_RATIO, CLEAR_RATIO, SET_RATIO): Define. (STORE_BY_PIECES_P): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127790 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/config/mips/mips.opt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/config/mips/mips.opt') diff --git a/gcc/config/mips/mips.opt b/gcc/config/mips/mips.opt index 4a752ec3987..6f6c109187c 100644 --- a/gcc/config/mips/mips.opt +++ b/gcc/config/mips/mips.opt @@ -173,7 +173,7 @@ Target Report RejectNegative Mask(LONG64) Use a 64-bit long type mmemcpy -Target Report Var(TARGET_MEMCPY) +Target Report Mask(MEMCPY) Don't optimize block moves mmips-tfile -- cgit v1.2.1