On Fri, May 15, 2009 at 4:20 PM, Mats Lidell <matsl(a)xemacs.org> wrote:
What configuration option is needed to get these warnings? e.g. How
do
you have your XEmacs configured?
With a sufficiently recent GCC, supplying -fstrict-aliasing
-Wstrict-aliasing does the trick. Note that -O2 implies
-fstrict-aliasing. I'm not sure how recent "sufficiently recent" is.
I know that GCC 4.0 improved on the GCC 3.x compilers quite a bit for
this kind of analysis, but I also know that GCC 4.1 and 4.2 both
contained further improvements. I'm currently using Fedora 10, which
ships with GCC 4.3.2. In 2 weeks, I'll be running Fedora 11, which
ships with GCC 4.4.0.
--
Jerry James
http://www.jamezone.org/
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta