On Mon, 13 Nov 2000, Ambrose Li wrote:
>Hi,
>
>I have recently noticed a very strange thing. On my two Linux boxes
>(egcs 2.90.29 on i486 and gcc 2.8.2 on my broken armv4l box), w3m
>will segfault when certain web pages are viewed if it is compiled
>with -O2, but will not segfault if it is compiled with just -O.
>I do not see this behaviour on Solaris (gcc 2.95.2 on SunOS 5.7,
>Sparc hardware).
Patient: "This hurts."
Doctor: "Don't do that."
Honestly there is not much that can be done about it. GCC is
notoriously bad about optimization bugs, especially since development
focus in the more recent GCCs has shifted toward the egcs merge and away
from luxuries like an optimizer. It's more than likely a gcc problem.
That's of course the best guess I can make based on your lack of a trace
or dump. There's little point in compiling w3m with -O2 anyway. It
just builds bigger binaries, and with an application this simple would
you rather optimize a few cpu cycles or a few bytes of memory?
-- Brandon D. Valentine <bandix@looksharp.net> "Few things are harder to put up with than the annoyance of a good example." -- Mark Twain, Pudd'nhead Wilson
This archive was generated by hypermail 2b29 : Mon Nov 13 2000 - 16:50:47 CST