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

Török Edwin edwin+ml-mesadev at etorok.net
Thu Jan 10 06:48:27 PST 2013


On 01/08/2013 10:17 PM, Kenneth Graunke wrote:
> On 01/08/2013 12:06 PM, Matt Turner wrote:
>> On Tue, Jan 8, 2013 at 8:38 AM, Marek Olšák <maraeo at gmail.com> wrote:
>>> Some distributions use --enable-debug for testing packages and the commit
>>> results in terrible CPU performance. It can be embarrassing for us.
>>
>> If distros want debug symbols, they should put -g in their CFLAGS
>> instead of --enable-debug. --enable-debug turns on a lot of other
>> things.
> 
> I concur.
> 
> Personally I think that --enable-debug ought to make it possible to use a debugger sanely (which requires -O0).  But I override CFLAGS/CXXFLAGS anyway.

Would it make sense to show something in the OpenGL renderer string about the status of these flags?
#ifdef DEBUG
                     " (ASSERTIONS)"
#endif
#if defined(__GNUC__) && !defined(__OPTIMIZE__)
                     " (UNOPTIMIZED)"
#endif

At least it'll be obvious what the problem is if someone misconfigured Mesa.

Best regards,
--Edwin






More information about the mesa-dev mailing list