From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Compiler warning in count_trailing_zero_bits Date: Fri, 15 Nov 2013 11:02:19 +0200 Message-ID: <83habehwbo.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1384506173 18255 80.91.229.3 (15 Nov 2013 09:02:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Nov 2013 09:02:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 15 10:02:54 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VhFIk-0000pJ-LB for ged-emacs-devel@m.gmane.org; Fri, 15 Nov 2013 10:02:54 +0100 Original-Received: from localhost ([::1]:59448 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhFIk-0002oA-9V for ged-emacs-devel@m.gmane.org; Fri, 15 Nov 2013 04:02:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46024) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhFIa-0002f4-EH for emacs-devel@gnu.org; Fri, 15 Nov 2013 04:02:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VhFIS-0006iO-OD for emacs-devel@gnu.org; Fri, 15 Nov 2013 04:02:43 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:62825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VhFIS-0006iB-G3 for emacs-devel@gnu.org; Fri, 15 Nov 2013 04:02:36 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MWA00E00RK5DS00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Fri, 15 Nov 2013 11:02:34 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MWA00E05RSA9660@a-mtaout21.012.net.il>; Fri, 15 Nov 2013 11:02:34 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165265 Archived-At: The line in data.c marked below: else { int count; for (count = 0; count < BITS_PER_BITS_WORD - BITS_PER_ULL; count += BITS_PER_ULL) { if (val & ULLONG_MAX) return count + count_trailing_zeros_ll (val); val = shift_right_ull (val); } if (BITS_PER_BITS_WORD % BITS_PER_ULL != 0 && BITS_WORD_MAX == (bits_word) -1) >>>>> val |= (bits_word) 1 << (BITS_PER_BITS_WORD % BITS_PER_ULL); return count + count_trailing_zeros_ll (val); } causes a compiler warning in a 32-bit unoptimized build: data.c: In function `count_trailing_zero_bits': data.c:3114: warning: left shift count >= width of type This is result of commit in revision 115095. I hope it will be possible to prevent this nuisance.