Fixed glsl-optimizer crash on Linux (GCC4.7.2 inlining bug?!).

This commit is contained in:
bkaradzic 2013-03-17 19:09:58 -07:00
parent 368fddf5d4
commit 2936474f49
3 changed files with 5 additions and 0 deletions

View file

@ -239,6 +239,11 @@ public:
bool progress; bool progress;
}; };
#if defined(__GNUC__)
// BK - 'gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2'
// If destroy_links is inlined code crashes in n->remove().
__attribute__((noinline))
#endif // defined(__GNUC__)
static void static void
destroy_links(exec_list *list, function *f) destroy_links(exec_list *list, function *f)
{ {

BIN
tools/bin/geometryc Executable file

Binary file not shown.

BIN
tools/bin/shaderc Executable file

Binary file not shown.