i386.c (ix86_data_alignment): Don't specify an alignment bigger than the object file...
authorDJ Delorie <dj@redhat.com>
Fri, 23 Feb 2007 23:16:47 +0000 (18:16 -0500)
committerDJ Delorie <dj@gcc.gnu.org>
Fri, 23 Feb 2007 23:16:47 +0000 (18:16 -0500)
* config/i386/i386.c (ix86_data_alignment): Don't specify an
alignment bigger than the object file can handle.

From-SVN: r122275

gcc/ChangeLog
gcc/config/i386/i386.c

index 4cccd2012e11eab2465f9d0f92707bc43ad3501b..3fdbf78489a13cc1d66abb133e30d0e4fa006d13 100644 (file)
@@ -1,3 +1,8 @@
+2007-02-23  DJ Delorie  <dj@redhat.com>
+
+       * config/i386/i386.c (ix86_data_alignment): Don't specify an
+       alignment bigger than the object file can handle.
+
 2007-02-23  Uros Bizjak  <ubizjak@gmail.com>
 
        PR target/30825
index e0da85a81030e41a3612b932deaa9321a56750e1..a88c6152a14c38912bd1cb0811166da9370ea310 100644 (file)
@@ -15417,7 +15417,7 @@ ix86_constant_alignment (tree exp, int align)
 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 : MIN (256, MAX_OFILE_ALIGNMENT);
 
   if (AGGREGATE_TYPE_P (type)
       && TYPE_SIZE (type)