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