OSDN Git Service

* doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in bits,
authorhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Jul 2008 17:49:18 +0000 (17:49 +0000)
committerhainque <hainque@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Jul 2008 17:49:18 +0000 (17:49 +0000)
commit65c05dfdcfbd74e48f5432af9d7561bd4cba5ce9
tree795260e8dc7f7962b579f40cd7ab751d17f86412
parentbf3431bdaba9ed43e0de9dac4a29e18b0f7b280d
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137984 138bc75d-0d04-0410-961f-82ee72b054a4
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]