[Bug c/91664] Undefined reference linker errors when static linking archive with gcc target_clones function multi-versioning
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 5 08:07:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91664
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Status|WAITING |NEW
CC| |marxin at gcc dot gnu.org
Known to fail| |10.0, 8.3.1, 9.2.1
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
The issue is that with a declaration like
double fmv_test (double *dArray, int size) __attribute__ ((__target_clones__
("avx2","avx","sse4.1","sse2","default")));
we're creating a resolver even if there's no definition of fmv_test visible.
We shouldn't do that. We should only emit resolvers for definitions.
More information about the Gcc-bugs
mailing list