[patch] i386.c string alignment - no alignment for < 32 bytes, else to 32 bytes

John Wehle john@feith.com
Tue Jan 15 10:42:00 GMT 2002


> gcc has a bug with string alignment on the x86.  For short strings,
> it doesn't align at all.  For strings longer than 32 bytes,
> it needlessly aligns them to 32 bytes. NB: this is only on the x86.

This is per the recommendations of the "Intel Architecture Optimization Manual".

-- John
-------------------------------------------------------------------------
|   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john@feith.com  |
|    John Wehle    |     Fax: 1-215-540-5495  |                         |
-------------------------------------------------------------------------



More information about the Gcc mailing list