This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Tree
konica sarker <konica.sarker@gmail.com> writes:
> ok. I have a very basic question. If you know, please reply me.
> suppore I have declared variables like :
> _X char a;
> char b:
>
> so, is there any way to find out that "a" is declared in "_X" address
> space, and "b" in generic address space?
If adecl is the VAR_DECL corresponding to a, look at
TYPE_ADDR_SPACE (TREE_TYPE (adecl))
I may have misunderstood your earlier question. Variables do have
address spaces. I thought you were talking about integers rather than
variables.
Ian