From 73022c2a43bfdf0e56546b3cb092787fd203ee02 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 1 Sep 2004 15:24:27 -0700 Subject: [PATCH] Update TREE_NO_WARNING docs. From-SVN: r86937 --- gcc/tree.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/tree.h b/gcc/tree.h index e815ef0f389..9c0fc85f50f 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -331,7 +331,7 @@ struct tree_common GTY(()) nowarning_flag: TREE_NO_WARNING in - ... any expr node + ... any expr or decl node */ /* Define accessors for the fields that all tree nodes have @@ -751,7 +751,10 @@ extern void tree_operand_check_failed (int, enum tree_code, #define CLEANUP_EH_ONLY(NODE) ((NODE)->common.static_flag) /* In an expr node (usually a conversion) this means the node was made - implicitly and should not lead to any sort of warning. */ + implicitly and should not lead to any sort of warning. In a decl node, + warnings concerning the decl should be suppressed. This is used at + least for used-before-set warnings, and it set after one warning is + emitted. */ #define TREE_NO_WARNING(NODE) ((NODE)->common.nowarning_flag) /* In an INTEGER_CST, REAL_CST, COMPLEX_CST, or VECTOR_CST this means -- 2.30.2