This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: attempt to use poisoned "CONST_COSTS"



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]