OSDN Git Service

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