Adding elements into tree data structure
Ian Lance Taylor
iant@google.com
Mon May 9 23:34:00 GMT 2011
"Iyer, Balaji V" <balaji.v.iyer@intel.com> writes:
> I would like to add 8 integer array fields (I am also OK if they are tree-lists) into the tree data structure. I want to update this fields every time I see loops. This value will be used later by the optimizer. I tried to just add them into the structure in tree.h (under struct tree_base) and it is seg-faulting. I am using GCC 4.6.0.
>
> Can someone please tell me the procedure for adding elements into the tree structure?
Hard to say what is wrong without more information. Make sure that
tree_code_size returns the right values. But really I would recommend
just using the debugger to find out what is causing the segfault.
Ian
More information about the Gcc
mailing list