diff options
author | Andreas Schwab <schwab@suse.de> | 2003-01-28 11:05:18 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@gcc.gnu.org> | 2003-01-28 11:05:18 +0000 |
commit | 32214c325397831e1845013cb5234fce4eec8545 (patch) | |
tree | a85144ea6eba802df52fd5989d9c5e430c9ce139 | |
parent | 43196589ebc92f13364f70aaf29b818163fe00e0 (diff) | |
download | gcc-32214c325397831e1845013cb5234fce4eec8545.zip gcc-32214c325397831e1845013cb5234fce4eec8545.tar.gz gcc-32214c325397831e1845013cb5234fce4eec8545.tar.bz2 |
cfgloopmanip.c (create_preheader): Initialize src to avoid warning.
* cfgloopmanip.c (create_preheader): Initialize src to avoid
warning.
* expmed.c (emit_store_flag): Fix cast to avoid sign
comparison warning.
From-SVN: r61962
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cfgloopmanip.c | 4 | ||||
-rw-r--r-- | gcc/expmed.c | 4 |
3 files changed, 10 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6ffdaba..b79a486 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2003-01-28 Andreas Schwab <schwab@suse.de> + * cfgloopmanip.c (create_preheader): Initialize src to avoid + warning. + + * expmed.c (emit_store_flag): Fix cast to avoid sign + comparison warning. + * combine.c (force_to_mode): Add cast to fix warning when STORE_FLAG_VALUE is negative. diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c index 0bbf4b0..1ee4558 100644 --- a/gcc/cfgloopmanip.c +++ b/gcc/cfgloopmanip.c @@ -1,5 +1,5 @@ /* Loop manipulation code for GNU compiler. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2003 Free Software Foundation, Inc. This file is part of GCC. @@ -44,7 +44,7 @@ create_preheader (loop, dom, flags) { edge e, fallthru; basic_block dummy; - basic_block jump, src; + basic_block jump, src = 0; struct loop *cloop, *ploop; int nentry = 0; rtx insn; diff --git a/gcc/expmed.c b/gcc/expmed.c index dea2629..9fe87b6 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -1,7 +1,7 @@ /* Medium-level subroutines: convert bit-field store and extract and shifts, multiplies and divides to rtl instructions. Copyright (C) 1987, 1988, 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This file is part of GCC. @@ -4368,7 +4368,7 @@ emit_store_flag (target, code, op0, op1, mode, unsignedp, normalizep) && (normalizep || STORE_FLAG_VALUE == 1 || (GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT && ((STORE_FLAG_VALUE & GET_MODE_MASK (mode)) - == (HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1))))) + == (unsigned HOST_WIDE_INT) 1 << (GET_MODE_BITSIZE (mode) - 1))))) { subtarget = target; |