add gcc 4.2.x to the list of compilers broken with -Os. b=409803

This commit is contained in:
dwitte@stanford.edu 2008-03-16 02:43:10 -07:00
parent 323ca94360
commit de7b5d0fe2

View File

@ -1747,8 +1747,8 @@ case "$target" in
if test "$GNU_CC"; then if test "$GNU_CC"; then
GCC_VERSION=`$CC -v 2>&1 | awk '/version/ { print $3 }'` GCC_VERSION=`$CC -v 2>&1 | awk '/version/ { print $3 }'`
case $GCC_VERSION in case $GCC_VERSION in
4.1.*) 4.1.*|4.2.*)
# -Os is broken on gcc 4.1.x, we need to tweak it to get good results. # -Os is broken on gcc 4.1.x and 4.2.x, we need to tweak it to get good results.
MOZ_OPTIMIZE_SIZE_TWEAK="-finline-limit=50" MOZ_OPTIMIZE_SIZE_TWEAK="-finline-limit=50"
esac esac
fi fi