diff options
author | Torvald Riegel <triegel@redhat.com> | 2012-02-14 13:13:56 +0000 |
---|---|---|
committer | Torvald Riegel <torvald@gcc.gnu.org> | 2012-02-14 13:13:56 +0000 |
commit | 7d33bcb73866d5310b4eb190172240bcb71f51f6 (patch) | |
tree | 3f757ed98c58cd9c6de39c80072caa8625239a50 /libitm/common.h | |
parent | dd552284fd817c9d946598a7b647f9e67753bed6 (diff) | |
download | gcc-7d33bcb73866d5310b4eb190172240bcb71f51f6.tar.gz |
libitm: Add xcalloc.
libitm/
* util.cc (GTM::xcalloc): New.
* common.h (GTM::xcalloc): Declare.
From-SVN: r184210
Diffstat (limited to 'libitm/common.h')
-rw-r--r-- | libitm/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libitm/common.h b/libitm/common.h index 14d0efb40ba..b1ef2d4e63a 100644 --- a/libitm/common.h +++ b/libitm/common.h @@ -54,6 +54,8 @@ namespace GTM HIDDEN { // cache lines that are not shared with any object used by another thread. extern void * xmalloc (size_t s, bool separate_cl = false) __attribute__((malloc, nothrow)); +extern void * xcalloc (size_t s, bool separate_cl = false) + __attribute__((malloc, nothrow)); extern void * xrealloc (void *p, size_t s, bool separate_cl = false) __attribute__((malloc, nothrow)); |