This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/6527] New: Malloc alignment insufficient for PowerPC
- From: "drow at sources dot redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 16 May 2008 16:24:33 -0000
- Subject: [Bug libc/6527] New: Malloc alignment insufficient for PowerPC
- Reply-to: sourceware-bugzilla at sourceware dot org
The C standard says that malloc's alignment should be great enough for long
double variables. On PowerPC with 128-bit long double, this is not true. GDB
heap-allocates long double variables, so it is broken; when compiled with
altivec turned on the expression parser will perform misaligned vector loads
thinking they are correctly aligned.
Original posting:
http://sourceware.org/ml/libc-alpha/2007-10/msg00087.html
Discussion continues into November:
http://sourceware.org/ml/libc-alpha/2007-11/msg00000.html
http://sourceware.org/ml/libc-alpha/2007-11/msg00007.html
I'll attach the patch we've been using for six months.
--
Summary: Malloc alignment insufficient for PowerPC
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: drow at sources dot redhat dot com
CC: glibc-bugs at sources dot redhat dot com
GCC host triplet: powerpc-linux-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=6527
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.