[Mesa-dev] [PATCH] Revert "configure.ac: Disable compiler optimizations when --enable-debug is set"

Eric Anholt eric at anholt.net
Tue Jan 8 10:53:47 PST 2013


Marek Olšák <maraeo at gmail.com> writes:

> I've had no problem with debugging even with -O2. Yeah, gdb cannot
> show some variables sometimes, but I rarely had to force CFLAGS to -O0
> to debug an issue. That said, I can continue overriding CFLAGS and
> CXXFLAGS like I do now if the majority of people think that
> --disable-optimizations would be useless.
>
> Right now I use:
>
> CFLAGS="-DDEBUG -O2 -g -fno-omit-frame-pointer"
> CXXFLAGS="$CFLAGS"

I'm also one of those that uses --enable-debug but forces -O2, because I
need something that at least vaguely resembles real-world performance.
--enable-debug is up to a 30% hit on CPU-bound apps, but it can be close
enough
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130108/c347f6e6/attachment.pgp>


More information about the mesa-dev mailing list