From d042370eb0c2135e07b782b8b1a220a5fcbb08ee Mon Sep 17 00:00:00 2001 From: "J\"orn Rennecke" Date: Thu, 18 Jul 2002 12:47:34 +0000 Subject: [PATCH] sh.c (barrier_align, push): Shut up compiler warnings. * sh.c (barrier_align, push): Shut up compiler warnings. (initial_elimination_offset,sh_media_init_builtins): Likewise. (reg_no_subreg_operand): Delete. From-SVN: r55555 --- gcc/ChangeLog | 6 ++++++ gcc/config/sh/sh.c | 24 ++++++------------------ 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 70986fd7105..574f0d83733 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 18 13:44:51 2002 J"orn Rennecke + + * sh.c (barrier_align, push): Shut up compiler warnings. + (initial_elimination_offset,sh_media_init_builtins): Likewise. + (reg_no_subreg_operand): Delete. + 2002-07-17 Bo Thorsen * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option. diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 26026b4c93c..0b34b4b10c8 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -3288,7 +3288,7 @@ barrier_align (barrier_or_label) /* If this is a very small table, we want to keep the alignment after the table to the minimum for proper code alignment. */ return ((TARGET_SMALLCODE - || (XVECLEN (pat, 1) * GET_MODE_SIZE (GET_MODE (pat)) + || ((unsigned) XVECLEN (pat, 1) * GET_MODE_SIZE (GET_MODE (pat)) <= (unsigned)1 << (CACHE_LOG - 2))) ? 1 << TARGET_SHMEDIA : CACHE_LOG); } @@ -4309,7 +4309,7 @@ push (rn) && FP_OR_XD_REGISTER_P (rn)) { if (FP_REGISTER_P (rn) && (rn - FIRST_FP_REG) & 1) - return; + return NULL_RTX; x = gen_push_4 (gen_rtx_REG (DFmode, rn)); } else if (TARGET_SH3E && FP_REGISTER_P (rn)) @@ -5529,6 +5529,7 @@ initial_elimination_offset (from, to) if (from == RETURN_ADDRESS_POINTER_REGNUM && (to == FRAME_POINTER_REGNUM || to == STACK_POINTER_REGNUM)) + { if (TARGET_SH5) { int i, n = total_saved_regs_space; @@ -5581,7 +5582,8 @@ initial_elimination_offset (from, to) abort (); } else - return total_auto_space; + return total_auto_space; + } abort (); } @@ -5827,20 +5829,6 @@ general_movdst_operand (op, mode) return general_operand (op, mode); } -/* Accept a register, but not a subreg of any kind. This allows us to - avoid pathological cases in reload wrt data movement common in - int->fp conversion. */ - -int -reg_no_subreg_operand (op, mode) - register rtx op; - enum machine_mode mode; -{ - if (GET_CODE (op) == SUBREG) - return 0; - return register_operand (op, mode); -} - /* Returns 1 if OP is a normal arithmetic register. */ int @@ -7451,7 +7439,7 @@ sh_media_init_builtins () const struct builtin_description *d; memset (shared, 0, sizeof shared); - for (d = bdesc; d - bdesc < sizeof bdesc / sizeof bdesc[0]; d++) + for (d = bdesc; d - bdesc < (int) (sizeof bdesc / sizeof bdesc[0]); d++) { tree type, arg_type; int signature = d->signature;