Re: CFLAGS in --enable-debug

From: Date: Wed, 06 Sep 2000 18:21:36 +0000
Subject: Re: CFLAGS in --enable-debug
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-32434@lists.php.net to get a copy of this message
At 21:12 06-09-00, Sascha Schumann wrote:
On Wed, 6 Sep 2000, Andi Gutmans wrote: Does one of you autoconf guys know how to fix the CFLAGS to be "-g" and not "-g -O2" when using --enable-debug? It doesn't work as well with debuggers.
    In which case does -O2 not work for you?
It does instruction reordering (and instruction removing, and other optimizations), which could cause all sorts of interesting things during debug. Debugging is much better off with -O0. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#32434) next »