summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/malloc_debug.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-10-30 12:02:44 -0700
committerElliott Hughes <enh@google.com>2019-10-30 12:02:44 -0700
commitffded1934630d2000cdcf272eb2bfc215f6f741b (patch)
treecff2516f9c02aa637159c0d59b8f3c8361962cd8 /libc/malloc_debug/malloc_debug.cpp
parent8ccf486695447d9c9674a9791ab0ee531bef6741 (diff)
qsort.c: take an upstream FreeBSD change.
r334928 | kib | 2018-06-10 10:54:44 -0700 (Sun, 10 Jun 2018) | 16 lines libc qsort(3): stop aliasing. Qsort swap code aliases the sorted array elements to ints and longs in order to do swap by 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 Reported by: mliska@suse.cz Reviewed by: brooks Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D15714 Test: treehugger Change-Id: Iac608b13bbf8a2dcb48c935a7871c0d2f05bff79
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions