re PR target/64507 (SH inlined builtin strncmp doesn't return 0 for 0 length)
authorChristian Bruel <christian.bruel@st.com>
Tue, 6 Jan 2015 11:59:09 +0000 (12:59 +0100)
committerChristian Bruel <chrbr@gcc.gnu.org>
Tue, 6 Jan 2015 11:59:09 +0000 (12:59 +0100)
commit6a6b03ba34e7a0d84f7a92ba378ac602c5759209
treec3bd3725766aa1b76d30e5723876482626311803
parente4a5735015888eaea5ec6964a3d879a1e61ea75a
re PR target/64507 (SH inlined builtin strncmp doesn't return 0 for 0 length)

PR target/64507
* config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.

From-SVN: r219257
gcc/ChangeLog
gcc/config/sh/sh-mem.cc
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/sh/pr64507.c [new file with mode: 0644]