diff options
author | jasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-18 10:50:04 +0000 |
---|---|---|
committer | jasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-18 10:50:04 +0000 |
commit | 7a878515053b16eb4372724906e905b5208dce4e (patch) | |
tree | 178c02bad123f8cf69d9e0ca00cb906abaa54959 /gcc/config/nds32 | |
parent | 7c9243cbaa5e46c2e91791ccf4197254246d3b80 (diff) | |
download | gcc-7a878515053b16eb4372724906e905b5208dce4e.tar.gz |
Follow the GNU coding standards.
* config/nds32/nds32.c (nds32_can_eliminate): Follow the
GNU coding standards.
(nds32_register_move_cost): Likewise.
(nds32_memory_move_cost): Likewise.
(nds32_address_cost): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212809 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/nds32')
-rw-r--r-- | gcc/config/nds32/nds32.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/gcc/config/nds32/nds32.c b/gcc/config/nds32/nds32.c index 8777e8b4295..2609a168e07 100644 --- a/gcc/config/nds32/nds32.c +++ b/gcc/config/nds32/nds32.c @@ -18,7 +18,7 @@ along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ - +/* ------------------------------------------------------------------------ */ #include "config.h" #include "system.h" @@ -1195,7 +1195,8 @@ nds32_register_priority (int hard_regno) /* -- Eliminating Frame Pointer and Arg Pointer. */ -static bool nds32_can_eliminate (const int from_reg, const int to_reg) +static bool +nds32_can_eliminate (const int from_reg, const int to_reg) { if (from_reg == ARG_POINTER_REGNUM && to_reg == STACK_POINTER_REGNUM) return true; @@ -1795,9 +1796,10 @@ nds32_legitimate_address_p (enum machine_mode mode, rtx x, bool strict) /* Describing Relative Costs of Operations. */ -static int nds32_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, - reg_class_t from, - reg_class_t to) +static int +nds32_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, + reg_class_t from, + reg_class_t to) { if (from == HIGH_REGS || to == HIGH_REGS) return 6; @@ -1805,9 +1807,10 @@ static int nds32_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, return 2; } -static int nds32_memory_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, - reg_class_t rclass ATTRIBUTE_UNUSED, - bool in ATTRIBUTE_UNUSED) +static int +nds32_memory_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, + reg_class_t rclass ATTRIBUTE_UNUSED, + bool in ATTRIBUTE_UNUSED) { return 8; } @@ -1827,10 +1830,11 @@ nds32_rtx_costs (rtx x, return nds32_rtx_costs_impl (x, code, outer_code, opno, total, speed); } -static int nds32_address_cost (rtx address, - enum machine_mode mode, - addr_space_t as, - bool speed) +static int +nds32_address_cost (rtx address, + enum machine_mode mode, + addr_space_t as, + bool speed) { return nds32_address_cost_impl (address, mode, as, speed); } |