aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@hxi.com>2002-02-02 21:38:49 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2002-02-02 21:38:49 +0000
commit9cbcd983a9413df7092de66b177cfa3ab0ceb5f9 (patch)
treeb62dc2e0343482448aaca119027e98dafc2841bb
parent7a27efc4eb366a39d5c0a4a8dda6f0cbe2c91826 (diff)
downloadgcc-9cbcd983a9413df7092de66b177cfa3ab0ceb5f9.zip
gcc-9cbcd983a9413df7092de66b177cfa3ab0ceb5f9.tar.gz
gcc-9cbcd983a9413df7092de66b177cfa3ab0ceb5f9.tar.bz2
* config/h8300/h8300.c: Fix formatting.
From-SVN: r49449
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/h8300/h8300.c37
2 files changed, 23 insertions, 18 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index edd2179..cde4195 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2002-02-02 Kazu Hirata <kazu@hxi.com>
+ * config/h8300/h8300.c: Fix formatting.
+
+2002-02-02 Kazu Hirata <kazu@hxi.com>
+
* config/h8300/h8300.md: Fix formatting.
2002-02-02 Kazu Hirata <kazu@hxi.com>
diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c
index e996209..13fc17e 100644
--- a/gcc/config/h8300/h8300.c
+++ b/gcc/config/h8300/h8300.c
@@ -148,30 +148,31 @@ byte_reg (x, b)
rtx x;
int b;
{
- static const char *const names_small[] =
- {"r0l", "r0h", "r1l", "r1h", "r2l", "r2h", "r3l", "r3h",
- "r4l", "r4h", "r5l", "r5h", "r6l", "r6h", "r7l", "r7h"};
+ static const char *const names_small[] = {
+ "r0l", "r0h", "r1l", "r1h", "r2l", "r2h", "r3l", "r3h",
+ "r4l", "r4h", "r5l", "r5h", "r6l", "r6h", "r7l", "r7h"
+ };
return names_small[REGNO (x) * 2 + b];
}
/* REGNO must be saved/restored across calls if this macro is true. */
-#define WORD_REG_USED(regno) \
- (regno < 7 \
- /* No need to save registers if this function will not return. */\
- && ! TREE_THIS_VOLATILE (current_function_decl) \
- && (pragma_saveall \
- /* Save any call saved register that was used. */ \
- || (regs_ever_live[regno] && !call_used_regs[regno]) \
- /* Save the frame pointer if it was used. */ \
- || (regno == FRAME_POINTER_REGNUM && regs_ever_live[regno])\
- /* Save any register used in an interrupt handler. */ \
- || (interrupt_handler && regs_ever_live[regno]) \
- /* Save call clobbered registers in non-leaf interrupt \
- handlers. */ \
- || (interrupt_handler \
- && call_used_regs[regno] \
+#define WORD_REG_USED(regno) \
+ (regno < 7 \
+ /* No need to save registers if this function will not return. */ \
+ && ! TREE_THIS_VOLATILE (current_function_decl) \
+ && (pragma_saveall \
+ /* Save any call saved register that was used. */ \
+ || (regs_ever_live[regno] && !call_used_regs[regno]) \
+ /* Save the frame pointer if it was used. */ \
+ || (regno == FRAME_POINTER_REGNUM && regs_ever_live[regno]) \
+ /* Save any register used in an interrupt handler. */ \
+ || (interrupt_handler && regs_ever_live[regno]) \
+ /* Save call clobbered registers in non-leaf interrupt \
+ handlers. */ \
+ || (interrupt_handler \
+ && call_used_regs[regno] \
&& !current_function_is_leaf)))
/* Output assembly language to FILE for the operation OP with operand size