[PATCH, nds32] Committed: Have function name start in column one to follow GNU coding standards.

Chung-Ju Wu jasonwucj@gmail.com
Fri Jul 18 11:03:00 GMT 2014


Hi,

According to the GNU coding standards, the function name should start
in column one.  Fixed it as obvious, committed as Rev.212809.


Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog       (revision 212808)
+++ gcc/ChangeLog       (working copy)
@@ -1,3 +1,11 @@
+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>

        * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.



Index: gcc/config/nds32/nds32.c
===================================================================
--- gcc/config/nds32/nds32.c    (revision 212808)
+++ gcc/config/nds32/nds32.c    (working copy)
@@ -18,8 +18,8 @@
    along with GCC; see the file COPYING3.  If not see
    <http://www.gnu.org/licenses/>.  */

+/* ------------------------------------------------------------------------ */

-
 #include "config.h"
 #include "system.h"
 #include "coretypes.h"
@@ -1195,7 +1195,8 @@

 /* -- 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 @@
 ^L
 /* 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 @@
   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 @@
   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);
 }


Best regards,
jasonwucj



More information about the Gcc-patches mailing list