How to find if any fixups were created for an instruction
Nick Clifton
nickc@redhat.com
Wed Apr 23 07:51:00 GMT 2008
Hi Kunal,
> I have defined the macro TC_CGEN_PARSE_FIX_EXP and am using it to
> to check if a fixup was created like this :
>
> #define TC_CGEN_PARSE_FIX_EXP(opinfo, exp) \
> brc_cgen_parse_fix_exp(opinfo, exp)
> extern int brc_cgen_parse_fix_exp (int, expressionS *);
>
> int
> brc_cgen_parse_fix_exp (int opinfo, expressionS * exp)
> {
> if (exp->X_op != O_illegal && exp->X_op != O_absent
> && exp->X_op != O_constant && exp->X_op != O_register)
> fixup_created = 1;
>
> return opinfo;
> }
>
> Is it correct ?
Yes, this should also work.
Cheers
Nick
More information about the Binutils
mailing list