Hi all, It seems we are better have --enable-inline-optimization option after all.
Andi told some "inline" directive has removed to make zend_execute.c work well with -O2. (I don't have problem with -O3 also) How about make inline optimization as default option? and have a --disable-inline-optimization option instead? Patch included. -- Yasuo Ohgaki
/usr/bin/diff: conflicting specifications of output style --- Zend.m4.~1.31.~ Sun Apr 7 12:43:36 2002 +++ Zend.m4 Sun Apr 21 15:58:22 2002 @@ -126,11 +126,13 @@ ]) AC_ARG_ENABLE(inline-optimization, -[ --enable-inline-optimization If you have much memory and are using - gcc, you might try this.],[ +[ --disable-inline-optimization + Some GCC may needs few hundred mega bytes of memory to + _compile_ zend_execute.c. If you have problem with +compiling + zend_execute.c, you might try this.],[ ZEND_INLINE_OPTIMIZATION=$enableval ],[ - ZEND_INLINE_OPTIMIZATION=no + ZEND_INLINE_OPTIMIZATION=yes ]) AC_ARG_ENABLE(memory-limit, @@ -143,7 +145,7 @@ AC_MSG_CHECKING(whether to enable experimental ZTS) AC_MSG_RESULT($ZEND_EXPERIMENTAL_ZTS) -AC_MSG_CHECKING(whether to enable inline optimization for GCC) +AC_MSG_CHECKING(whether to enable zend_execute.c inline optimization for GCC) AC_MSG_RESULT($ZEND_INLINE_OPTIMIZATION) AC_MSG_CHECKING(whether to enable a memory limit) @@ -181,7 +183,7 @@ changequote({,}) -if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then +if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" == "yes"; then INLINE_CFLAGS=`echo $ac_n "$CFLAGS $ac_c" | sed s/-O[0-9s]*//` else INLINE_CFLAGS="$CFLAGS"
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php