This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/64507] SH inlined builtin strncmp doesn't return 0 for 0 length


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64507

--- Comment #2 from chrbr at gcc dot gnu.org ---
Author: chrbr
Date: Tue Jan  6 12:22:51 2015
New Revision: 219258

URL: https://gcc.gnu.org/viewcvs?rev=219258&root=gcc&view=rev
Log:
PR target/64507
* config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.


Added:
    branches/gcc-4_9-branch/gcc/testsuite/gcc.target/sh/pr64507.c
Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/sh/sh-mem.cc
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]