[olofsonprojects] Re: EEL/GCC 4.2.2 issue resolved

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

On Monday 11 February 2008, David Olofson wrote:
[...]
> 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.

A short explanation of what this is all about might make that info a 
bit more useful:

The compiler makes illegal optimizations when you have structs on the 
stack and pass them by reference to a function that modifies them.

(EEL does quite a bit of just that when dealing with the tagget value 
structs used for dynamic typing.)


//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: