This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: assemble_integer & align
On Sat, Sep 22, 2001 at 01:19:22PM +0400, Denis Chertykov wrote:
> Yes. (You can see it in avr/avr.h). AVR is an 8 bit target which isn't
> needed in alignments at all.
Oh, duh. This should work for you then. I'll wait for an
success ack before applying though.
> PS: Is you your timezone GMT-7 ?
Yes, until daylight savings time ends in another month or so.
Then we'll be back at GMT-8.
r~
* varasm.c (assemble_integer): Bound aligned data check by
BIGGEST_ALIGNMENT.
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/varasm.c,v
retrieving revision 1.209
diff -c -p -d -u -r1.209 varasm.c
--- varasm.c 2001/09/22 13:23:14 1.209
+++ varasm.c 2001/09/24 20:11:36
@@ -1913,7 +1913,7 @@ assemble_integer (x, size, align, force)
/* First try to use the standard 1, 2, 4, 8, and 16 byte
ASM_OUTPUT... macros. */
- if (align >= size * BITS_PER_UNIT)
+ if (align >= MIN (size * BITS_PER_UNIT, BIGGEST_ALIGNMENT))
switch (size)
{
#ifdef ASM_OUTPUT_CHAR