On Sat, 20 Jul 2002, Martin Buchholz moaned:
>>>>> "JJ" == Jerry James
<james(a)xemacs.org> writes:
JJ> pointer can be returned. So the cast to (void *) in XPNTR is
JJ> superfluous.
Perhaps, but casts to void* might have the effect of inhibiting
compiler aliasing optimizations, and shouldn't hurt if re-cast.
In many cases, GCC will notice things like
(foo *) ((void *) bar)
and elide the useless cast to `void *'.
Why have I been able to use gcc 2.95.3 to compile xemacs for years
on
Suns without any problem? (of course, avoiding -mcpu=ultrasparc)
Not sure. It doesn't happen to me, with GCC 2.95.x, 3.0.x, 3.1.x, on
Solaris or Linux SPARCs, with or without -mcpu=ultrasparc.
I'm feeling all left out now. ;}
--
`There's something satisfying about killing JWZ over and over again.'
-- 1i, personal communication