aboutsummaryrefslogtreecommitdiff
path: root/gas/gasp.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-06-10 15:51:26 +0000
committerIan Lance Taylor <ian@airs.com>1996-06-10 15:51:26 +0000
commit1ba76615870ec50c7b5817385203e29355ee338b (patch)
treeb8134969e905f8f481d04f78f08be79fdda3ddb4 /gas/gasp.c
parent890f5b7f5aa4ce494e145514e30fab4388e2dfa6 (diff)
downloadgdb-1ba76615870ec50c7b5817385203e29355ee338b.zip
gdb-1ba76615870ec50c7b5817385203e29355ee338b.tar.gz
gdb-1ba76615870ec50c7b5817385203e29355ee338b.tar.bz2
* gasp.c (do_align): Permit a fill value for .align.
Diffstat (limited to 'gas/gasp.c')
-rw-r--r--gas/gasp.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/gas/gasp.c b/gas/gasp.c
index 673f440..ff779b0 100644
--- a/gas/gasp.c
+++ b/gas/gasp.c
@@ -1413,15 +1413,29 @@ do_align (idx, in)
int idx;
sb *in;
{
- int al;
+ int al, have_fill, fill;
+
idx = exp_get_abs ("align needs absolute expression.\n", idx, in, &al);
+ idx = sb_skip_white (idx, in);
+ have_fill = 0;
+ fill = 0;
+ if (! eol (idx, in))
+ {
+ idx = sb_skip_comma (idx, in);
+ idx = exp_get_abs (".align needs absolute fill value.\n", idx, in,
+ &fill);
+ have_fill = 1;
+ }
if (al != 1
&& al != 2
&& al != 4)
WARNING ((stderr, "alignment must be one of 1, 2 or 4.\n"));
- fprintf (outfile, ".align %d\n", al);
+ fprintf (outfile, ".align %d", al);
+ if (have_fill)
+ fprintf (outfile, ",%d", fill);
+ fprintf (outfile, "\n");
}
/* .res[.b|.w|.l] <size> */