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: GTY as attribute


Andrew,
I think you are misunderstanding the scope of this. People have no reason to increase use of GTY attributes outside of GCC, they can use GNU attributes directly. This is what we do at Mozilla.
This just makes it easier to parse GCC headers without loosing GTY information.


This patch in no way encourages use of GTY, but provides a rather trivial way (compared to reinventing gengtype outside of GCC) to get at the information in the GCC sources. This would help reduce the difference and associated merging effort between our tree and the GCC mainline.

Taras

Andrew Pinski wrote:
Really I think this is a bad idea.  Now people will start using GTY
attribute in their code and we can't change it, even with it being
documented as being a GCC only feature.  Also this attribute should
really be documented as much as it can be.

Also if you are changing where GTY has to go, you need to update the
documentation to say that requirement.

Thanks,
Andrew Pinski


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