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):
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