18f988a06b
* 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. From-SVN: r38788
112 lines
3.4 KiB
Modula-2
112 lines
3.4 KiB
Modula-2
/* This file contains the definitions and documentation for the
|
|
builtins used in the GNU compiler.
|
|
Copyright (C) 2000, 2001 Free Software Foundation, Inc.
|
|
|
|
This file is part of GNU CC.
|
|
|
|
GNU CC is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
any later version.
|
|
|
|
GNU CC is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with GNU CC; see the file COPYING. If not, write to
|
|
the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
DEF_BUILTIN(BUILT_IN_ALLOCA)
|
|
DEF_BUILTIN(BUILT_IN_ABS)
|
|
DEF_BUILTIN(BUILT_IN_FABS)
|
|
DEF_BUILTIN(BUILT_IN_CONJ)
|
|
DEF_BUILTIN(BUILT_IN_CREAL)
|
|
DEF_BUILTIN(BUILT_IN_CIMAG)
|
|
DEF_BUILTIN(BUILT_IN_FFS)
|
|
DEF_BUILTIN(BUILT_IN_DIV)
|
|
DEF_BUILTIN(BUILT_IN_LDIV)
|
|
DEF_BUILTIN(BUILT_IN_FFLOOR)
|
|
DEF_BUILTIN(BUILT_IN_FCEIL)
|
|
DEF_BUILTIN(BUILT_IN_FMOD)
|
|
DEF_BUILTI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_IN_AGGREGATE_INCOMING_ADDRESS)
|
|
DEF_BUILTIN(BUILT_IN_APPLY_ARGS)
|
|
DEF_BUILTIN(BUILT_IN_APPLY)
|
|
DEF_BUILTIN(BUILT_IN_RETURN)
|
|
DEF_BUILTIN(BUILT_IN_SETJMP)
|
|
DEF_BUILTIN(BUILT_IN_LONGJMP)
|
|
DEF_BUILTIN(BUILT_IN_TRAP)
|
|
|
|
/* Stdio builtins. */
|
|
DEF_BUILTIN(BUILT_IN_PUTCHAR)
|
|
DEF_BUILTIN(BUILT_IN_PUTS)
|
|
DEF_BUILTIN(BUILT_IN_PRINTF)
|
|
DEF_BUILTIN(BUILT_IN_FPUTC)
|
|
DEF_BUILTIN(BUILT_IN_FPUTS)
|
|
DEF_BUILTIN(BUILT_IN_FWRITE)
|
|
DEF_BUILTIN(BUILT_IN_FPRINTF)
|
|
|
|
/* ISO C99 floating point unordered comparisons. */
|
|
DEF_BUILTIN(BUILT_IN_ISGREATER)
|
|
DEF_BUILTIN(BUILT_IN_ISGREATEREQUAL)
|
|
DEF_BUILTIN(BUILT_IN_ISLESS)
|
|
DEF_BUILTIN(BUILT_IN_ISLESSEQUAL)
|
|
DEF_BUILTIN(BUILT_IN_ISLESSGREATER)
|
|
DEF_BUILTIN(BUILT_IN_ISUNORDERED)
|
|
|
|
/* Various hooks for the DWARF 2 __throw routine. */
|
|
DEF_BUILTIN(BUILT_IN_UNWIND_INIT)
|
|
DEF_BUILTIN(BUILT_IN_DWARF_CFA)
|
|
DEF_BUILTIN(BUILT_IN_DWARF_FP_REGNUM)
|
|
DEF_BUILTIN(BUILT_IN_INIT_DWARF_REG_SIZES)
|
|
DEF_BUILTIN(BUILT_IN_FROB_RETURN_ADDR)
|
|
DEF_BUILTIN(BUILT_IN_EXTRACT_RETURN_ADDR)
|
|
DEF_BUILTIN(BUILT_IN_EH_RETURN)
|
|
|
|
DEF_BUILTIN(BUILT_IN_VARARGS_START)
|
|
DEF_BUILTIN(BUILT_IN_STDARG_START)
|
|
DEF_BUILTIN(BUILT_IN_VA_END)
|
|
DEF_BUILTIN(BUILT_IN_VA_COPY)
|
|
DEF_BUILTIN(BUILT_IN_EXPECT)
|
|
|
|
/* C++ extensions */
|
|
DEF_BUILTIN(BUILT_IN_NEW)
|
|
DEF_BUILTIN(BUILT_IN_VEC_NEW)
|
|
DEF_BUILTIN(BUILT_IN_DELETE)
|
|
DEF_BUILTIN(BUILT_IN_VEC_DELETE)
|