r229408 - in /trunk/gcc: ChangeLog builtins.c m...

rsandifo@gcc.gnu.org rsandifo@gcc.gnu.org
Tue Oct 27 09:30:00 GMT 2015


Author: rsandifo
Date: Tue Oct 27 09:30:32 2015
New Revision: 229408

URL: https://gcc.gnu.org/viewcvs?rev=229408&root=gcc&view=rev
Log:
Move pow folds to match.pd

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

gcc/
	* builtins.c (fold_builtin_pow): Delete in favor of...
	(fold_const_builtin_pow): ...this new function.  Only handle constant
	arguments.
	(fold_builtin_2): Update accordingly.
	* match.pd: Add rules previously handled by fold_builtin_pow.

gcc/testsuite/
	* gcc.dg/torture/builtin-math-1.c: Skip at -O0.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/builtins.c
    trunk/gcc/match.pd
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/torture/builtin-math-1.c



More information about the Gcc-cvs mailing list