|
From: <sv...@va...> - 2006-05-21 01:52:20
|
Author: sewardj Date: 2006-05-21 02:52:09 +0100 (Sun, 21 May 2006) New Revision: 5908 Log: Back out r5595: the redirections deleted there are in fact used by gcc 2.96 on R H 7.3. Modified: trunk/coregrind/m_replacemalloc/vg_replace_malloc.c Modified: trunk/coregrind/m_replacemalloc/vg_replace_malloc.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/coregrind/m_replacemalloc/vg_replace_malloc.c 2006-05-21 00:51:= 28 UTC (rev 5907) +++ trunk/coregrind/m_replacemalloc/vg_replace_malloc.c 2006-05-21 01:52:= 09 UTC (rev 5908) @@ -150,6 +150,13 @@ //ALLOC_or_NULL(m_libpgc_dot_so, malloc, malloc); =20 =20 +// operator new(unsigned int), not mangled (for gcc 2.96) +ALLOC_or_BOMB(m_libstc_plus_plus_star, builtin_new, __builtin_new); +ALLOC_or_BOMB(m_libc_dot_so_star, builtin_new, __builtin_new); + +ALLOC_or_BOMB(m_libstc_plus_plus_star, __builtin_new, __builtin_new); +ALLOC_or_BOMB(m_libc_dot_so_star, __builtin_new, __builtin_new); + // operator new(unsigned int), GNU mangling, 32-bit platforms // operator new(unsigned long), GNU mangling, 64-bit platforms #if VG_WORDSIZE =3D=3D 4 @@ -178,6 +185,10 @@ #endif =20 =20 +// operator new[](unsigned int), not mangled (for gcc 2.96) +ALLOC_or_BOMB(m_libstc_plus_plus_star, __builtin_vec_new, __builtin_vec_= new ); +ALLOC_or_BOMB(m_libc_dot_so_star, __builtin_vec_new, __builtin_vec_= new ); + // operator new[](unsigned int), GNU mangling, 32-bit platforms // operator new[](unsigned long), GNU mangling, 64-bit platforms #if VG_WORDSIZE =3D=3D 4 @@ -225,6 +236,10 @@ FREE(m_libstc_plus_plus_star, cfree, free ); FREE(m_libc_dot_so_star, cfree, free ); =20 +// operator delete(void*), not mangled (for gcc 2.96) +FREE(m_libstc_plus_plus_star, __builtin_delete, __builtin_delete ); +FREE(m_libc_dot_so_star, __builtin_delete, __builtin_delete ); + // operator delete(void*), GNU mangling FREE(m_libstc_plus_plus_star, _ZdlPv, __builtin_delete ); FREE(m_libc_dot_so_star, _ZdlPv, __builtin_delete ); @@ -233,6 +248,10 @@ FREE(m_libstc_plus_plus_star, _ZdlPvRKSt9nothrow_t, __builtin_delete ); FREE(m_libc_dot_so_star, _ZdlPvRKSt9nothrow_t, __builtin_delete ); =20 +// operator delete[](void*), not mangled (for gcc 2.96) +FREE(m_libstc_plus_plus_star, __builtin_vec_delete, __builtin_vec_delet= e ); +FREE(m_libc_dot_so_star, __builtin_vec_delete, __builtin_vec_delet= e ); + // operator delete[](void*), GNU mangling FREE(m_libstc_plus_plus_star, _ZdaPv, __builtin_vec_delet= e ); FREE(m_libc_dot_so_star, _ZdaPv, __builtin_vec_delet= e ); |