riscv-stdarg-fix.after (546B)
1 #elif __riscv 2 /* Upstream order is reversed — `typedef __builtin_va_list va_list;` 3 * comes before `typedef char *__builtin_va_list;`, which makes the 4 * first typedef reference an undeclared name. Stock tcc papers over 5 * this with a built-in `__builtin_va_list` keyword; tcc-boot2's 6 * frontend has no such keyword (it treats it as a plain typedef 7 * tag), so the upstream order parse-fails. Swap the two so the base 8 * typedef is in scope by the time va_list claims it. */ 9 typedef char *__builtin_va_list; 10 typedef __builtin_va_list va_list;