This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/80732] target_clones does not work with dlsym
- From: "yyc1992 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 May 2017 14:19:31 +0000
- Subject: [Bug target/80732] target_clones does not work with dlsym
- Auto-submitted: auto-generated
- References: <bug-80732-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80732
--- Comment #4 from Yichao Yu <yyc1992 at gmail dot com> ---
`double (*pf1)(double, double, double) = dlsym(hdl, "f1.ifunc");`
Wouldn't it be better if GCC generates local functions `f1.default`, `f1.fma`
as implementation and `f1` to replace `f1.ifunc`? It's quite incontinent if
this detail is exposed.
If one have to use `f1.ifunc`, does it also mean that the declaration of the
function in the header must also have `target_clone` applied?