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: [PATCH] Clean-up C's builtin function type matching.


On Mon, 21 Jul 2003 11:30:52 -0600 (MDT), Roger Sayle <roger@eyesopen.com> wrote:

>                     if (decls_match (new_fn, old_fn))
>   		    {
> - 		      /* If the OLD_FN was a builtin, there is now a
> - 			 real declaration.  */
> - 		      if (DECL_ANTICIPATED (old_fn))
> - 			DECL_ANTICIPATED (old_fn) = 0;
>   		      break;

I think this change is correct, but doesn't affect this testcase;
decls_match returns false, because the builtin is extern "C" and the real
decl isn't.

We actually want to remove old_fn from the declaration set.

Jason


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