+2007-07-14 Rafael Avila de Espindola <espindola@google.com>
+
+ * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
+ is set.
+
2008-07-14 Jan Hubicka <jh@suse.cz>
* i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
header. (Conflicting redeclarations were handled above.) */
if (TREE_CODE (newdecl) == TYPE_DECL)
{
- if (DECL_IN_SYSTEM_HEADER (newdecl) || DECL_IN_SYSTEM_HEADER (olddecl))
+ if (DECL_IN_SYSTEM_HEADER (newdecl)
+ || DECL_IN_SYSTEM_HEADER (olddecl)
+ || TREE_NO_WARNING (newdecl)
+ || TREE_NO_WARNING (olddecl))
return true; /* Allow OLDDECL to continue in use. */
error ("redefinition of typedef %q+D", newdecl);
+2007-07-14 Rafael Avila de Espindola <espindola@google.com>
+
+ * objc-act.c (synth_module_prologue): Use TREE_NO_WARNING instead
+ of DECL_IN_SYSTEM_HEADER.
+
2008-07-11 Ian Lance Taylor <iant@google.com>
* objc-act.c (objc_is_reserved_word): Always check for RID_CLASS,
type = lang_hooks.decls.pushdecl (build_decl (TYPE_DECL,
objc_object_name,
objc_object_type));
- DECL_IN_SYSTEM_HEADER (type) = 1;
+ TREE_NO_WARNING (type) = 1;
type = lang_hooks.decls.pushdecl (build_decl (TYPE_DECL,
objc_class_name,
objc_class_type));
- DECL_IN_SYSTEM_HEADER (type) = 1;
+ TREE_NO_WARNING (type) = 1;
/* Forward-declare '@interface Protocol'. */