This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] stormy16 alignment
- From: DJ Delorie <dj at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 27 Sep 2004 14:42:23 -0400
- Subject: [patch] stormy16 alignment
Should be obvious, but... Ok?
2004-09-27 DJ Delorie <dj@redhat.com>
* config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
.comm alignment is bytes, not bits.
Index: config/stormy16/stormy16.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/stormy16/stormy16.c,v
retrieving revision 1.67
diff -p -U3 -r1.67 stormy16.c
--- config/stormy16/stormy16.c 25 Aug 2004 09:52:25 -0000 1.67
+++ config/stormy16/stormy16.c 27 Sep 2004 18:41:38 -0000
@@ -1738,7 +1738,7 @@ xstormy16_asm_output_aligned_common (FIL
}
fprintf (stream, "\t.comm\t");
assemble_name (stream, name);
- fprintf (stream, ",%u,%u\n", size, align);
+ fprintf (stream, ",%u,%u\n", size, align / BITS_PER_UNIT);
}
/* Mark symbols with the "below100" attribute so that we can use the