This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Creating a function dynamically
- From: Taro Okumichi <tarookumichi at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 12 Nov 2009 09:25:51 +0100
- Subject: Re: Creating a function dynamically
>Can anyone tell me what I am doing wrong. The compiler oututs
>__trace__int(0) instead of using the function parameter as an argument:
> _trace_f1(int a,int b) {
> __trace_int(a);
> ...
Got the answer: I was missing
DECL_ARG_TYPE(argdecl) = TREE_TYPE(param);