Commit 19ac960a by Chung-Ju Wu Committed by Chung-Ju Wu

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.

From-SVN: r212809
parent 1a4cb227
2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
* 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.
2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de> 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* config/mmix/mmix.c (mmix_intval): Drop unused automatic variable. * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
along with GCC; see the file COPYING3. If not see along with GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
/* ------------------------------------------------------------------------ */
#include "config.h" #include "config.h"
#include "system.h" #include "system.h"
...@@ -1195,7 +1195,8 @@ nds32_register_priority (int hard_regno) ...@@ -1195,7 +1195,8 @@ nds32_register_priority (int hard_regno)
/* -- Eliminating Frame Pointer and Arg Pointer. */ /* -- 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) if (from_reg == ARG_POINTER_REGNUM && to_reg == STACK_POINTER_REGNUM)
return true; return true;
...@@ -1795,9 +1796,10 @@ nds32_legitimate_address_p (enum machine_mode mode, rtx x, bool strict) ...@@ -1795,9 +1796,10 @@ nds32_legitimate_address_p (enum machine_mode mode, rtx x, bool strict)
/* Describing Relative Costs of Operations. */ /* Describing Relative Costs of Operations. */
static int nds32_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, static int
reg_class_t from, nds32_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED,
reg_class_t to) reg_class_t from,
reg_class_t to)
{ {
if (from == HIGH_REGS || to == HIGH_REGS) if (from == HIGH_REGS || to == HIGH_REGS)
return 6; return 6;
...@@ -1805,9 +1807,10 @@ static int nds32_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, ...@@ -1805,9 +1807,10 @@ static int nds32_register_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED,
return 2; return 2;
} }
static int nds32_memory_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED, static int
reg_class_t rclass ATTRIBUTE_UNUSED, nds32_memory_move_cost (enum machine_mode mode ATTRIBUTE_UNUSED,
bool in ATTRIBUTE_UNUSED) reg_class_t rclass ATTRIBUTE_UNUSED,
bool in ATTRIBUTE_UNUSED)
{ {
return 8; return 8;
} }
...@@ -1827,10 +1830,11 @@ nds32_rtx_costs (rtx x, ...@@ -1827,10 +1830,11 @@ nds32_rtx_costs (rtx x,
return nds32_rtx_costs_impl (x, code, outer_code, opno, total, speed); return nds32_rtx_costs_impl (x, code, outer_code, opno, total, speed);
} }
static int nds32_address_cost (rtx address, static int
enum machine_mode mode, nds32_address_cost (rtx address,
addr_space_t as, enum machine_mode mode,
bool speed) addr_space_t as,
bool speed)
{ {
return nds32_address_cost_impl (address, mode, as, speed); return nds32_address_cost_impl (address, mode, as, speed);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment