Marek Olšák <mar...@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

Attachment: pgpJ3SuioudWu.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to