diff options
author | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-04-07 11:48:22 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2022-04-12 14:26:23 +0200 |
commit | 23fc3ff7fe9405797d5961f7792540d3f487a287 (patch) | |
tree | e74d64a9f7829347a178380c15ae92a0712a35cd /gcc/rust/rust-lang.cc | |
parent | dfb5f548cee6874be343d3a337e9779ac30a5eb5 (diff) | |
download | gcc-23fc3ff7fe9405797d5961f7792540d3f487a287.zip gcc-23fc3ff7fe9405797d5961f7792540d3f487a287.tar.gz gcc-23fc3ff7fe9405797d5961f7792540d3f487a287.tar.bz2 |
privacy: ctx: Add proper implementations for insert_reachability() and
lookup_reachability()
Inserting reach levels in the reachability_map should only be done if
the existing reach level is lower than the provided one. If the node is
not yet present in the reachability map, insert it no matter what
Diffstat (limited to 'gcc/rust/rust-lang.cc')
-rw-r--r-- | gcc/rust/rust-lang.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/rust-lang.cc b/gcc/rust/rust-lang.cc index 5ecd79b..c746941 100644 --- a/gcc/rust/rust-lang.cc +++ b/gcc/rust/rust-lang.cc @@ -32,8 +32,10 @@ #include "convert.h" #include "langhooks.h" #include "langhooks-def.h" + #include "selftest.h" #include "rust-cfg-parser.h" +#include "rust-privacy-ctx.h" #include <mpfr.h> // note: header files must be in this order or else forward declarations don't @@ -455,6 +457,7 @@ run_rust_tests () // Call tests for the rust frontend here simple_assert (); rust_cfg_parser_test (); + rust_privacy_ctx_test (); } } // namespace selftest |