[Bug general/24498] 0.176: isn't LTO ready

2020-04-10 Thread mark at klomp dot org via Elfutils-devel
https://sourceware.org/bugzilla/show_bug.cgi?id=24498 --- Comment #8 from Mark Wielaard --- I proposed a patch to use the new gcc 10 symver attribute to define symbol versioning: https://sourceware.org/pipermail/elfutils-devel/2020q2/002606.html This should help with using LTO since it makes th

[PATCH] lib: Use attribute symver when available to define symbol versioning.

2020-04-10 Thread Mark Wielaard
GCC 10 introduces a function attribute to define symbol versioning. Add a configure check to see if __attribute__((symver)) is supported. If it is then define the OLD_VERSION, NEW_VERSION, COMPAT_VERSION and COMPAT_VERSION_NEWPROTO macros using just attribute symver, attribute alias and typeof func