aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2008-07-19 17:49:18 +0000
committerOlivier Hainque <hainque@gcc.gnu.org>2008-07-19 17:49:18 +0000
commit953316147f5c41b3a0822ca63b39ea4ce2d942cd (patch)
tree795260e8dc7f7962b579f40cd7ab751d17f86412 /gcc/doc
parentd1a296c11ab091c896267dee5a3d831731fd3143 (diff)
downloadgcc-953316147f5c41b3a0822ca63b39ea4ce2d942cd.zip
gcc-953316147f5c41b3a0822ca63b39ea4ce2d942cd.tar.gz
gcc-953316147f5c41b3a0822ca63b39ea4ce2d942cd.tar.bz2
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
Diffstat (limited to 'gcc/doc')
-rw-r--r--gcc/doc/tm.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 5860018..e238797e 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -1095,6 +1095,11 @@ bits. Note that this is not the biggest alignment that is supported,
just the biggest alignment that, when violated, may cause a fault.
@end defmac
+@defmac MALLOC_ABI_ALIGNMENT
+Alignment, in bits, a C conformant malloc implementation has to
+provide. If not defined, the default value is @code{BITS_PER_WORD}.
+@end defmac
+
@defmac MINIMUM_ATOMIC_ALIGNMENT
If defined, the smallest alignment, in bits, that can be given to an
object that can be referenced in one operation, without disturbing any