OSDN Git Service

2007-07-14 Rafael Avila de Espindola <espindola@google.com>
authorespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jul 2008 21:41:27 +0000 (21:41 +0000)
committerespindola <espindola@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Jul 2008 21:41:27 +0000 (21:41 +0000)
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@137802 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 2c9f3cc..b828d37 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 0f190e1..89430cb 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 18a548d..6ebf4b1 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 822dd35..6d338a0 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'.  */