aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-base.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-02-13 14:27:01 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-02-13 14:27:01 +0000
commit112f2841ee3adac146d1c04703fa36068adfdefc (patch)
tree118e4dc6e60678194b65ccd9d097c465ed46a18d /gcc/rust/backend/rust-compile-base.h
parentb71cc52613219f353b054eb5520cd3886f354c10 (diff)
downloadgcc-112f2841ee3adac146d1c04703fa36068adfdefc.zip
gcc-112f2841ee3adac146d1c04703fa36068adfdefc.tar.gz
gcc-112f2841ee3adac146d1c04703fa36068adfdefc.tar.bz2
Support inline never and always options
This maps over to DECL_UNINLINEABLE and to use the GCC attribute always_inline. Fixes #921
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);