Re: vec<> inside GTYed struct

2013-04-19 Thread Diego Novillo
On 2013-04-19 10:21 , Paulo Matos wrote: struct GTY(()) LOOP_INFO { ... vec infos; You are declaring a heap vector here. Since your structure is in GC memory, the vector must also be in GC memory. Add 'va_gc' to the arguments; and make infos a pointer (a sad side-effect of using GC):

vec<> inside GTYed struct

2013-04-19 Thread Paulo Matos
Hello, Should I be concerned about using a vec<> inside a GTYed struct. Something like: typedef loop_info * LOOP_INFO; struct GTY(()) LOOP_INFO { ... vec infos; }; is causing me some pain due to invalid free() / delete / delete[] / realloc() (as reported by valgrind) after a segfault). Ar