aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-10-28 22:15:34 +0200
committerPhilip Herron <herron.philip@googlemail.com>2021-11-05 16:35:01 +0000
commit6a1e79714ce6e05d289c74b5e347e306b42c3576 (patch)
tree63b0432ad927321151ef49a409539004c711ca5b /gcc
parent864fd885fe89de76a48d8295d4505e5d7a72a6c8 (diff)
downloadgcc-6a1e79714ce6e05d289c74b5e347e306b42c3576.zip
gcc-6a1e79714ce6e05d289c74b5e347e306b42c3576.tar.gz
gcc-6a1e79714ce6e05d289c74b5e347e306b42c3576.tar.bz2
Tag 'rust_fatal_error' as 'noreturn'
... like GCC's underlying 'fatal_error'. By definition, we cannot continue, upon having run into a fatal error.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/rust-diagnostics.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/rust/rust-diagnostics.h b/gcc/rust/rust-diagnostics.h
index 7fc0e69..d9461f1 100644
--- a/gcc/rust/rust-diagnostics.h
+++ b/gcc/rust/rust-diagnostics.h
@@ -61,7 +61,8 @@ rust_warning_at (const Location, int opt, const char *fmt, ...)
RUST_ATTRIBUTE_GCC_DIAG (3, 4);
extern void
rust_fatal_error (const Location, const char *fmt, ...)
- RUST_ATTRIBUTE_GCC_DIAG (2, 3);
+ RUST_ATTRIBUTE_GCC_DIAG (2, 3)
+ RUST_ATTRIBUTE_NORETURN;
extern void
rust_inform (const Location, const char *fmt, ...)
RUST_ATTRIBUTE_GCC_DIAG (2, 3);
@@ -95,7 +96,8 @@ rust_be_error_at (const RichLocation &, const std::string &errmsg);
extern void
rust_be_warning_at (const Location, int opt, const std::string &warningmsg);
extern void
-rust_be_fatal_error (const Location, const std::string &errmsg);
+rust_be_fatal_error (const Location, const std::string &errmsg)
+ RUST_ATTRIBUTE_NORETURN;
extern void
rust_be_inform (const Location, const std::string &infomsg);
extern void