This is the mail archive of the gcc@gcc.gnu.org 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: 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);


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