This is the mail archive of the libc-alpha@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]

Re: Testing glibc 2.24 on remaining machines.


From: Carlos O'Donell <carlos@redhat.com>
Date: Sat, 16 Jul 2016 14:11:27 -0400

> Are you able to do the sparc and sparc64 testing?

I did v9 sparc and sparc64 runs and they mostly look fine.

I had to apply this (year old) patch to fix the wcsmbs comparison test
case.  The memory compared must be aligned suitably for the type
being used, otherwise we get SIGBUS on platforms like sparc:

diff --git a/string/test-strncmp.c b/string/test-strncmp.c
index 8c0a331..d392248 100644
--- a/string/test-strncmp.c
+++ b/string/test-strncmp.c
@@ -156,6 +156,9 @@ do_test_limit (size_t align1, size_t align2, size_t len, size_t n, int max_char,
   size_t i, align_n;
   CHAR *s1, *s2;
 
+  align1 &= ~(CHARBYTES - 1);
+  align2 &= ~(CHARBYTES - 1);
+
   if (n == 0)
     {
       s1 = (CHAR *) (buf1 + page_size);
@@ -204,6 +207,9 @@ do_test (size_t align1, size_t align2, size_t len, size_t n, int max_char,
   size_t i;
   CHAR *s1, *s2;
 
+  align1 &= ~(CHARBYTES - 1);
+  align2 &= ~(CHARBYTES - 1);
+
   if (n == 0)
     return;
 


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