From 4e7feced5435dc9953e631ff3e4fd9bbc829cec5 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Tue, 9 Aug 2005 17:53:25 +0000 Subject: [PATCH] part of PR objc/21992 2005-08-09 Andrew Pinski part of PR objc/21992 * objc-act.c (handle_class_ref): The ref decl is always referenced. From-SVN: r102920 --- gcc/objc/ChangeLog | 5 +++++ gcc/objc/objc-act.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 31a1e8f9159..f6fde14f03d 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,8 @@ +2005-08-09 Andrew Pinski + + part of PR objc/21992 + * objc-act.c (handle_class_ref): The ref decl is always referenced. + 2005-07-20 Giovanni Bajo Make CONSTRUCTOR use VEC to store initializers. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index d004fb5eb04..697e0290c2d 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); -- 2.30.2