This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]