On Tue, Jul 26, 2011 at 5:33 PM, Ian Lance Taylor <iant@xxxxxxxxxx> wrote: > konica sarker <konica.sarker@xxxxxxxxx> writes: > >> <var_decl 0xb776a284 z >> type <real_type 0xb7769120 float address-space-1 SF >> size <integer_cst 0xb76972c0 constant 32> >> unit size <integer_cst 0xb7697060 constant 4> >> align 32 symtab 0 alias set -1 canonical type 0xb7769120 precision 32> >> used public external common SF defer-output file /tmp/test.c line >> 21 col 21 size <integer_cst 0xb76972c0 32> unit size <integer_cst >> 0xb7697060 4> >> align 32> >> >> >> this is my tree code . I have printed my tree by debug_tree. >> can you tell me how can I extract the information address-space-1 from >> this code??? > > I'm sorry, I don't understand what you mean. I can see the string > address-space-1 right there in the output. > > Do you mean: given this tree, how can you write code which determines > the address space? Use TYPE_ADDR_SPACE. > > Ian > Yes. TYPE_ADDR_SPACE () is not detecting the address space of this tree.