Date: Sun, 10 Jun 2018 17:55:45 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 228780] Strict aliasing violations in libc / qsort.c Message-ID: <bug-228780-227-6DigG4W1tB@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-228780-227@https.bugs.freebsd.org/bugzilla/> References: <bug-228780-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D228780 --- Comment #3 from commit-hook@freebsd.org --- A commit references this bug: Author: kib Date: Sun Jun 10 17:54:44 UTC 2018 New revision: 334928 URL: https://svnweb.freebsd.org/changeset/base/334928 Log: 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=3D83201 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 Changes: head/lib/libc/stdlib/qsort.c --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-228780-227-6DigG4W1tB>