This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: current_function_decl or cfun->decl?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]