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/extend.texi | |
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/extend.texi')
-rw-r--r-- | gcc/extend.texi | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/extend.texi b/gcc/extend.texi index e893c67f15c..bee479a8f61 100644 --- a/gcc/extend.texi +++ b/gcc/extend.texi @@ -3376,6 +3376,7 @@ function as well. @findex fabsf @findex fabsl @findex ffs +@findex fprintf @findex fputs @findex imaxabs @findex index @@ -3447,13 +3448,13 @@ corresponding versions prefixed with @code{__builtin_}. The following ISO C89 functions are recognized as builtins unless @samp{-fno-builtin} is specified: @code{abs}, @code{cos}, @code{fabs}, -@code{fputs}, @code{labs}, @code{memcmp}, @code{memcpy}, @code{memset}, -@code{printf}, @code{sin}, @code{sqrt}, @code{strcat}, @code{strchr}, -@code{strcmp}, @code{strcpy}, @code{strcspn}, @code{strlen}, -@code{strncat}, @code{strncmp}, @code{strncpy}, @code{strpbrk}, -@code{strrchr}, @code{strspn}, and @code{strstr}. All of these -functions have corresponding versions prefixed with @code{__builtin_}, -except that the version for @code{sqrt} is called +@code{fprintf}, @code{fputs}, @code{labs}, @code{memcmp}, @code{memcpy}, +@code{memset}, @code{printf}, @code{sin}, @code{sqrt}, @code{strcat}, +@code{strchr}, @code{strcmp}, @code{strcpy}, @code{strcspn}, +@code{strlen}, @code{strncat}, @code{strncmp}, @code{strncpy}, +@code{strpbrk}, @code{strrchr}, @code{strspn}, and @code{strstr}. All +of these functions have corresponding versions prefixed with +@code{__builtin_}, except that the version for @code{sqrt} is called @code{__builtin_fsqrt}. GNU CC provides builtin versions of the ISO C99 floating point |