From 8625fab57c81a961ed9b8cbfdffeced61149ef4a Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Thu, 12 Mar 1998 12:32:24 +0000 Subject: Warning fixes, resulting in the addition of a new target macro: * tm.texi (DEFAULT_RTX_COSTS): Document new macro. * arm.h (DEFAULT_RTX_COSTS): Define instead of RTX_COSTS. * cse.c (rtx_cost): Provide a default case in an enumeration switch, and call DEFAULT_RTX_COSTS if it's defined. Co-Authored-By: Nick Clifton Co-Authored-By: Richard Earnshaw From-SVN: r18513 --- gcc/cse.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc/cse.c') diff --git a/gcc/cse.c b/gcc/cse.c index cf53240..b525dcc 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -751,6 +751,12 @@ rtx_cost (x, outer_code) RTX_COSTS (x, code, outer_code); #endif CONST_COSTS (x, code, outer_code); + + default: +#ifdef DEFAULT_RTX_COSTS + DEFAULT_RTX_COSTS(x, code, outer_code); +#endif + break; } /* Sum the costs of the sub-rtx's, plus cost of this operation, -- cgit v1.1