ix86_data_alignment: bad defaults?

DJ Delorie dj@redhat.com
Thu Feb 22 23:40:00 GMT 2007


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)



More information about the Gcc mailing list