OSDN Git Service

* config/h8300/fixunssfsi.c: Update copyright.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jan 2002 07:57:15 +0000 (07:57 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jan 2002 07:57:15 +0000 (07:57 +0000)
Fix comment typos.
Fix formatting.
* config/h8300/h8300.c: Update copyright.
Eliminate warnings.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48460 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/h8300/fixunssfsi.c
gcc/config/h8300/h8300.c

index 1a3a88e..36b9f99 100644 (file)
@@ -1,5 +1,13 @@
 2002-01-02  Kazu Hirata  <kazu@hxi.com>
 
+       * config/h8300/fixunssfsi.c: Update copyright.
+       Fix comment typos.
+       Fix formatting.
+       * config/h8300/h8300.c: Update copyright.
+       Eliminate warnings.
+
+2002-01-02  Kazu Hirata  <kazu@hxi.com>
+
        * config/romp/romp.c: Fix comment formatting.
        * config/romp/romp.h: Likewise.
        * config/romp/romp.md: Likewise.
index ed37803..80339f2 100644 (file)
@@ -1,6 +1,6 @@
 /* More subroutines needed by GCC output code on some machines.  */
 /* Compile this one with gcc.  */
-/* Copyright (C) 1989, 1992, 2001  Free Software Foundation, Inc.
+/* Copyright (C) 1989, 1992, 2001, 2002  Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -29,15 +29,15 @@ the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
 /* The libgcc2.c implementation gets confused by our type setup and creates
-   a directly recursive call, so we do our own implementation.  For the h8300,
-   that's in lib1funcs.asm, for h8300h / h8s, it's here.  */
+   a directly recursive call, so we do our own implementation.  For
+   the H8/300, that's in lib1funcs.asm, for H8/300H and H8/S, it's here.  */
 
 #ifndef __H8300__
 long
 __fixunssfsi (float a)
 {
   if (a >= (float) 32768L)
-    return (long) (a -32768L) +32768L;
+    return (long) (a - 32768L) + 32768L;
   return (long) a;
 }
 #endif
index 5c298e7..2a0e260 100644 (file)
@@ -1,6 +1,6 @@
 /* Subroutines for insn-output.c for Hitachi H8/300.
-   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
-   Free Software Foundation, Inc. 
+   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
+   2001, 2002 Free Software Foundation, Inc.
    Contributed by Steve Chamberlain (sac@cygnus.com),
    Jim Wilson (wilson@cygnus.com), and Doug Evans (dje@cygnus.com).
 
@@ -2519,6 +2519,8 @@ get_shift_alg (shift_type, shift_mode, count, info)
            case SHIFT_LSHIFTRT:
              info->special = "shll.w\t%e0\n\tmov.w\t%e0,%f0\n\txor.w\t%e0,%e0\n\trotxl.l\t%S0";
              goto end;
+           case SHIFT_ASHIFTRT:
+             abort ();
            }
        }
       else if ((TARGET_H8300 && count == 16)
@@ -2933,7 +2935,7 @@ emit_a_rotate (code, operands)
 
   /* Determine the faster direction.  After this phase, amount will be
      at most a half of GET_MODE_BITSIZE (mode).  */
-  if ((unsigned int) amount > GET_MODE_BITSIZE (mode) / 2)
+  if ((unsigned int) amount > GET_MODE_BITSIZE (mode) / 2U)
     {
       /* Flip the direction.  */
       amount = GET_MODE_BITSIZE (mode) - amount;
@@ -3435,7 +3437,7 @@ h8300_adjust_insn_length (insn, length)
 
       /* Determine the faster direction.  After this phase, amount
         will be at most a half of GET_MODE_BITSIZE (mode).  */
-      if ((unsigned int) amount > GET_MODE_BITSIZE (mode) / 2)
+      if ((unsigned int) amount > GET_MODE_BITSIZE (mode) / 2U)
        /* Flip the direction.  */
        amount = GET_MODE_BITSIZE (mode) - amount;