This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ix86_data_alignment: bad defaults?
- From: DJ Delorie <dj at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 22 Feb 2007 18:40:23 -0500
- Subject: ix86_data_alignment: bad defaults?
Why do we use 256 instead of BIGGEST ALIGNMENT in ix86_data_alignment?
This is causing all sorts of build problems for djgpp, as I'm getting
lots of warnings about too-big alignments, and with -Werror...
Index: i386.c
===================================================================
--- i386.c (revision 122221)
+++ i386.c (working copy)
@@ -15417,7 +15417,7 @@
int
ix86_data_alignment (tree type, int align)
{
- int max_align = optimize_size ? BITS_PER_WORD : 256;
+ int max_align = optimize_size ? BITS_PER_WORD : BIGGEST_ALIGNMENT;
if (AGGREGATE_TYPE_P (type)
&& TYPE_SIZE (type)