[Bug 49110] debug build: AMDILCFGStructurizer.cpp:1751:3: error: 'isCurrentDebugType' was not declared in this scope

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue May 8 20:25:23 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=49110

--- Comment #6 from Mike Mestnik <cheako+bugs_freedesktop_org at mikemestnik.net> 2012-05-08 20:25:23 PDT ---
I've added 3 patches to http://llvm.org/bugs/show_bug.cgi?id=12759 and did my
best to describe what/why.

I believe that mesa also needs this done for it's use of NDEBUG, especially if
#if(s) are used to protect object exports in include files as was the case with
llvm.  Either way, it's still possible for mesa to not directly trample over
this project global define.

This is essentially what I did for llvm:
#ifdef LLVM_NDEBUG
#define NDEBUG LLVM_NDEBUG
#endif
#include <assert.h>

In the case where assert.h is included in an include file, like FLAC and alsa
do, then NDEBUG should be save/restored around the assert.h include...  Not
that it'll do any good as in those situations it's first come first served and
projects that use assert will likely include it ~vary~ early.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the dri-devel mailing list