This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: objc data structure design



On 23 Nov 2004, at 11.01, Geoffrey Keating wrote:


Index: c-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/c-tree.h,v
retrieving revision 1.187
diff -u -p -u -p -r1.187 c-tree.h
--- c-tree.h    11 Nov 2004 23:13:10 -0000      1.187
+++ c-tree.h    23 Nov 2004 18:54:26 -0000
@@ -73,6 +73,8 @@ struct lang_type GTY(())
   /* In an ENUMERAL_TYPE, the min and max values.  */
   tree enum_min;
   tree enum_max;
+  /* In a RECORD_TYPE, <insert proper comment here>.  */
+  tree objc_protocol;
 };

 /* Record whether a type or decl was written with nonconstant size.
Index: cp/cp-tree.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/cp-tree.h,v
retrieving revision 1.1070
diff -u -p -u -p -r1.1070 cp-tree.h
--- cp/cp-tree.h        10 Nov 2004 17:34:47 -0000      1.1070
+++ cp/cp-tree.h        23 Nov 2004 18:54:28 -0000
@@ -1060,6 +1060,9 @@ struct lang_type_class GTY(())
   tree decl_list;
   tree template_info;
   tree befriending_classes;
+
+  /* <insert proper comment here>.  */
+  tree objc_protocol;
 };

struct lang_type_ptrmem GTY(())


Just wanted to confirm that I will indeed do this, albeit next week (this week we have Thanksgiving in the U.S.). :-) Also, I'd like to encourage those of you on non-Darwin platforms who suspect that adding these two fields might hurt compile-time performance to try this patch out on your systems.


--Zem


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]