Re : Re : Re : Re : [GENERIC] problem when adding 2 VAR_DEC in the main function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






----- Message d'origine ----
De : charfi asma <charfiasma@xxxxxxxx>
À : Ian Lance Taylor <iant@xxxxxxxxxx>
Cc : gcc-help@xxxxxxxxxxx
Envoyé le : Lun 25 octobre 2010, 10h 26min 04s
Objet : Re : Re : Re : [GENERIC] problem when adding 2 VAR_DEC in the main 
function





----- Message d'origine ----
De : Ian Lance Taylor <iant@xxxxxxxxxx>
À : charfi asma <charfiasma@xxxxxxxx>
Cc : gcc-help@xxxxxxxxxxx
Envoyé le : Sam 23 octobre 2010, 1h 44min 39s
Objet : Re: Re : Re : [GENERIC] problem when adding 2 VAR_DEC in the main 
function

charfi asma <charfiasma@xxxxxxxx> writes:

> my problem is that the method is never added to the TYPE_METHOD list of the 
> RECROD_TYPE:

The middle-end doesn't support type methods.  The TYPE_METHODS field
probably shouldn't really be in the middle-end at all; it's only used
for generating debug info.  Any work you do with TYPE_METHODS is
entirely up to your frontend.

Ian

Hello,

Thank you Ian for this clarification, but how can I add a class' method to the 
generic tree?
should I add it to the TYPE_FIELDS just like attribute ?

thank you very much.

Asma

Hello,
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 ?

thanks

Asma






[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux