forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user