all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Preventing warnings in FIXNUM_OVERFLOW_P
Date: Fri, 19 Jan 2007 14:19:50 -0500	[thread overview]
Message-ID: <jwvirf2kepc.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <u1wlrw80n.fsf@gnu.org> (Eli Zaretskii's message of "Fri\, 19 Jan 2007 13\:50\:00 +0200")

> By contrast, my workaround doesn't obfuscate the code, and the
> extra assignment should be optimized out of existence under -O2.

Indeed.  That's why it's the least bad.  It makes the code slightly
heavier, but at least it's crystal clear that it doesn't change
the semantics.

> I say let's leave my workaround alone until the GCC developers move
> this warning into -Wextra.  When that version of GCC becomes
> widespread, we can remove the workaround.

Agreed,


        Stefan

  reply	other threads:[~2007-01-19 19:19 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-18 17:27 Preventing warnings in FIXNUM_OVERFLOW_P Richard Stallman
2007-01-18 18:34 ` David Kastrup
2007-01-18 19:39   ` Stefan Monnier
2007-01-19 10:42     ` Richard Stallman
2007-01-19 11:50       ` Eli Zaretskii
2007-01-19 19:19         ` Stefan Monnier [this message]
2007-01-20  2:10           ` Richard Stallman
2007-01-20 13:45             ` Eli Zaretskii
2007-01-21  6:49               ` Richard Stallman
2007-01-19 10:42   ` Richard Stallman
2007-01-18 21:49 ` Eli Zaretskii
2007-01-19 10:43   ` Richard Stallman
2007-01-19 10:57     ` Eli Zaretskii
2007-01-20  2:10       ` Richard Stallman

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=jwvirf2kepc.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /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.