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] Remove support for untyped/fallback builtins


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


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