This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Remove alignment value check in gasp
- To: binutils at sourceware dot cygnus dot com
- Subject: Remove alignment value check in gasp
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Tue, 29 Feb 2000 17:16:06 -0800
Hi Guys,
Unless anyone objects I plan to check in the following patch
tomorrow. All it does is to remove the code in GASP that checks to
see if the .align directive has been given an argument of 1, 2 or 4,
This test is, I believe, bogus, since the .align directive takes a
power-of-two as its argument and, for example ".align 3" is a valid
alignment directive.
Cheers
Nick
2000-02-29 Nick Clifton <nickc@cygnus.com>
* gasp.c (do_align): Remove bogus check of alignment value.
Index: gas/gasp.c
===================================================================
RCS file: /cvs/src//src/gas/gasp.c,v
retrieving revision 1.4
diff -p -r1.4 gasp.c
*** gasp.c 2000/01/26 22:48:31 1.4
--- gasp.c 2000/03/01 01:13:38
*************** do_align (idx, in)
*** 1439,1449 ****
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", al);
if (have_fill)
fprintf (outfile, ",%d", fill);
--- 1439,1444 ----