[Patch, ARM] Add EABI alignment attributes to generated assembly files

Richard Earnshaw Richard.Earnshaw@buzzard.freeserve.co.uk
Sat Apr 17 16:55:00 GMT 2010


Most of the attributes specified by the ABI for the ARM Architecture
default to values which are fairly portable.  However, the
aligment-preservation attribute defaults to implying that objects are
only maintained to 4-byte alignment.  This means that assembly files
that do not explicitly state a higher alignment can appear to be
non-conforming to the ABI.  This patch fixes this for the assembly files
in libgcc by adding the required attribute to each object.

Tested on arm-eabi and committed to trunk.

2010-04-17  Richard Earnshaw  <rearnsha@arm.com>

	* arm/bpabi.S: Add EABI alignment attributes to objects.
	* arm/bpabi-v6m.S: Likewise.
	* arm/crti.asm: Likewise.
	* arm/crtn.asm: Likewise.
	* arm/lib1funcs.asm: Likewise.
	* arm/libunwind.S: Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-patch
Size: 4346 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100417/ef3b5b51/attachment.bin>


More information about the Gcc-patches mailing list