aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-arm.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-07-14 15:47:13 +0000
committerNick Clifton <nickc@redhat.com>2009-07-14 15:47:13 +0000
commit140033b39116ffc7d6ca946c43c19880e2e48a0c (patch)
tree0e6bae58789dcd43d40075c3fc1dc66f2fc45d1b /gas/config/tc-arm.h
parent63b33ceb0b1e4c8554b7d773d068819aa5ca2af6 (diff)
downloadfsf-binutils-gdb-140033b39116ffc7d6ca946c43c19880e2e48a0c.zip
fsf-binutils-gdb-140033b39116ffc7d6ca946c43c19880e2e48a0c.tar.gz
fsf-binutils-gdb-140033b39116ffc7d6ca946c43c19880e2e48a0c.tar.bz2
* config/tc-arm.h (MAX_MEM_ALIGNMENT_BYTES): Define.
(MAX_MEM_FOR_RS_ALIGN_CODE): Define in terms of MAX_MEM_ALIGNMENT_BYTES. * config/tc-arm.c (arm_frag_align_code): Replace hard coded constant with MAX_MEM_FOR_RS_ALIGN_CODE. * gas/arm/align64.s: New test case. * gas/arm/align64.d: Expected disassembly.
Diffstat (limited to 'gas/config/tc-arm.h')
-rw-r--r--gas/config/tc-arm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-arm.h b/gas/config/tc-arm.h
index 47fce80..53ca895 100644
--- a/gas/config/tc-arm.h
+++ b/gas/config/tc-arm.h
@@ -193,7 +193,8 @@ void arm_copy_symbol_attributes (symbolS *, symbolS *);
#define TC_CONS_FIX_NEW cons_fix_new_arm
-#define MAX_MEM_FOR_RS_ALIGN_CODE 31
+#define MAX_MEM_ALIGNMENT_BYTES 6
+#define MAX_MEM_FOR_RS_ALIGN_CODE ((1 << MAX_MEM_ALIGNMENT_BYTES) - 1)
/* For frags in code sections we need to record whether they contain
ARM code or THUMB code. This is that if they have to be aligned,