aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2005-08-09 17:53:25 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2005-08-09 10:53:25 -0700
commit4e7feced5435dc9953e631ff3e4fd9bbc829cec5 (patch)
tree02eae3d78c0ffdfe23f7b29961ad401c340f79f6 /gcc/objc
parent18a6e93f239e2ca2996e73d3c03b045f3142d01b (diff)
downloadgcc-4e7feced5435dc9953e631ff3e4fd9bbc829cec5.zip
gcc-4e7feced5435dc9953e631ff3e4fd9bbc829cec5.tar.gz
gcc-4e7feced5435dc9953e631ff3e4fd9bbc829cec5.tar.bz2
part of PR objc/21992
2005-08-09 Andrew Pinski <pinskia@physics.uc.edu> part of PR objc/21992 * objc-act.c (handle_class_ref): The ref decl is always referenced. From-SVN: r102920
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/ChangeLog5
-rw-r--r--gcc/objc/objc-act.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog
index 31a1e8f..f6fde14 100644
--- a/gcc/objc/ChangeLog
+++ b/gcc/objc/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-09 Andrew Pinski <pinskia@physics.uc.edu>
+
+ part of PR objc/21992
+ * objc-act.c (handle_class_ref): The ref decl is always referenced.
+
2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
Make CONSTRUCTOR use VEC to store initializers.
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index d004fb5..697e029 100644
--- a/gcc/objc/objc-act.c
+++ b/gcc/objc/objc-act.c
@@ -9303,6 +9303,8 @@ handle_class_ref (tree chain)
DECL_INITIAL (decl) = exp;
TREE_STATIC (decl) = 1;
TREE_USED (decl) = 1;
+ /* Force the output of the decl as this forces the reference of the class. */
+ mark_decl_referenced (decl);
pushdecl (decl);
rest_of_decl_compilation (decl, 0, 0);