qsort swap code aliases the sorted array elements to ints and longs in order to do swap on the machine words. Unfortunately this breaks with the full code optimization, e.g. LTO.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83201 which seems to reference code directly copied from libc/stdlib/qsort.c.
PR: 228780