android_bionic/libc/upstream-freebsd
Elliott Hughes ffded19346 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
2019-10-30 12:02:44 -07:00
..
android/include Clean up some obsolete FreeBSD portability cruft. 2019-10-29 19:49:19 -07:00
lib/libc qsort.c: take an upstream FreeBSD change. 2019-10-30 12:02:44 -07:00
README.md

README.md

This directory contains upstream FreeBSD source. You should not edit these files directly. Make fixes upstream and then pull down the new version of the file.

TODO: write a script to make this process automated.