This is the mail archive of the
mailing list for the GCC project.
Re: current_function_decl or cfun->decl?
"Zack Weinberg" <email@example.com> writes:
| DJ Delorie <firstname.lastname@example.org> 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.