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: [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.


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