This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/80732] target_clones does not work with dlsym


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]