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 classes for the GNU runtime
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: pinskia at physics dot uc dot edu (Andrew Pinski)
- Cc: gcc-patches at gcc dot gnu dot org (patch Patches)
- Date: Tue, 30 Aug 2005 15:54:07 -0400 (EDT)
- Subject: Re: [PATCH] (C++ patch) Fix obj-c++/23640, not registering classes for the GNU runtime
>
>
> --Apple-Mail-10--1052000459
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain;
> charset=US-ASCII;
> format=flowed
>
> 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.
testsuite/ChangeLog:
* obj-c++.dg/gnu-runtime-3.mm: New test.