This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: How to find if any fixups were created for an instruction


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



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