This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ix86 double alignment (was Re: egcs-1.1 release schedule)
- To: burley at gnu dot org
- Subject: Re: ix86 double alignment (was Re: egcs-1.1 release schedule)
- From: john at feith dot com (John Wehle)
- Date: Tue, 23 Jun 1998 00:48:32 -0400
- CC: law at cygnus dot com, d dot love at dl dot ac dot uk, egcs at cygnus dot com, davem at dm dot cobaltmicro dot com
> [...]
> The latter uses automatic arrays (which gcc and g77 support), it'd
> be great to get those 64-bit aligned as well. The former is the
> most important thing we *aren't* aligning, currently, even with
> `-malign-double'. (It should be aligned especially if `a' is an
> array, of course.)
> [...]
> Note that I suggested the gcc architecture (machine descriptions,
> etc.) be modified to include a more fine-grained expression of
> alignment requirements. E.g. distinguishing hardware requirements
> (even instruction requirements, such as `ld' vs. `ldd' on SPARCv8)
> from ABI requirements from ideal performance settings. But this
> suggestion was turned down at the time -- some seven years ago!
Though it's not as fine-grain as what's mentioned above it may be
worth while to consider using the DATA_ALIGNMENT macro when laying
out variables for the stack. On the i386 it currently returns the
Intel recommended alignment for doubles, long doubles, arrays, etc.
(the recommended alignment for long doubles is different from doubles).
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------