From 96df8b7778427c0dba34c27172a73f1d15945281 Mon Sep 17 00:00:00 2001 From: ghazi Date: Sun, 7 Jan 2001 23:15:47 +0000 Subject: * builtins.def (BUILT_IN_FPRINTF): New entry. * c-common.c (c_expand_builtin_fprintf): New function. (init_function_format_info): Handle __builtin_fprintf. (c_common_nodes_and_builtins): Declare fprintf/__builtin_fprintf. (c_expand_builtin): Handle BUILT_IN_FPRINTF. * c-decl.c (duplicate_decls): Adjust comment. * extend.texi (fprintf): Document new builtin. testsuite: * gcc.c-torture/execute/stdio-opt-3.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38788 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-decl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c-decl.c') diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 0a94db0e595..95272f97c07 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1511,7 +1511,7 @@ duplicate_decls (newdecl, olddecl, different_binding_level) oldtype = trytype; } /* Accept harmless mismatch in first argument type also. - This is for ffs. */ + This is for the ffs and fprintf builtins. */ if (TYPE_ARG_TYPES (TREE_TYPE (newdecl)) != 0 && TYPE_ARG_TYPES (oldtype) != 0 && TREE_VALUE (TYPE_ARG_TYPES (newtype)) != 0 -- cgit v1.2.1