aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2021-02-06 18:30:14 +0800
committerSimplyTheOther <simplytheother@gmail.com>2021-02-06 18:30:14 +0800
commit83ca72858469584de7d235054209dd214818ca1a (patch)
treec48d8f79e0e0f981a1bdcc94e3f38717dea5bd89 /gcc/rust
parentfeaa2074d8cece0510c49c45a2456a3f56b02381 (diff)
downloadgcc-83ca72858469584de7d235054209dd214818ca1a.zip
gcc-83ca72858469584de7d235054209dd214818ca1a.tar.gz
gcc-83ca72858469584de7d235054209dd214818ca1a.tar.bz2
Added more debug for cfg expansion
Diffstat (limited to 'gcc/rust')
-rw-r--r--gcc/rust/ast/rust-ast-full-test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-ast-full-test.cc b/gcc/rust/ast/rust-ast-full-test.cc
index aa17d60..3e5fe07 100644
--- a/gcc/rust/ast/rust-ast-full-test.cc
+++ b/gcc/rust/ast/rust-ast-full-test.cc
@@ -5030,6 +5030,9 @@ AttrInputMetaItemContainer::check_cfg_predicate (const Session &session) const
if (items.empty ())
return false;
+ // DEBUG
+ fprintf (stderr, "asked to check cfg of attrinputmetaitemcontainer - delegating to first item. container: '%s'\n", as_string ().c_str ());
+
return items[0]->check_cfg_predicate (session);
/*for (const auto &inner_item : items)
@@ -5229,6 +5232,9 @@ MetaItemPath::check_cfg_predicate (const Session &session) const
bool
MetaNameValueStr::check_cfg_predicate (const Session &session) const
{
+ // DEBUG
+ fprintf (stderr, "checked key-value pair for cfg: '%s', '%s' - is%s in target data\n", ident.c_str (), str.c_str (), session.options.target_data.has_key_value_pair (ident, str) ? "" : " not");
+
return session.options.target_data.has_key_value_pair (ident, str);
}