This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Remove support for untyped/fallback builtins
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Roger Sayle <roger at eyesopen dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 25 Jul 2003 21:14:16 -0700
- Subject: Re: [PATCH] Remove support for untyped/fallback builtins
- References: <Pine.LNX.4.44.0307252025070.25559-100000@www.eyesopen.com>
Roger Sayle <roger@eyesopen.com> writes:
> The following patch continues the clean-up of GCC's builtins. Now
> that we have fuzzy type matching for builtin prototypes, we no longer
> need special "fallback" builtins, defined by DEF_FALLBACK_BUILTIN or
> DEF_EXT_FALLBACK_BUILTIN. Additionally, bzero, bcopy, bcmp, fputs
> and fputs_unlocked can now be defined by the regular mechanisms and
> no longer require their own "hack" in C's duplicate_decls.
The changes to builtins.def are OK. The change to c-decl.c is OK
provided that first you check that code like this:
extern void foo();
// ...
extern void foo(int, int);
// ...
bar() { foo(); }
is still properly diagnosed as not enough arguments to foo.
zw