This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: constructors and multiple entry points
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: gcc at gcc dot gnu dot org, jason at redhat dot com, mark at codesourcery dot com
- Date: Mon, 19 Sep 2005 13:50:35 -0400
- Subject: Re: constructors and multiple entry points
- References: <m33bo1lzp2.fsf@uniton.integrable-solutions.net>
On Sep 19, 2005, at 1:44 PM, Gabriel Dos Reis wrote:
Hi,
We're assessing many proposals to add "forwarding constructors" and
forwarding functions to C++0x; and I got a question.
In standard C++, constructors cannot be recursive functions. I'm
wondering whether the multiple entry-points implementation strategy
used
by GCC depends in anyway on the absence of recursive definition.
I think people have raised this before but some targets will never
support multiple entry points.
Things like:
_extern_function:
mr r0, r3
mr r3, r4
mr r4, r0
_extern_function_1:
...
blr
is not really supported on powerpc-darwin.
You might want to look into how gfortran implements multiple
entry-points
but IIRC the ENTRY construct in Fortran is now declared as obsolete and
really should not be used so I don't understand why C++ is trying to
add this.
-- Pinski