RFA: Adding a location_t (or pointer) to tree_exp for 3.4 only.
Carlo Wood
carlo@alinoe.com
Mon Oct 6 22:30:00 GMT 2003
On Mon, Oct 06, 2003 at 02:55:36PM -0700, Richard Henderson wrote:
> On Mon, Oct 06, 2003 at 11:53:15PM +0200, Carlo Wood wrote:
> > get_callee_fndecl is one.
> >
> > It says:
> >
> > if (TREE_CODE (call) != CALL_EXPR)
> > abort ();
> >
> > ... it did abort.
>
> And why exactly would you be calling get_callee_fndecl on a WFL
> in the first place?
Normally, get_callee_fndecl is called with a CALL_EXPR
as might be clear from the abort test :).
Now I don't understand your remark because when I add a location
to every CALL_EXPR by means of wrapping every CALL_EXPR in a WFL,
then get_callee_fndecl is thus called with a WFL that wraps the
CALL_EXPR. That was the whole point no? To *replace* *every*
CALL_EXPR with a EXPR_WITH_FILE_LOCATION, so I did :/
Now tell me I need to make an exception for get_callee_fndecl
because that would be the first of many exceptions that would
make this totally unmaintainable - or I am missing something.
/usr/src/GNU/gcc/gcc-mainline/gcc>grep get_callee_fndecl *.c
builtins.c: tree fndecl = get_callee_fndecl (exp);
builtins.c: tree fndecl = get_callee_fndecl (exp);
builtins.c: tree fndecl = get_callee_fndecl (exp);
builtins.c: fndecl = get_callee_fndecl (t);
builtins.c: tree fndecl = get_callee_fndecl (exp);
builtins.c: tree fndecl = get_callee_fndecl (exp);
builtins.c: tree fndecl = get_callee_fndecl (exp);
builtins.c: tree fndecl = get_callee_fndecl (exp);
builtins.c: tree fndecl = get_callee_fndecl (exp);
calls.c: fndecl = get_callee_fndecl (exp);
cgraphunit.c: tree decl = get_callee_fndecl (*tp);
dojump.c: tree fndecl = get_callee_fndecl (exp);
fold-const.c: fndecl = get_callee_fndecl (arg0);
fold-const.c: fndecl = get_callee_fndecl (arg0);
fold-const.c: tree fndecl = get_callee_fndecl (arg0);
fold-const.c: tree fndecl = get_callee_fndecl (t);
function.c: fntype = get_callee_fndecl (fntype);
tree.c: tree fn = get_callee_fndecl (t);
tree.c:get_callee_fndecl (tree call)
tree-inline.c: t = get_callee_fndecl (node);
tree-inline.c: fn = get_callee_fndecl (t);
--
Carlo Wood <carlo@alinoe.com>
More information about the Gcc
mailing list