diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-07 23:15:47 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-07 23:15:47 +0000 |
commit | 96df8b7778427c0dba34c27172a73f1d15945281 (patch) | |
tree | aa1f223abf0f413165eb86ffc04a6cb9aa07d467 /gcc/c-decl.c | |
parent | 9a06f763ea00f328645742fced61949ad70ce256 (diff) | |
download | gcc-96df8b7778427c0dba34c27172a73f1d15945281.tar.gz |
* 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
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |