current_function_decl or cfun->decl?

Zack Weinberg zack@codesourcery.com
Fri Aug 1 21:08:00 GMT 2003


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.

> Which is the preferred one to use, or how do you decide which to
> use?

I'd like to see transition to cfun->decl because it's shorter and
visible to gdb, but that's just me.

zw



More information about the Gcc mailing list