This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ ptrmemfun break if FUNCTION_BOUNDARY < 2 *BITS_PER_UNIT
- To: aoliva at redhat dot com
- Subject: Re: C++ ptrmemfun break if FUNCTION_BOUNDARY < 2 *BITS_PER_UNIT
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 10 Apr 2001 09:27:12 -0700
- Cc: wilson at cygnus dot com, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, gdb at sources dot redhat dot com
- Organization: CodeSourcery, LLC
- References: <orofu6xfro.fsf@guarana.lsd.ic.unicamp.br>
I think this all makes sense.
I should have thought of this issue when implementing the new ABI;
somehow, it didn't occur to me.
I would sugest that if you're going to use an enum to represent
different choices about representation here (which seems reasonable)
that you have the TARGET_ macro evaluate to an enum, rather than a
boolean. That would be simpler. Have it default to
ptrmemfunc_vbit_in_pfn in defaults.h, and then you can eliminate the
conditional compilation in decl.c.
Thank you for taking on the task of fixing the problem.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com