[hellogcc] ??????[hellogcc] Re: [hellogcc] gccint??GTY????????,????????????

  • From: "perr" <2029352818@xxxxxx>
  • To: "hellogcc" <hellogcc@xxxxxxxxxxxxx>, "hellogcc" <hellogcc@xxxxxxxxxxxxx>
  • Date: Fri, 29 Aug 2014 09:57:35 +0800

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

Other related posts: