]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ChangeLog
tm.texi (MALLOC_ABI_ALIGNMENT): New macro.
authorOlivier Hainque <hainque@adacore.com>
Sat, 19 Jul 2008 17:49:18 +0000 (17:49 +0000)
committerOlivier Hainque <hainque@gcc.gnu.org>
Sat, 19 Jul 2008 17:49:18 +0000 (17:49 +0000)
commit953316147f5c41b3a0822ca63b39ea4ce2d942cd
tree795260e8dc7f7962b579f40cd7ab751d17f86412
parentd1a296c11ab091c896267dee5a3d831731fd3143
tm.texi (MALLOC_ABI_ALIGNMENT): New macro.

* doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro.  Alignment, in bits,
a C conformant malloc implementation has to provide.
* defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.

ada/
* targtyps.c (get_target_default_allocator_alignment): Use it.

testsuite/
* gcc.dg/mallign.c: New test.
* gnat.dg/allocator_maxalign1.adb: New test.
* gnat.dg/test_allocator_maxalign2.adb: Main caller for ...
* gnat.dg/allocator_maxalign2.ad[bs]: New test.

From-SVN: r137984
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/targtyps.c
gcc/defaults.h
gcc/doc/tm.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/mallign.c [new file with mode: 0644]
gcc/testsuite/gnat.dg/allocator_maxalign1.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/allocator_maxalign2.adb [new file with mode: 0644]
gcc/testsuite/gnat.dg/allocator_maxalign2.ads [new file with mode: 0644]
gcc/testsuite/gnat.dg/test_allocator_maxalign2.adb [new file with mode: 0644]