aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/README.md2
-rw-r--r--gcc/elna-generic.cc6
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/README.md b/gcc/README.md
index 99d03c3..14219d8 100644
--- a/gcc/README.md
+++ b/gcc/README.md
@@ -14,7 +14,7 @@ in the `boot/` directory.
## Build
-The frontend requires GCC 15.2.0 (not tested with other versions).
+The frontend requires GCC 15.3.0 (not tested with other versions).
Download the GCC source. Copy the contents of this repository into `gcc/elna`
inside GCC. Finally build GCC enabling the frontend with
diff --git a/gcc/elna-generic.cc b/gcc/elna-generic.cc
index b37b111..a5aa5f5 100644
--- a/gcc/elna-generic.cc
+++ b/gcc/elna-generic.cc
@@ -169,7 +169,7 @@ namespace elna::gcc
{
location_t call_location = get_location(&call->position());
- if (frontend::variable_expression *named_call = call->callable().is_variable())
+ if (frontend::named_expression *named_call = call->callable().is_named())
{
if (named_call->name == "assert")
{
@@ -784,7 +784,7 @@ namespace elna::gcc
}
}
- void generic_visitor::visit(frontend::variable_expression *expression)
+ void generic_visitor::visit(frontend::named_expression *expression)
{
auto symbol = this->symbols->lookup(expression->name);
@@ -1023,7 +1023,7 @@ namespace elna::gcc
if (TREE_CODE(lvalue) == CONST_DECL)
{
error_at(statement_location, "Cannot modify constant '%s'",
- statement->lvalue().is_variable()->name.c_str());
+ statement->lvalue().is_named()->name.c_str());
}
else if (TYPE_READONLY(TREE_TYPE(lvalue)))
{