This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/6527] New: Malloc alignment insufficient for PowerPC


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]