Fwd: Re: attempt to use poisoned "CONST_COSTS"

2006-08-24 Thread Mohamed Shafi
Note: forwarded message attached. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- Begin Message --- Hai, > > i dont know the corresponding macro in >

Re: attempt to use poisoned "CONST_COSTS"

2006-08-24 Thread Paolo Bonzini
[no private mail] Just to move code from target.h to target.c. Paolo I didnt get you? Do you mean to say that i should also move the code to stick to standard ? You should move code from target.h to target.c, or it won't compile. Macros became "target hooks" defined in the target.c fi

Re: attempt to use poisoned "CONST_COSTS"

2006-08-24 Thread Paolo Bonzini
You should look at a small back-end, e.g. pdp11, and see how to rewrite these macros into functions (target hooks). Its been a great help... thanks for the direction. When i looked into the machine macros of GNU supported processors i found that all of the macros previously defined in target.h

Re: attempt to use poisoned "CONST_COSTS"

2006-08-24 Thread Paolo Bonzini
2. #define CONST_COSTS(RTX, CODE, OUTER_CODE) \ case CONST_INT: \ return target_const_costs (RTX, OUTER_CODE); \ case CONST: \ return 5;