Hello. Following patch fixes the issue where we do not emit ifunc and resolver for function that are not called in a compilation unit or and not referenced. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. i386.exp tests work on x86_64-linux-gnu. Ready to be installed? Martin gcc/testsuite/ChangeLog: 2017-06-29 Martin Liska PR ipa/81214 * gcc.target/i386/pr81214.c: New test. gcc/ChangeLog: 2017-06-29 Martin Liska PR ipa/81214 * multiple_target.c (create_dispatcher_calls): Make ifunc also for function that don't have calls or are not referenced. --- gcc/multiple_target.c | 64 ++++++++++++++++----------------- gcc/testsuite/gcc.target/i386/pr81214.c | 14 ++++++++ 2 files changed, 46 insertions(+), 32 deletions(-) create mode 100644 gcc/testsuite/gcc.target/i386/pr81214.c