ICU-7039 Enable optimization for C++ files using GCC.

X-SVN-Rev: 26455
This commit is contained in:
Michael Ow 2009-07-29 19:44:01 +00:00
parent 0b176ddfb3
commit d8554576c2
2 changed files with 2 additions and 2 deletions

View file

@ -4047,7 +4047,7 @@ UnicodeString::extract(int32_t start,
{
// This dstSize value will be checked explicitly
return extract(start, _length, dst, dst!=0 ? 0xffffffff : 0, codepage);
return extract(start, _length, dst, dst!=0 ? ((dst >= ((size_t)-1) - UINT32_MAX) ? (((char*)UINT32_MAX) - dst) : UINT32_MAX) : 0, codepage);
}
#endif

View file

@ -326,7 +326,7 @@ then
then
case $CXX in
g++|*/g++|*-g++-*|*/*-g++-*)
RELEASE_CXXFLAGS=-O
RELEASE_CXXFLAGS=-O3
;;
esac
fi