This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] (C++ patch) Fix obj-c++/23640, not registering classesfor the GNU runtime
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: patch Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 30 Aug 2005 22:45:00 -0700
- Subject: Re: [PATCH] (C++ patch) Fix obj-c++/23640, not registering classesfor the GNU runtime
- References: <a293be6cf90e94c8fea013d929511d12@physics.uc.edu>
Andrew Pinski wrote:
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.
OK.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304