all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: Markus Triska <markus.triska@gmx.at>
Cc: Alan Mackenzie <acm@muc.de>, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Nonsensical byte compiler warning.
Date: Wed, 04 Apr 2007 18:11:17 -0400	[thread overview]
Message-ID: <87mz1ng58a.fsf@stupidchicken.com> (raw)
In-Reply-To: <87ps6jq0dz.fsf@gmx.at> (Markus Triska's message of "Wed\, 04 Apr 2007 23\:45\:44 +0200")

Markus Triska <markus.triska@gmx.at> writes:

> Alan Mackenzie <acm@muc.de> writes:
>
>> Would it be easy to make this change to the byte compiler?
>
> Alas, no. The optimiser hasn't got the positioning information, and
> the byte-code emitter potentially doesn't see such calls at all:
> Conceptually, the optimiser is capable of totally removing unneeded
> function calls (the code is there, and disabled). Conversely, the
> positioning code is fragile enough already to warrant keeping it well
> separated from the optimiser, and limited to the emitter. Now, since
> unnecessary function calls are currently kept, detection logic from
> the optimiser could be used in the emitter, but that would duplicate a
> lot of code, is error-prone, and can, in my view, not yield more
> useful results than byte-compiling with byte-optimize-log set to t. On
> top of that, it would result in the same char-before/after confusion,
> since that rewriting is performed by the optimiser, not the emitter.

If the offending function name is unreliable, maybe we should omit it
and issue a "value returned from form is not used" warning.  What do
you think?

  reply	other threads:[~2007-04-04 22:11 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-01 17:14 Nonsensical byte compiler warning David Kastrup
2007-04-01 18:10 ` Chong Yidong
2007-04-01 20:57   ` Alan Mackenzie
2007-04-02 12:29   ` Richard Stallman
2007-04-04  4:48     ` Markus Triska
2007-04-04  6:15       ` David Kastrup
2007-04-04  8:19         ` Markus Triska
2007-04-04  8:46           ` David Kastrup
2007-04-04  9:50             ` Markus Triska
2007-04-04 10:17               ` David Kastrup
2007-04-04 12:35                 ` Markus Triska
2007-04-04 18:25                 ` Markus Triska
2007-04-04 22:13                   ` David Kastrup
2007-04-05  6:52             ` Richard Stallman
2007-04-05  7:55               ` Markus Triska
2007-04-06 12:56                 ` Richard Stallman
2007-04-06 15:11                   ` Chong Yidong
2007-04-08 20:47                   ` Markus Triska
2007-04-09 15:42                     ` Richard Stallman
2007-04-10  3:53                       ` Glenn Morris
2007-04-10 17:27                         ` Markus Triska
2007-04-11  4:00                           ` Glenn Morris
2007-04-05 18:01               ` Chong Yidong
2007-04-04 20:08           ` Alan Mackenzie
2007-04-04 21:45             ` Markus Triska
2007-04-04 22:11               ` Chong Yidong [this message]
2007-04-05  5:44                 ` Markus Triska
2007-04-08  1:21             ` Kim F. Storm
2007-04-08 11:27               ` Alan Mackenzie

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=87mz1ng58a.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=markus.triska@gmx.at \
    --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.