emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#33544: closed (gzip 1.9 alignment compile failure


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#33544: closed (gzip 1.9 alignment compile failure on cast)
Date: Sat, 01 Dec 2018 00:28:02 +0000

Your message dated Fri, 30 Nov 2018 16:27:23 -0800
with message-id <address@hidden>
and subject line Re: bug#33544: gzip 1.9 alignment compile failure on cast
has caused the debbugs.gnu.org bug report #33544,
regarding gzip 1.9 alignment compile failure on cast
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
33544: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33544
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: gzip 1.9 alignment compile failure on cast Date: Wed, 28 Nov 2018 19:22:56 +0000
Compiling gzip 1.9 on macOS 10.13.6 using Xcode 10.1 with clang (Apple LLVM 
version 10.0.0 (clang-1000.11.45.5)), I get this error after ./configure and 
make:

memrchr.c:71:18: error: cast from 'const unsigned char *' to 'const longword *'
      (aka 'const unsigned long *') increases required alignment from 1 to 8
      [-Werror,-Wcast-align]
  longword_ptr = (const longword *) char_ptr;

I resolved it with this patch:

@@ -68,7 +68,7 @@ __memrchr (void const *s, int c_in, size_t n)
     if (*--char_ptr == c)
       return (void *) char_ptr;
 
-  longword_ptr = (const longword *) char_ptr;
+  longword_ptr = (const void *) char_ptr;
 
   /* All these elucidatory comments refer to 4-byte longwords,
      but the theory applies equally well to any size longwords.  */

Mark




--- End Message ---
--- Begin Message --- Subject: Re: bug#33544: gzip 1.9 alignment compile failure on cast Date: Fri, 30 Nov 2018 16:27:23 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1
Thanks, I installed the attached patch into Gnulib.

Attachment: 0001-memrchr-port-better-to-clang.patch
Description: Text Data


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]