[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Nonsensical byte compiler warning.
From: |
Chong Yidong |
Subject: |
Re: Nonsensical byte compiler warning. |
Date: |
Wed, 04 Apr 2007 18:11:17 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (gnu/linux) |
Markus Triska <address@hidden> writes:
> Alan Mackenzie <address@hidden> 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?
- Re: Nonsensical byte compiler warning., (continued)
- Re: Nonsensical byte compiler warning., Richard Stallman, 2007/04/06
- Re: Nonsensical byte compiler warning., Chong Yidong, 2007/04/06
- Re: Nonsensical byte compiler warning., Markus Triska, 2007/04/08
- Re: Nonsensical byte compiler warning., Richard Stallman, 2007/04/09
- Re: Nonsensical byte compiler warning., Glenn Morris, 2007/04/09
- Re: Nonsensical byte compiler warning., Markus Triska, 2007/04/10
- Re: Nonsensical byte compiler warning., Glenn Morris, 2007/04/11
- Re: Nonsensical byte compiler warning., Chong Yidong, 2007/04/05
- Re: Nonsensical byte compiler warning., Alan Mackenzie, 2007/04/04
- Re: Nonsensical byte compiler warning., Markus Triska, 2007/04/04
- Re: Nonsensical byte compiler warning.,
Chong Yidong <=
- Re: Nonsensical byte compiler warning., Markus Triska, 2007/04/05
- Re: Nonsensical byte compiler warning., Kim F. Storm, 2007/04/07
- Re: Nonsensical byte compiler warning., Alan Mackenzie, 2007/04/08