objc-act.c (synth_module_prologue): Use TREE_NO_WARNING instead of DECL_IN_SYSTEM_HEADER.
authorRafael Avila de Espindola <espindola@google.com>
Mon, 14 Jul 2008 21:41:27 +0000 (21:41 +0000)
committerRafael Espindola <espindola@gcc.gnu.org>
Mon, 14 Jul 2008 21:41:27 +0000 (21:41 +0000)
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.

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.

From-SVN: r137802

gcc/ChangeLog
gcc/c-decl.c
gcc/objc/ChangeLog
gcc/objc/objc-act.c

index 2c9f3cc2595ca2cf57ba927baa9376a637be4a40..b828d37728a1fef9eda48ed505a342b34139b0f3 100644 (file)
@@ -1,3 +1,8 @@
+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
index 0f190e12be88b62dcafb80b5ddc6ee795092b143..89430cbf3e1e1a3fc3ef4342c30d71ec0438afac 100644 (file)
@@ -1258,7 +1258,10 @@ diagnose_mismatched_decls (tree newdecl, tree olddecl,
      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);
index 18a548da635a0a0ab23059ee352a23b1bfb64517..6ebf4b14348a2bbed519201222276d8e6f5e521d 100644 (file)
@@ -1,3 +1,8 @@
+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,
index 822dd35eb8d6f8619f1a2cd686698a3e47dd8254..6d338a04ec6813c61de79005e852d0a77a9e5230 100644 (file)
@@ -1552,11 +1552,11 @@ synth_module_prologue (void)
   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'.  */