This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Clean-up C's builtin function type matching.
- From: Jason Merrill <jason at redhat dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: Gabriel Dos Reis <gdr at integrable-solutions dot net>, Gerald Pfeifer <gerald at pfeifer dot com>, <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 21 Jul 2003 15:21:36 -0400
- Subject: Re: [PATCH] Clean-up C's builtin function type matching.
- References: <Pine.LNX.4.44.0307211117190.9707-100000@www.eyesopen.com>
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