Commit aefc5826 by Kazu Hirata Committed by Kazu Hirata

fixunssfsi.c: Update copyright.

	* config/h8300/fixunssfsi.c: Update copyright.
	Fix comment typos.
	Fix formatting.
	* config/h8300/h8300.c: Update copyright.
	Eliminate warnings.

From-SVN: r48460
parent b1c9bc51
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.
......@@ -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
/* 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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment