Committed to trunk as 242556 after removing the use->clobber change from cmpstrnsi and bootstrap/regtest.
gcc/ChangeLog 2016-11-17 Aaron Sawdey <acsaw...@linux.vnet.ibm.com> * config/i386/i386.md (cmpstrnsi): New test to bail out if neither string input is a string constant. 2016-11-17 Aaron Sawdey <acsaw...@linux.vnet.ibm.com> * builtins.c (expand_builtin_strncmp): Attempt expansion of strncmp via cmpstrnsi even if neither string is constant. -- Aaron Sawdey, Ph.D. acsaw...@linux.vnet.ibm.com 050-2/C113 (507) 253-7520 home: 507/263-0782 IBM Linux Technology Center - PPC Toolchain