From 2d3ba9b352478e5a3d3add482f56f1c801965428 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 12 Sep 2026 01:29:43 +0200 Subject: Fix enumeration size to be hardware word in the backend --- include/elna/boot/ast.h | 7 ++++--- include/elna/gcc/elna-generic.h | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/elna/boot/ast.h b/include/elna/boot/ast.h index 8f5d863..0fc5e32 100644 --- a/include/elna/boot/ast.h +++ b/include/elna/boot/ast.h @@ -913,9 +913,10 @@ namespace elna::boot public: std::vector arguments; - /// Types the arguments after the parameters of a variadic procedure - /// are passed as, set by the type checker. - std::vector variadic_types; + /// The type each argument is passed as: the type of the parameter it + /// binds to, or the type it is promoted to when it follows the + /// parameters of a variadic procedure. Set by the type checker. + std::vector argument_types; procedure_call(const source_position position, designator_expression *callable, std::vector&& arguments); diff --git a/include/elna/gcc/elna-generic.h b/include/elna/gcc/elna-generic.h index eec6cb4..d67f3c9 100644 --- a/include/elna/gcc/elna-generic.h +++ b/include/elna/gcc/elna-generic.h @@ -58,7 +58,7 @@ namespace elna::gcc void build_case_general(boot::case_statement *statement, tree condition_expression); void build_procedure_call(location_t call_location, tree procedure_address, const std::vector& arguments, - const std::vector& variadic_types); + const std::vector& argument_types); bool build_builtin_procedures(boot::procedure_call *call); void build_assert_builtin(location_t call_location, const std::vector& arguments); -- cgit v1.2.3