PATCH: Align DImode to 4 byte for i386
Jan Hubicka
hubicka@ucw.cz
Tue Feb 5 02:22:00 GMT 2008
> Here is a patch. OK for 4.4 when it is opened?
Seems OK. I hope there is no ABI breakage we missed.
Honza
>
> Thanks.
>
> H.J.
> --
> 2008-02-03 H.J. Lu <hongjiu.lu@intel.com>
>
> * config/i386/i386-modes.def: Use 4 byte alignment on DI in
> 32bit bit.
>
> Index: config/i386/i386-modes.def
> ===================================================================
> --- config/i386/i386-modes.def (revision 1470)
> +++ config/i386/i386-modes.def (working copy)
> @@ -17,6 +17,10 @@ You should have received a copy of the G
> along with GCC; see the file COPYING3. If not see
> <http://www.gnu.org/licenses/>. */
>
> +/* In 32bit, DI mode uses 32bit registers. Only 4 byte alignment
> + is needed. */
> +ADJUST_ALIGNMENT (DI, TARGET_64BIT ? 8 : 4);
> +
> /* The x86_64 ABI specifies both XF and TF modes.
> XFmode is __float80 is IEEE extended; TFmode is __float128
> is IEEE quad. */
More information about the Gcc-patches
mailing list