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.
/* 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.
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
/* 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).
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)
/* 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;
/* 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;