aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-07 01:48:35 +0000
committerRichard Stallman <rms@gnu.org>1992-07-07 01:48:35 +0000
commit1ae3f45f5b8599f7f814e2aa9c57e28f2ba429d0 (patch)
treedca219e30e814f0e9673f794b83eb595743bb967 /gcc/objc
parente2f6a3cfee9db7a6e8a451ff53d099750b7b64bf (diff)
downloadgcc-1ae3f45f5b8599f7f814e2aa9c57e28f2ba429d0.zip
gcc-1ae3f45f5b8599f7f814e2aa9c57e28f2ba429d0.tar.gz
gcc-1ae3f45f5b8599f7f814e2aa9c57e28f2ba429d0.tar.bz2
(build_module_descriptor,add_objc_decls):
Set DECL_IN_SYSTEM_HEADER instead of TREE_USED on compiler-created decls. From-SVN: r1493
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/objc-act.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 24647e8..888716f 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -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;
}
/*