]>
Commit | Line | Data |
---|---|---|
7f5203a8 | 1 | 2010-11-08 Nicola Pero <nicola.pero@meta-innovation.com> |
2 | ||
3 | * objc-act.c (lookup_property): When checking categories, also | |
4 | check the protocols attached to each. | |
5 | (objc_add_property_declaration): Determine the | |
6 | PROPERTY_SETTER_NAME and PROPERTY_GETTER_NAME here. Tidied up | |
7 | error message. Search for an existing property declaration with | |
8 | the same name which would be inherited from the class hiearchy, | |
9 | and produce an error if it has incompatible attributes. | |
10 | (check_methods): Changed second parameter. If the method is a | |
11 | getter or setter for a property, do not warn if it is inherited as | |
12 | opposed to implemented directly in the class. | |
13 | (check_protocol): Updated calls to check_methods. | |
14 | (finish_class): Do not determine the PROPERTY_SETTER_NAME and | |
15 | PROPERTY_GETTER_NAME here; this is now done earlier, in | |
16 | objc_add_property_declaration. | |
17 | * objc-act.h (CLASS_NAME, CLASS_SUPER_NAME): Added comments. | |
18 | ||
736dea43 | 19 | 2010-11-06 Nicola Pero <nicola.pero@meta-innovation.com> |
20 | ||
21 | Fixed using the Objective-C 2.0 syntax with self and super. | |
22 | * objc-act.c (OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS): New. | |
23 | (maybe_make_artificial_property_decl): Added 'implementation' | |
24 | argument. Use OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS when | |
25 | looking up getters or setters for a class. If an implementation | |
26 | is specified, search it as well for a getter or setter. | |
27 | (objc_maybe_build_component_ref): Updated calls to | |
28 | maybe_make_artificial_property_decl; added code to deal with | |
29 | 'self' and 'super' and with methods declared locally in the | |
30 | implementation. Store the getter call expression in the | |
31 | PROPERTY_REF instead of throwing it away. | |
32 | (objc_build_class_component_ref): Updated calls to | |
33 | maybe_make_artificial_property_decl, and store the getter call | |
34 | expression in PROPERTY_REF instead of throwing it away. | |
35 | (lookup_method_static): Implemented | |
36 | OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS option. | |
37 | (objc_gimplify_property_ref): Do not build the getter method call | |
38 | here; instead use the one stored in the PROPERTY_REF. If it's not | |
39 | there, produce helpful error messages. | |
40 | * objc-tree.def (PROPERTY_REF): Increased the number of operands | |
41 | from 2 to 3. Updated comments. | |
42 | * objc-act.h (PROPERTY_REF_GETTER_CALL): New. | |
43 | ||
1f6616ee | 44 | 2010-11-06 Iain Sandoe <iains@gcc.gnu.org> |
45 | ||
46 | PR target/44981 | |
47 | * objc-act.c (objc_build_string_object): Amend for renamed hook. | |
48 | (objc_string_ref_type_p): New. | |
49 | (objc_check_format_arg): New. | |
50 | ||
b0d0931f | 51 | 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com> |
52 | ||
53 | Fixed using the Objective-C 2.0 dot-syntax with class names. | |
54 | * objc-act.c (objc_build_class_component_ref): New. | |
55 | ||
f26877d5 | 56 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
57 | ||
58 | * objc-act.c (objc_add_dynamic_declaration): Allow @dynamic in a | |
59 | category. | |
60 | (objc_type_valid_for_messaging): Added 'accept_classes' argument; | |
61 | if set to 'true', return 'true' for Class objects. Do not remove | |
62 | more than on pointer indirection. | |
63 | (objc_add_property_declaration): Only warn about 'assign' | |
64 | semantics for Objective-C objects if warn_property_assign_default; | |
65 | and do not warn if the property is readonly or if the type is a Class. | |
66 | (objc_finish_foreach_loop): Updated calls to | |
67 | objc_type_valid_for_messaging. | |
68 | ||
1ef143b6 | 69 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
70 | ||
71 | Implemented -fobjc-std=objc1 flag. | |
72 | * objc-act.c (objc_start_class_interface): If attributes are | |
73 | specified when flag_objc1_only is set, print an error. | |
74 | (objc_start_category_interface): Same change. | |
75 | (objc_start_protocol): Same change. | |
76 | (objc_add_method_declaration): Same change. | |
77 | (objc_start_method_definition): Same change. | |
78 | (objc_build_keyword_decl): Same change. | |
79 | (objc_set_visibility): If OBJC_IVAR_VIS_PACKAGE is used when | |
80 | flag_objc1_set is set, print an error. | |
81 | (objc_set_method_opt): If flag_objc1_only is set, print an error. | |
82 | (objc_add_property_declaration): Same change. | |
83 | (objc_add_synthesize_declaration): Same change. | |
84 | (objc_add_dynamic_declaration): Same change. | |
85 | (objc_finish_foreach_loop): Same change. | |
86 | (objc_maybe_build_component_ref): If flag_objc1_only is set, | |
87 | return immediately. | |
88 | ||
890881e7 | 89 | 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com> |
90 | ||
91 | * objc-act.c (maybe_make_artificial_property_decl): New. | |
92 | (objc_maybe_build_component_ref): Call | |
93 | maybe_make_artificial_property_decl if a property can not be | |
94 | found. Do not call objc_finish_message_expr if | |
95 | PROPERTY_HAS_NO_GETTER. | |
96 | * objc-act.h Updated comments. | |
97 | (PROPERTY_HAS_NO_GETTER): New. | |
98 | (PROPERTY_HAS_NO_SETTER): New. | |
99 | * objc-tree.def: Updated comment. | |
100 | ||
8c582e4f | 101 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
102 | ||
103 | Implemented format and noreturn attributes for Objective-C methods. | |
104 | * objc-act.c (objc_start_method_definition): If method attributes | |
105 | are specified emit a warning and ignore them. | |
106 | (build_objc_method_call): Moved deprecation warnings from here ... | |
107 | (objc_finish_message_expr): to here. Do not emit deprecation | |
108 | warnings if the receiver is of type 'id'. | |
109 | (really_start_method): Install 'deprecation' and 'noreturn' | |
110 | attributes. | |
111 | (objc_decl_method_attributes): Carefully filter out the list of | |
112 | attributes, allowing only "noreturn", "format", "sentinel" and | |
113 | "deprecated". In the case of "format", adjust the arguments. | |
114 | Always process the attributes in the same way no matter if | |
115 | "sentinel" is in the list or not. | |
116 | ||
cb92539e | 117 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
118 | ||
119 | * objc-act.c (objc_maybe_build_component_ref): Warn about using | |
120 | deprecated properties. | |
121 | (objc_maybe_printable_name): Support PROPERTY_DECL. | |
122 | ||
7fd68cee | 123 | 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com> |
124 | ||
125 | Implemented Objective-C 2.0 property accessors. | |
126 | * objc-act.h (enum objc_tree_index): Added OCTI_GET_PROPERTY_DECL, | |
127 | OCTI_SET_PROPERTY_DECL, OCTI_COPY_STRUCT_DECL, | |
128 | OCTI_GET_PROPERTY_STRUCT_DECL and OCTI_SET_PROPERTY_STRUCT_DECL. | |
129 | (objc_getProperty_decl): New. | |
130 | (objc_setProperty_decl): New. | |
131 | (objc_copyStruct_decl): New. | |
132 | (objc_getPropertyStruct_decl): New. | |
133 | (objc_setPropertyStruct_decl): New. | |
134 | * objc-act.c (build_objc_property_accessor_helpers): New. | |
135 | (synth_module_prologue): Call | |
136 | build_objc_property_accessor_helpers. | |
137 | (lookup_ivar): New. | |
138 | (objc_synthesize_getter): Implemented synthesizing getters that | |
139 | work with properties that are not nonatomic, assign properties. | |
140 | (objc_synthesize_setter): Implemented synthesizing setters that | |
141 | work with properties that are not nonatomic, assign properties. | |
142 | ||
9d9f5bb3 | 143 | 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com> |
144 | ||
145 | Implemented Objective-C 2.0 @property, @synthesize and @dynamic. | |
146 | * objc-tree.def (PROPERTY_REF): New. | |
147 | * objc-act.h: Added comments for all the PROPERTY_ macros. | |
148 | (PROPERTY_NAME): Use DECL_NAME. | |
149 | (PROPERTY_COPIES): Removed. | |
150 | (PROPERTY_READONLY): Use DECL_LANG_FLAG_0 for it. | |
151 | (PROPERTY_NONATOMIC): New. | |
152 | (objc_property_assign_semantics): Make it a typedef. | |
153 | (PROPERTY_ASSIGN_SEMANTICS): New. | |
154 | (PROPERTY_DYNAMIC): New. | |
155 | (PROPERTY_REF_OBJECT): New. | |
156 | (PROPERTY_REF_PROPERTY_DECL): New. | |
157 | * objc-act.c (CALL_EXPR_OBJC_PROPERTY_GETTER): Removed. | |
158 | (in_objc_property_setter_name_context): Removed. | |
159 | (objc_add_property_declaration): Removed copies and ivar arguments | |
160 | and code supporting them. Fixed recovering when readonly and | |
161 | setter attributes are specified. Removed support for @property in | |
162 | @implementation context. Updated error message. Double-check | |
163 | that a property does not have a DECL_INITIAL. Validate the | |
164 | property assign semantics and emit appropriate errors and | |
165 | warnings. Check for duplicate property declarations. Set | |
166 | DECL_SOURCE_LOCATION, TREE_DEPRECATED, PROPERTY_NONATOMIC, | |
167 | PROPERTY_ASSIGN_SEMANTICS and PROPERTY_DYNAMIC of the new | |
168 | PROPERTY_DECL. Do not set PROPERTY_COPIES. Set | |
169 | PROPERTY_IVAR_NAME to NULL_TREE. | |
170 | (objc_build_getter_call): Renamed to | |
171 | objc_maybe_build_component_ref. If the property is not found in | |
172 | the interface, search in the protocol list. Do not generate the | |
173 | getter call; instead, build and return a PROPERTY_REF. | |
174 | (objc_is_property_ref): New. | |
175 | (objc_setter_func_call): Removed. | |
176 | (get_selector_from_reference): Removed. | |
177 | (is_property): Removed. | |
178 | (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr. | |
179 | Updated to work on a PROPERTY_REF and use the PROPERTY_DECL from | |
180 | the PROPERTY_REF. Generate an error if the property is read-only. | |
181 | (build_property_reference): Removed. | |
182 | (objc_finish_message_expr): Removed check to produce "readonly | |
183 | property can not be set" error when | |
184 | in_objc_property_setter_name_context. We now generate the error | |
185 | earlier, in objc_maybe_build_modify_expr, which will only generate | |
186 | the setter call if the property is readwrite. | |
187 | (check_methods): Recognize dynamic properties. | |
188 | (check_methods_accessible): Same change. | |
189 | (objc_build_property_ivar_name): Removed. | |
190 | (objc_build_property_setter_name): Dropped bool argument. Always | |
191 | add the ':' at the end. | |
192 | (objc_gen_one_property_datum): Removed. | |
193 | (objc_process_getter_setter): Removed. | |
194 | (objc_synthesize_getter): Mark 'klass' argument as unused. Use | |
195 | PROPERTY_GETTER_NAME instead of PROPERTY_NAME. Set the | |
196 | DECL_SOURCE_LOCATION of the new method to be the same as the one | |
197 | for the @synthesize. Always use PROPERTY_IVAR_NAME as it is | |
198 | instead of trying to guess what it should be. Removed use of | |
199 | CLASS_IVARS. Use the location of @synthesize for c_finish_return | |
200 | and c_end_compound_statement. | |
201 | (objc_synthesize_setter): Mark 'klass' argument as unused. Use | |
202 | PROPERTY_SETTER_NAME instead of trying to guess what it should be. | |
203 | Set the DECL_SOURCE_LOCATION of the new method to be the same as | |
204 | the one for the @synthesize. Always use PROPERTY_IVAR_NAME as it | |
205 | is instead of trying to guess what it should be. Removed use of | |
206 | CLASS_IVARS. Use the location of @synthesize for c_finish_return | |
207 | and c_end_compound_statement. Emit an error and keep going, | |
208 | instead of aborting, if the setter prototype does not have the | |
209 | expected argument. | |
210 | (objc_add_synthesize_declaration_for_property): New. | |
211 | (objc_add_synthesize_declaration): Removed ATTRIBUTE_UNUSED from | |
212 | all arguments. Improved error message. Filled in the rest of the | |
213 | function, which used to be a placeholder, with an actual | |
214 | implementation. | |
215 | (objc_add_dynamic_declaration_for_property): New. | |
216 | (objc_add_dynamic_declaration): Removed ATTRIBUTE_UNUSED from all | |
217 | arguments. Improved error message. Filled in the rest of the | |
218 | function, which used to be a placeholder, with an actual | |
219 | implementation. | |
220 | (objc_gen_property_data): Rewritten. | |
221 | (finish_class): Added explicit switch cases for | |
222 | CLASS_INTERFACE_TYPE, CATEGORY_INTERFACE_TYPE and | |
223 | PROTOCOL_INTERFACE_TYPE. Added a default switch case which is | |
224 | gcc_unreachable. Rewritten the processing of properties, in | |
225 | particular to not synthesize prototypes for getters and setters if | |
226 | they already exist and to install the getter and setter names into | |
227 | PROPERTY_GETTER_NAME and PROPERTY_SETTER_NAME. Do not generate | |
228 | warnings about setter, getter and ivar property attributes. | |
229 | (objc_lookup_ivar): Removed support for properties. | |
230 | (objc_gimplify_property_ref): New. | |
231 | (objc_gimplify_expr): Use a switch. In case of a PROPERTY_REF, call | |
232 | objc_gimplify_property_ref. | |
233 | ||
7590f0e5 | 234 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
235 | ||
236 | * objc-act.c (objc_add_property_declaration): Added arguments to | |
237 | pass the various property attributes that were parsed with the | |
238 | property declaration. Process arguments to determine the final | |
239 | property attributes and produce error messages as appropriate. | |
240 | Added temporary code to keep the compiler silent about variables | |
241 | set but not used - for new attributes that are only checked but | |
242 | have no effect yet. | |
243 | (property_readonly): Removed. | |
244 | (property_setter): Removed. | |
245 | (property_getter): Removed. | |
246 | (property_ivar): Removed. | |
247 | (property_copies): Removed. | |
248 | (objc_set_property_attr): Removed. | |
249 | * objc-act.h (enum property_assign_semantics): New. | |
250 | ||
1d894bcf | 251 | 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com> |
252 | ||
253 | * objc-act.c (objc_add_property_variable): Renamed to | |
254 | objc_add_property_declaration. Added location argument. Updated | |
255 | warnings and errors to use it. Use error, not fatal_error, if a | |
256 | property declaration is found outside an interface or | |
257 | implementation context. | |
258 | ||
601154bb | 259 | 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com> |
260 | ||
261 | * objc-act.c (objc_build_keyword_decl): Updated comments. Do not | |
262 | emit a warning that method parameter attributes are unimplemented. | |
263 | Instead, store them into DECL_ATTRIBUTES of the KEYWORD_DECL. | |
264 | (start_method_def): Copy attributes from each KEYWORD_DECL into | |
265 | the corresponding PARM_DECL. | |
266 | (objc_warn_deprecated_use): Removed. | |
267 | (build_objc_method_call): Call warn_deprecated_use, not | |
268 | objc_warn_deprecated_use. | |
269 | (objc_maybe_printable_name): Do not try to get the identifier name | |
270 | of DECLs that we don't recognize. Immediately return NULL for them. | |
271 | (objc_printable_name): Removed C++-specific case, which is no | |
272 | longer used. Updated comments. | |
273 | ||
e23bf1fb | 274 | 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com> |
275 | ||
276 | * objc-act.c (OBJC_GEN_METHOD_LABEL): Updated comments. | |
277 | (objc_demangle): Return NULL if demangling can not be done because | |
278 | the string to demangle is not an Objective-C mangled method name. | |
279 | Be smarter in demangling method names so that at least for methods | |
280 | with no arguments we are able to almost always demangle '_' correctly. | |
281 | Updated comments. | |
282 | (objc_maybe_printable_name): New. | |
283 | (objc_printable_name): Call objc_maybe_printable_name. If it | |
284 | returns NULL, call cxx_printable_name in Objective-C++. | |
285 | ||
d4238e8b | 286 | 2010-10-21 Iain Sandoe <iains@gcc.gnu.org> |
287 | ||
288 | Based on the CFString implementation in FSF apple/trunk branch. | |
289 | ||
290 | * objc/objc-act.c (objc_build_string_object): Handle CFStrings. | |
291 | ||
29d8eac9 | 292 | 2010-10-21 Nicola Pero <nicola.pero@meta-innovation.com> |
293 | ||
294 | * objc-act.c (get_objc_string_decl): Use a switch instead of a | |
295 | chain of ifs. Use gcc_unreachable instead of abort. | |
296 | (add_objc_string): Same change. | |
297 | (generate_protocol_list): Same change - twice. | |
298 | (synth_id_with_class_suffix): Same change. | |
299 | (build_keyword_selector): Same change - twice. | |
300 | (objc_build_message_expr): Same change. | |
301 | (objc_build_selector_expr): Same change. | |
302 | (check_methods): Same change - and added missing gcc_unreachable | |
303 | for default case. | |
304 | (check_methods_accessible): Same change - twice, and added missing | |
305 | gcc_unreachable for default case in one of them. | |
306 | (start_class): Same change - and added missing gcc_unreachable for | |
307 | default case. | |
308 | (continue_class): Same change. | |
309 | (objc_gen_property_data): Same change. | |
310 | (finish_class): Same change. | |
311 | (encode_type_qualifiers): Added missing gcc_unreachable. | |
312 | (encode_type): Small code tidy up to reduce duplicated code. Use | |
313 | gcc_unreachable instead of abort - twice. | |
314 | (encode_gnu_bitfield): Use a switch instead of a chain of ifs - | |
315 | twice. Added missing gcc_unreachable for default case - twice. | |
316 | (dump_interface): Use a switch instead of a chain of ifs. | |
317 | (handle_impent): Same change. | |
318 | ||
45b2b110 | 319 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
320 | ||
321 | * objc-act.h (objc_inherit_code): Removed. | |
322 | * objc-act.c (objc_inherit_code): Removed. | |
323 | (objc_set_method_type): Removed. | |
324 | (objc_build_method_signature): Added is_class_method argument. | |
325 | Use it instead of the global objc_inherit_code variable. | |
326 | (objc_add_method_declaration): Same change. | |
327 | (objc_start_method_definition): Same change. | |
328 | (objc_generate_cxx_ctor_or_dtor): Updated call to | |
329 | objc_start_method_definition. Do not call objc_set_method_type. | |
330 | (adjust_type_for_id_default): Mark as inline. | |
331 | (objc_synthesize_getter): Updated call to | |
332 | objc_start_method_definition. Do not set objc_inherit_code. | |
333 | (objc_synthesize_setter): Updated call to | |
334 | objc_start_method_definition. Do not set objc_inherit_code. | |
335 | ||
e9e7c336 | 336 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
337 | ||
338 | Merge from 'apple/trunk' branch on FSF servers. Obvious updates | |
339 | to gcc_alloc_xxx calls in hash_init and hash_class_name_enter to | |
340 | get it to compile in the current trunk. | |
341 | ||
342 | 2006-01-27 Fariborz Jahanian <fjahanian@apple.com> | |
343 | ||
344 | Radar 4345837 | |
345 | * objc/objc-act.c (hash_class_name_enter): New. | |
346 | (hash_class_name_lookup): New. | |
347 | (objc_declare_alias): Enter alias name into hash table. | |
348 | (objc_declare_class): Enter class name into hash table. | |
349 | (objc_is_class_name): Do a hash look up of class name. | |
350 | (hash_init): Initialize the two new hash tables. | |
351 | * objc-act.h: Added cls_name_hash_list and als_name_hash_list | |
352 | declarations, removed class_chain and alias_chain. | |
353 | ||
64cd9619 | 354 | 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com> |
355 | ||
356 | * objc-lang.c (finish_file): Removed. | |
357 | * objc-act.c (objc_finish_file): Renamed to | |
358 | objc_write_global_declarations. Do not try to instantiate C++ | |
359 | templates when compiling Objective-C++ as this is now | |
360 | automatically done before this function is called. Do not check | |
361 | for syntax-only run or PCH generation as this is done by the | |
362 | callers. | |
363 | * objc-act.h (objc_finish_file): Removed. | |
364 | ||
e1f293c0 | 365 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
366 | ||
367 | Implemented parsing @synthesize and @dynamic for | |
368 | Objective-C/Objective-C++. | |
369 | * objc-act.c (objc_add_synthesize_declaration): New. | |
370 | (objc_add_dynamic_declaration): New. | |
371 | ||
372 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> | |
373 | ||
374 | * objc-act.c (lookup_and_install_protocols): Return NULL if passed | |
375 | error_mark_node. | |
376 | ||
69b07042 | 377 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> |
378 | ||
379 | Merge from 'apple/trunk' branch on FSF servers. | |
a1176db9 | 380 | |
381 | 2006-03-10 Fariborz Jahanian <fjahanian@apple.com> | |
382 | ||
383 | Radar 4407151 | |
384 | * objc/objc-act.c (objc_is_class_name): template parameter is not | |
385 | an objective class name. | |
386 | (objc_generate_cxx_cdtors): Check for the null | |
387 | objc_implementation_context. | |
388 | ||
389 | 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com> | |
390 | ||
391 | Merge from 'apple/trunk' branch on FSF servers. | |
69b07042 | 392 | |
393 | 2005-11-08 Fariborz Jahanian <fjahanian@apple.com> | |
394 | ||
395 | Radar 4330422 | |
396 | * objc/objc-act.c (objc_non_volatilized_type): New | |
397 | ||
398 | 2005-10-07 Fariborz Jahanian <fjahanian@apple.com> | |
399 | ||
400 | Radar 4204796 | |
401 | * objc-act.c (objc_build_volatilized_type): Build 'volatilzed' | |
402 | types with proper attribute set and correctly. | |
403 | (objc_volatilize_decl): Remove unneeded code. | |
404 | (objc_type_quals_match): Use the new attribute to check on | |
405 | 'volatilzed' type. | |
406 | (hash_init): removed unneeded code. | |
407 | ||
f15f2e56 | 408 | 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com> |
409 | ||
410 | Merge from 'apple/trunk' branch on FSF servers. | |
411 | ||
412 | 2006-03-27 Fariborz Jahanian <fjahanian@apple.com> | |
413 | ||
414 | Radar 4133425 | |
415 | * objc-act.c (objc_diagnose_private_ivar): New. | |
416 | ||
4a8875ed | 417 | 2010-10-17 Iain Sandoe <iains@gcc.gnu.org> |
418 | ||
419 | * objc-act.c: Rename 'objc_public_flag' to objc_ivar_visibility and | |
420 | make its type 'objc_ivar_visibility_kind'. | |
421 | (objc_start_class_interface): Update to use visibility enum. | |
422 | (objc_start_class_implementation): Likewise. | |
423 | (objc_set_visibility): Update to use visibility enum, warn that | |
424 | @package is handle as per @public. | |
425 | (add_instance_variable): Handle OBJC_IVAR_VIS_PACKAGE. | |
426 | * objc-act.h: Rename 'objc_public_flag' to objc_ivar_visibility and | |
427 | make its type 'objc_ivar_visibility_kind'. | |
428 | ||
86c110ac | 429 | 2010-10-14 Iain Sandoe <iains@gcc.gnu.org> |
430 | ||
431 | merge from FSF apple 'trunk' branch. | |
432 | 2006 Fariborz Jahanian <fjahanian@apple.com> | |
433 | ||
434 | Radars 4436866, 4505126, 4506903, 4517826 | |
435 | * objc-act.c (CALL_EXPR_OBJC_PROPERTY_GETTER): New. | |
436 | property_readonly, property_getter, property_setter, property_ivar, | |
437 | property_copies, in_objc_property_setter_name_context: New vars. | |
438 | (objc_set_property_attr): New. | |
439 | (objc_add_property_variable): New. | |
440 | (lookup_property_in_list): New. | |
441 | (lookup_property): New. | |
442 | (objc_build_getter_call): New. | |
443 | (objc_setter_func_call): New. | |
444 | (get_selector_from_reference): New. | |
445 | (objc_build_setter_call): New. | |
446 | (is_property): New. | |
447 | (build_property_reference): New. | |
448 | (objc_finish_message_expr): Detect readonly property and warn. | |
449 | (objc_build_property_ivar_name): New. | |
450 | (objc_build_property_setter_name): New. | |
451 | (objc_gen_one_property_datum): New. | |
452 | (objc_process_getter_setter): New. | |
453 | (objc_synthesize_getter): New. | |
454 | (objc_synthesize_setter): New. | |
455 | (objc_gen_property_data): New. | |
456 | (finish_class): Generate property data. | |
457 | (comp_proto_with_proto): Separated from ... | |
458 | (match_proto_with_proto): ... New. | |
459 | (objc_lookup_ivar): Handle properties. | |
460 | * objc-tree.def (PROPERTY_DECL): New tree code. | |
461 | * objc-act.h: CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS update size. | |
462 | (METHOD_PROPERTY_CONTEXT): New. | |
463 | (PROPERTY_NAME): New. | |
464 | (PROPERTY_GETTER_NAME): New. | |
465 | (PROPERTY_SETTER_NAME): New. | |
466 | (PROPERTY_IVAR_NAME): New. | |
467 | (PROPERTY_READONLY): New. | |
468 | (PROPERTY_COPIES): New. | |
469 | (TOTAL_CLASS_RAW_IVARS): New. | |
470 | (CLASS_PROPERTY_DECL): New. | |
471 | (IMPL_PROPERTY_DECL): New. | |
472 | * objc-lang.c (objc_init_ts): Update fields for property_decl. | |
473 | ||
382597e4 | 474 | 2010-10-13 Richard Henderson <rth@redhat.com> |
475 | ||
476 | * objc-act.c (objc_eh_personality): Update call to | |
477 | build_personality_function. | |
478 | ||
40c8d1dd | 479 | 2010-10-13 Iain Sandoe <iains@gcc.gnu.org> |
480 | ||
481 | merge from FSF apple 'trunk' branch. | |
482 | ||
483 | 2006-04-26 Fariborz Jahanian <fjahanian@apple.com> | |
484 | Radar 3803157 (method attributes) | |
485 | * objc/objc-act.h (METHOD_TYPE_ATTRIBUTES): New macro. | |
486 | * objc/objc-act.c (objc_decl_method_attributes): New. | |
487 | (objc_add_method_declaration): Process method's attribute. | |
488 | (objc_start_method_definition): Ditto. | |
489 | (build_objc_method_call): Inject method attribute into | |
490 | built function type. | |
491 | (objc_method_decl): New. | |
492 | (objc_warn_deprecated)use): New. | |
493 | ||
18cfeada | 494 | 2010-10-07 Andi Kleen <ak@linux.intel.com> |
495 | ||
496 | * Make-lang.in (cc1obj-dummy): Remove. | |
497 | (cc1obj-checksum): Change to run checksum over object files | |
498 | and options only. | |
499 | ||
31a38208 | 500 | 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com> |
501 | ||
502 | PR objc/45925 | |
503 | * objc-act.c (objc_finish_foreach_loop): Convert return value of | |
504 | countByEnumeratingWithState:objects:count: to long unsigned int. | |
505 | ||
b79b475d | 506 | 2010-10-07 Iain Sandoe <iains@gcc.gnu.org> |
507 | ||
40d49b18 | 508 | * objc-act.c (build_objc_method_call): Replace calls to |
509 | build_function_call () with the VEC equivalent. Construct parameter | |
510 | lists as VECs. | |
511 | ||
512 | 2010-10-07 Iain Sandoe <iains@gcc.gnu.org> | |
513 | ||
514 | * objc-act.c (objc_build_message_expr): Call mark_exp_read () to | |
515 | signal that the receiver has been used. | |
b79b475d | 516 | |
e1aa4dab | 517 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
518 | ||
519 | * README: Obsolete file removed. | |
520 | ||
0a65c3bb | 521 | 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com> |
522 | ||
523 | Implemented fast enumeration for Objective-C. | |
524 | * objc-act.c (build_fast_enumeration_state_template): New. | |
525 | (TAG_ENUMERATION_MUTATION): New. | |
526 | (TAG_FAST_ENUMERATION_STATE): New. | |
527 | (synth_module_prologue): Call build_fast_enumeration_state_template() and set up | |
528 | objc_enumeration_mutation_decl. | |
529 | (objc_create_temporary_var): Allow providing a name to temporary | |
530 | variables. | |
531 | (objc_build_exc_ptr): Updated calls to | |
532 | objc_create_temporary_var(). | |
533 | (next_sjlj_build_try_catch_finally): Same change. | |
534 | (objc_finish_foreach_loop): New. | |
535 | * objc-act.h: Added OCTI_FAST_ENUM_STATE_TEMP, | |
536 | OCTI_ENUM_MUTATION_DECL, objc_fast_enumeration_state_template, | |
537 | objc_enumeration_mutation_decl. | |
538 | ||
539 | Merge from 'apple/trunk' branch on FSF servers. | |
540 | ||
541 | 2006-04-12 Fariborz Jahanian <fjahanian@apple.com> | |
542 | ||
543 | Radar 4507230 | |
544 | * objc-act.c (objc_type_valid_for_messaging): New routine to check | |
545 | for valid objc object types. | |
546 | (objc_finish_foreach_loop): Check for invalid objc objects in | |
547 | foreach header. | |
548 | ||
06517bd4 | 549 | 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com> |
550 | ||
551 | Merge from 'apple/trunk' branch on FSF servers. | |
552 | ||
553 | 2005-10-17 Fariborz Jahanian <fjahanian@apple.com> | |
554 | ||
555 | Radar 4290840 | |
0a65c3bb | 556 | * objc-act.c (objc_start_method_definition): Check for |
557 | error_mark_node for the selector name and make a quick exit. | |
06517bd4 | 558 | |
70293f47 | 559 | 2010-10-04 Andi Kleen <ak@linux.intel.com> |
560 | ||
561 | * Make-lang.in (cc1obj-dummy, cc1obj): Add + to build rule. | |
562 | ||
069761fb | 563 | 2010-09-30 Iain Sandoe <iains@gcc.gnu.org> |
564 | ||
565 | merge from FSF 'apple/trunk' branch. | |
566 | 2006-01-30 Fariborz Jahanian <fjahanian@apple.com> | |
567 | ||
568 | Radar 4386773 | |
569 | * objc/objc-act.c (objc_set_method_opt): New function. | |
570 | (objc_start_protocol, objc_finish_interface): Reset | |
571 | objc_method_optional_flag flag. | |
572 | (objc_add_method_declaration): Pass on the new | |
573 | flag to objc_add_method. | |
574 | (objc_add_method): Add optional methods to new chain in | |
575 | the protocol class. | |
576 | * objc/objc-act.h (CLASS_OPTIONAL_CLS_METHODS, | |
577 | CLASS_OPTIONAL_NST_METHODS): New macros accessing a protocol | |
578 | class's optional method chains. | |
579 | ||
180bb2c0 | 580 | 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com> |
581 | ||
582 | Merge from 'apple/trunk' branch on FSF servers. | |
583 | ||
584 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> | |
585 | ||
586 | Radar 4278236 | |
587 | * objc-act.c (objc_declare_class): Pick the right | |
588 | type tree. | |
589 | ||
3511333e | 590 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
e147d6aa | 591 | |
592 | Merge from 'apple/trunk' branch on FSF servers. | |
593 | ||
594 | 2005-10-04 Fariborz Jahanian <fjahanian@apple.com> | |
595 | ||
596 | Radar 4281748 | |
597 | * objc-act.c (objc_check_global_decl): New | |
598 | ||
b27e241e | 599 | 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com> |
600 | ||
601 | * objc-act.c (objc_is_reserved_word): Removed. | |
602 | ||
03fc2271 | 603 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
604 | ||
605 | * objc-act.c (objc_add_method_declaration): Handle and ignore | |
606 | attributes. | |
607 | (objc_start_method_definition): Likewise. | |
608 | (objc_generate_cxx_ctor_or_dtor): Pass NULL attributes to ctor/dtor. | |
609 | (objc_build_keyword_decl): Handle and ignore attributes. | |
610 | ||
cc7d6aed | 611 | 2010-09-28 Richard Henderson <rth@redhat.com> |
612 | ||
613 | * objc-act.c (objc_eh_personality): Use targetm.except_unwind_info. | |
614 | ||
a336eb4b | 615 | 2010-09-28 Iain Sandoe <iains@gcc.gnu.org> |
616 | ||
617 | * objc-act.c (objc_start_class_interface): Handle and ignore attributes. | |
618 | (objc_start_category_interface): Likewise. | |
619 | (objc_start_protocol): Likewise. | |
620 | ||
ea446b0b | 621 | 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com> |
622 | ||
623 | Merge from 'apple/trunk' branch on FSF servers. | |
624 | ||
625 | 2005-08-23 Stuart Hastings <stuart@apple.com> | |
626 | Ziemowit Laski <zlaski@apple.com> | |
627 | ||
628 | Radar 4209854 | |
629 | * objc-act.c (objc_decay_parm_type): New function. | |
630 | (get_arg_type_list): Decay types for all named arguments. | |
631 | (objc_push_parm): Rebuild the PARM_DECL if its type has | |
632 | been decayed. | |
633 | ||
c4bdb14e | 634 | 2010-09-28 Nicola Pero <nicola@nicola.brainstorm.co.uk> |
635 | ||
636 | * objc-act.c (encode_type): Fixed encoding enums with the next | |
637 | runtime. | |
638 | ||
a198e083 | 639 | 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com> |
640 | ||
641 | Merge from 'apple/trunk' branch on FSF servers. | |
642 | ||
643 | 2005-07-18 Ziemowit Laski <zlaski@apple.com> | |
644 | ||
645 | Radar 4175534 | |
646 | * objc-act.c (objc_compare_types): A new silent comparison | |
647 | mode (-4), differing from regular comparison (-3) in that | |
648 | 'false' is returned instead of issuing warnings. | |
649 | ||
eb855c7a | 650 | 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com> |
651 | ||
652 | * objc-act.c (encode_type): Do not add 'r' with the next runtime. | |
653 | (encode_aggregate_within): Reorganized code to be more readable. | |
654 | (encode_aggregate_fields): Updated second argument to be 'bool' | |
655 | instead of 'int'. | |
656 | ||
f8ee0563 | 657 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
658 | ||
659 | PR objc/45763 | |
660 | PR objc/25450 | |
661 | PR objc/25464 | |
662 | * objc-act.c: Improved comments for encoding functions. | |
663 | (encode_aggregate_within): For the GNU runtime, rewritten some | |
664 | obsfuscated code to clarify the various cases. | |
665 | (encode_aggregate): Function removed. | |
666 | (encode_array): Generate an error if asked to encode an incomplete | |
667 | array as part of generating instance variables. Else, when | |
668 | encoding an incomplete array inside a structure, encode it as an | |
669 | array of zero size. | |
670 | (encode_pointer): For the GNU runtime, fixed encoding 'BOOL *' as | |
671 | '^c' instead of '*'. | |
672 | (encode_gnu_bitfield): Encode enumerated types exactly in the same | |
673 | type as integer types instead of using a hardcoded 'i'. If asked | |
674 | to encode a non-integer type as a bitfield, do not abort | |
675 | compilation immediately; instead generate an error, then skip the | |
676 | type. | |
677 | (encode_type): Use a 'switch' instead of a sequence of 'if's. | |
678 | Added a 'default' clause that gets executed if the type can not be | |
679 | matched, and that encodes it as '?' (unknown) and produces a | |
680 | warning. For the GNU runtime, encode enumerated types exactly in | |
681 | the same way as integer types instead of using a hardcoded 'i'. | |
682 | Encode long double as 'D'. Encode 128-bit integers as 'T' or 't'. | |
683 | Encode C++ reference types as pointers. Call encode_vector to | |
684 | encode vectors. | |
685 | (encode_vector): New function. | |
686 | ||
687 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> | |
688 | ||
689 | Merge from 'apple/trunk' branch on FSF servers. I modified the | |
690 | changes to be used only when compiling for the NeXT runtime. | |
691 | ||
692 | 2005-10-10 Fariborz Jahanian <fjahanian@apple.com> | |
693 | ||
694 | Radar 4301047 | |
695 | ||
696 | * objc-act.c (encode_type): Remove the hack. | |
697 | ||
698 | 2005-07-20 Ziemowit Laski <zlaski@apple.com> | |
699 | ||
700 | Radar 4136935 | |
701 | * objc-act.c (pointee_is_readonly): New function. | |
702 | (encode_pointer, encode_aggregate_within, encode_type): | |
703 | Attempt to emulate GCC 3.3 when generating type encodings. | |
704 | ||
4abfc532 | 705 | 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com> |
706 | ||
707 | Merge from 'apple/trunk' branch on FSF servers. | |
708 | ||
709 | 2005-12-15 Fariborz Jahanian <fjahanian@apple.com> | |
710 | ||
711 | Radar 4229905 | |
712 | * objc-act.c (objc_have_common_types): New function. | |
713 | ||
714 | 2005-06-22 Ziemowit Laski <zlaski@apple.com> | |
715 | ||
716 | Radar 4154928 | |
717 | * objc-act.c (objc_common_type): New function. | |
718 | ||
059410d7 | 719 | 2010-09-27 Richard Guenther <rguenther@suse.de> |
720 | ||
721 | * objc-act.c (objc_get_class_reference): Use CP_TYPE_CONTEXT. | |
722 | (objc_is_global_reference_p): Use DECL_FILE_SCOPE_P. | |
723 | ||
5ed38d93 | 724 | 2010-09-26 Nicola Pero <nicola.pero@meta-innovation.com> |
725 | ||
726 | * objc-act.c: Removed historical, obsolete comment at the top of | |
727 | the file. | |
728 | ||
d4a8fb25 | 729 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
730 | ||
731 | PR objc/23710 | |
732 | * objc-act.c (objc_start_method_definition): Do not abort upon a | |
733 | 'method definition not in @implementation context' error. Return | |
734 | 'false' instead. | |
735 | ||
e93ea189 | 736 | 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com> |
737 | ||
738 | PR objc/25965 | |
739 | * objc-act.c (objc_get_interface_ivars): New function. | |
740 | (objc_collecting_ivars): New variable. | |
741 | (continue_class): Set and reset objc_collecting_ivars for context. | |
742 | ||
b24ba8fa | 743 | 2010-09-15 Nicola Pero <nicola.pero@meta-innovation.com> |
744 | ||
745 | Merge from 'apple/trunk' branch on FSF servers. | |
746 | ||
747 | 2006-03-09 Fariborz Jahanian <fjahanian@apple.com> | |
748 | ||
749 | Radar 4457381 | |
750 | * objc/objc-act.c (objc_finish_message_expr): Look for message in | |
751 | @class's protocol list. | |
752 | ||
753 | 2006-02-07 Fariborz Jahanian <fjahanian@apple.com> | |
754 | ||
755 | Radar 4219590 | |
756 | * objc/objc-act.c (objc_start_method_definition): Initialize | |
757 | break/continue labels. | |
758 | ||
759 | 2005-08-22 Ziemowit Laski <zlaski@apple.com> | |
760 | ||
761 | Radar 4174166 | |
762 | * objc-act.c (objc_compare_types): Compare function | |
763 | pointers; indicate success if the right-hand side has | |
764 | a return type that is covariant, and the argument types | |
765 | contravariant, with those of the left side. | |
766 | ||
767 | 2005-08-22 Ziemowit Laski <zlaski@apple.com> | |
768 | ||
769 | Radar 4216500 | |
770 | * objc-act.c (objc_get_protocol_qualified_type): When looking | |
771 | at a typedef, retrieve the precise type it describes (rather | |
772 | than merely looking up a class by name). | |
773 | ||
48ca71c2 | 774 | 2010-09-10 Nicola Pero <nicola.pero@meta-innovation.com> |
775 | ||
776 | * objc/objc-act.c (objc_begin_try_stmt): Generate an error if | |
777 | -fobjc-exceptions was not used. (objc_build_throw_stmt): Same | |
778 | change. | |
779 | ||
1767a056 | 780 | 2010-07-15 Nathan Froyd <froydnj@codesourcery.com> |
781 | ||
782 | * objc-act.c: Carefully replace TREE_CHAIN with DECL_CHAIN. | |
783 | ||
c4796e8b | 784 | 2010-07-10 Iain Sandoe <iains@gcc.gnu.org> |
785 | ||
786 | PR objc/44140 | |
787 | * objc-act.c: build_objc_string_decl() remove declaration. | |
788 | (finish_var_decl): Remove forcing of var output and marking | |
789 | as "Used". | |
790 | (init_def_list): Use integer_zero_node. | |
791 | (init_objc_symtab): Use integer_zero_node, make the short | |
792 | integer type specific on relevant nodes. | |
793 | (generate_objc_symtab_decl): Remove call to | |
794 | forward_declare_categories(). Use null_pointer_node where | |
795 | appropriate. | |
796 | (build_module_descriptor): Comment and mark this item as | |
797 | DECL_PRESERVE_P. | |
798 | (generate_static_references): Use gcc_unreachable instead of | |
799 | abort (). | |
800 | (diagnose_missing_method): New. | |
801 | (build_next_selector_translation_table): New. | |
802 | (build_gnu_selector_translation_table): New. | |
803 | (add_objc_string): Merge code from build_objc_string_decl... | |
804 | ... and delete build_objc_string_decl(). | |
805 | (generate_dispatch_table): Make integer types explicit. | |
806 | (generate_category): Pass implent and arrange for the data | |
807 | to be extracted within the routine. Do not start new vars, | |
808 | but finish the ones collcted during parsing. | |
809 | (generate_shared_structures): Likewise. | |
810 | (finish_objc): Reorder code so that we finish variables before | |
811 | referencing them. Save the global data before calling meta-data | |
812 | creation routines, and pass the current reference to the two | |
813 | main routines. Only call generate_objc_image_info () for the | |
814 | NeXT runtime. | |
815 | (generate_classref_translation_entry): Comment on and make this | |
816 | item DECL_PRESERVE_P. | |
817 | (handle_class_ref): Use varpool interfaces, comment on and make | |
818 | this item DECL_PRESERVE_P. | |
819 | (handle_impent): Likewise. | |
820 | (generate_objc_image_info): Only generate when the content is | |
821 | non-zero. Make integer types explict. | |
822 | ||
6ab3a6e6 | 823 | 2010-07-03 Nathan Froyd <froydnj@codesourcery.com> |
824 | ||
825 | PR objc/24867 | |
826 | * objc-act.c (build_sized_array_type): New function. | |
827 | (add_objc_string): Use it. | |
828 | (generate_protocol_list): Likewise. | |
829 | (generate_objc_image_info): Likewise. | |
830 | (add_field_decl): New function. | |
831 | (objc_build_struct): Use a VEC rather than building a TREE_LIST. | |
832 | (generate_struct_by_value_array): Use add_field_decl. | |
833 | (build_objc_symtab_template): Likewise. | |
834 | (build_module_descriptor): Likewise. | |
835 | (build_objc_exception_stuff): Likewise. | |
836 | (build_protocol_template): Likewise. | |
837 | (build_method_prototype_list_template): Likewise. | |
838 | (build_method_prototype_template): Likewise. | |
839 | (build_category_template): Likewise. | |
840 | (build_selector_template): Likewise. | |
841 | (build_class_template): Likewise. | |
842 | (build_super_template): Likewise. | |
843 | (build_ivar_template): Likewise. | |
844 | (build_ivar_list_template): Likewise. | |
845 | (build_method_list_template): Likewise. | |
846 | (build_method_template): Likewise. | |
847 | ||
596981c8 | 848 | 2010-06-28 Steven Bosscher <steven@gcc.gnu.org> |
849 | ||
850 | * objc-act.c: Do not include except.h. | |
851 | ||
ba72912a | 852 | 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com> |
853 | ||
854 | * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Use typed GC | |
855 | allocation. | |
856 | ||
857 | * objc-act.c (objc_volatilize_decl): Likewise. | |
858 | (objc_build_string_object): Likewise. | |
859 | (hash_init): Likewise. | |
860 | (hash_enter): Likewise. | |
861 | (hash_add_attr): Likewise. | |
862 | (add_class): Likewise. | |
863 | (start_class): Likewise. | |
864 | ||
7bedc3a0 | 865 | 2010-06-05 Steven Bosscher <steven@gcc.gnu.org> |
866 | ||
867 | * objc-act.c: Update include path for moved files. | |
868 | * objc-lang.c: Likewise. | |
869 | * config-lang.in: Update paths in gtfiles for files in c-family/. | |
870 | ||
70b3bc87 | 871 | 2010-06-01 Nathan Froyd <froydnj@codesourcery.com> |
872 | ||
873 | * objc-act.c (build_next_objc_exception_stuff): Give setjmp a | |
874 | varargs type instead of a zero-argument type. | |
875 | ||
a2c73aa9 | 876 | 2010-05-30 Nathan Froyd <froydnj@codesourcery.com> |
877 | ||
878 | * objc-act.c (synth_module_prologue): Use build_function_type_list | |
879 | instead of build_function_type. | |
880 | (build_module_initializer_routine): Likewise. | |
881 | (build_next_objc_exception_stuff): Likewise. | |
882 | (build_objc_exception_stuff): Likewise. | |
883 | ||
852f689e | 884 | 2010-05-27 Joseph Myers <joseph@codesourcery.com> |
885 | ||
886 | * objc-act.c: Include diagnostic-core.h instead of diagnostic.h. | |
887 | * Make-lang.in (objc/objc-act.o): Update dependencies. | |
888 | ||
c4b9c21a | 889 | 2010-05-25 Steven Bosscher <steven@gcc.gnu.org> |
890 | ||
891 | * objc-act.h: Do not include gimple.h. | |
892 | * objc-act.c: Do not include rtl.h, expr.h, libfuncs.h, and tm_p.h. | |
893 | Include gimple.h. Explain why except.h has to be included. | |
894 | * objc-lang.c: Do not include diagnostics.h. | |
895 | * Make-lang.in: Update dependencies. | |
896 | ||
d3f0a7c5 | 897 | 2010-05-25 Nathan Froyd <froydnj@codesourcery.com> |
898 | ||
899 | * objc-act.c (objc_build_constructor): Adjust OBJCPLUS impedance | |
900 | mismatch code for VECs. | |
901 | ||
4c6b0360 | 902 | 2010-05-25 Nathan Froyd <froydnj@codesourcery.com> |
903 | ||
904 | * objc-act.c (objc_build_constructor): Take a VEC instead of a tree. | |
905 | Use build_constructor instead of build_constructor_from_list. | |
906 | (objc_build_string_object): Build a VEC argument for | |
907 | objc_build_constructor. | |
908 | (init_def_list): Likewise. | |
909 | (init_objc_symtab): Likewise. | |
910 | (init_module_descriptor): Likewise. | |
911 | (generate_static_references): Likewise. | |
912 | (build_selector_translation_table): Likewise. | |
913 | (build_descriptor_table_initializer): Likewise. | |
914 | (generate_descriptor_table): Likewise. | |
915 | (build_protocol_initializer): Likewise. | |
916 | (build_ivar_list_initializer): Likewise. | |
917 | (generate_ivars_list): Likewise. | |
918 | (build_dispatch_table_initializer): Likewise. | |
919 | (generate_dispatch_table): Likewise. | |
920 | (generate_protocol_list): Likewise. | |
921 | (build_category_initializer): Likewise. | |
922 | (build_shared_structure_initializer): Likewise. | |
923 | (generate_objc_image_info): Likewise. | |
924 | ||
da1ad6a6 | 925 | 2010-04-30 Iain Sandoe <iains@gcc.gnu.org> |
926 | ||
927 | PR objc++/32052 | |
928 | * objc-act.c (encode_aggregate_within): Encode structure tags | |
929 | with template args for ObjC++. | |
930 | ||
3f9da559 | 931 | 2010-04-30 Steven Bosscher <steven@gcc.gnu.org> |
932 | ||
933 | * objc-act.c: Do not include varray.h. | |
934 | ||
abc6c64f | 935 | 2010-04-07 Jakub Jelinek <jakub@redhat.com> |
936 | ||
937 | PR c/18624 | |
938 | * objc-act.c (finish_var_decl, objc_begin_catch_clause, | |
939 | really_start_method, get_super_receiver, handle_class_ref): Set | |
940 | DECL_READ_P in addition to TREE_USED. | |
941 | ||
421351fb | 942 | 2010-04-07 Iain Sandoe <iains@gcc.gnu.org> |
943 | ||
944 | PR objc/35996 | |
945 | * objc-act.c (objc_init): Warn that -fobjc-gc is ignored for | |
946 | -fgnu-runtime and set flag_objc_gc to zero. | |
947 | ||
1ecc1105 | 948 | 2010-04-07 Iain Sandoe <iains@gcc.gnu.org> |
949 | ||
950 | PR objc++/23716 | |
951 | * objc-act.c (build_module_initializer_routine): Make the argument | |
952 | to objc_start_function NULL_TREE when compiling ObjC++. | |
953 | ||
44434890 | 954 | 2010-02-18 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk> |
955 | Mike Stump <mikestump@comcast.net> | |
956 | ||
8f071285 | 957 | PR objc/43061 |
44434890 | 958 | * objc-act.c (finish_var_decl): Set the generated symbols as "used". |
959 | ||
535059dc | 960 | 2009-12-17 Shujing Zhao <pearly.zhao@oracle.com> |
961 | ||
962 | * objc-act.c (objc_substitute_decl, build_ivar_reference, | |
963 | get_super_receiver): Update build_indirect_ref calls. | |
964 | ||
2b03c8ee | 965 | 2009-11-28 Jakub Jelinek <jakub@redhat.com> |
966 | ||
f018d957 | 967 | * objc-act.c (generate_shared_structures): Remove unused sc_spec and |
968 | decl_specs variables. | |
969 | (objc_build_message_expr): Remove unused loc variable. | |
970 | (objc_finish_message_expr): Remove unused saved_rtype variable. | |
971 | (encode_field_decl): Remove unused type variable. | |
972 | ||
2b03c8ee | 973 | PR obj-c++/42156 |
974 | * objc-act.c (objc_build_struct): INIT_TYPE_OBJC_INFO for | |
975 | type variants that don't have it initialized yet. | |
976 | ||
078c3ef3 | 977 | 2009-09-14 Jan Hubicka <jh@suse.cz> |
978 | ||
979 | * objc-act.c (objc_add_static_instance): Do not set DECL_COMMON. | |
980 | ||
e38def9c | 981 | 2009-09-14 Richard Henderson <rth@redhat.com> |
982 | ||
983 | * objc-act.c (objc_init_exceptions): Don't call | |
984 | default_init_unwind_resume_libfunc. | |
985 | (objc_build_exc_ptr): Use __builtin_eh_pointer. | |
986 | ||
58d82cd0 | 987 | 2009-09-13 Richard Guenther <rguenther@suse.de> |
988 | Rafael Avila de Espindola <espindola@google.com> | |
989 | ||
990 | * objc-act.c (objc_eh_runtime_type): Export. | |
991 | (objc_init_exceptions): Remove. Move warning code ... | |
992 | (objc_begin_try_stmt): ... here | |
993 | (objc_build_throw_stmt): ... and here. | |
994 | (objc_eh_personality_decl): New. | |
995 | (objc_eh_personality): New function. | |
996 | * objc-act.h (objc_eh_runtime_type): Declare. | |
997 | (objc_eh_personality): Likewise. | |
998 | * objc-lang.c (LANG_HOOKS_EH_RUNTIME_TYPE): Define. | |
999 | (LANG_HOOKS_EH_PERSONALITY): Likewise. | |
1000 | ||
34e5cced | 1001 | 2009-09-03 Diego Novillo <dnovillo@google.com> |
1002 | ||
1003 | * objc-lang.c (lang_hooks): Remove const qualifier. | |
1004 | ||
874993a5 | 1005 | 2009-08-20 Richard Guenther <rguenther@suse.de> |
1006 | ||
1007 | * objc-act.c: Include c-lang.h | |
1008 | * Make-lang.in (objc/objc-act.o): Add c-lang.h dependency. | |
1009 | ||
389dd41b | 1010 | 2009-07-17 Aldy Hernandez <aldyh@redhat.com> |
1011 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
1012 | ||
1013 | PR 40435 | |
1014 | * objc-act.c: Add location argument to all calls to | |
1015 | build_fold_addr_expr. | |
1016 | ||
c02b6f4e | 1017 | 2009-07-14 Taras Glek <tglek@mozilla.com> |
1018 | Rafael Espindola <espindola@google.com> | |
1019 | ||
1020 | * Make-lang.in (objc.install-plugin): New target for | |
1021 | installing plugin headers. | |
1022 | ||
1cf1742e | 1023 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1024 | ||
1025 | * objc-act.c (next_sjlj_build_catch_list): Replace EXPR_LOCUS by | |
1026 | EXPR_LOCATION. | |
1027 | ||
712d2297 | 1028 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1029 | ||
1030 | * objc-act.c: Replace %J by an explicit location. Update all | |
1031 | calls. | |
1032 | ||
5fb6a912 | 1033 | 2009-07-07 Manuel López-Ibáñez <manu@gcc.gnu.org> |
1034 | ||
1035 | * objc-act.c: Replace %H by an explicit location. Update all | |
1036 | calls. | |
1037 | ||
61a9d3ca | 1038 | 2009-06-22 Steven Bosscher <steven@gcc.gnu.org> |
1039 | ||
1040 | PR objc/28050 | |
1041 | * objc-act.c (objc_build_message_args): Return if ARGS is the | |
1042 | error_mark_node. | |
1043 | ||
843bd2fa | 1044 | 2009-06-19 Ian Lance Taylor <iant@google.com> |
1045 | ||
1046 | * objc-act.c (objc_in_struct, objc_struct_types): Remove. | |
1047 | (objc_struct_info): New static variable. | |
1048 | (objc_start_struct): Pass &objc_struct_info, not &objc_in_struct | |
1049 | and &objc_struct_types, to start_struct. | |
1050 | (objc_finish_struct): Likewise for finish_struct. | |
1051 | ||
f805d53d | 1052 | 2009-06-15 Ian Lance Taylor <iant@google.com> |
1053 | ||
1054 | * objc-act.c (objc_start_function): Don't set | |
1055 | label_context_stack_se or label_context_stack_vm. | |
1056 | ||
e60a6f7b | 1057 | 2009-06-12 Aldy Hernandez <aldyh@redhat.com> |
1058 | ||
1059 | * objc-act.c (finish_var_decl): Pass location to finish_decl. | |
1060 | (objc_get_parm_info): Same. | |
1061 | (get_super_receiver): Same. | |
1062 | * objc-act.c (objc_build_component_ref): Pass location to | |
1063 | build_compound_ref. | |
1064 | (build_module_initializer_routine): Pass location to | |
1065 | c_end_compound_stmt. | |
1066 | (objc_generate_static_init_call): Pass location to build_stmt. | |
1067 | (build_typed_selector_reference): New location argument. | |
1068 | (build_selector_reference): Same. | |
1069 | (objc_substitute_decl): Pass location to build_array_ref. | |
1070 | (next_sjlj_build_try_catch_finally): Pass location to build_stmt. | |
1071 | (objc_begin_catch_clause): Same. | |
1072 | (objc_finish_try_stmt): Same. | |
1073 | (objc_finish_catch_clause): Pass location to c_end_compound_stmt. | |
1074 | (objc_build_throw_stmt): New argument. | |
1075 | (generate_shared_structures): Pass location to build_c_cast. | |
1076 | (objc_build_message_expr): Use local location. | |
1077 | (objc_finish_message_expr): Use input_location. | |
1078 | (build_objc_method_call): New argument. | |
1079 | (objc_build_selector_expr): Same. | |
1080 | (get_super_receiver): Pass location to build_c_cast, | |
1081 | build_modify_expr, build_compound_expr. | |
1082 | * objc-act.c: Add location to all calls to start_struct, build_decl, | |
1083 | finish_struct. | |
1084 | ||
d5b637fa | 1085 | 2009-06-09 Ian Lance Taylor <iant@google.com> |
1086 | ||
1087 | * objc-act.c (objc_gimplify_expr): Change return type to int. | |
1088 | * objc-act.h: Update declaration. | |
1089 | ||
71278019 | 1090 | 2009-06-08 Alexandre Oliva <aoliva@redhat.com> |
1091 | ||
1092 | * objc-act.c (objc_init): Skip print_struct_values during | |
1093 | -fcompare-debug-second. | |
1094 | ||
cd819d2f | 1095 | 2009-06-03 Ian Lance Taylor <iant@google.com> |
1096 | ||
1097 | * Make-lang.in (cc1obj-checksum.o): Depend upon $(CONFIG_H) and | |
1098 | $(SYSTEM_H). | |
1099 | ||
40b6e20e | 1100 | 2009-05-27 Ian Lance Taylor <iant@google.com> |
1101 | ||
1102 | * Make-lang.in (cc1obj-dummy$(exeext)): Change $(COMPILER) to | |
1103 | $(LINKER). | |
1104 | (cc1obj$(exeext)): Likewise. | |
1105 | ||
585d4848 | 1106 | 2009-05-26 Ian Lance Taylor <iant@google.com> |
1107 | ||
1108 | * Make-lang.in (cc1obj-dummy$(exeext)): Use $(COMPILER). | |
1109 | (cc1obj$(exeext)): Likewise. | |
1110 | ||
f352a3fb | 1111 | 2009-05-20 Ian Lance Taylor <iant@google.com> |
1112 | ||
1113 | * objc-act.c (objc_generate_cxx_ctor_or_dtor): Pass NULL rather | |
1114 | than NULL_TREE to build_special_member_call. | |
1115 | ||
0b09525f | 1116 | 2009-05-10 Ian Lance Taylor <iant@google.com> |
1117 | ||
1118 | * objc-act.c (objc_building_struct): New static variable. | |
1119 | (objc_in_struct, objc_struct_types): New static variables. | |
1120 | (objc_start_struct, objc_finish_struct): New static functions. | |
1121 | (generate_struct_by_value_array): Call objc_start_struct instead | |
1122 | of start_struct, and call objc_finish_struct instead of | |
1123 | finish_struct. | |
1124 | (objc_build_struct, build_objc_symtab_template): Likewise. | |
1125 | (build_module_descriptor): Likewise. | |
1126 | (build_next_objc_exception_stuff): Likewise. | |
1127 | (build_protocol_template): Likewise. | |
1128 | (build_method_prototype_list_template): Likewise. | |
1129 | (build_method_prototype_template): Likewise. | |
1130 | (build_category_template, build_selector_template): Likewise. | |
1131 | (build_class_template, build_super_template): Likewise. | |
1132 | (build_ivar_template, build_ivar_list_template): Likewise. | |
1133 | (build_method_list_template): Likewise. | |
1134 | (build_method_template): Likewise. | |
1135 | ||
a608187f | 1136 | 2009-05-10 Joseph Myers <joseph@codesourcery.com> |
1137 | ||
1138 | * objc-act.c: Include intl.h. | |
1139 | (objc_lookup_protocol): Use complete sentences for diagnostics | |
1140 | with %qE for identifiers and translating results of | |
1141 | gen_type_name_0 to locale character set. | |
1142 | (objc_check_decl, check_protocol_recursively, | |
1143 | lookup_and_install_protocols, objc_build_string_object, | |
1144 | objc_get_class_reference, objc_declare_alias, objc_declare_class, | |
1145 | objc_get_class_ivars, error_with_ivar, check_duplicates, | |
1146 | objc_finish_message_expr, objc_build_protocol_expr, | |
1147 | objc_build_selector_expr, build_ivar_reference, objc_add_method, | |
1148 | add_category, add_instance_variable, objc_is_public, | |
1149 | check_methods, check_methods_accessible, check_protocol, | |
1150 | start_class, finish_class, start_protocol, really_start_method, | |
1151 | get_super_receiver, objc_lookup_ivar): Use %E and %qE for | |
1152 | identifiers in diagnostics. Translate generated text to locale | |
1153 | character set as needed. | |
1154 | (check_protocol, check_protocols): Change name parameter to type | |
1155 | tree. | |
1156 | (lang_report_error_function): Remove. | |
1157 | ||
bc620c5c | 1158 | 2009-04-27 Ian Lance Taylor <iant@google.com> |
1159 | ||
1160 | * objc-act.c (objc_gimplify_expr): Add casts to enum type. | |
1161 | ||
8458f4ca | 1162 | 2009-04-24 Ian Lance Taylor <iant@google.com> |
1163 | ||
1164 | * objc-act.c (get_super_receiver): Update calls to | |
1165 | build_modify_expr to pass new argument. | |
1166 | ||
fb1e4f4a | 1167 | 2009-04-21 Taras Glek <tglek@mozilla.com> |
1168 | ||
1169 | * objc-act.c: Update GTY annotations to new syntax | |
1170 | * objc-act.h: Likewise | |
1171 | ||
7dfbd804 | 1172 | 2009-04-21 Joseph Myers <joseph@codesourcery.com> |
1173 | ||
1174 | * ChangeLog: Add copyright and license notices. | |
1175 | ||
b9c74b4d | 1176 | 2009-04-20 Ian Lance Taylor <iant@google.com> |
1177 | ||
1178 | * objc-act.c (objc_rewrite_function_call): Change parameter from | |
1179 | params to first_param. Change all callers. | |
1180 | ||
a3cad4e4 | 1181 | 2009-03-30 Dominique d'Humieres <dominiq@lps.ens.fr> |
1182 | ||
1183 | PR bootstrap/39583 | |
1184 | * objc-act.c (in_late_binary_op): Define for Objective-C++. | |
1185 | ||
a75b1c71 | 1186 | 2009-03-29 Joseph Myers <joseph@codesourcery.com> |
1187 | ||
1188 | PR c/456 | |
1189 | PR c/5675 | |
1190 | PR c/19976 | |
1191 | PR c/29116 | |
1192 | PR c/31871 | |
1193 | PR c/35198 | |
1194 | * objc-act.c (objc_finish_try_stmt): Set in_late_binary_op. | |
1195 | ||
9322d72e | 1196 | 2008-12-05 Sebastian Pop <sebastian.pop@amd.com> |
29bb3e39 | 1197 | |
1198 | PR bootstrap/38262 | |
1199 | * Make-lang.in (cc1obj-dummy, cc1obj): Add BACKENDLIBS, | |
1200 | remove GMPLIBS. | |
1201 | ||
b6889cb0 | 1202 | 2008-10-06 Aldy Hernandez <aldyh@redhat.com> |
1203 | ||
1204 | * objc-act.c (objc_build_string_object): Pass location to | |
1205 | build_unary_op. | |
1206 | (init_def_list): Same. | |
1207 | (init_objc_symtab): Same. | |
1208 | (init_module_descriptor): Same. | |
1209 | (build_module_initializer_routine): Same. | |
1210 | (generate_static_references): Same. | |
1211 | (build_typed_selector_reference): Same. | |
1212 | (add_objc_string): Same. | |
1213 | (objc_substitute_decl): Same. | |
1214 | (objc_build_ivar_assignment): Same. | |
1215 | (objc_build_global_assignment): Same. | |
1216 | (objc_build_strong_cast_assignment): Same. | |
1217 | (generate_protocols): Same. | |
1218 | (build_protocol_initializer): Same. | |
1219 | (build_dispatch_table_initializer): Same. | |
1220 | (generate_protocol_list): Same. | |
1221 | (build_category_initializer): Same. | |
1222 | (build_shared_structure_initializer): Same. | |
1223 | (generate_shared_structures): Same. | |
1224 | (objc_build_protocol_expr): Same. | |
1225 | (build_ivar_reference): Same. | |
1226 | (get_super_receiver): Same. | |
1227 | ||
8e70fb09 | 1228 | 2008-09-23 Aldy Hernandez <aldyh@redhat.com> |
1229 | ||
1230 | * objc-act.c (next_sjlj_build_enter_and_setjmp): Call | |
1231 | c_common_truthvalue_conversion with location. | |
1232 | (next_sjlj_build_catch_list): Same. | |
1233 | (next_sjlj_build_try_catch_finally): Same. | |
1234 | ||
4cd62850 | 1235 | 2008-09-17 Andrew Pinski <andrew_pinski@playstation.sony.com> |
1236 | ||
1237 | PR objc/37460 | |
1238 | * objc-lang.c (LANG_HOOKS_GET_CALLEE_FNDECL): Don't define. | |
1239 | * objc-act.h (objc_get_callee_fndecl): Remove prototype. | |
1240 | * objc-act.c (objc_get_callee_fndecl): Kill. | |
1241 | ||
73b5e722 | 1242 | 2008-09-17 Jan Hubicka <jh@suse.cz> |
1243 | ||
1244 | PR c++/18071 | |
1245 | * objc/objc-act.c (objc_finish_method_definition): Do not set | |
1246 | DECL_INLINE. | |
1247 | ||
dda49785 | 1248 | 2008-09-01 Aldy Hernandez <aldyh@redhat.com> |
1249 | ||
1250 | * objc-act.c (build_typed_selector_reference): Pass input_location to | |
1251 | build_unary_op calls. | |
1252 | (build_selector_reference): Same, but to build_array_ref. | |
1253 | (objc_substitute_decl): Same. | |
1254 | (build_ivar_reference): Same, but to build_indirect_ref. | |
1255 | (get_super_receiver): Same. | |
1256 | ||
75a70cf9 | 1257 | 2008-07-28 Richard Guenther <rguenther@suse.de> |
1258 | ||
1259 | Merge from gimple-tuples-branch. | |
1260 | ||
1261 | 2008-07-18 Aldy Hernandez <aldyh@redhat.com> | |
1262 | ||
1263 | * Make-lang.in (objc-lang.o): Depend on GIMPLE_H. | |
1264 | (objc-act.o): Rename TREE_GIMPLE_H to GIMPLE_H. | |
1265 | * objc-act.h: Include gimple.h instead of tree-gimple.h. | |
1266 | * ipa-reference.c: Same. | |
1267 | ||
1268 | 2007-11-10 Aldy Hernandez <aldyh@redhat.com> | |
1269 | ||
1270 | * objc-act.c (objc_gimplify_expr): Change pre and post to sequences. | |
1271 | * objc-act.h (objc_gimplify_expr): Change prototype accordingly. | |
1272 | ||
08cc44e7 | 1273 | 2008-07-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> |
1274 | ||
1275 | * objc-act.c: Fix comment typos. | |
1276 | ||
ceb0f408 | 1277 | 2008-07-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1278 | ||
1279 | * objc-act.c (objc_start_class_interface, | |
1280 | objc_start_category_interface, objc_start_class_implementation, | |
1281 | objc_start_category_implementation, objc_build_struct, | |
1282 | generate_static_references, build_private_template, | |
1283 | lookup_category, objc_add_method, add_category, | |
1284 | add_instance_variable, objc_is_public, conforms_to_protocol, | |
1285 | start_class, continue_class, finish_class): Avoid C++ keywords. | |
1286 | ||
b4d6f57b | 1287 | 2008-07-14 Jason Merrill <jason@redhat.com> |
1288 | ||
1289 | PR objc++/36723 | |
1290 | * objc-act.c (objc_build_constructor): Update C++ tweak. | |
1291 | ||
d3eff7bb | 1292 | 2007-07-14 Rafael Ávila de Espíndola <espindola@google.com> |
7cb6f926 | 1293 | |
1294 | * objc-act.c (synth_module_prologue): Use TREE_NO_WARNING instead | |
1295 | of DECL_IN_SYSTEM_HEADER. | |
1296 | ||
5c6e5756 | 1297 | 2008-07-11 Ian Lance Taylor <iant@google.com> |
1298 | ||
1299 | * objc-act.c (objc_is_reserved_word): Always check for RID_CLASS, | |
1300 | etc., not just when OBJCPLUS is defined. | |
1301 | ||
25a1c410 | 1302 | 2008-06-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1303 | ||
1304 | * objc-act.c (setup_string_decl, objc_build_string_object, | |
1305 | hash_interface, eq_interface, objc_begin_try_stmt, | |
1306 | encode_method_prototype, build_ivar_list_initializer, | |
1307 | objc_build_encode_expr): Fix for -Wc++-compat. | |
1308 | ||
92cce2b2 | 1309 | 2008-05-12 Tomas Bily <tbily@suse.cz> |
1310 | ||
1311 | * objc-act.c (objc_generate_write_barrier, objc_finish_message_expr): | |
1312 | Use CONVERT_EXPR_P. | |
1313 | ||
c7d4e749 | 1314 | 2008-04-23 Paolo Bonzini <bonzini@gnu.org> |
1315 | ||
1316 | * objc-act.c (objc_build_string_object): Don't set TREE_INVARIANT. | |
1317 | ||
6fb2153a | 1318 | 2008-04-03 Tom Tromey <tromey@redhat.com> |
1319 | ||
1320 | * Make-lang.in (objc_OBJS): New variable. | |
1321 | ||
21886706 | 1322 | 2008-03-27 Tom Tromey <tromey@redhat.com> |
1323 | ||
1324 | * Make-lang.in: Revert automatic dependency patch. | |
1325 | ||
717ecce9 | 1326 | 2008-03-27 Douglas Gregor <doug.gregor@gmail.com> |
1327 | ||
1328 | PR obj-c++/35704 | |
1329 | * objc-act.c (objc_build_component_ref): Fix call to | |
1330 | finish_class_member_access_expr. | |
1331 | (objc_generate_cxx_ctor_or_dtor): Fix call to | |
1332 | build_special_member_call. | |
1333 | ||
e226f54f | 1334 | 2008-03-25 Andrew Pinski <pinskia@gmail.com> |
1335 | ||
1336 | PR objc/29197 | |
1337 | * objc-act.c (encode_type): Handle when type is error_mark_node. | |
1338 | (objc_push_parm): Handle when the type of parm is error_mark_node. | |
1339 | ||
277b05bb | 1340 | 2008-03-25 Tom Tromey <tromey@redhat.com> |
1341 | ||
1342 | * Make-lang.in (objc_OBJS): New variable. | |
1343 | (cc1obj-checksum.o, objc/objc-lang.o, objc/objc-act.o): Remove. | |
1344 | ||
3594ce91 | 1345 | 2008-03-21 Andreas Tobler <a.tobler@schweiz.org> |
1346 | ||
1347 | PR bootstrap/35660 | |
1348 | * objc-act.c (objc_generate_cxx_ctor_or_dtor): Rename IS_AGGR_TYPE to | |
1349 | MAYBE_CLASS_TYPE_P. | |
1350 | (objc_generate_cxx_cdtors): Likewise. | |
1351 | (add_instance_variable): Likewise. | |
1352 | ||
9c85a98a | 1353 | 2008-02-26 Tom Tromey <tromey@redhat.com> |
1354 | ||
1355 | * objc-act.c (objc_init): Remove old location code. | |
1356 | ||
6ca01c3b | 1357 | 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1358 | ||
1359 | PR other/35107 | |
1360 | * Make-lang.in (cc1obj-dummy, cc1obj): Add $(GMPLIBS). | |
1361 | ||
c3adda75 | 1362 | 2007-07-30 Nick Clifton <nickc@redhat.com> |
1363 | ||
1364 | * Make-lang.in: Change copyright header to refer to version 3 of | |
1365 | the GNU General Public License and to point readers at the | |
1366 | COPYING3 file and the FSF's license web page. | |
1367 | * lang-specs.h, objc-act.c, objc-tree.def, objc-act.h, | |
1368 | config-lang.in, objc-lang.c: Likewise. | |
1369 | ||
b7bf20db | 1370 | 2007-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1371 | ||
1372 | * objc-act.c (objc_get_callee_fndecl): Constify. | |
1373 | * objc-act.h (objc_get_callee_fndecl): Likewise. | |
1374 | ||
aae87fc3 | 1375 | 2007-07-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> |
1376 | ||
1377 | * objc-act.c (volatilized_hash, volatilized_eq, string_hash, | |
1378 | string_eq): Constify. | |
1379 | ||
2a3c85c8 | 1380 | 2007-04-04 Stuart Hastings <stuart@apple.com> |
1381 | ||
1382 | PR 31281 | |
1383 | * objc/objc-act.c (next_sjlj_build_catch_list): Delete volatile from rethrow decl. | |
1384 | ||
52df3169 | 1385 | 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com> |
1386 | ||
1387 | * Make-lang.in: Add dummy lang.install-pdf target. | |
1388 | ||
97419919 | 1389 | 2007-02-18 Kazu Hirata <kazu@codesourcery.com> |
1390 | ||
1391 | * objc/objc-act.c: Fix comment typos. | |
1392 | ||
c2f47e15 | 1393 | 2007-02-15 Sandra Loosemore <sandra@codesourcery.com> |
1394 | Brooks Moses <brooks.moses@codesourcery.com> | |
1395 | Lee Millward <lee.millward@codesourcery.com> | |
1396 | ||
1397 | * objc-act.c (receiver_is_class_object): Use new CALL_EXPR accessors. | |
1398 | (objc_get_callee_fndecl): Likewise. | |
1399 | ||
da2f0f2c | 1400 | 2007-01-23 Andrew Pinski <pinskia@gmail.com> |
1401 | ||
1402 | PR objc/27438 | |
1403 | * objc-act.c (objc_add_static_instance): Mark the decl as | |
1404 | TREE_USED. | |
1405 | ||
7eb56ad3 | 1406 | 2007-01-20 Andrew Pinski <pinskia@gmail.com> |
1407 | ||
1408 | PR objc/30479 | |
1409 | * objc-act.c (hash_interface): Use IDENTIFIER_HASH_VALUE instead | |
1410 | of htab_hash_pointer. | |
1411 | (lookup_interface): Likewise. | |
1412 | (add_class): Likewise. | |
1413 | ||
6753bca0 | 1414 | 2007-01-02 Douglas Gregor <doug.gregor@gmail.com> |
1415 | ||
1416 | * objc-act.c (objc_build_volatilized_type): Keep track of | |
1417 | canonical types. | |
1418 | (objc_get_protocol_qualified_type): Ditto. | |
1419 | ||
718149a3 | 1420 | 2006-11-02 Andreas Tobler <a.tobler@schweiz.org> |
1421 | ||
1422 | * objc-act.c (objc_finish_file): Remove ifdef clause for OBJCPLUS and | |
1423 | content where we called cp_finish_file. | |
1424 | ||
d3eff7bb | 1425 | 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> |
54be5d7e | 1426 | |
1427 | * objc-act.c (synth_module_prologue): Replace calls to | |
1428 | builtin_function with add_builtin_function. | |
1429 | (build_next_objc_exception_stuff): Replace calls to | |
1430 | builtin_function with add_builtin_function. | |
1431 | (build_objc_exception_stuff): Replace calls to | |
1432 | builtin_function with add_builtin_function. | |
1433 | ||
51f93521 | 1434 | 2006-10-10 Brooks Moses <bmoses@stanford.edu> |
1435 | ||
1436 | * Make-lang.in: Added empty "objc.pdf" target. | |
1437 | ||
ea028b59 | 1438 | 2006-09-26 Andrew Pinski <pinskia@physics.uc.edu> |
1439 | ||
1440 | PR objc/29195 | |
1441 | * objc-act.c (objc_push_parm): If we change the type of the | |
1442 | decl, relayout the decl. | |
1443 | ||
6db57367 | 1444 | 2006-09-19 Eric Christopher <echristo@apple.com> |
1445 | ||
1446 | * objc-act.c (JBLEN): Rename to OBJC_JBLEN, | |
1447 | default to something innocuous. | |
1448 | (build_next_objc_exception_stuff): Rename JBLEN. | |
1449 | ||
e85b0b9f | 1450 | 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de> |
1451 | ||
1452 | * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies. | |
1453 | ||
77874a3c | 1454 | 2006-07-19 Volker Reichelt <reichelt@igpm.rwth-aachen.de> |
1455 | ||
1456 | PR obj-c++/28434 | |
1457 | * objc-act.c (lookup_and_install_protocols): Skip error_mark_nodes. | |
1458 | ||
15b5961f | 1459 | 2006-06-06 Mike Stump <mrs@apple.com> |
1460 | ||
1461 | * objc-act.c: Remove prototype for objc_build_volatilized_type. | |
1462 | ||
8d6b10e2 | 1463 | 2006-05-24 Mike Stump <mrs@apple.com> |
1464 | ||
1465 | * objc-act.c (build_next_objc_exception_stuff): Use JBLEN instead of _JBLEN. | |
1466 | ||
ed672485 | 1467 | 2006-05-05 Volker Reichelt <reichelt@igpm.rwth-aachen.de> |
1468 | ||
1469 | PR objc/27240 | |
1470 | * objc-act.c (objc_is_public): Return early on invalid type. | |
1471 | ||
30f66f51 | 1472 | 2006-03-02 Fariborz Jahanian <fjahanian@apple.com> |
1473 | ||
1474 | * objc-act.c (init_module_descriptor): Remove file name from | |
1475 | module descriptor. | |
1476 | (gen_type_name_0): Fix ICE when issuing warning. | |
1477 | ||
d3eff7bb | 1478 | 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> |
9f30f9e7 | 1479 | * Make-lang.in (OBJC): Remove |
1480 | (OBJECTIVE-C): Remove | |
1481 | (objective-c): Remove | |
1482 | (.PHONY): Remove objective-c and ObjC | |
1483 | ||
0ee579cd | 1484 | 2005-12-14 Andrew Pinski <pinskia@physics.uc.edu> |
1485 | ||
1486 | PR objc/25360 | |
8d6b10e2 | 1487 | * objc/objc-act.c (encode_type): Encode Complex types as 'j' followed |
1488 | by the inner type. | |
0ee579cd | 1489 | |
c4e3ffb1 | 1490 | 2005-12-12 Andrew Pinski <pinskia@physics.uc.edu> |
1491 | ||
1492 | PR objc/25348 | |
1493 | * objc-act.c (encode_array): Handle arrays to zero sized types. | |
1494 | ||
d3eff7bb | 1495 | 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> |
ae6555f9 | 1496 | |
1497 | * Make-lang.in (objc.all.build, objc.install-normal): Remove. | |
1498 | ||
d3eff7bb | 1499 | 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com> |
758e52e0 | 1500 | |
1501 | * Make-lang.in: Remove all dependencies on s-gtype. | |
1502 | ||
a3a36c39 | 1503 | 2005-12-02 Richard Guenther <rguenther@suse.de> |
1504 | ||
1505 | * objc-act.c (objc_build_exc_ptr, next_sjlj_build_enter_and_setjmp | |
1506 | next_sjlj_build_exc_extract, next_sjlj_build_catch_list, | |
1507 | next_sjlj_build_try_catch_finally, objc_begin_catch_clause, | |
1508 | build_objc_method_call, objc_rewrite_function_call): Use buildN | |
1509 | instead of build. | |
1510 | ||
41cac6ed | 1511 | 2005-10-20 Geoffrey Keating <geoffk@apple.com> |
1512 | ||
1513 | * objc-act.c (synth_module_prologue): Clear TREE_NOTHROW | |
1514 | on objc_msgSend and like builtin functions. | |
1515 | ||
53d4f63c | 1516 | 2005-10-17 Andreas Krebbel <krebbel1@de.ibm.com> |
1517 | ||
fdf0e229 | 1518 | * objc-act.c (objc_build_component_ref): Adjust call to |
53d4f63c | 1519 | finish_class_member_access_expr due to a changed prototype. |
1520 | ||
1cff51e3 | 1521 | 2005-08-31 Andrew Pinski <pinskia@physics.uc.edu> |
1522 | ||
1523 | PR objc/23306 | |
1524 | * objc-act.c (generate_strings): Remove and move code to | |
1525 | finish decl to ... | |
1526 | (add_objc_string): here when creating a new string decl. | |
1527 | (finish_objc): Don't call generate_strings. | |
1528 | ||
c2400746 | 1529 | 2005-08-31 Andrew Pinski <pinskia@physics.uc.edu> |
1530 | ||
1531 | PR objc/23381 | |
1532 | * objc-act.c (next_sjlj_build_try_catch_finally): Set | |
1533 | TREE_SIDE_EFFECTS on catch_seq after building it. | |
1534 | ||
9d44cae2 | 1535 | 2005-08-09 Andrew Pinski <pinskia@physics.uc.edu> |
1536 | ||
1537 | part of PR objc/21992 | |
1538 | * objc-act.c (handle_class_ref): The ref decl is always referenced. | |
1539 | ||
c75b4594 | 1540 | 2005-07-20 Giovanni Bajo <giovannibajo@libero.it> |
1541 | ||
1542 | Make CONSTRUCTOR use VEC to store initializers. | |
1543 | * objc-act.c (objc_build_constructor): Use build_constructor_from_list | |
1544 | instead of build_constructor. | |
1545 | ||
5ded8c6f | 1546 | 2005-07-08 Daniel Berlin <dberlin@dberlin.org> |
fdf0e229 | 1547 | |
5ded8c6f | 1548 | * objc-act.c (objc_push_parm): DECL_ARG_TYPE_AS_WRITTEN is |
1549 | removed. | |
1550 | * objc-act.h (KEYWORD_ARG_NAME): Use decl_non_common. | |
1551 | (KEYWORD_KEY_NAME): Use decl_minimal. | |
1552 | (METHOD_SEL_NAME): Ditto.. | |
1553 | (METHOD_SEL_ARGS): Use decl_non_common. | |
1554 | (METHOD_ADD_ARGS): Ditto. | |
1555 | (METHOD_ADD_ARGS_ELLIPSIS_P): Use decl_common. | |
1556 | (METHOD_DEFINITION): Ditto. | |
1557 | (METHOD_ENCODING): Ditto. | |
1558 | * objc-lang.c: (objc_init_ts): New function. | |
1559 | ||
8e1be677 | 1560 | 2005-07-07 Ziemowit Laski <zlaski@apple.com> |
1561 | ||
1562 | * objc-act.c (objc_build_struct): Pass in an actual @interface | |
1563 | instead of its name, and annotate the struct created (and all | |
1564 | existing variants thereof) with the @interface. | |
1565 | (objc_compare_types): Treat forward-declared ObjC classes | |
1566 | as stand-alone (root) classes for purposes of type comparisons. | |
1567 | (build_private_template): Move some code to objc_build_struct(). | |
1568 | ||
99469381 | 1569 | 2005-07-07 Ziemowit Laski <zlaski@apple.com> |
1570 | ||
1571 | PR objc/22274 | |
1572 | * objc-act.c (objc_build_string_object): For GNU-style constants, | |
1573 | use the @interface type rather than the built-in type. | |
1574 | ||
bd06ecb6 | 1575 | 2005-07-03 Kazu Hirata <kazu@codesourcery.com> |
1576 | ||
1577 | * Make-lang.in (cc1plus-checksum.c): Use | |
1578 | build/genchecksum$(build_exeext), not build/genchecksum$(exeext). | |
1579 | ||
3284a242 | 1580 | 2005-07-02 Joseph S. Myers <joseph@codesourcery.com> |
1581 | ||
1582 | * objc-act.c: Use %q to quote in diagnostics. | |
1583 | ||
3cf8b391 | 1584 | 2005-07-02 Joseph S. Myers <joseph@codesourcery.com> |
1585 | ||
1586 | * objc-act.c: Use '+' flag instead of %J. Use 'q' flag for | |
1587 | quoting. | |
1588 | ||
4dfa7ebc | 1589 | 2005-06-30 Ziemowit Laski <zlaski@apple.com> |
1590 | ||
1591 | * objc-act.c (objc_build_volatilized_type): New function. | |
1592 | (objc_volatilize_decl): Call objc_build_volatilized_type() | |
1593 | instead of build_qualified_type(). | |
1594 | ||
0616a948 | 1595 | 2005-06-29 Ziemowit Laski <zlaski@apple.com> |
1596 | ||
1597 | * objc-act.c (objc_build_internal_const_str_type): New function. | |
1598 | (check_string_class_template): Use objc_get_class_ivars() instead | |
1599 | of TYPE_FIELDS() to retrieve ivar list. | |
1600 | (AT_LEAST_AS_LARGE_AS): Check the size of each field's type rather | |
1601 | than the field itself. | |
1602 | (objc_build_string_object): Synthesize a "__builtin_ObjCString" | |
1603 | type and use it to lay out compile-time string objects. | |
1604 | * objc-act.h (OCTI_INTERNAL_CNST_STR_TYPE, internal_const_str_type): | |
1605 | New. | |
1606 | ||
1774763d | 1607 | 2005-06-28 Paul Brook <paul@codesourcery.com> |
1608 | ||
1609 | * objc-act.c (objc_init_exceptions): Call | |
1610 | default_init_unwind_resume_libfunc. | |
1611 | ||
0bee387e | 1612 | 2005-06-27 Ziemowit Laski <zlaski@apple.com> |
1613 | ||
1614 | * objc-act.c (objc_build_struct): Save the TYPE_OBJC_INFO | |
1615 | portion of TYPE_LANG_SPECIFIC info for all variants of | |
1616 | a class before calling finish_struct(), and restore | |
1617 | same TYPE_OBJC_INFO afterwards. | |
1618 | ||
85b2164b | 1619 | 2005-06-25 Kelley Cook <kcook@gcc.gnu.org> |
1620 | ||
1621 | * all files: Update FSF address in copyright headers. | |
1622 | ||
f14c8207 | 1623 | 2005-06-15 Joseph S. Myers <joseph@codesourcery.com> |
1624 | ||
1625 | * objc-act.c (my_build_string_pointer): New. | |
1626 | (objc_get_class_reference, get_super_receiver): Call | |
1627 | my_build_string_pointer instead of my_build_string when building | |
1628 | function arguments. | |
1629 | ||
737a4756 | 1630 | 2005-05-25 Mike Stump <mrs@mrs.kithrup.com> |
1631 | ||
1632 | * objc-act.c (volatilized_hash): Avoid warnings on 64-bit | |
1633 | machines. | |
1634 | ||
499ea517 | 1635 | 2005-05-24 Ziemowit Laski <zlaski@apple.com> |
1636 | ||
1637 | * objc-act.c (objc_build_struct): New function. | |
1638 | (objc_derived_from_p): Likewise. | |
1639 | (objc_build_component_ref): Likewise. | |
1640 | (objc_copy_binfo): Likewise. | |
1641 | (objc_xref_basetypes): Likewise. | |
1642 | (objc_lookup_protocol): Likewise. | |
1643 | (objc_compare_protocols): Likewise. | |
1644 | (objc_volatilize_decl): Likewise. | |
1645 | (encode_aggregate_fields): Likewise. | |
1646 | (volatilized_hash): Likewise. | |
1647 | (volatilized_eq): Likewise. | |
1648 | (objc_compare_types): Likewise. | |
1649 | (objc_type_quals_match): Likewise. | |
1650 | (DERIVED_FROM_P): New ObjC macro, corresponding to C++ macro | |
1651 | of same name. | |
1652 | (get_class_ivars): Add second parameter indicating if entire | |
1653 | hierarchy is desired. | |
1654 | (struct volatilized_type): New type. | |
1655 | (volatilized_htab): New hash table. | |
1656 | (objc_types_compatible_p, objc_comptypes): Remove functions. | |
1657 | (synth_module_prologue): Do not initialize 'unused_list'. | |
1658 | (objc_get_class_reference): Fix ObjC++ impedance mismatches. | |
1659 | (objc_declare_alias): Implement as a typedef. | |
1660 | (objc_substitute_decl, objc_gimplify_expr): Reformat. | |
1661 | (objc_get_class_ivars): Adjust call to get_class_ivars(). | |
1662 | (next_sjlj_build_enter_and_setjmp, synth_forward_declarations, | |
1663 | build_ivar_reference, get_super_receiver): Call | |
1664 | objc_build_component_ref() instead of build_component_ref(). | |
1665 | (objc_begin_catch_clause): Use DERIVED_FROM_P() instead of | |
1666 | objc_comptypes(). | |
1667 | (build_private_template): Call objc_build_struct() instead of | |
1668 | start_struct() and finish_struct(). | |
1669 | (hash_init): Initialize volatilized_htab. | |
1670 | (objc_is_public): Adjust calls to objc_get_ivars(); adjust | |
1671 | ObjC++ impedance mismatches. | |
1672 | (encode_aggregate_within): Streamline by calling | |
1673 | encode_aggregate_fields(). | |
1674 | * objc-act.h (objc_types_compatible_p): Remove prototype. | |
1675 | (OCTI_UNUSED_LIST, unused_list): Remove slot. | |
1676 | * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove. | |
1677 | ||
f1035767 | 1678 | 2005-05-18 Geoffrey Keating <geoffk@apple.com> |
1679 | ||
1680 | * Make-lang.in (cc1obj-dummy): New. | |
1681 | (cc1obj-checksum.c): New. | |
1682 | (cc1obj-checksum.o): New. | |
1683 | (cc1obj): Add cc1obj-checksum.o. | |
1684 | ||
3c905014 | 1685 | 2005-05-18 Mike Stump <mrs@apple.com> |
1686 | ||
1687 | PR objc/21641 | |
1688 | * objc-act.c (struct interface_tuple): Mark it up for GC. | |
1689 | (interface_htab): It is really a struct interface_tuple. | |
1690 | ||
82c07781 | 1691 | 2005-05-17 Ziemowit Laski <zlaski@apple.com> |
1692 | Mike Stump <mrs@apple.com> | |
0ced0389 | 1693 | |
1694 | Yet more Objective-C++... | |
1695 | ||
1696 | * objc-act.c (objc_finish_try_stmt): Add return value. | |
1697 | (objc_build_synchronized): Likewise. | |
1698 | ||
1699 | * objc-act.c (objc_is_gcable_type): Add. | |
1700 | (objc_substitute_decl): Add. | |
1701 | (objc_build_ivar_assignment): Add. | |
1702 | (objc_build_global_assignment): Add. | |
1703 | (objc_build_strong_cast_assignment): Add. | |
1704 | (objc_is_ivar_reference_p): Add. | |
1705 | (objc_is_global_reference_p): Add. | |
1706 | (objc_generate_write_barrier): Add. | |
1707 | (objc_rewrite_function_call): Add. | |
1708 | (objc_gimplify_expr): Add Objective-C++ support. | |
1709 | * objc-act.h (ALLOC_OBJC_TYPE_LANG_SPECIFIC): Likewise. | |
1710 | (SIZEOF_OBJC_TYPE_LANG_SPECIFIC): Add. | |
1711 | (INIT_TYPE_OBJC_INFO): Add Objective-C++ support. | |
1712 | (DUP_TYPE_OBJC_INFO): Likewise. | |
1713 | (struct imp_entry): Add field has_cxx_cdtors. | |
1714 | (struct imp_entry *imp_list): Add OCTI_UMSG_FAST_DECL, | |
1715 | OCTI_METH_LIST_TEMPL, OCTI_METH_PROTO_LIST_TEMPL, | |
1716 | OCTI_IVAR_LIST_TEMPL, OCTI_ASSIGN_IVAR_DECL, | |
1717 | OCTI_ASSIGN_IVAR_FAST_DECL, OCTI_ASSIGN_GLOBAL_DECL, | |
1718 | OCTI_ASSIGN_STRONGCAST_DECL. | |
1719 | (umsg_fast_decl): Add. | |
1720 | (objc_assign_ivar_decl): Add. | |
1721 | (objc_assign_ivar_fast_decl): Add. | |
1722 | (objc_assign_global_decl): Add. | |
1723 | (objc_assign_strong_cast_decl): Add. | |
1724 | (objc_method_list_ptr): Add. | |
1725 | (objc_method_proto_list_ptr): Add. | |
1726 | (objc_ivar_list_ptr): Add. | |
1727 | ||
1728 | * objc-act.c (should_call_super_dealloc): Add. | |
1729 | (OBJC_VERSION): Bump to 6. | |
1730 | (objc_is_gcable_type): Add. | |
1731 | (objc_substitute_decl): Add. | |
1732 | (objc_build_ivar_assignment): Add. | |
1733 | (objc_build_global_assignment): Add. | |
1734 | (objc_build_strong_cast_assignment): Add. | |
1735 | (objc_is_gcable_p): Add. | |
1736 | (objc_is_ivar_reference_p): Add. | |
1737 | (objc_is_global_reference_p): Add. | |
1738 | (generate_shared_structures): Add flags parameter. | |
1739 | (objc_generate_cxx_ctor_or_dtor): Add. | |
1740 | (objc_generate_cxx_cdtors): Add. | |
1741 | (add_class): Add name parameter. | |
1742 | (objc_types_share_size_and_alignment): Add. | |
1743 | (comp_proto_with_proto): Add strict parameter. | |
1744 | (CLS_HAS_CXX_STRUCTORS): Add. | |
1745 | (TAG_ASSIGNIVAR): Add. | |
1746 | (TAG_ASSIGNGLOBAL): Add. | |
1747 | (TAG_ASSIGNSTRONGCAST): Add. | |
1748 | (TAG_MSGSEND_FAST): Add. | |
1749 | (TAG_ASSIGNIVAR_FAST): Add. | |
1750 | (TAG_CXX_CONSTRUCT): Add. | |
1751 | (TAG_CXX_DESTRUCT): Add. | |
1752 | (OBJC_LOOKUP_CLASS): Add. | |
1753 | (OBJC_LOOKUP_NO_SUPER): Add. | |
1754 | (objc_finish_file): Add pch support. | |
1755 | (objc_finish_implementation): Add Objective-C++ support. | |
1756 | (synth_module_prologue): Likewise. | |
1757 | (synth_module_prologue): Add fast dispatching. | |
1758 | (objc_get_class_reference): Add Objective-C++ support. | |
1759 | (objc_generate_write_barrier): Likewise. | |
1760 | (next_sjlj_build_enter_and_setjmp): Likewise. | |
1761 | (objc_begin_try_stmt): Likewise. | |
1762 | (build_next_objc_exception_stuff): Add fast ivar support. | |
1763 | (build_private_template): Mark the record as used so debug | |
1764 | information is generated. | |
1765 | (build_protocol_template): Add Objective-C++ support. | |
1766 | (objc_method_parm_type) Likewise. | |
1767 | (objc_generate_cxx_ctor_or_dtor): Likewise. | |
1768 | (objc_generate_cxx_cdtors): Likewise. | |
1769 | (build_protocol_initializer): Likewise. | |
1770 | (build_category_template): Likewise. | |
1771 | (build_class_template): Likewise. | |
1772 | (build_method_list_template): Likewise. | |
1773 | (build_category_initializer): Likewise. | |
1774 | (build_shared_structure_initializer): Likewise. | |
1775 | (objc_finish_message_expr): Likewise. | |
1776 | (build_objc_method_call): Add fast dispatch support. | |
1777 | (lookup_method_static): Add support to end search at superclasses. | |
1778 | (add_method_to_hash_list): Add strict parameter to | |
1779 | comp_proto_with_proto. | |
1780 | (objc_add_method): Likewise. | |
1781 | (objc_add_method): Also set the interface_value. | |
1782 | (add_instance_variable): Add Objective-C++ support. | |
1783 | (objc_is_public): Likewise. | |
1784 | (start_class): Likewise. | |
1785 | (continue_class): Likewise. | |
1786 | (encode_aggregate_within): Likewise. | |
1787 | (start_method_def): Likewise. | |
1788 | (objc_start_function): Clear current_function_returns_value | |
1789 | and current_function_returns_null. | |
1790 | (really_start_method): Add Objective-C++ support. | |
1791 | (objc_finish_method_definition): Add warning for missing | |
1792 | [super dealloc]. | |
1793 | (finish_objc): Add Objective-C++ support. | |
1794 | (generate_objc_image_info): Likewise. | |
1795 | (objc_lookup_ivar): Likewise. | |
1796 | * objc-act.h (TYPE_HAS_OBJC_INFO): Likewise. | |
1797 | (INIT_TYPE_OBJC_INFO): Likewise. | |
1798 | (DUP_TYPE_OBJC_INFO): Likewise. | |
1799 | ||
c3ceba8e | 1800 | 2005-04-23 DJ Delorie <dj@redhat.com> |
1801 | ||
1802 | * objc-act.c: Adjust warning() callers. | |
1803 | ||
450302fe | 1804 | 2005-04-21 Roger Sayle <roger@eyesopen.com> |
1805 | ||
1806 | * objc-act.h (METHOD_ADD_ARGS_ELLIPSIS_P): New macro for accessing | |
1807 | this field of an objc method decl. | |
1808 | * objc-act.c (build_method_decl): Take an additional "ellipsis" | |
1809 | argument, and set METHOD_ADD_ARGS_ELLIPSIS_P as appropriate. | |
1810 | (objc_build_method_signature): Accept additional "ellipsis" | |
1811 | argument and pass it to build_method_decl. | |
1812 | (get_arg_type_list, start_method_def, gen_method_decl): Use | |
1813 | the new METHOD_ADD_ARGS_ELLIPSIS_P instead of examining the | |
1814 | TREE_OVERFLOW field of a TREE_LIST node. | |
1815 | ||
f5d156fd | 1816 | 2005-04-20 Joseph S. Myers <joseph@codesourcery.com> |
1817 | ||
1818 | PR c/12913 | |
1819 | * objc-act.c (objc_start_function): Create stack level for context | |
1820 | of identifiers with variably modified type. | |
1821 | ||
f08c7a57 | 1822 | 2005-03-30 Joseph S. Myers <joseph@codesourcery.com> |
1823 | ||
1824 | PR c/772 | |
1825 | PR c/17913 | |
1826 | * objc-act.c (objc_start_function): Push context on | |
1827 | label_context_stack. | |
1828 | ||
45a78cc0 | 1829 | 2005-03-23 Joseph S. Myers <joseph@codesourcery.com> |
1830 | ||
1831 | * objc-act.c (next_sjlj_build_enter_and_setjmp, | |
1832 | next_sjlj_build_catch_list, next_sjlj_build_try_catch_finally): | |
1833 | Call c_common_truthvalue_conversion. | |
1834 | ||
1576dec7 | 1835 | 2005-02-25 Joseph S. Myers <joseph@codesourcery.com> |
1836 | ||
1837 | * Make-lang.in (objc/objc-parse.o-warn, objc/objc-parse.o, | |
1838 | objc/objc-parse.c, objc/objc-parse.y): Remove | |
1839 | (OBJC_OBJS, objc.srcextra, objc.tags, objc.mostlyclean, | |
1840 | objc.distclean, objc.maintainer-clean): Update for new parser. | |
1841 | * config-lang.in (gtfiles): Update for new parser. | |
1842 | ||
578ae71d | 1843 | 2005-01-29 Kazu Hirata <kazu@cs.umass.edu> |
1844 | ||
1845 | * lang-specs.h, objc-act.c, objc-act.h, objc-lang.c: Update | |
1846 | copyright. | |
1847 | ||
aac6b86a | 1848 | 2005-01-27 Matt Austern <austern@apple.com> |
1849 | ||
1850 | * objc-act.c (objc_finish_file): In ObjC++ mode, set at_eof before | |
1851 | calling instantiate_pending_templates. | |
fdf0e229 | 1852 | |
0bd2c21c | 1853 | 2005-01-26 Alexander Malmberg <alexander@malmberg.org> |
1854 | ||
1855 | PR objc/18862 | |
1856 | * objc-act.c (build_selector_translation_table): Use | |
1857 | input_location in the diagnostic for the GNU runtime or if | |
1858 | TREE_PURPOSE (chain) is NULL. | |
1859 | ||
d7c168e8 | 1860 | 2005-01-25 Alexander Malmberg <alexander@malmberg.org> |
1861 | ||
1862 | PR objc/18408 | |
1863 | * objc-act.c (objc_types_compatible_p): New function. | |
1864 | * objc-act.h (objc_types_compatible_p): Declare. | |
1865 | * objc-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Define. | |
1866 | ||
7e176567 | 1867 | 2005-01-16 Ziemowit Laski <zlaski@apple.com> |
1868 | ||
1869 | * objc-act.c (objc_push_parm): Call c_type_promotes_to() | |
1870 | via a lang-hook. | |
1871 | ||
53832dfa | 1872 | 2005-01-15 Ziemowit Laski <zlaski@apple.com> |
1873 | ||
1874 | PR objc/19321 | |
1875 | * objc-act.c (get_arg_type_list): Decay function arguments into | |
1876 | pointers. | |
1877 | (objc_push_parm): Likewise; bring PARM_DECL construction closer | |
1878 | in line with what the C front-end does. | |
1879 | (objc_get_parm_info): Call pushdecl() and finish_decl() on | |
1880 | each PARM_DECL, like the C front-end does. | |
1881 | (start_method_def): Remove redundant ARRAY_TYPE decay. | |
1882 | (objc_start_function): Bring closer in line with what the | |
1883 | C front-end does for functions. | |
1884 | ||
67f3526e | 1885 | 2005-01-14 Mike Stump <mrs@apple.com> |
1886 | ||
1887 | * lang-specs.h ("@objective-c"): Use cc1obj when -E is used so | |
1888 | that -fobjc-exceptions is accepted. | |
1889 | ||
b5266a0c | 1890 | 2004-12-30 Ziemowit Laski <zlaski@apple.com> |
1891 | ||
1892 | PR objc/18971 | |
1893 | * objc-act.c (get_arg_type_list, start_method_def): Decay | |
1894 | array arguments into pointers. | |
1895 | (gen_type_name_0): Learn to pretty-print array types. | |
1896 | ||
6972a3bc | 1897 | 2004-12-15 Ziemowit Laski <zlaski@apple.com> |
1898 | ||
1899 | * objc-act.c (build_private_template): Change to return 'void'; do | |
1900 | not set ivar_context, uprivate_record or objc_instance_type. | |
1901 | (objc_comptypes, gen_type_name_0): For types 'id' and 'Class', | |
1902 | retrieve protocol list from the pointee rather than the pointer itself; | |
1903 | check TYPE_HAS_OBJC_INFO(...) precondition before accessing | |
1904 | TYPE_OBJC_PROTOCOL_LIST. | |
1905 | (objc_get_protocol_qualified_type): For types 'id' and 'Class', | |
1906 | construct a variant of the pointee as well as the pointer, and | |
1907 | store protocol information in the former. When creating variants | |
1908 | of RECORD_TYPEs, clone their TYPE_LANG_SPECIFIC fields and propagate | |
1909 | TYPE_OBJC_INTERFACE information. | |
1910 | (objc_declare_class): If a TYPE_DECL is looked up, retrieve the | |
1911 | underlying RECORD_TYPE to check for presence of TYPE_OBJC_INTERFACE; | |
1912 | for newly-created RECORD_TYPEs, create a tentative TYPE_OBJC_INTERFACE | |
1913 | holding an IDENTIFIER_NODE. | |
1914 | (objc_finish_message_expr): Check TYPE_HAS_OBJC_INFO(...) before | |
1915 | accessing TYPE_OBJC_PROTOCOL_LIST; Use TYPE_OBJC_INTERFACE instead | |
1916 | of calling lookup_interface(); allow for TYPE_OBJC_INTERFACE holding | |
1917 | an IDENTIFIER_NODE (meaning a @class forward-declaration only). | |
1918 | (objc_is_public): Check TYPE_OBJC_INTERFACE instead of calling | |
1919 | lookup_interface(). | |
1920 | (continue_class): For @implementations, set ivar_context, | |
1921 | uprivate_record and objc_instance_type, for @interfaces, call | |
1922 | build_private_template(). | |
1923 | (encode_pointer): Check TYPE_HAS_OBJC_INFO(...) before accessing | |
1924 | TYPE_OBJC_INTERFACE. | |
1925 | (objc_types_are_equivalent): Check TYPE_HAS_OBJC_INFO(...) before | |
1926 | accessing TYPE_OBJC_PROTOCOL_LIST. | |
1927 | * objc-act.h (OBJC_INFO_SLOT_ELTS, TYPE_OBJC_INFO, INIT_TYPE_OBJC_INFO, | |
fdf0e229 | 1928 | DUP_TYPE_OBJC_INFO, ALLOC_OBJC_TYPE_LANG_SPECIFIC, |
6972a3bc | 1929 | SIZEOF_OBJC_TYPE_LANG_SPECIFIC): New macros. |
1930 | (TYPE_OBJC_INTERFACE): Replaces TREE_STATIC_INSTANCE and now points | |
1931 | to an actual @interface; stored in TYPE_LANG_SPECIFIC(...). | |
1932 | (TYPE_OBJC_PROTOCOL_LIST): Replaces TYPE_PROTOCOL_LIST; stored in | |
1933 | TYPE_LANG_SPECIFIC(...). | |
1934 | (TREE_STATIC_INSTANCE, TYPE_PROTOCOL_LIST): Delete. | |
1935 | (IS_ID, IS_CLASS, IS_PROTOCOL_QUALIFIED_UNTYPED, IS_SUPER, | |
1936 | TYPED_OBJECT): Check for POINTER_TYPE rather than POINTER_TYPE_P; | |
1937 | adjust for use of TYPE_OBJC_INTERFACE and TYPE_OBJC_PROTOCOL_LIST | |
1938 | instead of TREE_STATIC_INSTANCE and TYPE_PROTOCOL_LIST. | |
1939 | ||
b42190bc | 1940 | 2004-11-29 Joseph Myers <joseph@codesourcery.com> |
1941 | ||
1942 | PR c/7544 | |
1943 | * Make-lang.in (objc/objc-act.o): Update dependencies. | |
1944 | * objc-act.c (objc_finish_file): Call | |
1945 | maybe_apply_pending_pragma_weaks if not OBJCPLUS. | |
1946 | ||
02fc645a | 1947 | 2004-11-09 Andrew Pinski <pinskia@physics.uc.edu> |
1948 | ||
1949 | PR objc/18406 | |
1950 | * obj-act.c (encode_type): 96bits doubles are encoded the | |
1951 | same way as 64bit and 128bit doubles are. | |
1952 | ||
1e5fcbe2 | 1953 | 2004-11-09 Joseph S. Myers <joseph@codesourcery.com> |
1954 | ||
1955 | * objc-act.c: Use %q, %< and %> for quoting in diagnostics. | |
1956 | ||
0aaa3c91 | 1957 | 2004-11-08 Andrew Pinski <pinskia@physics.uc.edu> |
1958 | ||
1959 | PR objc/16546 | |
1960 | * objc-act.c (generate_method_descriptors): Remove setting | |
1961 | the new decls' type to variable_length_type. | |
1962 | (generate_ivar_lists): Likewise. | |
1963 | (generate_dispatch_tables): Likewise. | |
1964 | ||
e913c82d | 1965 | 2004-10-30 Ziemowit Laski <zlaski@apple.com> |
1966 | ||
1967 | * objc-act.c (objc_lookup_ivar): The new OTHER parameter | |
1968 | contains the result of the ID lookup by the C or C++ | |
1969 | front-end; in class methods, use OTHER if it exists; | |
1970 | in instance methods, use OTHER only if it is locally | |
1971 | declared. | |
1972 | ||
49bd32dc | 1973 | 2004-10-26 Ziemowit Laski <zlaski@apple.com> |
1974 | ||
1975 | * objc-act.c (finish_class): Do not synthesize bogus | |
1976 | 'extern objc_object *_Foo;' declarations for @interface Foo. | |
1977 | ||
9e8a7e85 | 1978 | 2004-10-25 Ziemowit Laski <zlaski@apple.com> |
1979 | David Ayers <d.ayers@inode.at> | |
1980 | ||
1981 | * objc-act.c (objc_comptypes): Use IS_PROTOCOL_QUALIFIED_UNTYPED | |
1982 | instead of IS_PROTOCOL_QUALIFIED_ID; add comparisons for: | |
1983 | 'Class <Protocol> != id <Protocol>'; 'Class <Protocol> != <class> *'; | |
1984 | 'Class <Protocol> == id' and 'Class <Protocol> == Class'. | |
1985 | (objc_is_id): Add test for 'super'. | |
1986 | (objc_finish_message_expr): Allow for messaging of 'Class <Proto>' | |
1987 | receivers; if class methods are not found in protocol lists, search | |
1988 | for instance methods therein and warn if one is found. Look in | |
1989 | global hash tables for suitable method as a last resort when messaging | |
1990 | 'id <Proto>', 'Class <Proto>' and invalid receiver types. | |
1991 | (objc_add_method): Insert instance methods listed in protocols into | |
1992 | the global class method hash table. | |
1993 | * objc-act.h (IS_PROTOCOL_QUALIFIED_ID): Rename to | |
1994 | IS_PROTOCOL_QUALIFIED_UNTYPED and allow for 'Class <Proto>' in | |
1995 | addition to 'id <Proto>'. | |
1996 | ||
6e030094 | 1997 | 2004-10-21 Andrew Pinski <pinskia@physics.uc.edu> |
1998 | ||
1999 | PR objc/17923 | |
2000 | * objc-act.c (objc_build_string_object): Create a CONST_DECL | |
2001 | for the NeXT runtime case. | |
2002 | ||
9f9a4117 | 2003 | 2004-10-02 Kazu Hirata <kazu@cs.umass.edu> |
2004 | ||
2005 | * objc-act.c: Fix comment typos. | |
2006 | ||
4b6a1df9 | 2007 | 2004-09-24 Ziemowit Laski <zlaski@apple.com> |
2008 | ||
2009 | * objc-act.c (init_objc_symtab, init_module_descriptor, | |
2010 | build_shared_structure_initializer): When initializing 'long' | |
2011 | fields, ensure that the initializer value is also 'long'. | |
2012 | ||
775e7a4e | 2013 | 2004-09-24 Zack Weinberg <zack@codesourcery.com> |
2014 | ||
2015 | * objc-act.c: Change annotate_with_locus to SET_EXPR_LOCATION | |
2016 | throughout. | |
2017 | (objc_init): Only set input_line to 0 #ifndef USE_MAPPED_LOCATION. | |
2018 | (build_selector_translation_table): Use %J in diagnostic | |
2019 | instead of diddling input_line. Fix spelling. | |
2020 | ||
e151b250 | 2021 | 2004-09-21 Ziemowit Laski <zlaski@apple.com> |
2022 | ||
2023 | * objc-act.c (objc_fold_objc_type_ref): New function. | |
2024 | * objc-act.h (objc_fold_objc_type_ref): New prototype. | |
2025 | ||
ac206aff | 2026 | 2004-09-09 Joseph S. Myers <jsm@polyomino.org.uk> |
2027 | ||
2028 | * objc-act.c (objc_start_function, really_start_method, | |
2029 | objc_get_parm_info, start_method_def): Update to new arg_info | |
2030 | structures. | |
2031 | ||
13dcc150 | 2032 | 2004-09-07 Ziemowit Laski <zlaski@apple.com> |
2033 | ||
2034 | * Make-lang.in (objc/objc-parse.o): Depend on $(C_COMMON_H) instead of | |
2035 | objc/objc-act.h. | |
2036 | (objc/objc-act.o): Depend on $(HASHTAB_H). | |
2037 | * objc-act.c: Include hashtab.h; in ObjC++ mode, include cp-tree.h and | |
2038 | objcp-decl.h instead of c-tree.h. | |
2039 | (build_module_descriptor, get_class_ivars, synth_id_with_class_suffix, | |
2040 | error_with_ivar, gen_method_decl, gen_declaration, setup_string_decl, | |
2041 | build_protocol_template): Adjust prototypes. | |
2042 | (build_module_initializer_routine, start_class, continue_class, | |
2043 | finish_class, start_method_def, objc_start_function, start_protocol, | |
2044 | build_method_decl, objc_add_method, add_instance_variable, | |
2045 | build_ivar_reference, is_ivar, is_private, get_super_receiver, | |
2046 | build_selector_table_decl, objc_push_parm, objc_get_parm_info, | |
2047 | gen_type_name, gen_type_name_0, start_var_decl, finish_var_decl, | |
2048 | create_field_decl): New prototypes. | |
2049 | (objc_expand_function_end, comp_method_with_proto, objc_expr_last, | |
2050 | gen_declaration_1, gen_declarator, is_complex_decl, adorn_decl, | |
2051 | define_decl, create_builtin_decl, gen_declspecs): Remove prototypes. | |
2052 | (TYPE_ID): Rename to OBJECT_TYPEDEF_NAME. | |
2053 | (CLASS_TYPEDEF_NAME): New. | |
2054 | (TAG_EXECCLASS): Change from a global variable to a #define. | |
2055 | (TAG_RETURN_STRUCT): Delete. | |
2056 | (TAG_GNUINIT): New, holds '__objc_gnu_init' name. | |
2057 | (objc_inherit_code, objc_public_flag): New, moved from c-parse.in. | |
2058 | (string_descriptor): New struct. | |
2059 | (string_htab): New hash table. | |
2060 | (string_hash, string_eq): New prototypes. | |
2061 | (generate_struct_by_value_array): Call create_field_decl() instead of | |
2062 | create_builtin_decl(). | |
2063 | (objc_init): Do not initialize objc_ellipsis_node or TAG_EXECCLASS; | |
2064 | In ObjC++ mode, call cxx_init() instead of c_objc_common_init(). | |
2065 | (objc_finish_file): In ObjC++, call instantiate_pending_templates() | |
2066 | and cp_finish_file(). | |
2067 | (define_decl, get_static_reference, get_protocol_reference, | |
2068 | create_builtin_decl): Remove functions. | |
2069 | (objc_start_class_interface, objc_start_category_interface, | |
2070 | objc_start_protocol, objc_continue_interface, objc_finish_interface, | |
2071 | objc_start_class_implementation, objc_start_category_implementation, | |
2072 | objc_continue_implementation, objc_finish_implementation, | |
2073 | objc_set_visibility, objc_set_method_type, | |
2074 | objc_build_method_signature, objc_add_method_declaration, | |
2075 | objc_start_method_definition, objc_add_instance_variable, | |
2076 | objc_get_protocol_qualified_type, create_field_decl, | |
2077 | start_var_decl, finish_var_decl): New functions. | |
2078 | (setup_string_decl): Simplify since it is only called once. | |
2079 | (synth_module_prologue): Call build_class_template(); predefine 'id' | |
2080 | and 'Class' as typedefs; rename 'temp_type' to 'type'; disable debug | |
2081 | hooks for duration of function; fix GNU runtime messenger signatures | |
2082 | to correspond to reality; forward-declare '__objc_exec_class' for the | |
2083 | GNU runtime; call build_selector_table_decl(); in ObjC++ mode, generate | |
2084 | 'extern "C" { ... }' wrappers around synthesized declarations; call | |
2085 | build_protocol_template() and build_category_template(). | |
2086 | (string_hash, string_eq): New functions. | |
2087 | (objc_build_string_object): Check metaclass correctness only once; | |
2088 | store string literals in hash table. | |
2089 | (objc_build_constructor): Do not convert initializer elements; | |
2090 | adjust for ObjC++ impedance mismatch. | |
2091 | (build_objc_symtab_template): Call create_field_decl() instead of | |
2092 | create_builtin_decl(). | |
2093 | (init_objc_symtab): Add missing conversion to initializer element. | |
2094 | (build_metadata_decl): Call start_var_decl() instead of define_decl(). | |
2095 | (generate_objc_symtab_decl): Do not call build_category_template(); | |
2096 | call start_var_decl() and finish_var_decl() instead of start_decl() | |
2097 | and finish_decl(). | |
2098 | (build_module_descriptor): Call create_field_decl() instead of | |
2099 | grokfield(); call start_var_decl() and finish_var_decl() instead of | |
2100 | start_decl() and finish_decl(); always mark module descriptor as | |
2101 | used; move GNU runtime-specific functionality to | |
2102 | build_module_initializer_routine(). | |
2103 | (build_module_initializer_routine): New function, broken off of | |
2104 | build_module_descriptor(). | |
2105 | (objc_static_init_needed_p, objc_generate_static_init_call): New | |
2106 | functions. | |
2107 | (generate_static_references, generate_strings, | |
2108 | build_selector_translation_table, generate_descriptor_table, | |
2109 | generate_ivars_list, generate_dispatch_table, generate_category): Call | |
2110 | start_var_decl() and finish_var_decl() instead of start_decl() and | |
2111 | finish_decl(); build a type directly instead of via groktypename(). | |
2112 | (build_selector_reference_decl, build_selector_table_decl, | |
2113 | build_class_reference_decl, build_protocol_reference, | |
2114 | generate_objc_image_info): Call start_var_decl() instead of | |
2115 | build_decl(). | |
2116 | (build_selector_reference): For GNU runtime, do not call | |
2117 | build_selector_reference_decl(). | |
2118 | (build_selector, build_typed_selector_reference): Always convert | |
2119 | result to the selector type. | |
2120 | (add_objc_string): Cast return value to 'char *'. | |
2121 | (build_method_prototype_template, build_selector_template, | |
2122 | build_method_template): Use actual selector type for fields | |
2123 | pointing to selectors. | |
2124 | (finish_objc): For GNU runtime, call | |
2125 | build_module_initializer_routine() after build_module_descriptor(). | |
2126 | (generate_protocol_list, generate_shared_structures): Call | |
2127 | start_var_decl() and finish_var_decl() instead of start_decl() and | |
2128 | finish_decl(); build a type directly instead of via | |
2129 | groktypename(). | |
2130 | (synth_id_with_class_suffix): Return a string. | |
2131 | (get_arg_type_list): For instance methods, use the instance type for | |
2132 | 'self'; do not call groktypename_in_parm_context(). | |
2133 | (build_objc_string_decl): Squash redeclaration errors in ObjC++. | |
2134 | (objc_is_class_name): Use OBJC_TYPE_NAME instead of TYPE_NAME; | |
2135 | handle RECORD_TYPEs in ObjC as well as ObjC++. | |
2136 | (objc_is_id): New function. | |
2137 | (objc_is_object_ptr): Return the canonical type node. | |
2138 | (objc_get_class_ivars): Simplify using get_class_ivars(). | |
2139 | (get_class_ivars): Remove second parameter; create a fresh copy | |
2140 | of the ivar list for each call; do not check for existence of | |
2141 | super class. | |
2142 | (objc_eh_runtime_type): Mark #ifndef OBJCPLUS. | |
2143 | (objc_init_exceptions): When using SJLJ-style exceptions, require | |
2144 | the use of '-fobjc-exceptions' flag; do not require it for DWARF-style | |
2145 | exceptions. | |
2146 | (objc_build_exc_ptr, next_sjlj_build_try_catch_finally): Use | |
2147 | objc_object_type instead of objc_id_type. | |
2148 | (objc_begin_catch_clause): Convert the incoming PARM_DECL into | |
2149 | a VAR_DECL before placing it in the appropriate scope; do not | |
2150 | call define_decl(); adjust call to c_begin_compound_stmt(); | |
2151 | use objc_object_type instead of objc_id_type. | |
2152 | (build_next_objc_exception_stuff): Call create_field_decl() instead | |
2153 | of create_builtin_decl(); construct type directly instead of calling | |
2154 | groktypename(); use OBJC_VOID_AT_END to mark end of function parameters. | |
2155 | (build_private_template): Adjust call to get_class_ivars(); build | |
2156 | a type directly instead of via groktypename(). | |
2157 | (build_protocol_template, build_method_prototype_list_template, | |
2158 | build_method_prototype_template, build_category_template, | |
2159 | build_selector_template, build_class_template, build_super_template, | |
2160 | build_ivar_template, build_ivar_list_template, | |
2161 | build_method_list_template, build_method_template): | |
2162 | Call create_field_decl() instead of grokfield(). | |
2163 | (objc_method_parm_type): Do not call groktypename(). | |
2164 | (generate_descriptor_table): Call start_var_decl() and | |
2165 | finish_var_decl() instead of start_decl() and finish_decl(). | |
2166 | (generate_method_descriptors, build_protocol_initializer, | |
2167 | generate_dispatch_tables, build_category_initializer, | |
2168 | build_shared_structure_initializer): Do not call groktypename(). | |
2169 | (generate_protocols): Call start_var_decl() and finish_var_decl() | |
2170 | instead of start_decl() and finish_decl(); do not call groktypename(). | |
2171 | (error_with_ivar): Remove last parameter. | |
2172 | (check_ivars): Do not iterate ovar CLASS_RAW_IVARS lists in addition | |
2173 | to CLASS_IVARS lists; adjust calls to error_with_ivar(). | |
2174 | (generate_ivar_lists): Convert one of the initializer elements; do | |
2175 | not call groktypename(). | |
2176 | (get_arg_type_list, start_method_def, gen_method_def): Account for | |
2177 | new representation of variable arguments and '...' in Objective-C | |
2178 | methods; add Objective-C++ impedance matching code. | |
2179 | (is_objc_type_qualifier): Remove function. | |
2180 | (adjust_type_for_id_default): Simplify; there is no longer a need to | |
2181 | wade through declspecs. | |
2182 | (lookup_interface, start_class, continue_class, | |
2183 | finish_class, start_method_def, start_protocol, build_method_decl, | |
2184 | objc_add_method, add_instance_variable, build_ivar_reference, | |
2185 | is_ivar, is_private, get_super_receiver, objc_build_finally_epilogue): | |
2186 | Make into static functions. | |
2187 | (receiver_is_class_object): Use new IS_CLASS() macro. | |
2188 | (objc_build_message_expr): Tweak ObjC++ message argument handling; | |
2189 | call objc_finish_message_expr() instead of finish_message_expr(). | |
2190 | (finish_message_expr): Rename to objc_finish_message_expr(); use | |
2191 | OBJC_TYPE_NAME and OBJC_SET_TYPE_NAME macros instead of TYPE_NAME. | |
2192 | call gen_type_name() instead of gen_declaration(); call objc_is_id() | |
2193 | instead of using IS_ID and IS_CLASS; Use objc_class_name instead of | |
2194 | calling get_identifier("Class"); handle CONVERT_EXPRs in receiver. | |
2195 | (build_objc_method_call, warn_with_method): Do not call groktypename(). | |
2196 | (build_ivar_reference): Call convert() instead of clobbering in a | |
2197 | type. | |
2198 | (hash_init): Initialize string_htab hash table. | |
2199 | (add_instance_variable): Simplify parameter list; do not call grokfield(); | |
2200 | do not populate CLASS_IVARS list. | |
2201 | (start_class): Check for the existence of super class, if one was specified. | |
2202 | (continue_class): Use CLASS_RAW_IVARS rather than CLASS_IVARS; do not | |
2203 | call build_class_template(); adjust call to get_class_ivars(); call | |
2204 | build_decl(), pushdecl() and finish_decl() instead of define_decl(). | |
2205 | (finish_class): Call build_decl(), pushdecl() and finish_decl() instead | |
2206 | of define_decl(). | |
2207 | (add_protocols): Use PROTOCOL_BINFO_ELTS for the tree vector size. | |
2208 | (start_protocol): Do not call build_protocol_template(); use | |
2209 | PROTOCOL_BINFO_ELTS for the tree vector size. | |
2210 | (encode_type_qualifiers): Do not handle the 'const' qualifier here. | |
2211 | (encode_pointer): Encode 'const char *' as 'r*', for backwards | |
2212 | compatibility. | |
2213 | (encode_array): Use HOST_WIDE_INT_PRINT_DEC instead of "%ld". | |
2214 | (encode_type): Handle the 'const' qualifier here. | |
2215 | (objc_parmlist): New global variable, sued by objc_push_parm and | |
2216 | objc_get_parm_info(). | |
2217 | (objc_push_parm, objc_get_parm_info): New functions. | |
2218 | (objc_expr_last): Remove function. | |
2219 | (synth_self_and_ucmd_args): For instance methods, use the instance | |
2220 | type for 'self'; call objc_push_parm() instead of push_parm_decl(). | |
2221 | (start_method_def): Do not call push_scope(), declare_parm_level(), | |
2222 | pop_scope(), push_parm_decl(), store_parm_decls() or objc_expr_last(); | |
2223 | just use objc_push_parm() and objc_get_parm_info(). | |
2224 | (comp_method_with_proto): Remove function. | |
2225 | (objc_types_are_equivalent): Strip away indirections before comparing | |
2226 | underlying types. | |
2227 | (comp_proto_with_proto): Do not call groktypename(); types are no | |
2228 | longer in raw declspec format. | |
2229 | (objc_start_function): New function. | |
2230 | (really_start_method): Call comp_proto_with_proto() instead of | |
2231 | comp_method_with_proto(); call objc_start_function() instead of | |
2232 | hand-crafting a function declarator. | |
2233 | (continue_method_def, objc_expand_function_end): Remove functions. | |
2234 | (get_super_receiver): Call objc_get_current_scope() instead of | |
2235 | get_current_scope(); reference 'super_class' field (instead of | |
2236 | 'class'). | |
2237 | (finish_method_def): Rename to objc_finish_method_definition() and | |
2238 | add a function decl parameter; move method encoding call from | |
2239 | objc_expand_function_end(). | |
2240 | (is_complex_decl, adorn_decl, gen_declarator, gen_declspecs, | |
2241 | gen_declaration_1): Remove functions. | |
2242 | (tmpbuf, RAW_DECLSPEC): Remove. | |
2243 | (gen_declaration): Remove second parameter; simplify to deal | |
2244 | with TYPE_P nodes instead of raw declspecs. | |
2245 | (gen_type_name, gen_type_name_0): New functions. | |
2246 | (gen_method_decl): Remove second parameter; call gen_type_name() | |
2247 | instead of gen_declaration_1(). | |
775e7a4e | 2248 | (dump_interface): Adjust calls to gen_declaration() and |
13dcc150 | 2249 | gen_method_decl(); do not allocate a separate string buffer. |
2250 | (init_objc): Allocate a larger string buffer to accommodate | |
2251 | dump_interface(); adjust call to build_module_descriptor(); | |
2252 | add call to build_module_initializer_routine() for the GNU | |
2253 | runtime. | |
2254 | (generate_classref_translation_entry): Do not call start_decl(); call | |
2255 | finish_var_decl() instead of finish_decl(); call convert() instead of | |
2256 | build_c_cast(). | |
2257 | * objc-act.h (CLASS_OWN_IVARS): Remove accessor. | |
2258 | (CLASS_BINFO_ELTS): Reduce from 6 to 5, now that CLASS_OWN_IVARS is | |
2259 | gone. | |
2260 | (OCTI_GNU_INIT_DECL, GNU_INIT_decl): New. | |
2261 | (OCTI_ELLIPSIS_NODE, objc_ellipsis_node): Remove. | |
2262 | (OCTI_ID_ID, id_type, objc_id_id): Rename to OCTI_ID_NAME, | |
2263 | objc_object_type and objc_object_name, respectively. | |
2264 | (OCTI_CLS_REF, OCTI_CLASS_NAME, objc_class_reference, | |
2265 | objc_class_name): New. | |
2266 | (IS_CLASS): New macro. | |
2267 | (IS_ID, IS_SUPER): Robustify. | |
2268 | (OCTI_EXECCLASS_DECL, execclass_decl): New. | |
2269 | (finish_file, start_class, continue_class, finish_class, | |
2270 | start_method_def, continue_method_def, finish_method_def, | |
2271 | start_protocol, finish_protocol, objc_build_throw_stmt, | |
2272 | objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue, | |
2273 | objc_build_synchronized_epilogue, objc_build_try_prologue, | |
2274 | objc_build_try_epilogue, objc_build_catch_stmt, objc_build_catch_epilogue, | |
2275 | objc_build_finally_prologue, objc_build_finally_epilogue, | |
2276 | is_ivar, is_private, is_public, add_instance_variable, objc_add_method, | |
2277 | get_super_receiver, objc_clear_super_receiver, get_class_ivars_from_name, | |
2278 | get_class_reference, get_static_reference, get_object_reference, | |
2279 | build_message_expr, finish_message_expr, build_selector_expr, | |
2280 | build_ivar_reference, build_keyword_decl, build_method_decl, | |
2281 | build_protocol_expr, build_objc_string_object, objc_declare_alias, | |
2282 | objc_declare_class, objc_declare_protocols, objc_comptypes, | |
2283 | objc_check_decl, build_encode_expr): Remove prototypes. | |
2284 | (imp_count, cat_count): Make GGC-aware. | |
2285 | (OBJC_SET_TYPE_NAME): New macro. | |
775e7a4e | 2286 | |
89359403 | 2287 | 2004-09-03 Ziemowit Laski <zlaski@apple.com> |
2288 | ||
2289 | * config-lang.in: Update copyright notice. | |
2290 | (lang_requires): Indicate that ObjC requires C to be built first. | |
2291 | ||
66eb9e7e | 2292 | 2004-09-01 Ziemowit Laski <zlaski@apple.com> |
2293 | ||
2294 | * objc-act.c (objc_check_decl): Use OBJC_TYPE_NAME macro instead of | |
2295 | TYPE_NAME. | |
2296 | (build_objc_string_object): Rename to objc_build_string_object(). | |
2297 | (get_class_reference): Rename to objc_get_class_reference(). | |
2298 | (get_class_ivars_from_name): Rename to objc_get_class_ivars(). | |
2299 | (next_sjlj_build_catch_list, get_super_receiver): Call | |
2300 | objc_get_class_reference() instead of get_class_reference(). | |
2301 | (build_keyword_decl): Rename to objc_build_keyword_decl(). | |
2302 | (build_message_expr): Rename to objc_build_message_expr(). | |
2303 | (build_protocol_expr): Rename to objc_build_protocol_expr(). | |
2304 | (build_selector_expr): Rename to objc_build_selector_expr(). | |
2305 | (build_encode_expr): Rename to objc_build_encode_expr(). | |
2306 | * objc-act.h (get_class_ivars_from_name): Rename prototype to | |
2307 | objc_get_class_ivars(). | |
2308 | (get_class_reference): Rename prototype to objc_get_class_reference(). | |
2309 | (build_message_expr): Rename prototype to objc_build_message_expr(). | |
2310 | (build_selector_expr): Rename prototype to objc_build_selector_expr(). | |
2311 | (build_keyword_decl): Rename prototype to objc_build_keyword_decl(). | |
2312 | (build_protocol_expr): Rename prototype to objc_build_prototype_expr(). | |
2313 | (build_objc_string_object): Rename prototype to | |
2314 | objc_build_string_object(). | |
775e7a4e | 2315 | |
99d7d801 | 2316 | 2004-09-01 Ziemowit Laski <zlaski@apple.com> |
2317 | ||
2318 | * objc-act.c (lookup_interface): Make function 'static' and add a | |
2319 | local prototype. | |
2320 | (objc_check_decl, get_class_reference, objc_declare_alias, | |
2321 | objc_declare_class, objc_is_object_ptr): Call objc_is_class_name() | |
2322 | instead of is_class_name(). | |
775e7a4e | 2323 | (get_super_receiver, objc_clear_super_receiver): Call |
99d7d801 | 2324 | objc_get_current_scope() instead of get_current_scope(). |
2325 | (is_class_name): Rename to objc_is_class_name. | |
2326 | (lookup_objc_ivar): Rename to objc_lookup_ivar. | |
2327 | ||
11a35d8f | 2328 | 2004-08-28 Ziemowit Laski <zlaski@apple.com> |
2329 | ||
2330 | * objc-act.c (objc_is_reserved_word): New function. | |
2331 | ||
800b56f2 | 2332 | 2004-08-15 Ziemowit Laski <zlaski@apple.com> |
2333 | ||
2334 | * Make-lang.in (objc/objc-lang.o): Depend on $(C_PRETTY_PRINT_H), | |
2335 | $(DIAGNOSTIC_H), c-objc-common.h and gtype-objc.h, but not on toplev.h. | |
2336 | (objc/objc-parse.o): Do not depend on gtype-objc.h. | |
2337 | * objc-act.c: Do not include gtype-objc.h. | |
2338 | (finish_file): Rename to objc_finish_file(). | |
2339 | * objc-act.h (finish_file): Update copyright notice; remove prototype. | |
2340 | * objc-lang.c: Update copyright notice; include diagnostic.h, | |
2341 | c-objc-common.h, c-pretty-print.h and gtype-objc.h; do not include | |
2342 | toplev.h. | |
2343 | (finish_file): New hook routine. | |
2344 | (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS, | |
2345 | LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION, | |
2346 | LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS, | |
775e7a4e | 2347 | LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P, |
2348 | LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE, | |
800b56f2 | 2349 | LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION, |
2350 | LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL, | |
775e7a4e | 2351 | LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME, |
800b56f2 | 2352 | LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL, |
2353 | LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED, | |
2354 | LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL, | |
2355 | LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT, | |
2356 | LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE, | |
2357 | LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN, | |
2358 | LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS, | |
2359 | LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P, | |
2360 | LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING, | |
2361 | LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, | |
2362 | LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN, | |
2363 | LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE, | |
2364 | LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE, | |
2365 | LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE, | |
2366 | LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO, | |
2367 | LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS): | |
2368 | Move to c-objc-common.h. | |
7dfbd804 | 2369 | |
2370 | \f | |
2371 | Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
2372 | ||
2373 | Copying and distribution of this file, with or without modification, | |
2374 | are permitted in any medium without royalty provided the copyright | |
2375 | notice and this notice are preserved. |