This is the mail archive of the gcc@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]

Re: vec<> inside GTYed struct


On 2013-04-19 10:21 , Paulo Matos wrote:
struct GTY(()) LOOP_INFO
{
   ...
   vec<loop_info> 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<loop_info, va_gc> *infos;


Diego.


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