re PR middle-end/85955 (ICE in fold_convert_loc, at fold-const.c:2408)
authorRichard Biener <rguenther@suse.de>
Mon, 4 Jun 2018 18:03:24 +0000 (18:03 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 4 Jun 2018 18:03:24 +0000 (18:03 +0000)
commit1b17b99482291691b4179696e65fb42e1831e3ce
treea583071d96e396621e9cc7205fb6bb67a556c22f
parent6088d4c498ff5a1399a9b07101e9830683eae96f
re PR middle-end/85955 (ICE in fold_convert_loc, at fold-const.c:2408)

2018-06-04  Richard Biener  <rguenther@suse.de>

PR tree-optimization/85955
* builtins.c (fold_builtin_sincos): Convert pointers to
destination to appropriate type before dereferencing.

* gcc.dg/pr85955.c: New testcase.

From-SVN: r261165
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr85955.c [new file with mode: 0644]