r230477 - in /trunk/gcc: ChangeLog builtins.c f...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Tue Nov 17 18:42:00 GMT 2015


Author: rsandifo
Date: Tue Nov 17 18:42:48 2015
New Revision: 230477

URL: https://gcc.gnu.org/viewcvs?rev=230477&root=gcc&view=rev
Log:
Extend fold_const_call to combined_fn

This patch extends fold_const_call so that it can handle internal
as well as built-in functions.

Tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabi.

gcc/
	* fold-const-call.h (fold_const_call): Replace built_in_function
	arguments with combined_fn arguments.
	* fold-const-call.c: Include case-cfn-macros.h.
	(fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
	(fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
	(fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
	built_in_function arguments with combined_fn arguments.
	* builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
	(fold_builtin_3): Update calls to fold_const_call.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/fold-const-call.c
    trunk/gcc/fold-const-call.h



More information about the Gcc-cvs mailing list