* config/cris/cris.c (cris_rtx_costs): Correct call to rtx_costs.

From-SVN: r139840
This commit is contained in:
Hans-Peter Nilsson 2008-08-31 18:33:51 +00:00 committed by Hans-Peter Nilsson
parent 9e2af376dd
commit cd6b7bc60d
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -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;
}