re PR tree-optimization/89314 (ICE in wide_int_to_tree_1, at tree.c:1561)
authorJakub Jelinek <jakub@redhat.com>
Thu, 14 Feb 2019 09:25:01 +0000 (10:25 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 14 Feb 2019 09:25:01 +0000 (10:25 +0100)
commit3c545f7491b642339fbdd451caaf5a4efae18a61
tree890d82b0f064d5477e15d64235b678226fba962c
parent8936f5310aba723f2fbc2b0106e74fd307e4c347
re PR tree-optimization/89314 (ICE in wide_int_to_tree_1, at tree.c:1561)

PR tree-optimization/89314
* fold-const.c (fold_binary_loc): Cast strlen argument to
const char * before dereferencing it.  Formatting fixes.

* gcc.dg/pr89314.c: New test.

From-SVN: r268868
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr89314.c [new file with mode: 0644]