[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] GCC 4.4 and strict aliasing

From: Jerry James
Subject: [Gcl-devel] GCC 4.4 and strict aliasing
Date: Sat, 21 Feb 2009 22:33:40 -0700

Recently, GCC 4.4.0 went into Fedora Rawhide (which will become Fedora
11).  Thereafter, the GCL build started failing.  Investigation shows
that this is because GCC 4.4.0 is much more aggressive than its
predecessors about exploiting the ANSI C strict aliasing rules.  GCL
fails to follow those rules in several places, so GCC emitted code
that caused runtime failures.

I have fixed the build for now by passing -fno-strict-aliasing to GCC.
 However, that is not a good long-term solution, since it prevents GCC
from emitting the most optimized code possible.  Over the next couple
of weeks, I will try to look at how to fix up the C code to obey the
ANSI C rules.  If anybody is interested in participating in that, let
me know so we don't duplicate work.

Jerry James

reply via email to

[Prev in Thread] Current Thread [Next in Thread]