From 46681d64f61d602c6eef30c64fab5305539ac4d4 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Mon, 18 Dec 2023 17:27:05 -0500 Subject: [PATCH] freedreno/afuc: Use left recursion in parser Otherwise we'll run out of stack space with many instructions. Part-of: --- src/freedreno/afuc/parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/afuc/parser.y b/src/freedreno/afuc/parser.y index b2e29059f3d..d1e1ff0ac63 100644 --- a/src/freedreno/afuc/parser.y +++ b/src/freedreno/afuc/parser.y @@ -184,7 +184,7 @@ label(const char *str) %% -instrs: instr_or_label instrs +instrs: instrs instr_or_label | instr_or_label instr_or_label: instr_r