Sascha,

I guess you are compiling with GCC ? If so, it appears that I accidently 
removed some weeks ago a very important compilation flag that I added a few 
months ago, namely -fno-strict-aliasing, that is necessary when compiling 
with -O2. It appears that SWIG generates not-so-correct code in regards to 
the C standard in the upcast methods (  *(foo**)&a = *(bar**)&b ) that the 
compiler can happily completely remove ! 

See http://trac.osgeo.org/gdal/changeset/16006 for the revision where it was 
introduced and http://trac.osgeo.org/gdal/changeset/17456 where it has come 
back.

Thanks for reporting this !

Best regards,
Even
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to