all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#16535: Compiler bug ?
@ 2014-01-24 15:03 Fabrice Popineau
  2014-01-24 16:28 ` bug#16535: Optimization bug? Fabrice Popineau
  2014-01-24 21:05 ` bug#16535: Compiler bug ? Paul Eggert
  0 siblings, 2 replies; 5+ messages in thread
From: Fabrice Popineau @ 2014-01-24 15:03 UTC (permalink / raw)
  To: 16535

[-- Attachment #1: Type: text/plain, Size: 989 bytes --]

I hit a bug while compiling Gnu Emacs trunk development.

The following test :
 passed    17/1152  bool-vector-count-population-1-nil
fails unless I apply the following patch :

 === modified file 'src/data.c'
--- src/data.c  2014-01-03 06:47:27 +0000
+++ src/data.c  2014-01-24 14:59:16 +0000
@@ -3012,8 +3012,10 @@
     {
       int i = 0, count = 0;
       while (count += count_one_bits_ll (w),
-            BITS_PER_BITS_WORD <= (i += BITS_PER_ULL))
+            BITS_PER_BITS_WORD <= i) {
+       i += BITS_PER_ULL;
        w = shift_right_ull (w);
+      }
       return count;
     }
 }

This is with :
$ gcc --version
gcc.exe (Rev6, Built by MSYS2 project) 4.8.2
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Given the nature of the patch, I don't think it is specific of th MinGW64
gcc version.

Regards,

Fabrice Popineau

[-- Attachment #2: Type: text/html, Size: 1437 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-01-24 23:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-24 15:03 bug#16535: Compiler bug ? Fabrice Popineau
2014-01-24 16:28 ` bug#16535: Optimization bug? Fabrice Popineau
2014-01-24 21:05 ` bug#16535: Compiler bug ? Paul Eggert
2014-01-24 23:06   ` Fabrice Popineau
2014-01-24 23:35     ` Paul Eggert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.