aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-base.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-02-13 15:01:35 +0000
committerGitHub <noreply@github.com>2022-02-13 15:01:35 +0000
commitc7275a7fb89f324e7cd7881d12a49287a89f1c74 (patch)
tree118e4dc6e60678194b65ccd9d097c465ed46a18d /gcc/rust/backend/rust-compile-base.h
parentb71cc52613219f353b054eb5520cd3886f354c10 (diff)
parent112f2841ee3adac146d1c04703fa36068adfdefc (diff)
downloadgcc-c7275a7fb89f324e7cd7881d12a49287a89f1c74.zip
gcc-c7275a7fb89f324e7cd7881d12a49287a89f1c74.tar.gz
gcc-c7275a7fb89f324e7cd7881d12a49287a89f1c74.tar.bz2
Merge #922
922: Support inline never and always options r=philberty a=philberty This maps over to DECL_UNINLINEABLE and to use the GCC attribute always_inline. Fixes #921 Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.h')
-rw-r--r--gcc/rust/backend/rust-compile-base.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h
index 54116da..5d27f7b 100644
--- a/gcc/rust/backend/rust-compile-base.h
+++ b/gcc/rust/backend/rust-compile-base.h
@@ -71,9 +71,12 @@ protected:
tree expression, Location locus);
static void setup_attributes_on_fndecl (
- tree fndecl, bool is_main_entry_point, bool has_visibility,
+ tree fndecl, bool is_main_entry_point, HIR::Visibility &visibility,
const HIR::FunctionQualifiers &qualifiers, const AST::AttrVec &attrs);
+ static void handle_inline_attribute_on_fndecl (tree fndecl,
+ const AST::Attribute &attr);
+
static void setup_abi_options (tree fndecl, ABI abi);
static tree address_expression (tree, Location);