Remove legacy TREE_NO_WARNING amd gimple_*no_warning* APIs.
gcc/ChangeLog:
* tree.h (TREE_NO_WARNING): Remove.
* gimple.h (gimple_no_warning_p): Remove.
(gimple_suppress_warning): Same.
@@ -699,13 +700,6 @@ extern void omp_clause_range_check_failed (const_tree, const char *, int,
/* Determines whether an ENUMERAL_TYPE has defined the list of constants. */
#define ENUM_IS_OPAQUE(NODE) (ENUMERAL_TYPE_CHECK (NODE)->base.private_flag)
-/* In an expr node (usually a conversion) this means the node was made
- 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)->base.nowarning_flag)
-
/* Nonzero if we should warn about the change in empty class parameter
passing ABI in this TU. */
#define TRANSLATION_UNIT_WARN_EMPTY_P(NODE) \
@@ -1948,22 +1969,6 @@ gimple_seq_singleton_p (gimple_seq seq)
&& (gimple_seq_first (seq) == gimple_seq_last (seq)));
}
-/* Return true if no warnings should be emitted for statement STMT. */
-
-static inline bool
-gimple_no_warning_p (const gimple *stmt)
-{
- return stmt->no_warning;
-}
-
-/* Set the no_warning flag of STMT to NO_WARNING. */
-
-static inline void
-gimple_set_no_warning (gimple *stmt, bool no_warning)
-{
- stmt->no_warning = (unsigned) no_warning;
-}
-
/* Set the visited status on statement STMT to VISITED_P.
Please note that this 'visited' property of the gimple statement is