This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/79144] cmpstrnsi optimization breaks glibc
- From: "amodra at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 19 Jan 2017 23:19:51 +0000
- Subject: [Bug target/79144] cmpstrnsi optimization breaks glibc
- Auto-submitted: auto-generated
- References: <bug-79144-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79144
--- Comment #3 from Alan Modra <amodra at gcc dot gnu.org> ---
Author: amodra
Date: Thu Jan 19 23:19:19 2017
New Revision: 244659
URL: https://gcc.gnu.org/viewcvs?rev=244659&root=gcc&view=rev
Log:
[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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c