diff options
author | Hans-Peter Nilsson <hp@axis.com> | 2008-08-31 18:33:51 +0000 |
---|---|---|
committer | Hans-Peter Nilsson <hp@gcc.gnu.org> | 2008-08-31 18:33:51 +0000 |
commit | cd6b7bc60d96bede7b4aa79495523ac997ab7c62 (patch) | |
tree | a6b3b15cb192529578af1cb7d67108047b6ee2f3 /gcc | |
parent | 9e2af376dd368ddb79ade1244833e609ea1fecdf (diff) | |
download | gcc-cd6b7bc60d96bede7b4aa79495523ac997ab7c62.zip gcc-cd6b7bc60d96bede7b4aa79495523ac997ab7c62.tar.gz gcc-cd6b7bc60d96bede7b4aa79495523ac997ab7c62.tar.bz2 |
* config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.
From-SVN: r139840
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/config/cris/cris.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f7a34d..816130d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-08-31 Hans-Peter Nilsson <hp@axis.com> + + * config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs. + 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com> * gthr-win32.h (__gthread_setspecific): Use CONST_CAST2. diff --git a/gcc/config/cris/cris.c b/gcc/config/cris/cris.c index ff177f4..1d0a34b 100644 --- a/gcc/config/cris/cris.c +++ b/gcc/config/cris/cris.c @@ -1834,7 +1834,7 @@ cris_rtx_costs (rtx x, int code, int outer_code, int *total, && !CONST_INT_P (XEXP (x, 0)) && !CRIS_CONST_OK_FOR_LETTER_P (INTVAL (XEXP (x, 1)), 'I')) { - *total = (rtx_cost (XEXP (x, 0), outer_code) + 2 + *total = (rtx_cost (XEXP (x, 0), outer_code, speed) + 2 + 2 * GET_MODE_NUNITS (GET_MODE (XEXP (x, 0)))); return true; } |