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] RE: ill effect of <register>+<constant>


Hi Jan,

Sorry, I keep forgetting about doing this. OK this way?

+@item md_register_arithmetic
+@cindex md_register_arithmetic
+If this macro is defined and evaluates to non-zero, GAS will avoid folding
+expressions like adding a constant to a register into a register with its
+number being the sum of the original register's and the constant.

I think that you mean that this new behaviour occurs when the macro evaluates to zero, rather than non-zero. Also an example might help. eg:


  If this macro is defined and evaluates to zero then GAS will not fold
  expressions that add or subtract a constant from a register to give
  another register.  For example GAS's default behaviour is to fold the
  expression "r8 + 1" into "r9", which is probably not the result
  intended by the programmer.  The default is to allow such folding,
  since this maintains backwards compatibility with earlier releases of
  GAS.


Patch approved, please apply. Rewording the documentation is left to your discretion.


Cheers
  Nick


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