aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-expand.cc
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2021-02-06 18:10:57 +0800
committerSimplyTheOther <simplytheother@gmail.com>2021-02-06 18:10:57 +0800
commitfeaa2074d8cece0510c49c45a2456a3f56b02381 (patch)
treea7d9ef0754e55372bcfba938772febac8d1511e8 /gcc/rust/expand/rust-macro-expand.cc
parent3571e997473c87dcdb2ca590951acbd698382a33 (diff)
downloadgcc-feaa2074d8cece0510c49c45a2456a3f56b02381.zip
gcc-feaa2074d8cece0510c49c45a2456a3f56b02381.tar.gz
gcc-feaa2074d8cece0510c49c45a2456a3f56b02381.tar.bz2
Added even more debug for cfg predicate checking
Diffstat (limited to 'gcc/rust/expand/rust-macro-expand.cc')
-rw-r--r--gcc/rust/expand/rust-macro-expand.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.cc b/gcc/rust/expand/rust-macro-expand.cc
index e9f2e2a..df99d75 100644
--- a/gcc/rust/expand/rust-macro-expand.cc
+++ b/gcc/rust/expand/rust-macro-expand.cc
@@ -3285,6 +3285,8 @@ MacroExpander::fails_cfg_with_expand (std::vector<AST::Attribute> &attrs) const
// DEBUG
if (!attr.is_parsed_to_meta_item ())
fprintf (stderr, "failed to parse attr to meta item, right before cfg predicate check\n");
+ else
+ fprintf(stderr, "attr has been successfully parsed to meta item, right before cfg predicate check\n");
if (!attr.check_cfg_predicate (session))
{