thank you. the patch was just committed into trunk as:
https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=262636 <https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=262636> Qing > On Jul 12, 2018, at 12:03 PM, Jeff Law <l...@redhat.com> wrote: > >> >> gcc/ChangeLog: >> >> +2018-07-11 Qing Zhao <qing.z...@oracle.com> >> + >> + PR middle-end/78809 >> + * builtins.c (expand_builtin_memcmp): Inline the calls first >> + when result_eq is false. >> + (expand_builtin_strcmp): Inline the calls first. >> + (expand_builtin_strncmp): Likewise. >> + (inline_string_cmp): New routine. Expand a string compare >> + call by using a sequence of char comparison. >> + (inline_expand_builtin_string_cmp): New routine. Inline expansion >> + a call to str(n)cmp/memcmp. >> + * doc/invoke.texi (--param builtin-string-cmp-inline-length): New >> option. >> + * params.def (BUILTIN_STRING_CMP_INLINE_LENGTH): New. >> + >> >> gcc/testsuite/ChangeLog: >> >> +2018-07-11 Qing Zhao <qing.z...@oracle.com> >> + >> + PR middle-end/78809 >> + * gcc.dg/strcmpopt_5.c: New test. >> + * gcc.dg/strcmpopt_6.c: New test. > OK > THanks > > Jeff