aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-08-17 09:05:42 +0930
committerAlan Modra <amodra@gmail.com>2015-08-17 09:05:54 +0930
commitdb2ed2e0b910376fd2bf4c2bc5d626315c4269c6 (patch)
tree32b3a8f0135cffb393366209f58905386c69b287 /gas/read.c
parent1762568fd6bd84f1b1a488375cf320a1efa06b22 (diff)
downloadgdb-db2ed2e0b910376fd2bf4c2bc5d626315c4269c6.zip
gdb-db2ed2e0b910376fd2bf4c2bc5d626315c4269c6.tar.gz
gdb-db2ed2e0b910376fd2bf4c2bc5d626315c4269c6.tar.bz2
Rationalize ARM .align
* gas/config/tc-arm.c (s_align): Delete. (md_pseudo_table): Use s_align_ptwo for "align". * gas/config/tc-arm.h (TC_ALIGN_ZERO_IS_DEFAULT): Define. * read.c (s_align): Modify for TC_ALIGN_ZERO_IS_DEFAULT.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gas/read.c b/gas/read.c
index 816c255..000c75b 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -1471,6 +1471,11 @@ s_align (int arg, int bytes_p)
{
align = get_absolute_expression ();
SKIP_WHITESPACE ();
+
+#ifdef TC_ALIGN_ZERO_IS_DEFAULT
+ if (arg > 0 && align == 0)
+ align = arg;
+#endif
}
if (bytes_p)