[RS6000] PR79144, cmpstrnsi optimization breaks glibc
commit5699b9d11556148547b478d1b4591359c7b89ac5
authorAlan Modra <amodra@gmail.com>
Thu, 19 Jan 2017 23:19:19 +0000 (20 09:49 +1030)
committerAlan Modra <amodra@gcc.gnu.org>
Thu, 19 Jan 2017 23:19:19 +0000 (20 09:49 +1030)
tree2af0ac8212f9f4209d79244b9c6345cfc2fe7e06
parent8e4160112d24d56852a17ca3627dec24d3ffa1ed
[RS6000] PR79144, cmpstrnsi optimization breaks glibc

glibc compiled with current gcc-7 fails one test due to strcmp and
strncmp appearing in the PLT.  This is because the inline expansion of
those functions falls back to a function call, but doesn't use the asm
name for the call.

PR target/79144
* config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
for strcmp and strncmp from corresponding builtin decl.

From-SVN: r244659
gcc/ChangeLog
gcc/config/rs6000/rs6000.c