Add non-folding variants for convert_to_*.
authorKai Tietz <ktietz70@googlemail.com>
Fri, 13 Nov 2015 22:24:45 +0000 (22:24 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 13 Nov 2015 22:24:45 +0000 (17:24 -0500)
commit269e63b735d6e4e18367e94e8417b5d5eb799960
tree2ab66075ba691c6242d45ab66643cf2f0358a6a5
parent9514e74fcd529835a8963f91e12e1ee853149095
Add non-folding variants for convert_to_*.

2015-11-13  Kai Tietz  <ktietz70@googlemail.com>
    Marek Polacek  <polacek@redhat.com>
    Jason Merrill  <jason@redhat.com>

gcc/
* convert.c (maybe_fold_build1_loc): New.
(maybe_fold_build2_loc): New.
(convert_to_pointer_1): Split out from convert_to_pointer.
(convert_to_pointer_nofold): New.
(convert_to_real_1): Split out from convert_to_real.
(convert_to_real_nofold): New.
(convert_to_integer_1): Split out from convert_to_integer.
(convert_to_integer_nofold): New.
(convert_to_complex_1): Split out from convert_to_complex.
(convert_to_complex_nofold): New.
* convert.h: Declare new functions.
* tree-complex.c (create_one_component_var): Break up line to
avoid sequence point issues.
gcc/c-family/
* c-lex.c (interpret_float): Use fold_convert.

Co-Authored-By: Jason Merrill <jason@redhat.com>
Co-Authored-By: Marek Polacek <polacek@redhat.com>
From-SVN: r230359
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-lex.c
gcc/convert.c
gcc/convert.h
gcc/tree-complex.c