This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: attempt to use poisoned "CONST_COSTS"
- From: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- To: Mohamed Shafi <shafitvm at yahoo dot com>, GCC Development <gcc at gcc dot gnu dot org>
- Date: Thu, 24 Aug 2006 11:45:22 +0200
- Subject: Re: attempt to use poisoned "CONST_COSTS"
- References: <20060824094101.4698.qmail@web33210.mail.mud.yahoo.com>
2. #define CONST_COSTS(RTX, CODE, OUTER_CODE) \
case CONST_INT: \
return target_const_costs (RTX, OUTER_CODE);
\
case CONST: \
return 5; \
case LABEL_REF: \
return 1; \
case SYMBOL_REF: \
return ((TARGET_SMALL_MODEL)? 2: 3); \
case CONST_DOUBLE: \
return 10;
i dont know the corresponding macro in 3.4.6
It is now merged into RTX_COSTS.
You should look at a small back-end, e.g. pdp11, and see how to rewrite
these macros into functions (target hooks).
Paolo