flexible array members ????????????????,????????????1,??????gnu??????????????,????????????0,???????????? ------------------ ???????? ------------------ ??????: "Kito Cheng"<kito.cheng@xxxxxxxxx>; ????????: 2014??8??29??(??????) ????0:28 ??????: "hellogcc"<hellogcc@xxxxxxxxxxxxx>; ????: [hellogcc] Re: [hellogcc] gccint??GTY????????,???????????? keyword: flexible array members 2014-08-28 20:27 GMT+08:00 perr <2029352818@xxxxxx>: > ????: https://gcc.gnu.org/onlinedocs/gccint/GTY-Options.html#GTY-Options > > length ("expression")??????????????????:(????????????) > > struct GTY(()) rtvec_def { > int num_elem; /* number of elements */ > rtx GTY ((length ("%h.num_elem"))) elem[1]; > }; > > ??????????????????????: > > struct rtvec_def t; > > ??????????,????????t.num_elem??????t.elem, ????????????????t, > t.num_elem??????????????,??????????????0????,????????????,??????????0??t.elem[]????????????,??????????????1??. > ????????gcc????,??????????????????,?????? > > ?6?9