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-04-22 10:34:59 +0000
committerGitHub <noreply@github.com>2022-04-22 10:34:59 +0000
commitd541ded4855d0b4273a986b15ff497c45dbc6c78 (patch)
tree66ef63953ffe52d74cfa1825bcf1606bf8227e51 /gcc/rust/backend/rust-compile-base.h
parent75ac2f6fc0a12a7f75abfd5bcd79e508f5ae8fc7 (diff)
parent16730054de50fa613b86addd9cc4d737cfb7caf8 (diff)
downloadgcc-d541ded4855d0b4273a986b15ff497c45dbc6c78.zip
gcc-d541ded4855d0b4273a986b15ff497c45dbc6c78.tar.gz
gcc-d541ded4855d0b4273a986b15ff497c45dbc6c78.tar.bz2
Merge #1148
1148: backend: handle cold attribute r=philberty a=liushuyu - handle the `cold` attribute Co-authored-by: liushuyu <liushuyu011@gmail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.h')
-rw-r--r--gcc/rust/backend/rust-compile-base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h
index c7f7f40..68a3994 100644
--- a/gcc/rust/backend/rust-compile-base.h
+++ b/gcc/rust/backend/rust-compile-base.h
@@ -82,6 +82,9 @@ protected:
static void handle_inline_attribute_on_fndecl (tree fndecl,
const AST::Attribute &attr);
+ static void handle_cold_attribute_on_fndecl (tree fndecl,
+ const AST::Attribute &attr);
+
static void handle_must_use_attribute_on_fndecl (tree fndecl,
const AST::Attribute &attr);