re PR c/89520 (ICE tree check: accessed operand 4 of call_expr with 3 operands in...
authorJakub Jelinek <jakub@redhat.com>
Thu, 28 Feb 2019 07:16:38 +0000 (08:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 28 Feb 2019 07:16:38 +0000 (08:16 +0100)
commitc2df3c99d5cafbb9774fc6e944fbd64aa17c03bb
tree5a8fabcd1ab74bb58149f1fd4e49588634b44be9
parentb0cf10e423144652be05382cc89670bd366cb65b
re PR c/89520 (ICE tree check: accessed operand 4 of call_expr with 3 operands in convert_to_integer_1, at convert.c:668)

PR c/89520
* convert.c (convert_to_real_1, convert_to_integer_1): Punt for
builtins if they don't have a single scalar floating point argument.
Formatting fixes.

* gcc.dg/pr89520-1.c: New test.
* gcc.dg/pr89520-2.c: New test.

From-SVN: r269273
gcc/ChangeLog
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr89520-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr89520-2.c [new file with mode: 0644]