summaryrefslogtreecommitdiff
path: root/gcc/builtins.def
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-19 18:19:44 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-09-19 18:19:44 +0000
commit3311f67b1478c82ebeb5690a96bbfe3205b36d0d (patch)
tree61dfe2eae6401356a44aaf263dd08431cc930e4e /gcc/builtins.def
parentf6b056d7447686ec8d18d3a251e447cc227c0192 (diff)
downloadgcc-3311f67b1478c82ebeb5690a96bbfe3205b36d0d.tar.gz
* builtins.c (is_valid_printf_arglist, expand_builtin_printf): New
functions. (expand_builtin_fputs): Set `target' parameter for `expand_expr'. (expand_builtin): Handle BUILT_IN_PUTCHAR, BUILT_IN_PUTS and BUILT_IN_PRINTF. * builtins.def (BUILT_IN_PUTCHAR, BUILT_IN_PUTS, BUILT_IN_PRINTF): New entries. * c-common.c (init_function_format_info): Handle __builtin_printf. Set `check_function_format_ptr'. (c_common_nodes_and_builtins): Set `puts_ftype' and `printf_ftype'. Declare __builtin_putchar, __builtin_puts, __builtin_printf and printf. * tree.c, tree.h (check_function_format_ptr): Declare. testsuite: * g++.old-deja/g++.other/virtual8.C: Declare printf correctly. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36540 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/builtins.def')
-rw-r--r--gcc/builtins.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/builtins.def b/gcc/builtins.def
index 40ae59c3d73..7220cf9124c 100644
--- a/gcc/builtins.def
+++ b/gcc/builtins.def
@@ -59,6 +59,9 @@ 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)