all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Andreas Schwab <schwab@suse.de>,
	766@emacsbugs.donarmstrong.com, Peter_Dyballa@Freenet.DE,
	bug-gnu-emacs@gnu.org
Subject: bug#766: 23.0.60; interesting warning during compilation
Date: Wed, 03 Sep 2008 14:47:14 -0400	[thread overview]
Message-ID: <jwv3akhxe6c.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <uhc9b389g.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Aug 2008 21:18:19 +0300")

>> > If someone has suggestions how to avoid this warning without making
>> > code ugly and unreadable, and preferably without system-dependent
>> > #ifdef's, I'm all ears.
>> 
>> EMACS_INT high_ino = s.st_ino >> 31 >> 1;

> Thanks.  Can we be reasonably sure that GCC will not become smart
> enough some day to flag this as well?

I don't think anybody can guarantee it, but usually it's a bad idea to
output warnings about post-optimization code, so you may hope that GCC
will optimize "x >> 31 >> 1" to "x >> 32" without ever outputing
a warning about the silliness of the end result.

Then again, the present code shows that even outputting a warning about
"x >> 32" is already borderline annoying, so there's no guarantee gcc
won't become more annoying in the future.


        Stefan







  parent reply	other threads:[~2008-09-03 18:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87k5e2uvl4.fsf@cyd.mit.edu>
2008-08-23  9:00 ` bug#766: 23.0.60; interesting warning during compilation Peter Dyballa
2008-08-23 14:10   ` Eli Zaretskii
2008-08-23 14:58     ` Peter Dyballa
2008-08-23 17:34       ` Eli Zaretskii
2008-08-23 22:23         ` Peter Dyballa
2008-08-24  3:13           ` Eli Zaretskii
2008-08-24  7:27             ` Peter Dyballa
2008-08-24 18:12               ` Eli Zaretskii
2008-08-23 17:33     ` Andreas Schwab
2008-08-23 18:18       ` Eli Zaretskii
2008-08-23 18:56         ` Andreas Schwab
2008-08-23 19:06           ` Eli Zaretskii
2008-08-23 20:03             ` Andreas Schwab
2008-08-23 20:50               ` Eli Zaretskii
2008-08-23 23:12                 ` Andreas Schwab
2008-08-24  3:14                   ` Eli Zaretskii
2008-09-03 18:47         ` Stefan Monnier [this message]
2008-08-27 19:10   ` bug#766: marked as done (23.0.60; interesting warning during compilation) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv3akhxe6c.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=766@emacsbugs.donarmstrong.com \
    --cc=Peter_Dyballa@Freenet.DE \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=eliz@gnu.org \
    --cc=schwab@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.