summaryrefslogtreecommitdiff
path: root/config/coreboot/fam15h/patches/0013-Fix-build-with-GCC-15-as-host-compiler.patch
AgeCommit message (Collapse)Author
18 hourscoreboot: fam15h: Add patches to fix build with GCC 15 as host compilerAlper Nebi Yasak
Building the fam15h tree results in one of the same nonstring errors we also had when building the default tree. Copy the relevant patch from the default tree, while dropping a hunk that we don't need in this old version. Another build error is about bool being a reserved keyword now: .../lbmk/src/coreboot/fam15h/util/romcc/romcc.c:7140:13: error: 'bool' cannot be used here 7140 | static void bool(struct compile_state *state, struct triple *def) | ^~~~ .../lbmk/src/coreboot/fam15h/util/romcc/romcc.c:7140:13: note: 'bool' is a keyword with '-std=c23' onwards .../lbmk/src/coreboot/fam15h/util/romcc/romcc.c:7140:18: error: expected identifier or '(' before 'struct' 7140 | static void bool(struct compile_state *state, struct triple *def) | ^~~~~~ .../lbmk/src/coreboot/fam15h/util/romcc/romcc.c: In function 'mkcond_expr': .../lbmk/src/coreboot/fam15h/util/romcc/romcc.c:7708:19: error: expected ')' before ',' token 7708 | bool(state, test); | ^ | ) [...] Fix that by adding a patch that renames the function to bool_(). Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>