i386.c (ix86_data_alignment): Don't specify an alignment bigger than the object file can handle.

* config/i386/i386.c (ix86_data_alignment): Don't specify an
alignment bigger than the object file can handle.

From-SVN: r122275
This commit is contained in:
DJ Delorie 2007-02-23 18:16:47 -05:00 committed by DJ Delorie
parent 01113dd6b1
commit bf69f9d223
2 changed files with 6 additions and 1 deletions

View 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

View 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)