Skip to content

Commit

Permalink
Fixed glsl-optimizer crash on Linux (GCC4.7.2 inlining bug?!).
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Mar 18, 2013
1 parent 368fddf commit 2936474
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,11 @@ class has_recursion_visitor : public ir_hierarchical_visitor {
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
destroy_links(exec_list *list, function *f)
{
Expand Down
Binary file added tools/bin/geometryc
Binary file not shown.
Binary file added tools/bin/shaderc
Binary file not shown.

0 comments on commit 2936474

Please sign in to comment.