aboutsummaryrefslogtreecommitdiff
path: root/gas/doc
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2007-09-26 08:34:24 +0000
committerJan Beulich <jbeulich@novell.com>2007-09-26 08:34:24 +0000
commit5a918ce730bca784591cef4b3696269510c5f814 (patch)
tree2ce8a511b710ee981a26018c12295ae8455f00f0 /gas/doc
parent06dcabb0579335e3db3825385d41de58e529c7c0 (diff)
downloadgdb-5a918ce730bca784591cef4b3696269510c5f814.zip
gdb-5a918ce730bca784591cef4b3696269510c5f814.tar.gz
gdb-5a918ce730bca784591cef4b3696269510c5f814.tar.bz2
gas/
2007-09-26 Jan Beulich <jbeulich@novell.com> * config/tc-i386.h (md_register_arithmetic): Define. * config/tc-ia64.h (md_register_arithmetic): Likewise. * doc/internals.texi: Document md_register_arithmetic. * expr.c (make_expr_symbol): Force O_register expressions into reg_section. (expr): Provide default for md_register_arithmetic. Don't resolve adding/subtracting constants to/from registers if md_register_arithmetic is zero.
Diffstat (limited to 'gas/doc')
-rw-r--r--gas/doc/internals.texi10
1 files changed, 10 insertions, 0 deletions
diff --git a/gas/doc/internals.texi b/gas/doc/internals.texi
index c63a2db..a97ead3 100644
--- a/gas/doc/internals.texi
+++ b/gas/doc/internals.texi
@@ -1045,6 +1045,16 @@ pointer, for any expression that can not be recognized. When the function
is called, @code{input_line_pointer} will point to the start of the
expression.
+@item md_register_arithmetic
+@cindex md_register_arithmetic
+If this macro is defined and evaluates to zero then GAS will not fold
+expressions that add or subtract a constant to/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.
+
@item tc_unrecognized_line
@cindex tc_unrecognized_line
If you define this macro, GAS will call it when it finds a line that it can not