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: [v3] libstdc++/29095


Benjamin Kosnik wrote:

I think this:

Index: libsupc++/cxxabi.h
===================================================================
--- libsupc++/cxxabi.h (revision 117495)
+++ libsupc++/cxxabi.h (working copy)
@@ -54,12 +54,12 @@
#ifdef __cplusplus
namespace __cxxabiv1
{ - typedef __cxa_cdtor_return_type (*__cxa_cdtor_type)(void *);
-
extern "C" {
#endif


+ typedef __cxa_cdtor_return_type (*__cxa_cdtor_type)(void *);
+
// Allocate array.
void* __cxa_vec_new(size_t __element_count, size_t __element_size,


with that change this is ok to me.


Yes, this way thinks are a bit cleaner, but if you look at the audit trail, I think people (Mark, Andrew) slightly prefer keeping __cxa_cdtor_type with C++ linkage, when compiling in C++ mode, to be safe. Or I'm misunderstanding the discussion?

Paolo.


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