diff options
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/h8300/fixunssfsi.c | 8 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 10 |
3 files changed, 18 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1a3a88e49e3..36b9f990cda 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/config/h8300/fixunssfsi.c b/gcc/config/h8300/fixunssfsi.c index ed37803ed91..80339f2599d 100644 --- a/gcc/config/h8300/fixunssfsi.c +++ b/gcc/config/h8300/fixunssfsi.c @@ -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 diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index 5c298e7529f..2a0e260de65 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -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; |