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: [PATH] fix c/10962, slow lookup_field


I wish it could very easy but since in the c++, it depends on this macros that only in C++ front-end:

/* Nonzero if NODE which declares a type.  */
#define DECL_DECLARES_TYPE_P(NODE) \
  (TREE_CODE (NODE) == TYPE_DECL || DECL_CLASS_TEMPLATE_P (NODE))


Unless you think of a better way of doing it, I cannot think of a way to share them.


Thanks,
Andrew Pinski

On Thursday, May 29, 2003, at 03:07 US/Eastern, Jason Merrill wrote:

Could we share some of this code between the C and C++ frontends instead of
duplicating it?


Jason




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