This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Parameter not passed in call expr
- From: ludovic dot courtes at inria dot fr (Ludovic Courtès)
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 08 Apr 2011 15:56:47 +0200
- Subject: Re: Parameter not passed in call expr
- References: <87mxk115q5.fsf@inria.fr> <mcrmxk0hnoy.fsf@google.com>
Hi,
Ian Lance Taylor <iant@google.com> writes:
> ludovic.courtes@inria.fr (Ludovic CourtÃs) writes:
>
>> DECL_INITIAL (decl) =
>> build_block (NULL_TREE, NULL_TREE, decl, NULL_TREE);
>> DECL_SAVED_TREE (decl) =
>> build_call_expr (built_in_decls[BUILT_IN_PUTS], 1, parm);
>
> I would normally expect DECL_SAVED_TREE to be a BLOCK.
AFAICS itâs often a statement list or a BIND expression, and a single
statement appears to work too (same problem with a statement list).
I think the problem lies elsewhere...
Thanks,
Ludoâ.