current_function_decl or cfun->decl?

Gabriel Dos Reis gdr@integrable-solutions.net
Fri Aug 1 21:40:00 GMT 2003


"Zack Weinberg" <zack@codesourcery.com> writes:

| DJ Delorie <dj@redhat.com> writes:
| 
| > What's the difference? 
| 
| current_function_decl is a #define for cfun->decl, so there is no
| functional difference.

It is worse in the C++ front-end: current_function_decl is a define
for some C++ specific and cc1plus does use both current_function_decl
(its own vision) and cfun->decl.  

Personally, I would like to get rid of cfun->decl (and
current_function_decl if that were practical) from cc1plus.

-- Gaby



More information about the Gcc mailing list