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]
Other format: [Raw text]

Re: [PATCH] Fix va_start (PR tree-optimization/18828)


On Wed, Jan 05, 2005 at 02:36:18PM -0500, Jakub Jelinek wrote:
> 	* builtins.c (expand_builtin_next_arg): Remove argument and all
> 	the argument checking.
> 	(expand_builtin): Adjust caller.
> 	(expand_builtin_va_start): Likewise.  Remove error for too many
> 	arguments.
> 	(fold_builtin_next_arg): Issue error for too many arguments.
> 	After checking arguments, replace them with magic arguments that
> 	prevent further checking of the args.
> 
> 	* gcc.dg/20050105-2.c: New test.

Ugly, but effective.  Ok.



r~


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