aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2003-02-22 03:45:48 +0000
committerHans-Peter Nilsson <hp@gcc.gnu.org>2003-02-22 03:45:48 +0000
commit5b296d934079373d33f531b4384224e4023695ca (patch)
treedd1e7d849f84851172c4cbd139cc826850e2c533 /gcc
parent182c2078bca13829deba82c7ce6d999d122cd18b (diff)
downloadgcc-5b296d934079373d33f531b4384224e4023695ca.zip
gcc-5b296d934079373d33f531b4384224e4023695ca.tar.gz
gcc-5b296d934079373d33f531b4384224e4023695ca.tar.bz2
cris.c (cris_rtx_costs): Blockify dangling else.
* config/cris/cris.c (cris_rtx_costs): Blockify dangling else. Fix functionalization typo. From-SVN: r63272
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/config/cris/cris.c14
2 files changed, 11 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 22309ff..6d6a6fb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,8 @@
2003-02-22 Hans-Peter Nilsson <hp@axis.com>
+ * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
+ Fix functionalization typo.
+
* regmove.c (optimize_reg_copy_1): Do not replace a hard register
in an asm.
diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c
index 2d33691..7e28e5b 100644
--- a/gcc/config/cris/cris.c
+++ b/gcc/config/cris/cris.c
@@ -1,5 +1,5 @@
/* Definitions for GCC. Part of the machine description for CRIS.
- Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
Contributed by Axis Communications. Written by Hans-Peter Nilsson.
This file is part of GCC.
@@ -2128,10 +2128,12 @@ cris_rtx_costs (x, code, outer_code, total)
and the PIC register. For a global PIC symbol, we also
need a read of the GOT. */
if (flag_pic)
- if (cris_got_symbol (x))
- *total = 2 + 4 + 6;
- else
- *total = 2 + 6;
+ {
+ if (cris_got_symbol (x))
+ *total = 2 + 4 + 6;
+ else
+ *total = 2 + 6;
+ }
else
*total = 6;
return true;
@@ -2169,7 +2171,7 @@ cris_rtx_costs (x, code, outer_code, total)
case UMOD:
case DIV:
if (GET_CODE (XEXP (x, 1)) != CONST_INT
- || exact_log2 (INTVAL (XEXP (X, 1)) < 0))
+ || exact_log2 (INTVAL (XEXP (x, 1)) < 0))
{
/* Estimate this as 4 + 8 * #of bits. */
*total = COSTS_N_INSNS (260);