aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-12-02 09:39:14 +0000
committerAlan Modra <amodra@gmail.com>2004-12-02 09:39:14 +0000
commit9ebd302d5e8eea40669bf9ffcda8fb428582bb7e (patch)
treef67cdc7a107e100d321cc9230c37c9900e04350b /gas/read.c
parentbd9d51e058dd8b50701b02c8bbc2496f7346c435 (diff)
downloadfsf-binutils-gdb-9ebd302d5e8eea40669bf9ffcda8fb428582bb7e.zip
fsf-binutils-gdb-9ebd302d5e8eea40669bf9ffcda8fb428582bb7e.tar.gz
fsf-binutils-gdb-9ebd302d5e8eea40669bf9ffcda8fb428582bb7e.tar.bz2
* read.c (ALIGN_LIMIT): Define, increasing limit for BFD_ASSEMBLER.
(s_align): Use it.
Diffstat (limited to 'gas/read.c')
-rw-r--r--gas/read.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/gas/read.c b/gas/read.c
index d0bf2c1f..d1e52d6 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -1195,10 +1195,16 @@ do_align (int n, char *fill, int len, int max)
fill pattern. BYTES_P is non-zero if the alignment value should be
interpreted as the byte boundary, rather than the power of 2. */
+#ifdef BFD_ASSEMBLER
+#define ALIGN_LIMIT (stdoutput->arch_info->bits_per_address - 1)
+#else
+#define ALIGN_LIMIT 15
+#endif
+
static void
s_align (int arg, int bytes_p)
{
- register unsigned int align;
+ unsigned int align;
char *stop = NULL;
char stopc;
offsetT fill = 0;
@@ -1237,9 +1243,9 @@ s_align (int arg, int bytes_p)
}
}
- if (align > 15)
+ if (align > ALIGN_LIMIT)
{
- align = 15;
+ align = ALIGN_LIMIT;
as_warn (_("alignment too large: %u assumed"), align);
}