Commit ca2eed21 by Chandrakala Chavva Committed by Chandra Chavva

* varasm.c (output_constructor): Add .align 0 for packed vars.

From-SVN: r35489
parent 1ba2dbaa
2000-08-04 Chandrakala Chavva <cchavva@redhat.com>
* varasm.c (output_constructor): Add .align 0 for packed vars.
2000-08-04 J. David Anglin <dave@hiauly1.hia.nrc.ca>
* configure.in: Use default thread_file even when enable_threads is
......
......@@ -4472,6 +4472,15 @@ output_constructor (exp, size)
assemble_zeros (bitpos - total_bytes);
total_bytes = bitpos;
}
else if (field != 0 && DECL_PACKED (field))
{
/* Some assemblers automaticallly align a datum according to
its size if no align directive is specified. The datum,
however, may be declared with 'packed' attribute, so we
have to disable such a feature. */
ASM_OUTPUT_ALIGN (asm_out_file, 0);
}
/* Determine size this element should occupy. */
if (field)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment