[Patch 1/7] Hookize *_BY_PIECES_P
authorJames Greenhalgh <james.greenhalgh@arm.com>
Sat, 1 Nov 2014 08:13:09 +0000 (08:13 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Sat, 1 Nov 2014 08:13:09 +0000 (08:13 +0000)
commit7cbed00872ff3e20e5183f0cb788cd0c86bdf168
treec478897b6815f2a9b6b21d0aca73130690f0b5fd
parent240decf782968d137494cc9850fad5b310192c38
[Patch 1/7] Hookize *_BY_PIECES_P

gcc/

* target.def (use_by_pieces_infrastructure_p): New.
* doc/tm.texi.in (MOVE_BY_PIECES_P): Describe that this macro
is deprecated.
(STORE_BY_PIECES_P): Likewise.
(CLEAR_BY_PIECES_P): Likewise.
(SET_BY_PIECES_P): Likewise.
(TARGET_MOVE_BY_PIECES_PROFITABLE_P): Add hook.
* doc/tm.texi: Regenerate.
* expr.c (MOVE_BY_PIECES_P): Rewrite in terms of
TARGET_USE_BY_PIECES_INFRASTRUCTURE_P.
(STORE_BY_PIECES_P): Likewise.
(CLEAR_BY_PIECES_P): Likewise.
(SET_BY_PIECES_P): Likewise.
(STORE_MAX_PIECES): Move to...
* defaults.h (STORE_MAX_PIECES): ...here.
* targhooks.c (get_move_ratio): New.
(default_use_by_pieces_infrastructure_p): Likewise.
* targhooks.h (default_use_by_pieces_infrastructure_p): New.
* target.h (by_pieces_operation): New.

From-SVN: r216996
gcc/ChangeLog
gcc/defaults.h
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/expr.c
gcc/target.def
gcc/target.h
gcc/targhooks.c
gcc/targhooks.h