This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

VEC issues in GCC 4.3.0


I am using working on adding a few interprocedural data flow analysis
passes on GCC 4.3.0 for my project.
In the initialization pass, I collect all the required analysis
information for each cgraph node in a data structure, and push it in
VEC (with heap allocation). Then in the next passes meant for
performing AVE, PAV, RD, PRE and other analyses, I use this VEC to
retrieve information for each cgraph node.
However, due to some reasons, I am getting all garbage values for some
functions while making gcc (eg. while compiling function bid128_add.c)
I retrieved the VEC information just after pushing in the
initialization pass, and it valid. However, when I try to retrieve
values from the VEC in the other passes, I get garbage values. I even
made sure that all the other analyses passes do nothing but to only
print the VEC values, so that there is no question of modification of
the VEC values. However I still get the garbage values.

Has anyone else faced such a problem with VEC? What could possibly be
going wrong when the values pushed in the VEC are correct, but they
get mangled in between the passes?
(I tried using gc instead of heap, it doesnt work)

Any suggestions/ pointers would be highly appreciated.

With Regards

Prashant Singh Rawat
Research Fellow,
GRC, IIT Bombay.

--
Prashant Singh Rawat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]