Handle '\0' in strcmp in RTL expansion (PR tree-optimization/90892).
authorMartin Liska <mliska@suse.cz>
Wed, 3 Jul 2019 08:32:25 +0000 (10:32 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 3 Jul 2019 08:32:25 +0000 (08:32 +0000)
commit6aa2e42cb4be16ee0937ba872b297b11d8f0a18b
treef210a49163af5fc3a3d03f5a1cff2bf92bf3d423
parentd04295d24364b0138c354e249a4bb14e0a6ffb96
Handle '\0' in strcmp in RTL expansion (PR tree-optimization/90892).

2019-07-03  Martin Liska  <mliska@suse.cz>

PR tree-optimization/90892
* builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
in string constants.
2019-07-03  Martin Liska  <mliska@suse.cz>

PR tree-optimization/90892
* gcc.dg/pr90892.c: New test.

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