This is the mail archive of the 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: [lto] tree.h: Add arg_type to tree_parm_decl.

Kazu Hirata <> writes:

| Hi,
| Attached is a patch to add a new member, arg_type, to tree_parm_decl.
| The story to justify this new member is somewhat long, so please bare
| with me.
| One of the things we'd like to do on the LTO branch is to eliminate
| TREE_LIST.  As you might know, one of the biggest users of TREE_LIST
| is code to handle function types.  Specifically, TYPE_ARG_TYPES points
| to a linked list of TREE_LIST objects with each TREE_VALUE pointing to
| a type.  Now, the C++ frontend uses the TREE_PURPOSE field of a
| TREE_LIST object to store default arguments of a function.  We
| eventually want TREE_ARG_TYPES to point to a vector of argument types,

to minimize confusion, it should be (function_)parm_type instead of arg_type.
Function arguments usually are what are usued to call functions, and
function parameters are what are declared.  The use of of argument
when, in fact one is talking of parameter, is quite confusion
specially in the C++ front-ends where there are all kinds of

-- Gaby

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