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: [PATCH 1/4] S12Z: GAS: Disallow immediate destination operands


On Fri, Feb 01, 2019 at 10:48:57AM +0000, Nick Clifton wrote:
     
     Why does this function return an int instead of a bfd_boolean ?
     
     >  static int
     > -reg_opr (const struct instruction *insn, int allowed_regs)
     > +reg_opr (const struct instruction *insn, int allowed_regs,
     > +	 bool immediate_ok)
     >  {
     
     In fact ... it seems that there are a whole bunch of functions
     in tc-s12z.c that ought to be returning booleans.  Just an idea
     for a clean-up patch...
     

You're right.  I'll prepare such a patch in the next few days.  

J'


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