Re: GCC Garbage Collection

2006-11-13 Thread Brendon Costa
The wiki page http://gcc.gnu.org/wiki/Memory_management might help you I had a quick glance at your mail, so I may be wrong, but I am not sure that you configured correctly the build system so that thet GTY(()) macros get processed correctly. Sadly, the gengtype generator does not

Re: GCC Garbage Collection

2006-11-13 Thread Mike Stump
On Nov 12, 2006, at 10:47 PM, Brendon Costa wrote: I think i am having trouble with the garbage collector deleting the memory for tree nodes that i am still using. You must have a reference to that data from gc managed memory. If you don't use use gc to allocate the data structures, it

Re: GCC Garbage Collection

2006-11-13 Thread Brendon Costa
Mike Stump wrote: On Nov 12, 2006, at 10:47 PM, Brendon Costa wrote: I think i am having trouble with the garbage collector deleting the memory for tree nodes that i am still using. You must have a reference to that data from gc managed memory. If you don't use use gc to allocate

Re: GCC Garbage Collection

2006-11-13 Thread Mike Stump
On Nov 13, 2006, at 3:30 PM, Brendon Costa wrote: I used the idea you showed above and it seems to work (I dont understand enough to know why you say it wont work and thus this email). It is the difference between all features of gcc working, or just most of the features working. If you

Re: GCC Garbage Collection

2006-11-13 Thread Brendon Costa
Mike Stump wrote: It is the difference between all features of gcc working, or just most of the features working. If you want pch to work, you have to think about the issue and do up the appropriate code. However, I bet you don't need pch to work. If you are doing real stuff for a real

Re: GCC Garbage Collection

2006-11-13 Thread Mike Stump
On Nov 13, 2006, at 5:23 PM, Brendon Costa wrote: So are you saying that the quick hack that i did will not work for fixing the memory problem I have but that it will probably raise its ugly head again No. or just that PCH will not work? Yes. Are there any advantages to using PCH

RE: GCC Garbage Collection

2006-11-13 Thread Dave Korn
On 14 November 2006 03:30, Mike Stump wrote: On Nov 13, 2006, at 5:23 PM, Brendon Costa wrote: At most there is about 40 lines of code in each of them. PCH is when you have 500,000 lines of C++ code in the main .h file, and 20 lines in the .C file. :-) Nonono, PCH is when you have 6

GCC Garbage Collection

2006-11-12 Thread Brendon Costa
Hi All, I think i am having trouble with the garbage collector deleting the memory for tree nodes that i am still using. In my code i gather all sorts of information from FUNCTION_DECL nodes as they pass through the gimplify_function_tree() function. I gather info about types and

Re: GCC Garbage Collection

2006-11-12 Thread Basile STARYNKEVITCH
Le Mon, Nov 13, 2006 at 06:47:40AM +, Brendon Costa écrivait/wrote: Hi All, I think i am having trouble with the garbage collector deleting the memory for tree nodes that i am still using. The wiki page http://gcc.gnu.org/wiki/Memory_management might help you I had a quick