On Fri, 2008-02-29 at 11:17 +0100, [EMAIL PROTECTED] wrote: > > Am Freitag 29 Februar 2008 09:31:12 schrieb Michel Dänzer: > > On Thu, 2008-02-28 at 21:11 +0100, [EMAIL PROTECTED] wrote: > > > My gcc-4.3 miscompiles something with -O3, so glxinfo crashes in tgsi. > > > Maybe this is related to this warning: > > > > > > gcc -mcpu=cell -c -I. -I../../../../src/gallium/include > > > -I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers > > > -I../../../../include -g -O2 -ftree-vectorize -ffast-math -Wall -Winline > > > -fPIC -m32 -mabi=altivec -maltivec -I. > > > -I/opt/ibm/cell-sdk/prototype/sysroot/usr/include -DGALLIUM_CELL > > > util/tgsi_build.c -o util/tgsi_build.o > > > util/tgsi_build.c: In function ‘tgsi_compare_instruction_ext_nv’: > > > util/tgsi_build.c:851: warning: dereferencing type-punned pointer will > > > break strict-aliasing rules > > > > You should be able to verify that by adding -fno-strict-aliasing. > > ok - this fixes the crash, but fps goes down: > > -O2: 75 fps > -O3 -fno-strict-aliasing: 65 fps.
Maybe fixing the code instead of using -fno-strict-aliasing would help, or maybe other parts of -O3 have a negative impact, e.g. by making the code bigger. Oddly, I think strict aliasing is enabled even at -O2... -- Earthling Michel Dänzer | http://tungstengraphics.com Libre software enthusiast | Debian, X and DRI developer ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Mesa3d-dev mailing list Mesa3d-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mesa3d-dev