public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/rust/master] Merge #916
@ 2022-06-08 12:05 Thomas Schwinge
0 siblings, 0 replies; only message in thread
From: Thomas Schwinge @ 2022-06-08 12:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f6ba472caf42db1f5f2f98b73afccf448b36c322
commit f6ba472caf42db1f5f2f98b73afccf448b36c322
Merge: 6d1ff568084 c598bbbcc1e
Author: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Date: Thu Feb 10 12:50:30 2022 +0000
Merge #916
916: Support inline attribute by marking as DECL_DECLARED_INLINE_P r=philberty a=philberty
This does a refactor by removing more flags for the fndecl construction
from the rust-gcc wrapper code in favour of using the tree api directly.
The ABI option attributes have also been refactored from the backend
interface in favour of their own package.
The gccgo wrapper tried to mark inline fns as extern inline but this
refactor allows us to control the inline options specificly for the
rust semantics.
Fixes #857
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diff:
gcc/rust/Make-lang.in | 2 +
gcc/rust/backend/rust-compile-base.cc | 92 +++++++++++++++++++++++
gcc/rust/backend/rust-compile-base.h | 6 ++
gcc/rust/backend/rust-compile-extern.h | 11 +--
gcc/rust/backend/rust-compile-implitem.h | 17 ++---
gcc/rust/backend/rust-compile-item.h | 24 +++---
gcc/rust/hir/tree/rust-hir-item.h | 4 +
gcc/rust/rust-backend.h | 69 +----------------
gcc/rust/rust-gcc.cc | 61 +--------------
gcc/rust/typecheck/rust-hir-type-check-implitem.h | 20 +++--
gcc/rust/util/rust-abi.cc | 64 ++++++++++++++++
gcc/rust/{ => util}/rust-abi.h | 8 ++
12 files changed, 214 insertions(+), 164 deletions(-)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-08 12:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08 12:05 [gcc/devel/rust/master] Merge #916 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).