This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] libitm: Support sized delete.


>  #define _ZnwX			S(_Znw,MANGLE_SIZE_T)
>  #define _ZnaX			S(_Zna,MANGLE_SIZE_T)
> +#define _ZdlPvX			S(_ZdlPv,MANGLE_SIZE_T)
>  #define _ZnwXRKSt9nothrow_t	S(S(_Znw,MANGLE_SIZE_T),RKSt9nothrow_t)
>  #define _ZnaXRKSt9nothrow_t	S(S(_Zna,MANGLE_SIZE_T),RKSt9nothrow_t)
> +#define _ZdlPvXRKSt9nothrow_t	S(S(_ZdlPv,MANGLE_SIZE_T),RKSt9nothrow_t)
>  
>  #define _ZGTtnwX		S(_ZGTtnw,MANGLE_SIZE_T)
>  #define _ZGTtnaX		S(_ZGTtna,MANGLE_SIZE_T)
> +#define _ZGTtdlPvX		S(_ZGTtdlPv,MANGLE_SIZE_T)
>  #define _ZGTtnwXRKSt9nothrow_t	S(S(_ZGTtnw,MANGLE_SIZE_T),RKSt9nothrow_t)
>  #define _ZGTtnaXRKSt9nothrow_t	S(S(_ZGTtna,MANGLE_SIZE_T),RKSt9nothrow_t)
> +#define _ZGTtdlPvXRKSt9nothrow_t S(S(_ZGTtdlPv,MANGLE_SIZE_T),RKSt9nothrow_t)

One more thing... Why are there 4 new symbols here...

> +/* Wrap: operator delete(void* ptr, std::size_t sz)  */
> +void
> +_ZGTtdlPvX (void *ptr, size_t sz)
> +{
> +  if (ptr)
> +    gtm_thr()->forget_allocation (ptr, sz, _ZdlPvX);
> +}
> +
> +/* Wrap: operator delete (void *ptr, std::size_t sz, const std::nothrow_t&)  */
> +void
> +_ZGTtdlPvXRKSt9nothrow_t (void *ptr, size_t sz, c_nothrow_p nt UNUSED)
> +{
> +  if (ptr)
> +    gtm_thr()->forget_allocation (ptr, sz, delsz_opnt);
> +}
> +
...
> +LIBITM_1.1 {
> +  global:
> +	_ZGTtdlPv?;
> +	_ZGTtdlPv?RKSt9nothrow_t;
> +} LIBITM_1.0;

but only two here?


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]