all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Compiler warning in count_trailing_zero_bits
@ 2013-11-15  9:02 Eli Zaretskii
  2013-11-15 18:03 ` Paul Eggert
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2013-11-15  9:02 UTC (permalink / raw)
  To: Paul Eggert; +Cc: emacs-devel

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.



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

* Re: Compiler warning in count_trailing_zero_bits
  2013-11-15  9:02 Compiler warning in count_trailing_zero_bits Eli Zaretskii
@ 2013-11-15 18:03 ` Paul Eggert
  2013-11-15 18:31   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggert @ 2013-11-15 18:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

On 11/15/2013 01:02 AM, Eli Zaretskii wrote:

> I hope it will be possible to prevent this nuisance.

Should be fixed in trunk bzr 115117.



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

* Re: Compiler warning in count_trailing_zero_bits
  2013-11-15 18:03 ` Paul Eggert
@ 2013-11-15 18:31   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2013-11-15 18:31 UTC (permalink / raw)
  To: Paul Eggert; +Cc: emacs-devel

> Date: Fri, 15 Nov 2013 10:03:02 -0800
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: emacs-devel@gnu.org
> 
> On 11/15/2013 01:02 AM, Eli Zaretskii wrote:
> 
> > I hope it will be possible to prevent this nuisance.
> 
> Should be fixed in trunk bzr 115117.

Indeed it is, thanks.



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

end of thread, other threads:[~2013-11-15 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-15  9:02 Compiler warning in count_trailing_zero_bits Eli Zaretskii
2013-11-15 18:03 ` Paul Eggert
2013-11-15 18:31   ` Eli Zaretskii

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.