[ooo-build] gcc4.4: extensions broken when compiled with default -O2 optimizations
Andreas Radke
a.radke at arcor.de
Sat Jun 27 06:59:21 PDT 2009
installing extensions is broken since we use gcc4.4 with -O2
optimizations. see http://bbs.archlinux.org/viewtopic.php?id=71043
I found this in my build.log:
Building module bridges
Entering /tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/bridges/unotypes
mkout -- version: 1.8
cppumaker @/tmp/mkzstIUp && touch ../unxlngx6.pro/inc/unotypes_headergen.done
Entering /tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/bridges/inc
Entering /tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/bridges/source/cpp_uno/shared
Compiling: bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx
In file included from /tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/solver/310/unxlngx6.pro/inc/com/sun/star/uno/genfunc.hxx:34,
from /tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/solver/310/unxlngx6.pro/inc/com/sun/star/uno/Reference.hxx:38,
from ../../../unxlngx6.pro/inc/com/sun/star/uno/Exception.hpp:9,
from ../../../unxlngx6.pro/inc/com/sun/star/uno/RuntimeException.hpp:8,
from ../../../unxlngx6.pro/inc/com/sun/star/uno/XInterface.hpp:8,
from /tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/bridges/source/cpp_uno/shared/cppinterfaceproxy.cxx:42:
/tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/solver/310/unxlngx6.pro/inc/com/sun/star/uno/Any.hxx: In function 'sal_Bool com::sun::star::uno::operator>>=(const com::sun::star::uno::Any&, sal_Int16&)':
/tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/solver/310/unxlngx6.pro/inc/com/sun/star/uno/Any.hxx:299: warning: dereferencing type-punned pointer will break strict-aliasing rules
/tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/solver/310/unxlngx6.pro/inc/com/sun/star/uno/Any.hxx: In function 'sal_Bool com::sun::star::uno::operator>>=(const com::sun::star::uno::Any&, sal_uInt16&)':
/tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/solver/310/unxlngx6.pro/inc/com/sun/star/uno/Any.hxx:315: warning: dereferencing type-punned pointer will break strict-aliasing rules
/tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/solver/310/unxlngx6.pro/inc/com/sun/star/uno/Any.hxx: In function 'sal_Bool com::sun::star::uno::operator>>=(const com::sun::star::uno::Any&, sal_Int32&)':
/tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/solver/310/unxlngx6.pro/inc/com/sun/star/uno/Any.hxx:331: warning: dereferencing type-punned pointer will break strict-aliasing rules
/tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/solver/310/unxlngx6.pro/inc/com/sun/star/uno/Any.hxx:334: warning: dereferencing type-punned pointer will break strict-aliasing rules
/tmp/go-openoffice/trunk/src/ooo-build-3.1.0.98.1/build/ooo310-m13/solver/310/unxlngx6.pro/inc/com/sun/star/uno/Any.hxx:338:
warning: dereferencing type-punned pointer will break strict-aliasing
rules
Where can I set -fno-strict-aliasing for this certain module to test if this solves it?
Which makefile.mk sets the flags?
-Andy
More information about the ooo-build
mailing list