[patch/5.2/commit] Zap __func__

Andrew Cagney ac131313@ges.redhat.com
Mon Jul 15 13:09:00 GMT 2002


> On Mon, Jul 15, 2002 at 12:42:49PM -0400, Andrew Cagney wrote:
> 
>> Just FYI,
>> 
>> I've committed this to the 5.2 branch - zap more __func__s.  It's brutal 
>> but it works :-)
>> 
>> enjoy,
>> Andrew
> 
> 
>> 2002-07-15  Andrew Cagney  <ac131313@redhat.com>
>> 
>> 	* dwarf2cfi.c: Replace __func__ with "?func?".
> 
> 
> Er, hunh?
> 
> First of all, is there any reason that __FUNCTION__ is not adequately
> portable?  I think it is.  Second of all, if you're going to remove
> __func__ you could at least replace it with the name of the function.

Remember this is a branch and those ``__func__''s were only printed when 
there was an internal_error() - I don't think anyone is going to notice 
:-).  The correct clean fix was committed to the mainline a few hours 
earlier (I looked at back patching it but noticed too many differences).

As for __FUNCTION__, that isn''t part of ISO C 90.

enjoy,
Andrew




More information about the Gdb-patches mailing list