[Bug c/91664] Undefined reference linker errors when static linking archive with gcc target_clones function multi-versioning

2019-09-04 Thread element at elementsofsound dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91664 --- Comment #6 from element at elementsofsound dot org --- I removed the internal_func() with the target_clones attribute, which caused the last number digit of the symbols for fmv_test clones to match up between object files, but errors still

[Bug c/91664] Undefined reference linker errors when static linking archive with gcc target_clones function multi-versioning

2019-09-04 Thread element at elementsofsound dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91664 --- Comment #5 from element at elementsofsound dot org --- (In reply to Andrew Pinski from comment #3) > Maybe it is not clear but target_clones is only supposed to be on the > definition rather just declarations too. I'm no

[Bug c/91664] Undefined reference linker errors when static linking archive with gcc target_clones function multi-versioning

2019-09-04 Thread element at elementsofsound dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91664 --- Comment #4 from element at elementsofsound dot org --- (In reply to Andrew Pinski from comment #2) > Try this: > gcc -c fmv-test.c > gcc -c main.c > ar cr fmv-test.a main.o fmv-test.o > gcc -o fmv-test-borken fmv-test.a &

[Bug c/91664] Undefined reference linker errors when static linking archive with gcc target_clones function multi-versioning

2019-09-04 Thread element at elementsofsound dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91664 --- Comment #1 from element at elementsofsound dot org --- Created attachment 46827 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46827&action=edit Preprocessed file for main.c

[Bug c/91664] New: Undefined reference linker errors when static linking archive with gcc target_clones function multi-versioning

2019-09-04 Thread element at elementsofsound dot org
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: element at elementsofsound dot org Target Milestone: --- Created attachment 46826 --> https://gcc.gnu.org/bugzi