[Ada] Add support for scalar types with small alignment

Eric Botcazou ebotcazou@adacore.com
Sat Mar 8 11:11:00 GMT 2008


It is piggybacked on the padding machinery.  This makes it possible to write

  type My_Integer is new Integer;
  for My_Integer'Alignment use 1;

Tested on i586-suse-linux, applied on the mainline.


2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>

	* decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add suppor
	for scalar types with small alignment.


2008-03-08  Eric Botcazou  <ebotcazou@adacore.com>

        * gnat.dg/small_alignment.adb: New test.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 1778 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080308/27715a24/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: small_alignment.adb
Type: text/x-adasrc
Size: 436 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080308/27715a24/attachment-0001.bin>


More information about the Gcc-patches mailing list