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: [PING] Re: [PATCH] c/66516 - missing diagnostic on taking the address of a builtin function


I wonder if it would make sense to handle this when we actually try to emit a reference to one of these functions in the back end, rather than in many places through the front end.

If it's going to stay in the front end, the C and C++ front-ends should share an implementation of this function, in c-common.c.

Most of the calls in the C++ front end can be replaced by a single call in mark_rvalue_use.

-#ifdef ENABLE_CHECKING
+#if 0 // def ENABLE_CHECKING

This change is unrelated.

+#define DECL_IS_GCC_BUILTIN(DECL) \

This macro name could be clearer. DECL_IS_ONLY_BUILTIN? DECL_IS_NOFALLBACK_BUILTIN?

Jason


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