This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ Darwin Port BUG in source code
"Joseph S. Myers" <joseph@codesourcery.com> writes:
> On Sun, 6 Feb 2005, Dale Johannesen wrote:
>
>> To prevent this sort of thing from happening again, I'd like to suggest
>> an agreement that functions in the language-specific areas of the code
>> have language-specific names. The ones specific to C++ should begin
>> with cp_, for example. Sound OK?
>
> You need prefixes for C++ functions (cp_); C functions (c_); common
> functions (c_common_); and functions with a shared interface but different
> implementations in the front ends.
>
> In this context, we could try to get rid of the defaults for those
> langhooks that default to expecting each front end to define a function
> with a particular name (builtin_function, global_bindings_p, insert_block,
> pushdecl, getdecls, write_global_declarations), renaming the functions in
> each front end still using the default names. convert is the only case
> where all front ends do still need to define a function with a particular
> name rather than there being a langhook at all - which should be solved
> eventually by making the middle end use fold_convert instead everywhere.
While I completely agree with this plan, it's 4.1 material.
zw