]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
2011-08-10 Richard Guenther <rguenther@suse.de>
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
2169f33b 12011-08-02 Jakub Jelinek <jakub@redhat.com>
2
3 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4 (c_finish_omp_taskyield): New prototype.
5 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
6 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
7 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
8 or RHS1 have side-effects, evaluate those too in the right spot,
9 if it is a decl and LHS is also a decl, error out if they
10 aren't the same.
11 (c_finish_omp_taskyield): New function.
12 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
13 * c-pragma.c (omp_pragmas): Add taskyield.
14 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
15 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
16 PRAGMA_OMP_CLAUSE_MERGEABLE.
17
ab77850e 182011-07-25 Dodji Seketeli <dodji@redhat.com>
19
20 * c-common.h (set_underlying_type): Remove parm name from
21 declaration.
22
6ee97920 232011-07-25 Romain Geissler <romain.geissler@gmail.com>
24
25 * c-pretty-print.h: Search c-common.h in c-family.
26
dc251364 272011-07-22 Jason Merrill <jason@redhat.com>
28
1a2a35f0 29 PR c++/49793
30 * c.opt (Wnarrowing): New.
31
27282252 32 PR c++/30112
33 * c-common.h: Declare c_linkage_bindings.
34 * c-pragma.c (handle_pragma_redefine_extname): Use it.
35
dc251364 36 PR c++/49813
37 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
38 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
39 as flag_isoc99 for 'restrict'.
40 (pp_c_specifier_qualifier_list): Likewise for _Complex.
41
fc501191 422011-07-21 Ian Lance Taylor <iant@google.com>
43
44 PR middle-end/49705
45 * c-common.c (c_disable_warnings): New static function.
46 (c_enable_warnings): New static function.
47 (c_fully_fold_internal): Change local unused_p to bool. Call
48 c_disable_warnings and c_enable_warnings rather than change
49 c_inhibit_evaluation_warnings.
50
07b8f133 512011-07-20 Jason Merrill <jason@redhat.com>
52
53 PR c++/6709 (DR 743)
54 PR c++/42603 (DR 950)
55 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
56 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
57 (CPP_DECLTYPE): New.
58 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
59
2cc66f2a 602011-07-19 Richard Guenther <rguenther@suse.de>
61
62 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
63 * c-omp.c (c_finish_omp_for): Likewise.
64
3c802a1e 652011-07-12 Eric Botcazou <ebotcazou@adacore.com>
66
67 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
68 body on the next line.
69
98a33d9f 702011-07-08 Jason Merrill <jason@redhat.com>
71
3115bda0 72 PR c++/45437
73 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
74
98a33d9f 75 PR c++/49673
76 * c-common.c (c_apply_type_quals_to_decl): Don't check
77 TYPE_NEEDS_CONSTRUCTING.
78
c38a75b7 792011-07-06 Richard Guenther <rguenther@suse.de>
80
81 * c-common.c (c_common_nodes_and_builtins):
82 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
83
e593356b 842011-07-05 Richard Guenther <rguenther@suse.de>
85
86 * c-common.c (c_common_nodes_and_builtins): Build all common
87 tree nodes first.
88
fca0886c 892011-06-27 Jakub Jelinek <jakub@redhat.com>
90
a68f7a8d 91 * c-common.h (c_tree_chain_next): New static inline function.
92
fca0886c 93 * c-common.c (check_builtin_function_arguments): Handle
94 BUILT_IN_ASSUME_ALIGNED.
95
2797f13a 962011-06-21 Andrew MacLeod <amacleod@redhat.com>
97
98 * c-common.c: Add sync_ or SYNC__ to builtin names.
99 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 100
1012011-06-20 Pierre Vittet <piervit@pvittet.com>
102
103 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
104 handler.
105 (gen_pragma_handler): New union.
106 (internal_pragma_handler): New type.
107 (c_register_pragma_with_data)
108 (c_register_pragma_with_expansion_and_data): New functions.
109
110 * c-pragma.c (registered_pragmas, c_register_pragma_1)
111 (c_register_pragma, c_register_pragma_with_expansion)
112 (c_invoke_pragma_handler): Changed to work with
113 internal_pragma_handler.
114 (c_register_pragma_with_data)
115 (c_register_pragma_with_expansion_and_data): New functions.
116
218e3e4e 1172011-06-14 Joseph Myers <joseph@codesourcery.com>
118
119 * c-common.c: Include common/common-target.h.
120 (handle_section_attribute): Use
121 targetm_common.have_named_sections.
122 * c-cppbuiltin.c: Include common/common-target.h.
123 (c_cpp_builtins): Use targetm_common.except_unwind_info.
124
41e53ed2 1252011-06-10 Richard Guenther <rguenther@suse.de>
126
127 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
128 to print a IDENTIFIER_NODE.
129
a6f06169 1302011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
131 Joseph Myers <joseph@codesourcery.com>
132
133 * c.opt (fbuilding-libgcc): New option.
134 * c-cppbuiltin.c (c_cpp_builtins): Define
135 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
136
1ea9269b 1372011-06-07 Jason Merrill <jason@redhat.com>
138
8ce59854 139 * c-common.c (max_tinst_depth): Lower default to 900.
140
1ea9269b 141 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
142
1af0124d 1432011-06-07 Richard Guenther <rguenther@suse.de>
144
145 * c-common.c (c_common_nodes_and_builtins): Do not set
146 size_type_node or call set_sizetype.
147
0e9a4c01 1482011-06-07 Dodji Seketeli <dodji@redhat.com>
149
150 PR debug/49130
151 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
152 type when using pointer comparison to compare types.
153
90b40725 1542011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
155
156 * c.opt: Add -Wdelete-non-virtual-dtor.
157 * c-opts.c (c_common_handle_option): Include it in -Wall.
158
fc9c9e87 1592011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
160
161 PR bootstrap/49190
162
163 Revert:
164 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
165
166 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
167 not tree_common.
168
d0389adc 1692011-05-27 Jakub Jelinek <jakub@redhat.com>
170
171 PR c++/49165
172 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
173 C++ don't call c_common_truthvalue_conversion on void type arms.
174
cacfdc02 1752011-05-27 Nathan Froyd <froydnj@codesourcery.com>
176
177 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
178 (stmt_list_stack): Define.
179 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
180 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
181
027fc6ef 1822011-05-26 Nathan Froyd <froydnj@codesourcery.com>
183
184 * c-common.c (warning_candidate_p): Check for BLOCKs.
185
f21317a1 1862011-05-26 Nathan Froyd <froydnj@codesourcery.com>
187
188 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
189 not tree_common.
190
789e953d 1912011-05-25 Jakub Jelinek <jakub@redhat.com>
192
193 * c-common.c (def_fn_type): Remove extra va_end.
194
7f506bca 1952011-05-23 Jason Merrill <jason@redhat.com>
196
197 PR c++/48106
198 * c-common.c (c_common_get_narrower): New.
199 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
200
774e9d58 2012011-05-23 Nathan Froyd <froydnj@codesourcery.com>
202
203 * c-common.h (check_function_arguments): Tweak prototype of
204 check_function_arguments.
205 * c-common.c (check_function_arguments): Likewise. Adjust
206 calls to check_function_nonnull, check_function_format, and
207 check_function_sentinel.
208 (check_function_sentinel): Take a FUNCTION_TYPE rather than
209 separate attributes and typelist arguments. Use
210 FOREACH_FUNCTION_ARGS to iterate over argument types.
211
23407dc9 2122011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
213
214 * c-common.c (c_common_reswords): Reorder.
215 * c-common.h (rid): Likewise.
216
3a939d12 2172011-05-10 Nathan Froyd <froydnj@codesourcery.com>
218
219 * c-common.c (def_fn_type): Don't call build_function_type, call
220 build_function_type_array or build_varargs_function_type_array
221 instead.
222 (c_common_nodes_and_builtins): Likewise.
223
b6e3dd65 2242011-05-05 Nathan Froyd <froydnj@codesourcery.com>
225
226 * c-common.c (c_add_case_label): Omit the loc argument to
227 build_case_label.
228 * c-common.h (build_case_label): Remove.
229 * c-semantics.c (build_case_label): Remove.
230
4232a958 2312011-05-05 Joseph Myers <joseph@codesourcery.com>
232
233 * c-objc.h (objc_start_method_definition): Update prototype.
234 * stub-objc.c (objc_start_method_definition): Add extra parameter.
235
d0af78c5 2362011-05-04 Nathan Froyd <froydnj@codesourcery.com>
237
238 * c-common.c (check_main_parameter_types): Reindent. Don't use
239 TYPE_ARG_TYPES directly.
240 (handle_nonnull_attribute): Likewise.
241 (sync_resolve_params): Likewise.
242 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
243 to check_format_string.
244 (handle_format_attribute): Likewise.
245 (check_format_string): Take a function type to examine instead of
246 a type list. Use a function_arg_iterator to step through argument
247 types.
248
ceb7b692 2492011-05-04 Richard Guenther <rguenther@suse.de>
250
251 * c-common.c (fix_string_type): Use size_int for index type bounds.
252 (start_fname_decls): Do not pass NULL to build_int_cst.
253 (c_init_attributes): Likewise.
254 * c-lex.c (c_lex_with_flags): Likewise.
255
c66c81be 2562011-04-27 Jason Merrill <jason@redhat.com>
257
258 * c-common.c (make_tree_vector_from_list): New.
259 * c-common.h: Declare it.
260
16930c72 2612011-04-26 Richard Guenther <rguenther@suse.de>
262
263 PR preprocessor/48248
264 * c-ppoutput.c (maybe_print_line): Always optimize newlines
265 for output size with -P.
266
23407dc9 2672011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
268
269 * c-common.c (struct c_common_resword): Add __underlying_type.
270 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
271
dd045aee 2722011-04-20 Jim Meyering <meyering@redhat.com>
273
274 * c-format.c (init_dollar_format_checking): Remove useless
275 if-before-free.
276
394dd737 2772011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
278
279 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 280 (objc_detect_field_duplicates): New.
394dd737 281 * stub-objc.c: Likewise.
23407dc9 282
a758bf7d 2832011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
284
285 * stub-objc.c (objc_declare_protocols): Renamed to
286 objc_declare_protocol.
287 * c-objc.h: Likewise.
23407dc9 288
29d7200d 2892011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
290
291 * stub-objc.c (objc_declare_class): Updated argument name.
292
9b88d08d 2932011-04-12 Nathan Froyd <froydnj@codesourcery.com>
294
295 * c-common.h (c_common_init_ts): Declare.
296 * c-common.c (c_common_init_ts): Define.
297
4185cf58 2982011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
299
300 * c-objc.h (objc_build_message_expr): Updated prototype.
301 * stub-objc.c (objc_build_message_expr): Likewise.
302
5a90471f 3032011-04-12 Martin Jambor <mjambor@suse.cz>
304
305 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
306 of cgraph_node.
307
783bb57e 3082011-04-11 Richard Guenther <rguenther@suse.de>
309
310 * c-common.c (complete_array_type): Build a range type of
311 proper type.
312
c33080b9 3132011-04-08 Nathan Froyd <froydnj@codesourcery.com>
314
315 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
316 (handle_type_generic_attribute): Likewise.
317
f8913d47 3182011-04-07 Jason Merrill <jason@redhat.com>
319
320 PR c++/48450
321 * c-common.c (c_common_truthvalue_conversion): Don't ignore
322 conversion from C++0x scoped enum.
323
c94b1d0e 3242011-04-06 Joseph Myers <joseph@codesourcery.com>
325
326 * c-target-def.h: New file.
327 * c-target.def: New file.
328 * c-target.h: New file.
329 * c-common.c (targetcm): Don't define here.
330 * c-common.h (default_handle_c_option): Declare.
331 * c-format.c: Include c-target.h instead of target.h.
332 * c-opts.c: Include c-target.h instead of target.h. Explicitly
333 include tm.h.
334 (default_handle_c_option): Move from targhooks.c.
335
acb10f41 3362011-03-29 Jakub Jelinek <jakub@redhat.com>
337
338 PR preprocessor/48248
339 * c-ppoutput.c (print): Add src_file field.
340 (init_pp_output): Initialize it.
341 (maybe_print_line): Don't optimize by adding up to 8 newlines
342 if map->to_file and print.src_file are different file.
343 (print_line): Update print.src_file.
344
82715bcd 3452011-03-25 Kai Tietz <ktietz@redhat.com>
346
347 * c-ada-spec.c (compare_comment): Use filename_cmp
348 instead of strcmp for filename.
349
451c8e2f 3502011-03-25 Jeff Law <law@redhat.com>
351
352 * c-family/c-common.c (def_fn_type): Add missing va_end.
353
3c47771c 3542011-03-25 Jason Merrill <jason@redhat.com>
355
356 * c.opt: Add -std=c++03.
357
97e6200f 3582011-03-22 Eric Botcazou <ebotcazou@adacore.com>
359
360 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
361
ac86af5d 3622011-03-17 Kai Tietz
363
364 PR target/12171
ee212425 365 * c-pretty-print.c (pp_c_specifier_qualifier_list):
366 Display allowed attributes for function pointer types.
367 (pp_c_attributes_display): New function to display
368 attributes having affects_type_identity flag set to true.
369 * c-pretty-print.h (pp_c_attributes_display): New prototype.
370
ac86af5d 371 * c-common.c (c_common_attribute_table):
372 Add new element.
373 (c_common_format_attribute_table): Likewise.
374
914d1151 3752011-03-18 Jason Merrill <jason@redhat.com>
376
69788bdf 377 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
378 * c-common.h: Don't declare it here.
379 * c-common.c: Or define it here.
380 * c-opts.c (c_common_handle_option): Or set it here.
381
914d1151 382 PR c++/35315
383 * c-common.c (handle_transparent_union_attribute): Don't
384 make a duplicate type in C++.
385
54cf6eed 3862011-03-15 Jason Merrill <jason@redhat.com>
387
388 * c-common.c (max_constexpr_depth): New.
389 * c-common.h: Declare it.
390 * c-opts.c (c_common_handle_option): Set it.
391 * c.opt (fconstexpr-depth): New option.
392
02cb1060 3932011-03-11 Jason Merrill <jason@redhat.com>
394
9bf1c74e 395 * c-common.c (attribute_takes_identifier_p): Add missing const.
396
02cb1060 397 PR c++/46803
398 * c-common.c (attribute_takes_identifier_p): Assume that an
399 unknown attribute takes an identifier.
400
ecf2703d 4012011-03-07 Nathan Froyd <froydnj@codesourcery.com>
402
403 PR c/47786
404 * c-common.c (c_type_hash): Call list_length instead of iterating
405 through DECL_CHAIN. Rename 'i' to 'n_elements'.
406
2b19dfe4 4072011-02-19 Jakub Jelinek <jakub@redhat.com>
408
409 PR c/47809
410 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
411
29cf2335 4122011-02-17 Iain Sandoe <iains@gcc.gnu.org>
413
414 * c.opt (fobjc-abi-version=) New.
415 (fobjc-nilcheck): New.
416
fad3f658 4172011-02-03 Nathan Froyd <froydnj@codesourcery.com>
418
419 PR c++/46890
420 * c-common.h (keyword_is_decl_specifier): Declare.
421 * c-common.c (keyword_is_decl_specifier): Define.
422 (keyword_is_function_specifier): New function.
423
a12319b3 4242011-01-26 Jakub Jelinek <jakub@redhat.com>
425
426 PR c/47473
427 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
428 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
429 REAL_TYPE.
430
5c128dc8 4312011-01-26 Arnaud Charlet <charlet@adacore.com>
432
433 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
434
8d67b0c7 4352011-01-26 Jakub Jelinek <jakub@redhat.com>
436
437 PR pch/47430
438 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
439 after init_c_lex if pch_file is set.
440
0675168d 4412011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
442
e8911163 443 PR c++/43601
0675168d 444 * c.opt (-fkeep-inline-dllexport): New switch.
445
0725e25c 4462011-01-12 Richard Guenther <rguenther@suse.de>
447
448 PR middle-end/32511
449 * c-common.c (handle_weak_attribute): Warn instead of error
450 on declaring an inline function weak.
451
fdd84b77 4522011-01-05 Tom Tromey <tromey@redhat.com>
453
454 * c-common.h (lvalue_error): Update.
455 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
456 not error.
457
e6e73d14 4582010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
459
d67e8485 460 PR objc/47075
461 * c-objc.h (objc_finish_message_expr): Added argument to
462 prototype.
463
a36cf284 4642010-12-22 Nathan Froyd <froydnj@codesourcery.com>
465
466 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
467 Use prototype_p.
468
33b3681f 4692010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
470
471 * c-objc.h (objc_maybe_warn_exceptions): New.
472 * stub-objc.c (objc_maybe_warn_exceptions): New.
473
a1f90215 4742010-12-10 Nathan Froyd <froydnj@codesourcery.com>
475
476 * c-common.h (readonly_error): Declare.
477 * c-common.c (readonly_error): Define.
478
b1bbc8e5 4792010-12-09 Nathan Froyd <froydnj@codesourcery.com>
480
481 * c-common.h (invalid_indirection_error): Declare.
482 * c-common.c (invalid_indirection_error): Define.
483
b0d55af9 4842010-12-03 Richard Guenther <rguenther@suse.de>
485
486 PR c/46745
487 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
488 (pp_c_unary_expression): Likewise.
489 (pp_c_expression): Likewise.
490
d7489d8d 4912010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
492
493 * c-common.h (objc_finish_function): New.
494 (objc_non_volatilized_type): Removed.
495 (objc_type_quals_match): Removed.
496 * stub-objc.c (objc_finish_function): New.
497 (objc_non_volatilized_type): Removed.
498 (objc_type_quals_match): Removed.
499
92468061 5002010-11-30 Joseph Myers <joseph@codesourcery.com>
501
502 * c-common.h (parse_optimize_options): Declare.
503 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
504 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
505
967958e4 5062010-11-29 Joseph Myers <joseph@codesourcery.com>
507
508 * c-opts.c (check_deps_environment_vars): Use getenv instead of
509 GET_ENVIRONMENT.
510 * c-pch.c (O_BINARY): Don't define here.
511 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
512
b213bf24 5132010-11-25 Joseph Myers <joseph@codesourcery.com>
514
515 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
516 targetm.except_unwind_info.
517
9faf44d6 5182010-11-23 Joseph Myers <joseph@codesourcery.com>
519
520 * c-opts.c (c_common_handle_option): Pass location to
521 set_struct_debug_option.
522
79396169 5232010-11-23 Joseph Myers <joseph@codesourcery.com>
524
525 * c-common.c (visibility_options): Move from ../opts.c.
526 * c-common.h (struct visibility_flags, visibility_options):
527 Declare here.
528 * c-opts.c (finish_options): Rename to c_finish_options.
529 (c_common_init): Update call to finish_options.
530
b4aa4123 5312010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
532
533 PR objc/34033
534 * c-lex.c (lex_string): Check that each string in an Objective-C
535 string concat sequence starts with either one or zero '@', and
536 that there are no spurious '@' signs at the end.
537
3e0e49f2 5382010-11-20 Joseph Myers <joseph@codesourcery.com>
539
540 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
541 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
542 HANDLE_PRAGMA_VISIBILITY.
543 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
544 HANDLE_PRAGMA_VISIBILITY): Don't define.
545 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
546
a9ffdd35 5472010-11-20 Nathan Froyd <froydnj@codesourcery.com>
548
549 PR c++/16189
550 PR c++/36888
551 PR c++/45331
552 * c-common.h (keyword_begins_type_specifier): Declare.
553 (keyword_is_storage_class_specifier): Declare.
554 (keyword_is_type_qualifier): Declare.
555 * c-common.c (keyword_begins_type_specifier): New function.
556 (keyword_is_storage_class_specifier): New function.
557 (keyword_is_type_qualifier): Declare.
558
93be21c0 5592010-11-19 Joseph Myers <joseph@codesourcery.com>
560
561 PR c/46547
562 * c-common.c (in_late_binary_op): Define.
563 (c_common_truthvalue_conversion): Check in_late_binary_op before
564 calling c_save_expr.
565 * c-common.h (in_late_binary_op): Declare.
566
d7175aef 5672010-11-19 Joseph Myers <joseph@codesourcery.com>
568
569 * c-opts.c (c_common_handle_option): Update calls to
570 set_struct_debug_option.
571
c213e196 5722010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
573
574 * c-common.h (objc_declare_protocols): Added additional argument.
575 * stub-objc.c (objc_declare_protocol): Same change.
576
0b5fc5d6 5772010-11-18 Nathan Froyd <froydnj@codesourcery.com>
578
579 PR c/33193
580 * c-common.h (build_real_imag_expr): Declare.
581 * c-semantics.c (build_real_imag_expr): Define.
582
b8ba44e7 5832010-11-17 Joseph Myers <joseph@codesourcery.com>
584
585 * c-opts.c (c_common_parse_file): Take no arguments.
586 * c-common.h (c_common_parse_file): Update prototype.
587
6ef8d12f 5882010-11-16 Jakub Jelinek <jakub@redhat.com>
589
590 PR c++/46401
591 * c-common.c (warning_candidate_p): Don't track non-const calls
592 or STRING_CSTs.
593
929d2a90 5942010-11-15 Ian Lance Taylor <iant@google.com>
595
596 * c-lex.c (init_c_lex): Set macro debug callbacks if
597 flag_dump_go_spec is set.
598
e4a7640a 5992010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
600
601 * c-common.h (objc_build_incr_expr_for_property_ref): New.
602 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
603
597d2d81 6042010-11-15 Nathan Froyd <froydnj@codesourcery.com>
605
606 PR preprocessor/45038
607 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
608 dialects.
609
c123f04d 6102010-11-12 Joseph Myers <joseph@codesourcery.com>
611
612 * c-common.h (c_family_lang_mask): Declare.
613 * c-opts.c (c_family_lang_mask): Make extern.
614 * c-pragma.c (handle_pragma_diagnostic): Use
615 control_warning_option.
616
3c6c0e40 6172010-11-12 Joseph Myers <joseph@codesourcery.com>
618
619 * c-common.c (parse_optimize_options): Update call to
620 decode_options.
621 * c-common.h (c_common_handle_option): Update prototype.
622 * c-opts.c (c_common_handle_option): Take location_t parameter and
623 pass it to other functions.
624
19ec5c9e 6252010-11-11 Joseph Myers <joseph@codesourcery.com>
626
627 * c-opts.c (warning_as_error_callback): Remove.
628 (c_common_initialize_diagnostics): Don't call
629 register_warning_as_error_callback.
630 (c_common_handle_option): Handle -Werror=normalized= here.
631
bf776685 6322010-11-10 Joseph Myers <joseph@codesourcery.com>
633
634 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
635 in diagnostic.
636 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
637 letter.
638 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
639 Remove trailing '.' from diagnostics.
640 * c.opt (Wwrite-strings_: Avoid '`' in help text.
641
6bd9d862 6422010-11-10 Joseph Myers <joseph@codesourcery.com>
643
644 * c-common.c (parse_optimize_options): Pass global_dc to
645 decode_options.
646 * c-opts.c (c_common_handle_option): Pass &global_options to
647 set_Wstrict_aliasing.
648 * c.opt (v): Don't mark Common or document here.
649
1f6616ee 6502010-11-06 Iain Sandoe <iains@gcc.gnu.org>
651
652 PR target/44981
653 * c-format.c (format_type): New type gcc_objc_string_format_type.
654 (valid_stringptr_type_p): New.
655 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
656 (check_format_string): Pass expected type, use
657 valid_stringptr_type_p (), check that the format string types are
658 consistent with the format specification.
659 (decode_format_attr): Warn if NSString is used outside objective-c.
660 (format_types_orig): Add NSString.
661 (format_name): New.
662 (format_flags): New.
663 (check_format_arg): Handle format strings requiring an external parser.
664 first_target_format_type: New variable.
665 (handle_format_attribute): Set up first_target_format_type, pass the
666 expected format arg string type to check_format_string().
667 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
668 * stub-objc.c (objc_string_ref_type_p): New.
669 (objc_check_format_arg): New.
670
b0d0931f 6712010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
672
673 Fixed using the Objective-C 2.0 dot-syntax with class names.
674 * c-common.h (objc_build_class_component_ref): New.
675 * stub-objc.c (objc_build_class_component_ref): New.
676
f26877d5 6772010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
678
679 * c.opt (Wproperty-assign-default): New option.
680
1ef143b6 6812010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
682
683 Implemented -fobjc-std=objc1 flag.
684 * c.opt (fobjc-std=objc1): New option.
685
8c582e4f 6862010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
687
688 Implemented format and noreturn attributes for Objective-C methods.
689 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
690 attribute for Objective-C methods.
691
8637f1db 6922010-10-31 Jason Merrill <jason@redhat.com>
693
694 * c-common.c (conversion_warning, warn_for_collisions_1): Use
695 EXPR_LOC_OR_HERE.
696
9d9f5bb3 6972010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
698
699 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
700 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
701 (objc_add_property_declaration): Removed arguments for copies and
702 ivar.
703 (objc_build_getter_call): Renamed to
704 objc_maybe_build_component_ref.
705 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
706 (objc_is_property_ref): New.
707 * c-common.c (c_common_reswords): Removed copies and ivar.
708 * stub-objc.c (objc_add_property_declaration): Removed arguments
709 for copies and ivar.
710 (objc_build_getter_call): Renamed to
711 objc_maybe_build_component_ref.
712 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
713 (objc_is_property_ref): New.
714
56f907a0 7152010-10-29 Arnaud Charlet <charlet@adacore.com>
716 Matthew Gingell <gingell@adacore.com>
717
718 * c-ada-spec.c (separate_class_package): New function.
719 (pp_ada_tree_identifier): Prefix references to C++ classes with the
720 name of their enclosing package.
721 (print_ada_declaration): Use separate_class_package.
722
b5fa273e 7232010-10-27 Jason Merrill <jason@redhat.com>
724
5290e253 725 * c-common.c (c_common_reswords): Add __is_literal_type.
726 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
727
b5fa273e 728 * c-common.c (check_case_value): Remove special C++ code.
729
7590f0e5 7302010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
731
732 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
733 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
734 and RID_LAST_PATTR.
735 (objc_add_property_declaration): Added additional arguments.
736 (objc_property_attribute_kind): Removed.
737 (objc_set_property_attr): Removed.
738 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
739 copy and nonatomic.
740 * stub-objc.c (objc_add_property_declaration): Added additional
741 arguments.
742 (objc_set_property_attr): Removed.
743
1d894bcf 7442010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
745
746 * c-common.h (objc_add_property_variable): Renamed to
747 objc_add_property_declaration. Added location argument.
748 * stub-objc.c (objc_add_property_variable): Same change.
749
e23bf1fb 7502010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
751
752 * c-common.h (objc_maybe_printable_name): New.
753 * stub-objc.c (objc_maybe_printable_name): New.
754
93426222 7552010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
756 Andrew Pinski <pinskia@gmail.com>
757
758 * c-common.h (c_common_mark_addressable_vec): Declare.
759 * c-common.c (c_common_mark_addressable_vec): New function.
760
45b2b110 7612010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
762
763 * c-common.h (objc_set_method_type): Removed.
764 (objc_add_method_declaration): Added boolean argument.
765 (objc_start_method_definition): Same change.
766 (objc_build_method_signature): Same change.
767 * stub-objc.c (objc_set_method_type): Removed.
768 (objc_add_method_declaration): Added boolean argument.
769 (objc_start_method_definition): Same change.
770 (objc_build_method_signature): Same change.
771
64cd9619 7722010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
773
774 * c-common.h (finish_file): Removed.
775 (objc_write_global_declarations): New.
776 * c-opts.c (c_common_parse_file): Do not call finish_file.
777 * stub-objc.c (objc_write_global_declarations): New.
778
e1f293c0 7792010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
780
781 Implemented parsing @synthesize and @dynamic for
782 Objective-C/Objective-C++.
783 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
784 (objc_add_synthesize_declaration): New.
785 (objc_add_dynamic_declaration): New.
786 * c-common.c (c_common_reswords): Add synthesize and dynamic.
787 * stub-objc.c (objc_add_synthesize_declaration): New.
788 (objc_add_dynamic_declaration): New.
789
ef97a312 7902010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
791
792 PR target/46041
793 * c-cppbuiltin.c (mode_has_fma): Move function here from
794 builtins.c. Don't use the fma optab, instead just use the
795 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
796 using -save-temps.
797
69b07042 7982010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
799
800 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 801
69b07042 802 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
803
804 Radar 4330422
805 * c-common.h (objc_non_volatilized_type): New declaration
806 * stub-objc.c (objc_non_volatilized_type): New stub.
807
f15f2e56 8082010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
809
69b07042 810 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 811
812 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
813
814 Radar 4133425
815 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 816 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 817
4a8875ed 8182010-10-17 Iain Sandoe <iains@gcc.gnu.org>
819
820 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
821 * c-common.h (enum rid): Add RID_AT_PACKAGE.
822 (objc_ivar_visibility_kind): New enum.
823 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 824 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 825 visibility enum.
826
7e0713b1 8272010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
828
829 * c-cppbuiltin.c (builtin_define_float_constants): Emit
830 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
831 has the appropriate fma builtins.
832 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
833
86c110ac 8342010-10-14 Iain Sandoe <iains@gcc.gnu.org>
835
7e0713b1 836 merge from FSF apple 'trunk' branch.
86c110ac 837 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 838
86c110ac 839 Radars 4436866, 4505126, 4506903, 4517826
840 * c-common.c (c_common_resword): Define @property and its attributes.
841 * c-common.h: Define property attribute enum entries.
842 (OBJC_IS_PATTR_KEYWORD): New.
843 (objc_property_attribute_kind): New enum.
844 Declare objc_set_property_attr (), objc_add_property_variable (),
845 objc_build_getter_call () and objc_build_setter_call ().
846 * stub-objc.c (objc_set_property_attr): New stub.
847 (objc_add_property_variable): Likewise.
848 (objc_build_getter_call): Likewise.
849 (objc_build_setter_call) Likewise.
7e0713b1 850
40c8d1dd 8512010-10-13 Iain Sandoe <iains@gcc.gnu.org>
852
7e0713b1 853 merge from FSF apple 'trunk' branch.
40c8d1dd 854 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
855
856 Radar 3803157 (method attributes)
857 * c-common.c (handle_deprecated_attribute): Recognize
858 objc methods as valid declarations.
859 * c-common.h: Declare objc_method_decl ().
7e0713b1 860 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 861
f3f006ad 8622010-10-08 Joseph Myers <joseph@codesourcery.com>
863
864 * c-common.c (parse_optimize_options): Call
865 decode_cmdline_options_to_array_default_mask before
866 decode_options. Update arguments to decode_options.
867 * c-common.h (c_common_init_options_struct): Declare.
868 * c-opts.c (c_common_init_options_struct): New. Split out from
869 c_common_init_options.
870
0a65c3bb 8712010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
872
873 Implemented fast enumeration for Objective-C.
874 * c-common.h (objc_finish_foreach_loop): New.
875 * stub-objc.c (objc_finish_foreach_loop): New.
876
24ca3b4e 8772010-10-05 Joseph Myers <joseph@codesourcery.com>
878
879 * c-common.h (struct diagnostic_context): Don't declare here.
880 (c_common_initialize_diagnostics): Declare using
881 diagnostic_context typedef.
882 * c-opts.c (c_common_handle_option): Pass global_dc to
883 handle_generated_option.
884
f83b64ca 8852010-10-04 Joseph Myers <joseph@codesourcery.com>
886
887 * c-opts.c (c_common_handle_option): Pass &global_options_set to
888 handle_generated_option.
889
2fdec027 8902010-10-03 Ian Lance Taylor <iant@google.com>
891
892 * c.opt (-fplan9-extensions): New option.
893
41acdfa4 8942010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
895
896 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
897 Remove.
898 (c_cpp_builtins): Call functions from cppbuiltin.c instead
899 of duplicating code.
900
069761fb 9012010-09-30 Iain Sandoe <iains@gcc.gnu.org>
902
903 * c-common.c: Add two new entries for @optional
904 and @required keywords.
905
906 merge from FSF 'apple/trunk' branch.
907 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
908
909 Radar 4386773
910 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
911 objective-c keywords.
912 (objc_set_method_opt): New declaration.
913 * stub-objc.c (objc_set_method_opt): New stub.
914
2c5d2e39 9152010-09-30 Joseph Myers <joseph@codesourcery.com>
916
917 * c-common.c (handle_optimize_attribute): Pass &global_options to
918 cl_optimization_save and cl_optimization_restore.
919 * c-opts.c (c_common_handle_option): Pass &global_options to
920 handle_generated_option.
921 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
922 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
923 &global_options to cl_optimization_restore.
924
e5c75ac3 9252010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
926
927 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
928 Objective-C/Objective-C++ keywords.
929
3511333e 9302010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 931
932 Merge from 'apple/trunk' branch on FSF servers.
933
934 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
935
936 Radar 4281748
937 * c-common.h (objc_check_global_decl): New declaration.
938 * stub-objc.c (objc_check_global_decl): New stub.
939
5461e683 9402010-09-29 Joseph Myers <joseph@codesourcery.com>
941
942 * c.opt: Don't use VarExists.
943
5ae82d58 9442010-09-29 Joseph Myers <joseph@codesourcery.com>
945
946 * c-common.c (c_cpp_error): Update names of diagnostic_context
947 members.
948 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
949 cl_optimization members.
950 * c-opts.c (warning_as_error_callback, c_common_handle_option,
951 sanitize_cpp_opts, finish_options): Update names of cpp_options
952 members.
953
b27e241e 9542010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
955
956 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
957 (objc_is_reserved_word): Removed.
958 * c-common.c: Updated comments.
959 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
960 objc_is_reserved_word.
961 * stub-objc.c (objc_is_reserved_word): Removed.
962
03fc2271 9632010-09-28 Iain Sandoe <iains@gcc.gnu.org>
964
965 * c-common.h (objc_add_method_declaration): Adjust prototype to
966 include attributes.
967 (objc_start_method_definition): Likewise.
968 (objc_build_keyword_decl): Likewise.
969 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
970 (objc_start_method_definition): Likewise.
971 (objc_build_keyword_decl): Likewise.
972
a336eb4b 9732010-09-28 Iain Sandoe <iains@gcc.gnu.org>
974
975 * c-common.h (objc_start_class_interface): Adjust prototype.
976 (objc_start_category_interface): Likewise.
977 (objc_start_protocol): Likewise.
978 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
979 (objc_start_class_interface): Likewise.
980 (objc_start_category_interface): Likewise.
981
48b14f50 9822010-09-27 Ian Lance Taylor <iant@google.com>
983
984 * c-common.c (c_common_attribute_table): Add no_split_stack.
985 (handle_no_split_stack_attribute): New static function.
986
4abfc532 9872010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
988
989 Merge from 'apple/trunk' branch on FSF servers.
990
991 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
992
993 Radar 4229905
994 * c-common.h (objc_have_common_type): New declaration.
995 * stub-objc.c (objc_have_common_type): New stub.
996
997 2005-06-22 Ziemowit Laski <zlaski@apple.com>
998
999 Radar 4154928
1000 * c-common.h (objc_common_type): New prototype.
1001 * stub-objc.c (objc_common_type): New stub.
1002
7bd95dfd 10032010-09-24 Jan Hubicka <jh@suse.cz>
1004
1005 * c-common.c (handle_leaf_attribute): New function.
1006 (struct attribute_spec c_common_att): Add leaf.
1007
5789e05b 10082010-09-22 Joseph Myers <joseph@codesourcery.com>
1009
1010 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
1011 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
1012 -dump, -dump=, -imacros, -imacros=, -include, -include=,
1013 -include-barrier, -include-directory, -include-directory=,
1014 -include-directory-after, -include-directory-after=,
1015 -include-prefix, -include-prefix=, -include-with-prefix,
1016 -include-with-prefix=, -include-with-prefix-after,
1017 -include-with-prefix-after=, -include-with-prefix-before,
1018 -include-with-prefix-before=, -no-integrated-cpp,
1019 -no-line-commands, -no-standard-includes, -no-warnings, -output,
1020 -output=, -pedantic, -pedantic-errors, -preprocess,
1021 -print-missing-file-dependencies, -trace-includes, -traditional,
1022 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
1023 -user-dependencies, -verbose, -write-dependencies,
1024 -write-user-dependencies, no-integrated-cpp, traditional): New.
1025
e6fb54ba 10262010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1027
1028 PR objc/23710
9b60f3b0 1029 * c-common.h (objc_start_method_definition): Return bool instead
1030 of void.
1031 * stub-objc.c (objc_start_method_definition): Return bool instead
1032 of void.
1033
10342010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
1035
1036 PR objc/25965
1037 * c-common.h (objc_get_interface_ivars): New declaration.
1038 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 1039
e44b0a1f 10402010-09-15 Ian Lance Taylor <iant@google.com>
1041
1042 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 1043 messages. Remove period at end of warning message.
e44b0a1f 1044
85c0a25c 10452010-09-09 Nathan Sidwell <nathan@codesourcery.com>
1046
1047 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
1048 (handle_alias_attribute): ... here.
1049 (handle_ifunc_attribute): New.
1050
5ba33bf4 10512010-09-06 Mark Mitchell <mark@codesourcery.com>
1052
1053 * c-common.h (do_warn_double_promotion): Declare.
1054 * c-common.c (do_warn_double_promotion): Define.
1055
c920faa3 10562010-09-05 Mark Mitchell <mark@codesourcery.com>
1057
1058 * c.opt (Wdouble-promotion): New.
1059
9604e070 10602010-09-02 Joseph Myers <joseph@codesourcery.com>
1061
1062 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
1063 fvtable-thunks, fxref): Mark no longer supported in help text.
1064
3b0273a1 10652010-09-02 Joseph Myers <joseph@codesourcery.com>
1066
1067 * c.opt (Wimport, fall-virtual, falt-external-templates,
1068 fdefault-inline, fenum-int-equiv, fexternal-templates,
1069 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
1070 fname-mangling-version-, fnew-abi, fnonnull-objects,
1071 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
1072 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
1073 applicable.
1074 (fhandle-exceptions): Mark with Alias and Warn.
1075 * c-opts.c (c_common_handle_option): Don't handle options marked
1076 as ignored.
1077
67089c6b 10782010-09-02 Joseph Myers <joseph@codesourcery.com>
1079
1080 * c.opt (Wcomments, Werror-implicit-function-declaration,
1081 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
1082 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
1083 aliases.
1084 * c-common.c (option_codes): Use OPT_Wcomment instead of
1085 OPT_Wcomments.
1086 * c-opts.c (warning_as_error_callback, c_common_handle_option):
1087 Don't handle options marked as aliases.
1088
2af087f2 10892010-08-25 Richard Guenther <rguenther@suse.de>
1090
1091 * c-common.c (c_common_get_alias_set): Remove special
1092 handling for pointers.
1093
48148244 10942010-08-20 Nathan Froyd <froydnj@codesourcery.com>
1095
1096 * c-common.c: Use FOR_EACH_VEC_ELT.
1097 * c-gimplify.c: Likewise.
1098 * c-pragma.c: Likewise.
1099
89c69892 11002010-08-16 Joseph Myers <joseph@codesourcery.com>
1101
1102 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
1103 RejectDriver.
1104 (MMDX): Change back to MMD. Mark NoDriverArg instead of
1105 RejectDriver.
1106 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
1107 instead of OPT_MDX and OPT_MMDX.
1108
e28aa114 11092010-08-16 Joseph Myers <joseph@codesourcery.com>
1110
1111 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
1112
99b66d21 11132010-08-12 Joseph Myers <joseph@codesourcery.com>
1114
1115 * c.opt (MD, MMD): Change to MDX and MMDX.
1116 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
1117
666f4bf0 11182010-08-11 Joseph Myers <joseph@codesourcery.com>
1119
1120 * c-opts.c (c_common_handle_option): Call handle_generated_option
1121 instead of handle_option.
1122
5ec815f6 11232010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1124
1125 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
1126 (maybe_apply_renaming_pragma): Delete unneeded declarations.
1127
d13143cf 11282010-08-08 Nathan Froyd <froydnj@codesourcery.com>
1129
1130 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
1131 (pending_redefine_extname): Change type to a VEC.
1132 (add_to_renaming_pragma_list): Update for new type of
1133 pending_redefine_extname.
5ec815f6 1134 (maybe_apply_renaming_pragma): Likewise.
d13143cf 1135
2008c983 11362010-08-04 Arnaud Charlet <charlet@adacore.com>
1137
1138 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
1139 visited.
1140 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
1141 decide whether a type has already been declared/seen.
1142 Do not go to the original type.
1143 (dump_nested_types): New parameter forward.
1144 Generate forward declaration if needed and mark type as visited.
1145 (print_ada_declaration): Call dump_nested_types if not already done.
1146 Mark types as visited.
1147
9b091a73 11482010-08-03 Joseph Myers <joseph@codesourcery.com>
1149
1150 * c.opt (-print-pch-checksum): Remove option.
1151 * c-opts.c (c_common_handle_option): Don't handle
1152 OPT_print_pch_checksum.
1153
b78351e5 11542010-07-27 Joseph Myers <joseph@codesourcery.com>
1155
1156 * c-common.h (c_common_handle_option): Update prototype and return
1157 value type.
1158 * c-opts.c (c_common_handle_option): Update prototype and return
1159 value type. Update calls to handle_option and
1160 enable_warning_as_error.
1161
34416a90 11622010-07-27 Jakub Jelinek <jakub@redhat.com>
1163
1164 PR c/45079
1165 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
1166
fecf9011 11672010-07-27 Joseph Myers <joseph@codesourcery.com>
1168
1169 * c-common.h (c_common_missing_argument): Remove.
1170 * c-opts.c (c_common_missing_argument): Remove.
1171 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
1172 idirafter, imacros, include, isysroot, isystem, iquote): Add
1173 MissingArgError.
1174 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
1175
e88d34f6 11762010-07-27 Joseph Myers <joseph@codesourcery.com>
1177
1178 * c-common.h (c_common_option_lang_mask,
1179 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
1180 New.
1181 (c_common_init_options): Update prototype.
1182 * c-opts.c (c_common_option_lang_mask): New.
1183 (c_common_initialize_diagnostics): Split out of
1184 c_common_init_options.
1185 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
1186 New.
1187 (c_common_init_options): Update prototype. Use decoded options in
1188 search for -lang-asm.
1189
1767a056 11902010-07-15 Nathan Froyd <froydnj@codesourcery.com>
1191
1192 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
1193 * c-format.c: Likewise.
1194
0b205f4c 11952010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
1196
1197 * c-common.h: Include diagnostic-core.h. Error if already
1198 included.
1199 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
1200
1c58e3f1 12012010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1202
1203 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
1204 Do not include expr.h
1205 (vector_mode_valid_p): Move here.
1206
33cc157c 12072010-06-21 DJ Delorie <dj@redhat.com>
1208
1209 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1210 allow these pragmas anywhere.
1211
12122010-06-14 Jakub Jelinek <jakub@redhat.com>
1213
1214 PR bootstrap/44509
1215 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1216 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1217 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1218 ggc_strdup instead of xstrdup.
1219
12202010-06-10 Jakub Jelinek <jakub@redhat.com>
1221
1222 * c-cppbuiltin.c: Include cpp-id-data.h.
1223 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
1224 (lazy_hex_fp_value): New function.
1225 (builtin_define_with_hex_fp_value): Provide definitions lazily.
1226
9b40bfbf 12272010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1228
1229 * c-gimplify.c: Do not include tree-flow.h
1230
202d6e5f 12312010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1232
1233 PR other/44034
1234 * c-common.c: Rename targetm member:
1235 targetm.enum_va_list -> targetm.enum_va_list_p
1236
d3237426 12372010-06-28 Anatoly Sokolov <aesok@post.ru>
1238
1239 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
1240
596981c8 12412010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1242
1243 * c-cppbuiltin.c: Do not include except.h.
1244
b9bdfa0b 12452010-06-24 Andi Kleen <ak@linux.intel.com>
1246
1247 * c-common.c (warn_for_omitted_condop): New.
1248 * c-common.h (warn_for_omitted_condop): Add prototype.
1249
55ad092d 12502010-06-21 Joseph Myers <joseph@codesourcery.com>
1251
1252 * c.opt (lang-objc): Remove.
1253 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
1254
9e7c2572 12552010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
1256
1257 * c-opts.c: Include "tm_p.h".
1258
615ef0bb 12592010-06-20 Joseph Myers <joseph@codesourcery.com>
1260
1261 * c-common.c (parse_optimize_options): Update call to
1262 decode_options.
1263
aef48c9a 12642010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1265
1266 * c-common.c (record_types_used_by_current_var_decl): Adjust for
1267 new type of types_used_by_cur_var_decl.
1268
d74003b4 12692010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
1270
1271 PR bootstrap/44512
1272 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
1273 for C++ standard compliance.
1274
1194d077 12752010-06-16 Jason Merrill <jason@redhat.com>
1276
1277 * c.opt: Add -Wnoexcept.
1278
d473d901 12792010-06-16 Richard Guenther <rguenther@suse.de>
1280
1281 PR c/44555
1282 * c-common.c (c_common_truthvalue_conversion): Remove
1283 premature and wrong optimization concering ADDR_EXPRs.
1284
b62dbfd3 12852010-06-15 Arnaud Charlet <charlet@adacore.com>
1286
1287 * c-ada-spec.c (dump_sloc): Remove column info.
1288 (is_simple_enum): New function.
1289 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
1290 enum types when relevant.
1291
200dd99c 12922010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1293
1294 * c-common.c (conversion_warning): Warn at expression
1295 location.
1296
abf6a617 12972010-06-10 Joseph Myers <joseph@codesourcery.com>
1298
1299 * c-opts.c (c_common_handle_option): Don't handle
1300 OPT_fshow_column.
1301
ba72912a 13022010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1303
1304 * c-pragma.c (push_alignment): Use typed GC allocation.
1305 (handle_pragma_push_options): Likewise.
1306
1307 * c-common.c (parse_optimize_options): Likewise.
1308
1309 * c-common.h (struct sorted_fields_type): Add variable_size GTY
1310 option.
1311
4aafe913 13122010-06-07 Joseph Myers <joseph@codesourcery.com>
1313
1314 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
1315 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1316 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1317 flag_signed_bitfields, warn_strict_null_sentinel,
1318 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
1319 flag_gen_declaration, flag_no_gnu_keywords,
1320 flag_implement_inlines, flag_implicit_templates,
1321 flag_implicit_inline_templates, flag_optional_diags,
1322 flag_elide_constructors, flag_default_inline, flag_rtti,
1323 flag_conserve_space, flag_access_control, flag_check_new,
1324 flag_new_for_scope, flag_weak, flag_working_directory,
1325 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
1326 flag_enforce_eh_specs, flag_threadsafe_statics,
1327 flag_pretty_templates): Remove.
1328 * c-common.h (flag_preprocess_only, flag_nil_receivers,
1329 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
1330 flag_replace_objc_classes, flag_undef, flag_no_builtin,
1331 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
1332 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
1333 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
1334 flag_no_gnu_keywords, flag_implement_inlines,
1335 flag_implicit_templates, flag_implicit_inline_templates,
1336 flag_optional_diags, flag_elide_constructors, flag_default_inline,
1337 flag_rtti, flag_conserve_space, flag_access_control,
1338 flag_check_new, flag_new_for_scope, flag_weak,
1339 flag_working_directory, flag_use_cxa_atexit,
1340 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
1341 flag_threadsafe_statics, flag_pretty_templates,
1342 warn_strict_null_sentinel): Remove.
1343 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
1344 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
1345 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
1346 fimplicit-inline-templates, fimplicit-templates,
1347 flax-vector-conversions, fms-extensions, fnil-receivers,
1348 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
1349 frtti, fshort-double, fshort-enums, fshort-wchar,
1350 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
1351 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
1352 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
1353 gen-decls, undef): Use Var.
1354 (fdefault-inline, foptional-diags): Document as doing nothing.
1355 * c-opts.c (c_common_handle_option): Remove cases for options now
1356 using Var. Mark ignored options as such.
1357
7bedc3a0 13582010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1359
1360 * c-common.c: Moved to here from parent directory.
1361 * c-common.def: Likewise.
1362 * c-common.h: Likewise.
1363 * c-cppbuiltin.c: Likewise.
1364 * c-dump.c: Likewise.
1365 * c-format.c: Likewise.
1366 * c-format.h : Likewise.
1367 * c-gimplify.c: Likewise.
1368 * c-lex.c: Likewise.
1369 * c-omp.c: Likewise.
1370 * c.opt: Likewise.
1371 * c-opts.c: Likewise.
1372 * c-pch.c: Likewise.
1373 * c-ppoutput.c: Likewise.
1374 * c-pragma.c: Likewise.
1375 * c-pragma.h: Likewise.
1376 * c-pretty-print.c: Likewise.
1377 * c-pretty-print.h: Likewise.
1378 * c-semantics.c: Likewise.
1379 * stub-objc.c: Likewise.
1380
1381 * c-common.c: Include gt-c-family-c-common.h.
1382 * c-pragma.c: Include gt-c-family-c-pragma.h.
1383\f
dd045aee 1384Copyright (C) 2010, 2011 Free Software Foundation, Inc.
7bedc3a0 1385
1386Copying and distribution of this file, with or without modification,
1387are permitted in any medium without royalty provided the copyright
1388notice and this notice are preserved.