https://gcc.gnu.org/g:931289c27a84e5646fb876c99fbf02fba4fb5dd2

commit r17-4268-g931289c27a84e5646fb876c99fbf02fba4fb5dd2
Author: Takayuki 'January June' Suwa <[email protected]>
Date:   Sun Sep 13 05:06:30 2026 +0900

    xtensa: Reformat REG_ALLOC_ORDER
    
    Cosmetics for readability.  Thus no functional changes.
    
    gcc/ChangeLog:
    
            * config/xtensa/xtensa.cc (xtensa_adjust_reg_alloc_order):
            Reformat the "reg_call0_alloc_order" array.
            * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Reformat.

Diff:
---
 gcc/config/xtensa/xtensa.cc | 6 ++----
 gcc/config/xtensa/xtensa.h  | 6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc
index b1daa0f0a998..9f9d1b8ef49a 100644
--- a/gcc/config/xtensa/xtensa.cc
+++ b/gcc/config/xtensa/xtensa.cc
@@ -4471,11 +4471,9 @@ xtensa_adjust_reg_alloc_order (void)
        REG_ALLOC_ORDER;
   static const int reg_call0_alloc_order[FIRST_PSEUDO_REGISTER] =
   {
-     9, 10, 11,  7,  6,  5,  4,  3,  2,  8,  0, 12, 13, 14, 15,
-    18,
+     9, 10, 11,  7,  6,  5,  4,  3,  2,  8,  0, 12, 13, 14, 15, 18,
     19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
-     1, 16, 17,
-    35,
+     1, 16, 17, 35,
   };
 
   memcpy (reg_alloc_order, TARGET_WINDOWED_ABI ?
diff --git a/gcc/config/xtensa/xtensa.h b/gcc/config/xtensa/xtensa.h
index 5bf1645033c6..4fab1e055a18 100644
--- a/gcc/config/xtensa/xtensa.h
+++ b/gcc/config/xtensa/xtensa.h
@@ -249,11 +249,9 @@ along with GCC; see the file COPYING3.  If not see
 
 #define REG_ALLOC_ORDER                                                        
\
 {                                                                      \
-   8,  9, 10, 11, 12, 13, 14, 15,  7,  6,  5,  4,  3,  2,              \
-  18,                                                                  \
+   8,  9, 10, 11, 12, 13, 14, 15,  7,  6,  5,  4,  3,  2, 18,          \
   19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,      \
-   0,  1, 16, 17,                                                      \
-  35,                                                                  \
+   0,  1, 16, 17, 35,                                                  \
 }
 #define ADJUST_REG_ALLOC_ORDER xtensa_adjust_reg_alloc_order ()

Reply via email to