This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch to add __builtin_printf


> 	* 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.

Ok.


r~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]