[GENERIC] problem when adding 2 VAR_DEC in the main function
Ian Lance Taylor
iant@google.com
Tue Oct 26 08:57:00 GMT 2010
charfi asma <charfiasma@yahoo.fr> writes:
> I look at the cp and java front end and they actually use TYPE_MEHODS to add
> method to one class.
> both implement add_method function that contains:
>
> DECL_CHAIN (fndecl) = TYPE_METHODS (this_class);
> TYPE_METHODS (this_class) = fndecl;
>
> so the middle-end take this Generic representation of a method and gimplify it.
>
> so why it does not work in my case ?
I think that they also pass the function to the middle-end separately,
and just use the TYPE_METHODS in the frontend to keep track of them. I
don't see anything in the middle-end which walks down the TYPE_METHOD,
other than for generating debug info.
Ian
More information about the Gcc-help
mailing list