Skip to content

Commit

Permalink
libc++: add sized delete and delete[] for C++14
Browse files Browse the repository at this point in the history
Change-Id: Ifa4a181d912c7a83cbd6f7e55bd2287124a9072e
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/37325
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com>
Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
  • Loading branch information
stewartsmith authored and wghoffa committed Mar 23, 2017
1 parent d87acea commit 3f78eca
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/libc++/builtins.C
Expand Up @@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
/* Contributors Listed Below - COPYRIGHT 2010,2016 */
/* Contributors Listed Below - COPYRIGHT 2010,2017 */
/* [+] International Business Machines Corp. */
/* */
/* */
Expand Down Expand Up @@ -59,6 +59,16 @@ void operator delete[](void* p)
{
return free(p);
};

void operator delete(void* p, size_t)
{
return free(p);
}

void operator delete[](void* p, size_t)
{
return free(p);
}
#endif // bl_builtins_C

extern "C" int __cxa_guard_acquire(volatile uint64_t* gv)
Expand Down

0 comments on commit 3f78eca

Please sign in to comment.