comparison gcc/c-family/ChangeLog @ 68:561a7518be6b

update gcc-4.6
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Sun, 21 Aug 2011 07:07:55 +0900
parents
children 04ced10e8804
comparison
equal deleted inserted replaced
67:f6334be47118 68:561a7518be6b
1 2011-03-11 Jason Merrill <jason@redhat.com>
2
3 * c-common.c (attribute_takes_identifier_p): Add missing const.
4
5 PR c++/46803
6 * c-common.c (attribute_takes_identifier_p): Assume that an
7 unknown attribute takes an identifier.
8
9 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
10
11 PR c/47786
12 * c-common.c (c_type_hash): Call list_length instead of iterating
13 through DECL_CHAIN. Rename 'i' to 'n_elements'.
14
15 2011-02-19 Jakub Jelinek <jakub@redhat.com>
16
17 PR c/47809
18 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
19
20 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
21
22 * c.opt (fobjc-abi-version=) New.
23 (fobjc-nilcheck): New.
24
25 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
26
27 PR c++/46890
28 * c-common.h (keyword_is_decl_specifier): Declare.
29 * c-common.c (keyword_is_decl_specifier): Define.
30 (keyword_is_function_specifier): New function.
31
32 2011-01-26 Jakub Jelinek <jakub@redhat.com>
33
34 PR c/47473
35 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
36 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
37 REAL_TYPE.
38
39 2011-01-26 Arnaud Charlet <charlet@adacore.com>
40
41 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
42
43 2011-01-26 Jakub Jelinek <jakub@redhat.com>
44
45 PR pch/47430
46 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
47 after init_c_lex if pch_file is set.
48
49 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
50
51 PR c++/43601
52 * c.opt (-fkeep-inline-dllexport): New switch.
53
54 2011-01-12 Richard Guenther <rguenther@suse.de>
55
56 PR middle-end/32511
57 * c-common.c (handle_weak_attribute): Warn instead of error
58 on declaring an inline function weak.
59
60 2011-01-05 Tom Tromey <tromey@redhat.com>
61
62 * c-common.h (lvalue_error): Update.
63 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
64 not error.
65
66 2010-12-29 Nicola Pero <nicola@nicola.brainstorm.co.uk>
67
68 PR objc/47075
69 * c-objc.h (objc_finish_message_expr): Added argument to
70 prototype.
71
72 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
73
74 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
75 Use prototype_p.
76
77 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
78
79 * c-objc.h (objc_maybe_warn_exceptions): New.
80 * stub-objc.c (objc_maybe_warn_exceptions): New.
81
82 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
83
84 * c-common.h (readonly_error): Declare.
85 * c-common.c (readonly_error): Define.
86
87 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
88
89 * c-common.h (invalid_indirection_error): Declare.
90 * c-common.c (invalid_indirection_error): Define.
91
92 2010-12-03 Richard Guenther <rguenther@suse.de>
93
94 PR c/46745
95 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
96 (pp_c_unary_expression): Likewise.
97 (pp_c_expression): Likewise.
98
99 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
100
101 * c-common.h (objc_finish_function): New.
102 (objc_non_volatilized_type): Removed.
103 (objc_type_quals_match): Removed.
104 * stub-objc.c (objc_finish_function): New.
105 (objc_non_volatilized_type): Removed.
106 (objc_type_quals_match): Removed.
107
108 2010-11-30 Joseph Myers <joseph@codesourcery.com>
109
110 * c-common.h (parse_optimize_options): Declare.
111 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
112 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
113
114 2010-11-29 Joseph Myers <joseph@codesourcery.com>
115
116 * c-opts.c (check_deps_environment_vars): Use getenv instead of
117 GET_ENVIRONMENT.
118 * c-pch.c (O_BINARY): Don't define here.
119 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
120
121 2010-11-25 Joseph Myers <joseph@codesourcery.com>
122
123 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
124 targetm.except_unwind_info.
125
126 2010-11-23 Joseph Myers <joseph@codesourcery.com>
127
128 * c-opts.c (c_common_handle_option): Pass location to
129 set_struct_debug_option.
130
131 2010-11-23 Joseph Myers <joseph@codesourcery.com>
132
133 * c-common.c (visibility_options): Move from ../opts.c.
134 * c-common.h (struct visibility_flags, visibility_options):
135 Declare here.
136 * c-opts.c (finish_options): Rename to c_finish_options.
137 (c_common_init): Update call to finish_options.
138
139 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
140
141 PR objc/34033
142 * c-lex.c (lex_string): Check that each string in an Objective-C
143 string concat sequence starts with either one or zero '@', and
144 that there are no spurious '@' signs at the end.
145
146 2010-11-20 Joseph Myers <joseph@codesourcery.com>
147
148 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
149 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
150 HANDLE_PRAGMA_VISIBILITY.
151 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
152 HANDLE_PRAGMA_VISIBILITY): Don't define.
153 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
154
155 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
156
157 PR c++/16189
158 PR c++/36888
159 PR c++/45331
160 * c-common.h (keyword_begins_type_specifier): Declare.
161 (keyword_is_storage_class_specifier): Declare.
162 (keyword_is_type_qualifier): Declare.
163 * c-common.c (keyword_begins_type_specifier): New function.
164 (keyword_is_storage_class_specifier): New function.
165 (keyword_is_type_qualifier): Declare.
166
167 2010-11-19 Joseph Myers <joseph@codesourcery.com>
168
169 PR c/46547
170 * c-common.c (in_late_binary_op): Define.
171 (c_common_truthvalue_conversion): Check in_late_binary_op before
172 calling c_save_expr.
173 * c-common.h (in_late_binary_op): Declare.
174
175 2010-11-19 Joseph Myers <joseph@codesourcery.com>
176
177 * c-opts.c (c_common_handle_option): Update calls to
178 set_struct_debug_option.
179
180 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
181
182 * c-common.h (objc_declare_protocols): Added additional argument.
183 * stub-objc.c (objc_declare_protocol): Same change.
184
185 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
186
187 PR c/33193
188 * c-common.h (build_real_imag_expr): Declare.
189 * c-semantics.c (build_real_imag_expr): Define.
190
191 2010-11-17 Joseph Myers <joseph@codesourcery.com>
192
193 * c-opts.c (c_common_parse_file): Take no arguments.
194 * c-common.h (c_common_parse_file): Update prototype.
195
196 2010-11-16 Jakub Jelinek <jakub@redhat.com>
197
198 PR c++/46401
199 * c-common.c (warning_candidate_p): Don't track non-const calls
200 or STRING_CSTs.
201
202 2010-11-15 Ian Lance Taylor <iant@google.com>
203
204 * c-lex.c (init_c_lex): Set macro debug callbacks if
205 flag_dump_go_spec is set.
206
207 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
208
209 * c-common.h (objc_build_incr_expr_for_property_ref): New.
210 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
211
212 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
213
214 PR preprocessor/45038
215 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
216 dialects.
217
218 2010-11-12 Joseph Myers <joseph@codesourcery.com>
219
220 * c-common.h (c_family_lang_mask): Declare.
221 * c-opts.c (c_family_lang_mask): Make extern.
222 * c-pragma.c (handle_pragma_diagnostic): Use
223 control_warning_option.
224
225 2010-11-12 Joseph Myers <joseph@codesourcery.com>
226
227 * c-common.c (parse_optimize_options): Update call to
228 decode_options.
229 * c-common.h (c_common_handle_option): Update prototype.
230 * c-opts.c (c_common_handle_option): Take location_t parameter and
231 pass it to other functions.
232
233 2010-11-11 Joseph Myers <joseph@codesourcery.com>
234
235 * c-opts.c (warning_as_error_callback): Remove.
236 (c_common_initialize_diagnostics): Don't call
237 register_warning_as_error_callback.
238 (c_common_handle_option): Handle -Werror=normalized= here.
239
240 2010-11-10 Joseph Myers <joseph@codesourcery.com>
241
242 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
243 in diagnostic.
244 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
245 letter.
246 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
247 Remove trailing '.' from diagnostics.
248 * c.opt (Wwrite-strings_: Avoid '`' in help text.
249
250 2010-11-10 Joseph Myers <joseph@codesourcery.com>
251
252 * c-common.c (parse_optimize_options): Pass global_dc to
253 decode_options.
254 * c-opts.c (c_common_handle_option): Pass &global_options to
255 set_Wstrict_aliasing.
256 * c.opt (v): Don't mark Common or document here.
257
258 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
259
260 PR target/44981
261 * c-format.c (format_type): New type gcc_objc_string_format_type.
262 (valid_stringptr_type_p): New.
263 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
264 (check_format_string): Pass expected type, use
265 valid_stringptr_type_p (), check that the format string types are
266 consistent with the format specification.
267 (decode_format_attr): Warn if NSString is used outside objective-c.
268 (format_types_orig): Add NSString.
269 (format_name): New.
270 (format_flags): New.
271 (check_format_arg): Handle format strings requiring an external parser.
272 first_target_format_type: New variable.
273 (handle_format_attribute): Set up first_target_format_type, pass the
274 expected format arg string type to check_format_string().
275 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
276 * stub-objc.c (objc_string_ref_type_p): New.
277 (objc_check_format_arg): New.
278
279 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
280
281 Fixed using the Objective-C 2.0 dot-syntax with class names.
282 * c-common.h (objc_build_class_component_ref): New.
283 * stub-objc.c (objc_build_class_component_ref): New.
284
285 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
286
287 * c.opt (Wproperty-assign-default): New option.
288
289 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
290
291 Implemented -fobjc-std=objc1 flag.
292 * c.opt (fobjc-std=objc1): New option.
293
294 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
295
296 Implemented format and noreturn attributes for Objective-C methods.
297 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
298 attribute for Objective-C methods.
299
300 2010-10-31 Jason Merrill <jason@redhat.com>
301
302 * c-common.c (conversion_warning, warn_for_collisions_1): Use
303 EXPR_LOC_OR_HERE.
304
305 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
306
307 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
308 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
309 (objc_add_property_declaration): Removed arguments for copies and
310 ivar.
311 (objc_build_getter_call): Renamed to
312 objc_maybe_build_component_ref.
313 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
314 (objc_is_property_ref): New.
315 * c-common.c (c_common_reswords): Removed copies and ivar.
316 * stub-objc.c (objc_add_property_declaration): Removed arguments
317 for copies and ivar.
318 (objc_build_getter_call): Renamed to
319 objc_maybe_build_component_ref.
320 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
321 (objc_is_property_ref): New.
322
323 2010-10-29 Arnaud Charlet <charlet@adacore.com>
324 Matthew Gingell <gingell@adacore.com>
325
326 * c-ada-spec.c (separate_class_package): New function.
327 (pp_ada_tree_identifier): Prefix references to C++ classes with the
328 name of their enclosing package.
329 (print_ada_declaration): Use separate_class_package.
330
331 2010-10-27 Jason Merrill <jason@redhat.com>
332
333 * c-common.c (c_common_reswords): Add __is_literal_type.
334 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
335
336 * c-common.c (check_case_value): Remove special C++ code.
337
338 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
339
340 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
341 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
342 and RID_LAST_PATTR.
343 (objc_add_property_declaration): Added additional arguments.
344 (objc_property_attribute_kind): Removed.
345 (objc_set_property_attr): Removed.
346 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
347 copy and nonatomic.
348 * stub-objc.c (objc_add_property_declaration): Added additional
349 arguments.
350 (objc_set_property_attr): Removed.
351
352 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
353
354 * c-common.h (objc_add_property_variable): Renamed to
355 objc_add_property_declaration. Added location argument.
356 * stub-objc.c (objc_add_property_variable): Same change.
357
358 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
359
360 * c-common.h (objc_maybe_printable_name): New.
361 * stub-objc.c (objc_maybe_printable_name): New.
362
363 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
364 Andrew Pinski <pinskia@gmail.com>
365
366 * c-common.h (c_common_mark_addressable_vec): Declare.
367 * c-common.c (c_common_mark_addressable_vec): New function.
368
369 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
370
371 * c-common.h (objc_set_method_type): Removed.
372 (objc_add_method_declaration): Added boolean argument.
373 (objc_start_method_definition): Same change.
374 (objc_build_method_signature): Same change.
375 * stub-objc.c (objc_set_method_type): Removed.
376 (objc_add_method_declaration): Added boolean argument.
377 (objc_start_method_definition): Same change.
378 (objc_build_method_signature): Same change.
379
380 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
381
382 * c-common.h (finish_file): Removed.
383 (objc_write_global_declarations): New.
384 * c-opts.c (c_common_parse_file): Do not call finish_file.
385 * stub-objc.c (objc_write_global_declarations): New.
386
387 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
388
389 Implemented parsing @synthesize and @dynamic for
390 Objective-C/Objective-C++.
391 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
392 (objc_add_synthesize_declaration): New.
393 (objc_add_dynamic_declaration): New.
394 * c-common.c (c_common_reswords): Add synthesize and dynamic.
395 * stub-objc.c (objc_add_synthesize_declaration): New.
396 (objc_add_dynamic_declaration): New.
397
398 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
399
400 PR target/46041
401 * c-cppbuiltin.c (mode_has_fma): Move function here from
402 builtins.c. Don't use the fma optab, instead just use the
403 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
404 using -save-temps.
405
406 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
407
408 Merge from 'apple/trunk' branch on FSF servers.
409
410 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
411
412 Radar 4330422
413 * c-common.h (objc_non_volatilized_type): New declaration
414 * stub-objc.c (objc_non_volatilized_type): New stub.
415
416 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
417
418 Merge from 'apple/trunk' branch on FSF servers.
419
420 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
421
422 Radar 4133425
423 * c-common.h (objc_diagnose_private_ivar): New decl.
424 * stub-objc.c (objc_diagnose_private_ivar): New stub.
425
426 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
427
428 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
429 * c-common.h (enum rid): Add RID_AT_PACKAGE.
430 (objc_ivar_visibility_kind): New enum.
431 (objc_set_visibility): Adjust prototype to use visibility enum.
432 * stub-objc.c (objc_set_visibility): Adjust stub to use
433 visibility enum.
434
435 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
436
437 * c-cppbuiltin.c (builtin_define_float_constants): Emit
438 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
439 has the appropriate fma builtins.
440 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
441
442 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
443
444 merge from FSF apple 'trunk' branch.
445 2006 Fariborz Jahanian <fjahanian@apple.com>
446
447 Radars 4436866, 4505126, 4506903, 4517826
448 * c-common.c (c_common_resword): Define @property and its attributes.
449 * c-common.h: Define property attribute enum entries.
450 (OBJC_IS_PATTR_KEYWORD): New.
451 (objc_property_attribute_kind): New enum.
452 Declare objc_set_property_attr (), objc_add_property_variable (),
453 objc_build_getter_call () and objc_build_setter_call ().
454 * stub-objc.c (objc_set_property_attr): New stub.
455 (objc_add_property_variable): Likewise.
456 (objc_build_getter_call): Likewise.
457 (objc_build_setter_call) Likewise.
458
459 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
460
461 merge from FSF apple 'trunk' branch.
462 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
463
464 Radar 3803157 (method attributes)
465 * c-common.c (handle_deprecated_attribute): Recognize
466 objc methods as valid declarations.
467 * c-common.h: Declare objc_method_decl ().
468 * stub-objc.c (objc_method_decl): New stub.
469
470 2010-10-08 Joseph Myers <joseph@codesourcery.com>
471
472 * c-common.c (parse_optimize_options): Call
473 decode_cmdline_options_to_array_default_mask before
474 decode_options. Update arguments to decode_options.
475 * c-common.h (c_common_init_options_struct): Declare.
476 * c-opts.c (c_common_init_options_struct): New. Split out from
477 c_common_init_options.
478
479 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
480
481 Implemented fast enumeration for Objective-C.
482 * c-common.h (objc_finish_foreach_loop): New.
483 * stub-objc.c (objc_finish_foreach_loop): New.
484
485 2010-10-05 Joseph Myers <joseph@codesourcery.com>
486
487 * c-common.h (struct diagnostic_context): Don't declare here.
488 (c_common_initialize_diagnostics): Declare using
489 diagnostic_context typedef.
490 * c-opts.c (c_common_handle_option): Pass global_dc to
491 handle_generated_option.
492
493 2010-10-04 Joseph Myers <joseph@codesourcery.com>
494
495 * c-opts.c (c_common_handle_option): Pass &global_options_set to
496 handle_generated_option.
497
498 2010-10-03 Ian Lance Taylor <iant@google.com>
499
500 * c.opt (-fplan9-extensions): New option.
501
502 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
503
504 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
505 Remove.
506 (c_cpp_builtins): Call functions from cppbuiltin.c instead
507 of duplicating code.
508
509 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
510
511 * c-common.c: Add two new entries for @optional
512 and @required keywords.
513
514 merge from FSF 'apple/trunk' branch.
515 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
516
517 Radar 4386773
518 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
519 objective-c keywords.
520 (objc_set_method_opt): New declaration.
521 * stub-objc.c (objc_set_method_opt): New stub.
522
523 2010-09-30 Joseph Myers <joseph@codesourcery.com>
524
525 * c-common.c (handle_optimize_attribute): Pass &global_options to
526 cl_optimization_save and cl_optimization_restore.
527 * c-opts.c (c_common_handle_option): Pass &global_options to
528 handle_generated_option.
529 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
530 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
531 &global_options to cl_optimization_restore.
532
533 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
534
535 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
536 Objective-C/Objective-C++ keywords.
537
538 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
539
540 Merge from 'apple/trunk' branch on FSF servers.
541
542 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
543
544 Radar 4281748
545 * c-common.h (objc_check_global_decl): New declaration.
546 * stub-objc.c (objc_check_global_decl): New stub.
547
548 2010-09-29 Joseph Myers <joseph@codesourcery.com>
549
550 * c.opt: Don't use VarExists.
551
552 2010-09-29 Joseph Myers <joseph@codesourcery.com>
553
554 * c-common.c (c_cpp_error): Update names of diagnostic_context
555 members.
556 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
557 cl_optimization members.
558 * c-opts.c (warning_as_error_callback, c_common_handle_option,
559 sanitize_cpp_opts, finish_options): Update names of cpp_options
560 members.
561
562 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
563
564 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
565 (objc_is_reserved_word): Removed.
566 * c-common.c: Updated comments.
567 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
568 objc_is_reserved_word.
569 * stub-objc.c (objc_is_reserved_word): Removed.
570
571 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
572
573 * c-common.h (objc_add_method_declaration): Adjust prototype to
574 include attributes.
575 (objc_start_method_definition): Likewise.
576 (objc_build_keyword_decl): Likewise.
577 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
578 (objc_start_method_definition): Likewise.
579 (objc_build_keyword_decl): Likewise.
580
581 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
582
583 * c-common.h (objc_start_class_interface): Adjust prototype.
584 (objc_start_category_interface): Likewise.
585 (objc_start_protocol): Likewise.
586 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
587 (objc_start_class_interface): Likewise.
588 (objc_start_category_interface): Likewise.
589
590 2010-09-27 Ian Lance Taylor <iant@google.com>
591
592 * c-common.c (c_common_attribute_table): Add no_split_stack.
593 (handle_no_split_stack_attribute): New static function.
594
595 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
596
597 Merge from 'apple/trunk' branch on FSF servers.
598
599 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
600
601 Radar 4229905
602 * c-common.h (objc_have_common_type): New declaration.
603 * stub-objc.c (objc_have_common_type): New stub.
604
605 2005-06-22 Ziemowit Laski <zlaski@apple.com>
606
607 Radar 4154928
608 * c-common.h (objc_common_type): New prototype.
609 * stub-objc.c (objc_common_type): New stub.
610
611 2010-09-24 Jan Hubicka <jh@suse.cz>
612
613 * c-common.c (handle_leaf_attribute): New function.
614 (struct attribute_spec c_common_att): Add leaf.
615
616 2010-09-22 Joseph Myers <joseph@codesourcery.com>
617
618 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
619 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
620 -dump, -dump=, -imacros, -imacros=, -include, -include=,
621 -include-barrier, -include-directory, -include-directory=,
622 -include-directory-after, -include-directory-after=,
623 -include-prefix, -include-prefix=, -include-with-prefix,
624 -include-with-prefix=, -include-with-prefix-after,
625 -include-with-prefix-after=, -include-with-prefix-before,
626 -include-with-prefix-before=, -no-integrated-cpp,
627 -no-line-commands, -no-standard-includes, -no-warnings, -output,
628 -output=, -pedantic, -pedantic-errors, -preprocess,
629 -print-missing-file-dependencies, -trace-includes, -traditional,
630 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
631 -user-dependencies, -verbose, -write-dependencies,
632 -write-user-dependencies, no-integrated-cpp, traditional): New.
633
634 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
635
636 PR objc/23710
637 * c-common.h (objc_start_method_definition): Return bool instead
638 of void.
639 * stub-objc.c (objc_start_method_definition): Return bool instead
640 of void.
641
642 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
643
644 PR objc/25965
645 * c-common.h (objc_get_interface_ivars): New declaration.
646 * stub-objc.c (objc_get_interface_ivars): New stub.
647
648 2010-09-15 Ian Lance Taylor <iant@google.com>
649
650 * c-common.c (parse_optimize_options): Do not capitalize warning
651 messages. Remove period at end of warning message.
652
653 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
654
655 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
656 (handle_alias_attribute): ... here.
657 (handle_ifunc_attribute): New.
658
659 2010-09-06 Mark Mitchell <mark@codesourcery.com>
660
661 * c-common.h (do_warn_double_promotion): Declare.
662 * c-common.c (do_warn_double_promotion): Define.
663
664 2010-09-05 Mark Mitchell <mark@codesourcery.com>
665
666 * c.opt (Wdouble-promotion): New.
667
668 2010-09-02 Joseph Myers <joseph@codesourcery.com>
669
670 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
671 fvtable-thunks, fxref): Mark no longer supported in help text.
672
673 2010-09-02 Joseph Myers <joseph@codesourcery.com>
674
675 * c.opt (Wimport, fall-virtual, falt-external-templates,
676 fdefault-inline, fenum-int-equiv, fexternal-templates,
677 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
678 fname-mangling-version-, fnew-abi, fnonnull-objects,
679 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
680 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
681 applicable.
682 (fhandle-exceptions): Mark with Alias and Warn.
683 * c-opts.c (c_common_handle_option): Don't handle options marked
684 as ignored.
685
686 2010-09-02 Joseph Myers <joseph@codesourcery.com>
687
688 * c.opt (Wcomments, Werror-implicit-function-declaration,
689 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
690 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
691 aliases.
692 * c-common.c (option_codes): Use OPT_Wcomment instead of
693 OPT_Wcomments.
694 * c-opts.c (warning_as_error_callback, c_common_handle_option):
695 Don't handle options marked as aliases.
696
697 2010-08-25 Richard Guenther <rguenther@suse.de>
698
699 * c-common.c (c_common_get_alias_set): Remove special
700 handling for pointers.
701
702 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
703
704 * c-common.c: Use FOR_EACH_VEC_ELT.
705 * c-gimplify.c: Likewise.
706 * c-pragma.c: Likewise.
707
708 2010-08-16 Joseph Myers <joseph@codesourcery.com>
709
710 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
711 RejectDriver.
712 (MMDX): Change back to MMD. Mark NoDriverArg instead of
713 RejectDriver.
714 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
715 instead of OPT_MDX and OPT_MMDX.
716
717 2010-08-16 Joseph Myers <joseph@codesourcery.com>
718
719 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
720
721 2010-08-12 Joseph Myers <joseph@codesourcery.com>
722
723 * c.opt (MD, MMD): Change to MDX and MMDX.
724 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
725
726 2010-08-11 Joseph Myers <joseph@codesourcery.com>
727
728 * c-opts.c (c_common_handle_option): Call handle_generated_option
729 instead of handle_option.
730
731 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
732
733 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
734 (maybe_apply_renaming_pragma): Delete unneeded declarations.
735
736 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
737
738 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
739 (pending_redefine_extname): Change type to a VEC.
740 (add_to_renaming_pragma_list): Update for new type of
741 pending_redefine_extname.
742 (maybe_apply_renaming_pragma): Likewise.
743
744 2010-08-04 Arnaud Charlet <charlet@adacore.com>
745
746 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
747 visited.
748 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
749 decide whether a type has already been declared/seen.
750 Do not go to the original type.
751 (dump_nested_types): New parameter forward.
752 Generate forward declaration if needed and mark type as visited.
753 (print_ada_declaration): Call dump_nested_types if not already done.
754 Mark types as visited.
755
756 2010-08-03 Joseph Myers <joseph@codesourcery.com>
757
758 * c.opt (-print-pch-checksum): Remove option.
759 * c-opts.c (c_common_handle_option): Don't handle
760 OPT_print_pch_checksum.
761
762 2010-07-27 Joseph Myers <joseph@codesourcery.com>
763
764 * c-common.h (c_common_handle_option): Update prototype and return
765 value type.
766 * c-opts.c (c_common_handle_option): Update prototype and return
767 value type. Update calls to handle_option and
768 enable_warning_as_error.
769
770 2010-07-27 Jakub Jelinek <jakub@redhat.com>
771
772 PR c/45079
773 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
774
775 2010-07-27 Joseph Myers <joseph@codesourcery.com>
776
777 * c-common.h (c_common_missing_argument): Remove.
778 * c-opts.c (c_common_missing_argument): Remove.
779 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
780 idirafter, imacros, include, isysroot, isystem, iquote): Add
781 MissingArgError.
782 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
783
784 2010-07-27 Joseph Myers <joseph@codesourcery.com>
785
786 * c-common.h (c_common_option_lang_mask,
787 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
788 New.
789 (c_common_init_options): Update prototype.
790 * c-opts.c (c_common_option_lang_mask): New.
791 (c_common_initialize_diagnostics): Split out of
792 c_common_init_options.
793 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
794 New.
795 (c_common_init_options): Update prototype. Use decoded options in
796 search for -lang-asm.
797
798 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
799
800 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
801 * c-format.c: Likewise.
802
803 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
804
805 * c-common.h: Include diagnostic-core.h. Error if already
806 included.
807 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
808
809 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
810
811 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
812 Do not include expr.h
813 (vector_mode_valid_p): Move here.
814
815 2010-06-21 DJ Delorie <dj@redhat.com>
816
817 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
818 allow these pragmas anywhere.
819
820 2010-06-14 Jakub Jelinek <jakub@redhat.com>
821
822 PR bootstrap/44509
823 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
824 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
825 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
826 ggc_strdup instead of xstrdup.
827
828 2010-06-10 Jakub Jelinek <jakub@redhat.com>
829
830 * c-cppbuiltin.c: Include cpp-id-data.h.
831 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
832 (lazy_hex_fp_value): New function.
833 (builtin_define_with_hex_fp_value): Provide definitions lazily.
834
835 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
836
837 * c-gimplify.c: Do not include tree-flow.h
838
839 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
840
841 PR other/44034
842 * c-common.c: Rename targetm member:
843 targetm.enum_va_list -> targetm.enum_va_list_p
844
845 2010-06-28 Anatoly Sokolov <aesok@post.ru>
846
847 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
848
849 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
850
851 * c-cppbuiltin.c: Do not include except.h.
852
853 2010-06-24 Andi Kleen <ak@linux.intel.com>
854
855 * c-common.c (warn_for_omitted_condop): New.
856 * c-common.h (warn_for_omitted_condop): Add prototype.
857
858 2010-06-21 Joseph Myers <joseph@codesourcery.com>
859
860 * c.opt (lang-objc): Remove.
861 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
862
863 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
864
865 * c-opts.c: Include "tm_p.h".
866
867 2010-06-20 Joseph Myers <joseph@codesourcery.com>
868
869 * c-common.c (parse_optimize_options): Update call to
870 decode_options.
871
872 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
873
874 * c-common.c (record_types_used_by_current_var_decl): Adjust for
875 new type of types_used_by_cur_var_decl.
876
877 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
878
879 PR bootstrap/44512
880 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
881 for C++ standard compliance.
882
883 2010-06-16 Jason Merrill <jason@redhat.com>
884
885 * c.opt: Add -Wnoexcept.
886
887 2010-06-16 Richard Guenther <rguenther@suse.de>
888
889 PR c/44555
890 * c-common.c (c_common_truthvalue_conversion): Remove
891 premature and wrong optimization concering ADDR_EXPRs.
892
893 2010-06-15 Arnaud Charlet <charlet@adacore.com>
894
895 * c-ada-spec.c (dump_sloc): Remove column info.
896 (is_simple_enum): New function.
897 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
898 enum types when relevant.
899
900 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
901
902 * c-common.c (conversion_warning): Warn at expression
903 location.
904
905 2010-06-10 Joseph Myers <joseph@codesourcery.com>
906
907 * c-opts.c (c_common_handle_option): Don't handle
908 OPT_fshow_column.
909
910 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
911
912 * c-pragma.c (push_alignment): Use typed GC allocation.
913 (handle_pragma_push_options): Likewise.
914
915 * c-common.c (parse_optimize_options): Likewise.
916
917 * c-common.h (struct sorted_fields_type): Add variable_size GTY
918 option.
919
920 2010-06-07 Joseph Myers <joseph@codesourcery.com>
921
922 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
923 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
924 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
925 flag_signed_bitfields, warn_strict_null_sentinel,
926 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
927 flag_gen_declaration, flag_no_gnu_keywords,
928 flag_implement_inlines, flag_implicit_templates,
929 flag_implicit_inline_templates, flag_optional_diags,
930 flag_elide_constructors, flag_default_inline, flag_rtti,
931 flag_conserve_space, flag_access_control, flag_check_new,
932 flag_new_for_scope, flag_weak, flag_working_directory,
933 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
934 flag_enforce_eh_specs, flag_threadsafe_statics,
935 flag_pretty_templates): Remove.
936 * c-common.h (flag_preprocess_only, flag_nil_receivers,
937 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
938 flag_replace_objc_classes, flag_undef, flag_no_builtin,
939 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
940 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
941 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
942 flag_no_gnu_keywords, flag_implement_inlines,
943 flag_implicit_templates, flag_implicit_inline_templates,
944 flag_optional_diags, flag_elide_constructors, flag_default_inline,
945 flag_rtti, flag_conserve_space, flag_access_control,
946 flag_check_new, flag_new_for_scope, flag_weak,
947 flag_working_directory, flag_use_cxa_atexit,
948 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
949 flag_threadsafe_statics, flag_pretty_templates,
950 warn_strict_null_sentinel): Remove.
951 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
952 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
953 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
954 fimplicit-inline-templates, fimplicit-templates,
955 flax-vector-conversions, fms-extensions, fnil-receivers,
956 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
957 frtti, fshort-double, fshort-enums, fshort-wchar,
958 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
959 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
960 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
961 gen-decls, undef): Use Var.
962 (fdefault-inline, foptional-diags): Document as doing nothing.
963 * c-opts.c (c_common_handle_option): Remove cases for options now
964 using Var. Mark ignored options as such.
965
966 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
967
968 * c-common.c: Moved to here from parent directory.
969 * c-common.def: Likewise.
970 * c-common.h: Likewise.
971 * c-cppbuiltin.c: Likewise.
972 * c-dump.c: Likewise.
973 * c-format.c: Likewise.
974 * c-format.h : Likewise.
975 * c-gimplify.c: Likewise.
976 * c-lex.c: Likewise.
977 * c-omp.c: Likewise.
978 * c.opt: Likewise.
979 * c-opts.c: Likewise.
980 * c-pch.c: Likewise.
981 * c-ppoutput.c: Likewise.
982 * c-pragma.c: Likewise.
983 * c-pragma.h: Likewise.
984 * c-pretty-print.c: Likewise.
985 * c-pretty-print.h: Likewise.
986 * c-semantics.c: Likewise.
987 * stub-objc.c: Likewise.
988
989 * c-common.c: Include gt-c-family-c-common.h.
990 * c-pragma.c: Include gt-c-family-c-pragma.h.
991
992 Copyright (C) 2010 Free Software Foundation, Inc.
993
994 Copying and distribution of this file, with or without modification,
995 are permitted in any medium without royalty provided the copyright
996 notice and this notice are preserved.