diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-04-20 12:06:21 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-04-26 15:12:22 +0000 |
commit | 8f6680458524877c7803eb9821ccf5e83ecfd080 (patch) | |
tree | 4acab45d0bdb89d7d24f461119d41875c93b6d08 /gcc/rust/lang.opt | |
parent | 028a5bb8ed10c202d024a544b9ca3087a0fcd90c (diff) | |
download | gcc-8f6680458524877c7803eb9821ccf5e83ecfd080.zip gcc-8f6680458524877c7803eb9821ccf5e83ecfd080.tar.gz gcc-8f6680458524877c7803eb9821ccf5e83ecfd080.tar.bz2 |
gccrs: enable -Winfinite-recursion warnings by default
gcc/rust/ChangeLog:
* lang.opt: add lang option flag
* rust-lang.cc (grs_langhook_init_options_struct): enable by default
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/lang.opt')
-rw-r--r-- | gcc/rust/lang.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/rust/lang.opt b/gcc/rust/lang.opt index 753cea1..e05dd72 100644 --- a/gcc/rust/lang.opt +++ b/gcc/rust/lang.opt @@ -54,6 +54,10 @@ Wunused-result Rust Var(warn_unused_result) Warning Warn if a caller of a function, marked with attribute warn_unused_result, does not use its return value. +Winfinite-recursion +Rust Var(warn_infinite_recursion) Warning +Warn for infinitely recursive calls. + frust-crate= Rust Joined RejectNegative -frust-crate=<name> Set the crate name for the compilation |