Index: c-decl.c =================================================================== RCS file: /usr/download/ncvs/src/contrib/gcc/c-decl.c,v retrieving revision 1.1.1.18 diff -u -r1.1.1.18 c-decl.c --- c-decl.c 21 Jun 2004 23:47:45 -0000 1.1.1.18 +++ c-decl.c 22 Jul 2004 01:55:22 -0000 @@ -19,6 +19,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* $FreeBSD: src/contrib/gcc/c-decl.c,v 1.16 2004/06/21 23:54:19 kan Exp $ */ + /* Process declarations and symbol lookup for C front end. Also constructs types; the standard scalar types at initialization, and structure, union, array and enum types when they are declared. */ @@ -1253,6 +1255,9 @@ definition. */ && !(TREE_CODE (newdecl) == FUNCTION_DECL && DECL_INITIAL (newdecl) && !DECL_INITIAL (olddecl)) + /* Don't warn about redundant redeclarations of builtins. */ + && !(TREE_CODE (newdecl) == FUNCTION_DECL + && !DECL_BUILT_IN (newdecl) && DECL_BUILT_IN (olddecl)) /* Don't warn about an extern followed by a definition. */ && !(DECL_EXTERNAL (olddecl) && !DECL_EXTERNAL (newdecl)) /* Don't warn about forward parameter decls. */