[olofsonprojects] EEL/GCC 4.2.2 issue resolved

  • From: David Olofson <david@xxxxxxxxxxx>
  • To: olofsonprojects@xxxxxxxxxxxxx
  • Date: Mon, 11 Feb 2008 15:40:34 +0100

(From the "kobodeluxe patch to allow..." thread:)

On Monday 11 February 2008, David Olofson wrote:
[...]
> (Right now I'm busy fighting GCC 4.2.2, which is apparently trying
> to optimize the EEL VM beyond the speed of light or something... Of 
> course, all that does is corrupt VM registers when the VM tries to
> do inplace operations, which results in a mess not even Valgrind can
> make much sense of. *heh* Even so, I've narrowed it down two 
> functions now, so I should have it sorted pretty soon.)
[...]

In case anyone else has been running into this with EEL or other code, 
it's a known compiler bug:
        http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32328

The fix for now is to use -fno-strict-aliasing with -O2 and higher.


//David Olofson - Programmer, Composer, Open Source Advocate

.-------  http://olofson.net - Games, SDL examples  -------.
|        http://zeespace.net - 2.5D rendering engine       |
|       http://audiality.org - Music/audio engine          |
|     http://eel.olofson.net - Real time scripting         |
'--  http://www.reologica.se - Rheology instrumentation  --'
---------------------------------------------------------------------------
The Olofson Projects mailing list.
Home:              http://olofson.net
Archive:           //www.freelists.org/archives/olofsonprojects
Unsubscribe: email olofsonprojects-request@xxxxxxxxxxxxx subj:"unsubscribe"
---------------------------------------------------------------------------

Other related posts: