]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add a build_real_truncate helper function
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Oct 2015 13:37:15 +0000 (13:37 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 5 Oct 2015 13:37:15 +0000 (13:37 +0000)
commit4c9156537c50c4de823aa9d4d1c8f611abf01782
tree1e4a42eb36f306f1da5a94e136fcbde03c213296
parentf7e1363cd20b685d73a5437cc19fb38cbf291069
Add a build_real_truncate helper function

...which simplifies the match.pd patterns I'm about to add.

Bootstrapped & regression-tested on x86_64-linux-gnu.

gcc/
* real.h (build_real_truncate): Declare.
* tree.c (build_real_truncate): New function.
(strip_float_extensions): Use it.
* builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
(fold_builtin_hypot, fold_builtin_pow): Likewise.
* match.pd: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228483 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/match.pd
gcc/real.h
gcc/tree.c