This is the mail archive of the gcc-patches@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: [lto][patch] Use explicit array sizes in lto-plugin/common.h


> Why is this necessary?  The size of the constructor expression
> implicitly sizes the arrays.

I need it on the .h to be able to do sizeof(foo)/sizeof(char *) to get
the number of elements. Adding it to the .c makes it consistent.

>
> Diego.
>

Cheers.
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047


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