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]

[PATCH] (C++ patch) Fix obj-c++/23640, not registering classes for the GNU runtime


The problem here is that we don't create the constructor function to call the
objc front-end created construction function which means we don't register
classes for the GNU runtime. This fixes about 11 test failures on targets
with the GNU runtime as the standard runtime.


OK? Bootstrapped and tested on powerpc-darwin and on x86_64-linux-gnu
with no regressions.

Thanks,
Andrew Pinski

cp/ChangeLog:

* decl2.c (cp_finish_file): If this is obj-c++ and we need a static init,
call generate_ctor_or_dtor_function.



Attachment: t.diff.txt
Description: Text document


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