public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #1385 #1386 #1387 #1388
@ 2022-07-15 11:37 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-07-15 11:37 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:0a9416fc0446b1da80cb39d2534bf030ae7739bd
commit 0a9416fc0446b1da80cb39d2534bf030ae7739bd
Merge: f51284b5988 8775525b042 81c4b6989f0 6bf6241f29e e3f135ef0be
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Fri Jul 15 11:02:55 2022 +0000
Merge #1385 #1386 #1387 #1388
1385: Add missing include for intellisense r=philberty a=philberty
1386: Fix undefined behaviour using .get on unique_ptr r=philberty a=philberty
As the move semantics for AST and HIR crates are unsafe on older compilers
we are working around this by storing the pointer into the mappings class
this was using the get method to store the pointer. The issue for loading
extern crates the unique_ptr goes out of scope and this the deletion code
resulting in undefined behaviour. This changes it to call release to take
full ownership of the pointer as we expect.
1387: External Items with Rust ABI need to mangle the full path r=philberty a=philberty
When compiling external rust abi item requires the fully qualified
canonical path to be mangled in order to link correctly.
1388: Add new interfaces to mappings class r=philberty a=philberty
In order to load and resolve extern crates we need to support detection
of node_id is a crate in order to support paths outside of the current
crate.
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diff:
gcc/rust/backend/rust-compile-extern.h | 11 +++++
gcc/rust/resolve/rust-ast-resolve-item.cc | 6 +++
gcc/rust/resolve/rust-ast-resolve-path.cc | 3 +-
gcc/rust/resolve/rust-ast-resolve-type.cc | 3 +-
gcc/rust/rust-object-export.h | 2 +
gcc/rust/util/rust-hir-map.cc | 68 ++++++++++++++++++++++++++++++-
gcc/rust/util/rust-hir-map.h | 31 ++++----------
7 files changed, 96 insertions(+), 28 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-07-15 11:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-15 11:37 [gcc/devel/rust/master] Merge #1385 #1386 #1387 #1388 Thomas Schwinge
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).