[PATCH] Remove split-stack from backend

2021-08-03 Thread Mark Wielaard
The backend was derived from the go backend which enables split stack support by default. This inserts a __morestack call at the start of each function. This is not needed for the rust backend. Remove the split stack support code from the rust backend and spec. --- gcc/rust/rust-backend.h | 12 +++

[PATCH] Always check the result of expect_token while parsing

2021-08-03 Thread Mark Wielaard
When expect_token fails it produces an error and return a nullptr. Make sure to always check the result of expect_token so we don't use a nullptr token and crash. Resolves: https://github.com/Rust-GCC/gccrs/issues/603 --- gcc/rust/parse/rust-parse-impl.h | 27 +++ 1 file c