diff options
author | Marc Poulhiès <dkm@kataplop.net> | 2021-03-17 15:03:55 +0100 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-03-18 09:21:13 +0000 |
commit | 0581e64df94130ed08c26240478cf5ea43912311 (patch) | |
tree | f0d86f71ce64fbc3a4f83fff6058deb50068f235 | |
parent | 837e9d75b75361dfc205c0c2320ea05af2605aa6 (diff) | |
download | gcc-0581e64df94130ed08c26240478cf5ea43912311.zip gcc-0581e64df94130ed08c26240478cf5ea43912311.tar.gz gcc-0581e64df94130ed08c26240478cf5ea43912311.tar.bz2 |
Fix Backend:: mark 2 methods pure
virtual loop_expression and exit_expression were not marked pure and do not have
a default impl, causing error during linking when optimisation are disabled.
-rw-r--r-- | gcc/rust/rust-backend.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h index 3edb455..e42081b 100644 --- a/gcc/rust/rust-backend.h +++ b/gcc/rust/rust-backend.h @@ -468,10 +468,10 @@ public: = 0; // infinite loop expressions - virtual Bexpression *loop_expression (Bblock *body, Location); + virtual Bexpression *loop_expression (Bblock *body, Location) = 0; // exit expressions - virtual Bexpression *exit_expression (Bexpression *condition, Location); + virtual Bexpression *exit_expression (Bexpression *condition, Location) = 0; // Create a switch statement where the case values are constants. // CASES and STATEMENTS must have the same number of entries. If |