| Related articles |
|---|
| how to get the field_id for member of structure in gcc front end tianwei.sheng@gmail.com (Tianwei Sheng) (2006-03-29) |
| From: | "Tianwei Sheng" <tianwei.sheng@gmail.com> |
| Newsgroups: | comp.compilers |
| Date: | 29 Mar 2006 18:53:09 -0500 |
| Organization: | Compilers Central |
| Keywords: | GCC, question |
| Posted-Date: | 29 Mar 2006 18:53:09 EST |
Hi all:
for the following statement, how can I get the field_id info for
the structure member
struct{
int a;
int b;
} pair;
int main()
{
int * p = &pair.a;
}
It seems that we can't get the field_id info because of address taken
operator. it treats the "&pair.a" as "&pair + ofset of a".
I am doing something about alias analysis for our compiler, I need the
field_id info for me.
I am not familiar with the gcc tree. any one know this?
thanks.
tianwei
Return to the
comp.compilers page.
Search the
comp.compilers archives again.