]> gcc.gnu.org Git - gcc.git/commitdiff
(build_module_descriptor,add_objc_decls):
authorRichard Stallman <rms@gnu.org>
Tue, 7 Jul 1992 01:48:35 +0000 (01:48 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 7 Jul 1992 01:48:35 +0000 (01:48 +0000)
Set DECL_IN_SYSTEM_HEADER instead of TREE_USED on compiler-created decls.

From-SVN: r1493

gcc/objc/objc-act.c

index 24647e84f73acf04000dbad3c25d59a72a01bab5..888716f0b434d060ef595ae888348466c70d3a6b 100644 (file)
@@ -885,8 +885,8 @@ build_module_descriptor ()
 
   finish_decl (_OBJC_MODULES_decl, init_module_descriptor (), NULLT);
 
-  /* Mark the decl as used to avoid "defined but not used" warning. */
-  TREE_USED (_OBJC_MODULES_decl) = 1;
+  /* Mark the decl to avoid "defined but not used" warning. */
+  DECL_IN_SYSTEM_HEADER (_OBJC_MODULES_decl) = 1;
 
   /* Generate a constructor call for the module descriptor. 
      This code was generated by reading the grammar rules
@@ -4246,7 +4246,7 @@ add_objc_decls ()
                                   build_tree_list (NULLT, objc_super_template), 0);
 
   /* this prevents `unused variable' warnings when compiling with `-Wall' */
-  TREE_USED (_OBJC_SUPER_decl) = 1;
+  DECL_IN_SYSTEM_HEADER (_OBJC_SUPER_decl) = 1;
 }
 
 /*
This page took 0.06614 seconds and 5 git commands to generate.