1 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
5 (complete_array_type): Update comment to refer to tree_to_[su]hwi
6 rather than tree_low_cst.
8 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
10 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
11 tree_to_uhwi throughout.
13 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
15 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
16 tree_low_cst (..., 0) with tree_to_shwi throughout.
18 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
20 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
21 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
23 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
25 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
26 host_integerp (..., 0) with tree_fits_shwi_p throughout.
28 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
30 * c-cilkplus.c: New file.
31 * c-common.c (readonly_error): Add location argument.
32 * c-common.h (readonly_error): Same.
33 (c_finish_cilk_clauses): Protoize.
34 (c_check_cilk_loop): Same.
35 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
36 Do not fail on error_mark_node.
37 Abstract increment canonicalization to here...
38 (c_omp_for_incr_canonicalize_ptr): New.
39 c-pragma.c (init_pragma): Register "simd" pragma.
40 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
41 (enum pragma_cilk_clause): New.
43 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
45 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
46 wchar_type and host_integerp checks.
48 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
50 * c-common.c: Likewise.
51 * c-gimplify.c: Likewise.
54 2013-11-13 Joseph Myers <joseph@codesourcery.com>
56 * c-common.h (enum rid): Add RID_AUTO_TYPE.
57 * c-common.c (c_common_reswords): Add __auto_type.
58 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
60 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
62 * c-common.c: Include gimplify.h.
63 * c-gimplify.c: Likewise.
65 * c-omp.c: Include gimple-expr.h instead of gimple.h.
66 * c-ubsan.c: Don't include gimple.h.
68 2013-11-12 Joseph Myers <joseph@codesourcery.com>
70 * c-common.c (c_common_reswords): Add _Thread_local.
72 2013-11-09 Joseph Myers <joseph@codesourcery.com>
74 * c-common.c (atomic_size_supported_p): New function.
75 (resolve_overloaded_atomic_exchange)
76 (resolve_overloaded_atomic_compare_exchange)
77 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
78 Use it instead of comparing size with a local list of sizes.
80 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
81 Joseph Myers <joseph@codesourcery.com>
83 * c-common.h (enum rid): Add RID_ATOMIC.
84 * c-common.c (c_common_reswords): Add _Atomic.
85 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
86 (keyword_is_type_qualifier): Accept RID_ATOMIC.
87 * c-format.c (check_format_types): Check for extra _Atomic
88 qualifiers in format argument.
89 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
90 (pp_c_type_qualifier_list): Mention _Atomic in comment.
92 2013-11-06 Tobias Burnus <burnus@net-b.de>
94 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
96 2013-11-06 Joseph Myers <joseph@codesourcery.com>
98 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
100 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
101 to mean lack of IEEE 754 support.
103 2013-11-05 Tobias Burnus <burnus@net-b.de>
105 * c.opt (-Wdate-time): New option
106 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
108 2013-11-05 Joseph Myers <joseph@codesourcery.com>
110 * c-cppbuiltin.c (cpp_iec_559_value): Test
111 flag_excess_precision_cmdline not flag_excess_precision.
113 2013-11-05 Tobias Burnus <burnus@net-b.de>
115 * c.opt (fopenmp-simd): New option.
116 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
117 (omp_pragmas): ... this new struct.
118 (c_pp_lookup_pragma): Also walk omp_pragmas.
119 (init_pragma): Init pragmas for -fopenmp-simd.
121 2013-11-04 Marek Polacek <polacek@redhat.com>
124 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
126 2013-11-04 Joseph Myers <joseph@codesourcery.com>
128 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
130 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
132 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
134 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
135 (dump_ada_specs): Adjust prototype of second callback.
136 * c-ada-spec.c (cpp_check): New global variable.
137 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
138 (print_generic_ada_decl): Likewise.
139 (has_static_fields): Change return type to bool and add guard.
140 (has_nontrivial_methods): New predicate.
141 (is_tagged_type): Change return type to bool.
142 (separate_class_package): Call has_nontrivial_methods.
143 (pp_ada_tree_identifier): Minor tweaks.
144 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
145 (dump_ada_array_domains): Likewise.
146 (dump_ada_array_type): Likewise.
147 (dump_template_types): Remove cpp_check parameter and do not pass it to
148 dump_generic_ada_node.
149 (dump_ada_template): Likewise.
150 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
152 (print_ada_methods): Change return type to integer. Remove cpp_check
153 parameter and do not pass it down.
154 (dump_nested_types): Remove cpp_check parameter and do not pass it to
155 dump_generic_ada_node.
156 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
158 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
159 down. Use has_nontrivial_methods to recognize C++ classes. Use return
160 value of print_ada_methods.
161 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
162 Set cpp_check to it before invoking dump_ada_nodes.
163 (dump_ada_specs): Likewise.
165 2013-11-03 Marek Polacek <polacek@redhat.com>
167 * c-ubsan.c: Don't include hash-table.h.
168 (ubsan_instrument_vla): New function.
169 * c-ubsan.h: Declare it.
171 2013-10-31 David Malcolm <dmalcolm@redhat.com>
173 Automated part of renaming of symtab_node_base to symtab_node.
175 Patch autogenerated by rename_symtab.py from
176 https://github.com/davidmalcolm/gcc-refactoring-scripts
177 revision 58bb219cc090b2f4516a9297d868c245495ee622
179 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
180 symtab_node_base to symtab_node.
182 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
184 Implement C++14 digit separators.
185 * c-lex.c (interpret_float): Remove digit separators from scratch string
186 before building real literal.
188 2013-10-30 Jakub Jelinek <jakub@redhat.com>
190 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
192 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
194 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
196 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
198 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
199 (insert_cilk_frame): New prototype.
200 (cilk_init_builtins): Likewise.
201 (gimplify_cilk_spawn): Likewise.
202 (c_cilk_install_body_w_frame_cleanup): Likewise.
203 (cilk_detect_spawn_and_unwrap): Likewise.
204 (cilk_set_spawn_marker): Likewise.
205 (build_cilk_sync): Likewise.
206 (build_cilk_spawn): Likewise.
209 2013-10-29 David Malcolm <dmalcolm@redhat.com>
211 Patch autogenerated by refactor_symtab.py from
212 https://github.com/davidmalcolm/gcc-refactoring-scripts
213 revision 58bb219cc090b2f4516a9297d868c245495ee622
215 * c-gimplify.c (c_genericize): Update for conversion of symtab types
216 to a true class hierarchy.
217 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
219 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
221 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
223 2013-10-26 Jeff Law <law@redhat.com>
225 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
226 * c-family/c.opt: Ignore and warn for mudflap options.
228 2013-10-24 Tobias Burnus <burnus@net-b.de>
231 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
232 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
234 2013-10-23 Jason Merrill <jason@redhat.com>
236 * c-format.c (gcc_cxxdiag_char_table): Add %X.
238 2013-10-11 Jakub Jelinek <jakub@redhat.com>
240 * c-common.h (omp_clause_mask::operator !=): New method.
241 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
242 instead of if (mask & something) tests everywhere.
244 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
245 201307 instead of 201107.
246 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
247 (c_common_attribute_table): Add "omp declare target" and
248 "omp declare simd" attributes.
249 (handle_omp_declare_target_attribute,
250 handle_omp_declare_simd_attribute): New functions.
251 * c-omp.c: Include c-pragma.h.
252 (c_finish_omp_taskgroup): New function.
253 (c_finish_omp_atomic): Add swapped argument, if true,
254 build the operation first with rhs, lhs arguments and use NOP_EXPR
256 (c_finish_omp_for): Add code argument, pass it down to make_code.
257 (c_omp_split_clauses): New function.
258 (c_split_parallel_clauses): Removed.
259 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
260 c_omp_declare_simd_clauses_to_decls): New functions.
261 * c-common.h (omp_clause_mask): New type.
262 (OMP_CLAUSE_MASK_1): Define.
263 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
264 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
265 omp_clause_mask::operator |, omp_clause_mask::operator &,
266 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
267 omp_clause_mask::operator ==): New methods.
268 (enum c_omp_clause_split): New.
269 (c_finish_omp_taskgroup): New prototype.
270 (c_finish_omp_atomic): Add swapped argument.
271 (c_finish_omp_for): Add code argument.
272 (c_omp_split_clauses): New prototype.
273 (c_split_parallel_clauses): Removed.
274 (c_omp_declare_simd_clauses_to_numbers,
275 c_omp_declare_simd_clauses_to_decls): New prototypes.
276 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
277 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
278 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
279 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
280 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
281 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
282 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
283 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
284 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
285 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
286 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
287 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
288 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
289 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
290 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
291 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
292 PRAGMA_OMP_CLAUSE_UNIFORM.
294 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
296 PR tree-optimization/20318
297 * c-common.c (handle_returns_nonnull_attribute): New function.
298 (c_common_attribute_table): Add returns_nonnull.
300 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
303 * c.opt (fcheck-new): Move to common.opt.
305 2013-09-25 Marek Polacek <polacek@redhat.com>
306 Jakub Jelinek <jakub@redhat.com>
309 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
310 an expression if we can prove it is correct.
311 (ubsan_instrument_division): Likewise. Remove unnecessary
314 2013-09-18 Marek Polacek <polacek@redhat.com>
317 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
319 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
321 2013-09-14 Iain Sandoe <iain@codesourcery.com>
324 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
325 fobjc-gc, freplace-objc-classes): Accept for LTO.
327 2013-09-13 Jacek Caban <jacek@codeweavers.com>
329 * c-target.def: New hook
331 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
334 * c.opt (Wdelete-incomplete): Add.
336 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
338 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
339 (vector_types_compatible_elements_p): New function.
340 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
342 (vector_types_compatible_elements_p): Declare.
344 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
346 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
347 a virtual member function.
348 (pp_simple_type_specifier): Remove.
349 (pp_c_type_specifier): Likewise.
350 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
351 Rename from pp_c_type_specifier. Adjust.
352 (c_pretty_printer::c_pretty_printer): Do not assign to
353 simple_type_specifier.
355 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
357 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
359 (c_pretty_printer::storage_class_specifier): Likewise.
360 (c_pretty_printer::initializer): Likewise.
361 (pp_declaration): Remove.
362 (pp_declaration_specifiers): Likewise.
363 (pp_abstract_declarator): Likewise.
364 (pp_declarator): Likewise.
365 (pp_type_id): Likewise.
366 (pp_statement): Likewise.
367 (pp_constant): Likewise.
368 (pp_id_expression): Likewise.
369 (pp_primary_expression): Likewise.
370 (pp_unary_expression): Likewise.
371 (pp_multiplicative_expression): Likewise.
372 (pp_conditional_expression): Likewise.
373 (pp_assignment_expression): Likewise.
374 (pp_expression): Likewise.
375 (pp_c_type_id): Likewise.
376 (pp_c_storage_class_specifier): Likewise.
377 * c-pretty-print.c (pp_c_type_cast): Tidy.
378 (pp_c_pointer): Likewise.
379 (pp_c_type_specifier): Likewise.
380 (pp_c_parameter_type_list): Likewise.
381 (pp_c_function_definition): Likewise.
382 (pp_c_init_declarator): Likewise.
383 (pp_c_initializer_list): Likewise.
384 (pp_c_constructor_elts): Likewise.
385 (c_pretty_printer::direct_abstract_declarator): Likewise.
386 (c_pretty_printer::declaration_specifiers): Likewise.
387 (c_pretty_printer::primary_expression): Likewise.
388 (c_pretty_printer::postfix_expression): Likewise.
389 (c_pretty_printer::type_id): Rename from pp_c_type_id.
390 (c_pretty_printer::storage_class_specifier): Rename from
391 pp_c_storage_class_specifier.
392 (c_pretty_printer::initializer): Rename from pp_c_initializer.
393 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
394 storage_class_specifier, initializer, offset_list, flags.
396 2013-08-30 Marek Polacek <polacek@redhat.com>
398 * c-ubsan.c: New file.
399 * c-ubsan.h: New file.
401 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
403 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
405 (c_pretty_printer::declaration_specifiers): Likewise.
406 (c_pretty_printer::declarator): Likewise.
407 (c_pretty_printer::abstract_declarator): Likewise.
408 (c_pretty_printer::direct_abstract_declarator): Likewise.
409 (c_pretty_printer::direct_declarator): Likewise.
410 (c_pretty_printer::function_specifier): Likewise.
411 (pp_declaration): Adjust.
412 (pp_declaration_specifiers): Likewise.
413 (pp_abstract_declarator): Likewise.
414 (pp_direct_declarator): Likewise.
415 (pp_function_specifier): Likewise.
416 (pp_direct_abstract_declarator): Remove as unused.
417 (pp_c_declaration): Remove.
418 (pp_c_declaration_specifiers): Likewise.
419 (pp_c_declarator): Likewise.
420 (pp_c_direct_declarator): Likewise.
421 (pp_c_function_specifier): Likewise.
422 (pp_c_direct_abstract_declarator): Likewise.
423 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
424 from pp_c_abstract_declarator. Adjust.
425 (c_pretty_printer::direct_abstract_declarator): Rename from
426 pp_c_direct_abstract_declarator. Adjust.
427 (c_pretty_printer::function_specifier): Rename from
428 pp_c_function_specifier. Adjust.
429 (c_pretty_printer::declaration_specifiers): Rename from
430 pp_c_declaration_specifiers. Adjust.
431 (c_pretty_printer::direct_declarator): Rename from
432 pp_c_direct_declarator. Adjust.
433 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
434 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
435 (c_pretty_printer::c_pretty_printer): Do not assign to
436 declaration, declaration_specifiers, declarator,
437 direct_declarator, direct_abstract_declarator, function_specifier.
439 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
441 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
442 virtual member function.
443 (c_pretty_printer::multiplicative_expression): Likewise.
444 (c_pretty_printer::conditional_expression): Likewise.
445 (c_pretty_printer::assignment_expression): Likewise.
446 (c_pretty_printer::expression): Likewise.
447 (pp_unary_expression): Adjust.
448 (pp_multiplicative_expression): Likewise.
449 (pp_assignment_expression): Likewise.
450 (pp_conditional_expression): Likewise.
451 (pp_expression): Likewise.
452 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
453 from pp_c_unary_expression. Adjust.
454 (c_pretty_printer::multiplicative_expression): Rename from
455 pp_c_multiplicative_expression. Adjust.
456 (c_pretty_printer::conditional_expression): Rename from
457 pp_c_conditional_expression. Adjust.
458 (c_pretty_printer::assignment_expression): Rename from
459 pp_c_assignment_expression. Adjust.
460 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
461 (c_pretty_printer::c_pretty_printer): Do not assign to
462 unary_expression, multiplicative_expression,
463 conditional_expression, expression.
465 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
467 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
468 virtual member function.
469 (pp_postfix_expression): Adjust.
470 (pp_c_postfix_expression): Remove.
471 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
472 from pp_c_postfix_expression. Adjust.
473 (c_pretty_printer::c_pretty_printer): Do not assign to
476 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
478 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
479 virtua member function.
480 (pp_primary_expression): Adjust.
481 (pp_c_primary_expression): Remove.
482 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
483 from pp_c_primary_expression. Adjust.
484 (pp_c_initializer_list): Use pp_primary_expression.
485 (c_pretty_printer::c_pretty_printer): Do not assign to
488 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
490 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
491 * c-pretty-print.c (M_): Remove.
492 (c_pretty_printer::translate_string): Define.
493 (pp_c_type_specifier): Use it.
494 (pp_c_primary_expression): Likewise.
495 (pp_c_expression): Likewise.
497 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
499 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
501 (pp_c_id_expression): Remove.
502 (pp_id_expression): Adjust.
503 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
504 pp_c_id_expression. Adjust.
505 (pp_c_postfix_expression): Use pp_id_expression.
506 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
508 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
510 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
512 (pp_constant): Adjust.
513 (pp_c_constant): Remove.
514 * c-pretty-print.c (c_pretty_printer::constant): Rename from
515 pp_c_constant. Adjust.
517 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
518 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
520 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
522 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
523 (c_pretty_printer::c_pretty_printer): Declare.
524 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
525 c_pretty_printer_init. Adjust.
526 (print_c_tree): Do not call c_pretty_printer_init.
527 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
529 2013-08-09 Arnaud Charlet <charlet@adacore.com>
531 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
533 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
536 * c-common.c (pointer_int_sum): Add bool parameter.
537 * c-common.h (pointer_int_sum): Adjust declaration.
539 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
541 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
542 c_pretty_printer variable.
544 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
546 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
548 (pp_c_base): Likewise. Adjust users.
549 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
550 (pp_c_whitespace): Do not call pp_base.
551 (pp_c_left_paren): Likewise.
552 (pp_c_right_paren): Likewise.
553 (pp_c_left_brace): Likewise.
554 (pp_c_right_brace): Likewise.
555 (pp_c_left_bracket): Likewise.
556 (pp_c_right_bracket): Likewise.
557 (pp_c_dot): Likewise.
558 (pp_c_ampersand): Likewise.
559 (pp_c_star): Likewise.
560 (pp_c_arrow): Likewise.
561 (pp_c_semicolon): Likewise.
562 (pp_c_complement): Likewise.
563 (pp_c_exclamation): Likewise.
564 (pp_c_direct_declarator): Likewise.
565 (pp_c_ws_string): Likewise.
566 (pp_c_identifier): Likewise.
567 (pp_c_statement): Likewise.
568 (print_c_tree): Likewise.
570 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
573 * c-common.c (c_parse_error): Catch user-defined literal tokens and
574 provide useful error strings.
576 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
578 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
579 printer functions instead of pp_string or operators and punctuators.
580 (dump_generic_ada_node): Likewise.
581 * c-pretty-print.c (pp_c_type_specifier): Likewise.
582 (pp_c_relational_expression): Likewise.
583 (pp_c_logical_or_expression): Likewise.
585 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
587 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
588 functions instead of pp_character.
589 (pp_ada_tree_identifier): Likewise.
590 (dump_ada_double_name): Likewise.
591 (dump_ada_function_declaration): Likewise.
592 (dump_ada_array_domains): Likewise.
593 (dump_template_types): Likewise.
594 (dump_generic_ada_node): Likewise.
595 (print_ada_declaration): Likewise.
596 (print_ada_struct_decl): Likewise.
597 * c-pretty-print.c (pp_c_integer_constant): Likewise.
599 2013-07-23 Tom Tromey <tromey@redhat.com>
601 * c-common.h (enum rid) <RID_GENERIC>: New constant.
602 * c-common.c (c_common_reswords): Add _Generic.
604 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
606 * c-common.c: Fix typos.
607 * c-common.h: Likewise.
609 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
612 * c-common.c (c_common_attribute_table): Add warn_unused.
613 (handle_warn_unused_attribute): New.
615 2013-07-10 Jakub Jelinek <jakub@redhat.com>
617 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
618 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
620 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
623 * c.opt: Add Wconditionally-supported.
625 2013-07-08 Graham Stott <graham.stott@btinternet.com>
627 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
628 unused variables l_length and l_node.
630 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
633 * c-common.c (complete_array_type): Delay folding first index
634 like other indices. When folding, check for index overflow.
636 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
639 * c-common.h (c_build_vec_perm_expr): New complain argument.
640 * c-common.c (c_build_vec_perm_expr): Likewise.
641 Use save_expr also in C++.
643 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
645 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
646 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
647 * c-opts.c (c_common_post_options): Likewise.
649 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
651 * array-notation-common.c (length_mismatch_in_expr): Changed the
652 parameter type's from a dynamic array to a vec_tree. Also removed
654 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
657 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
659 * c-common.h (struct cilkplus_an_parts): New structure.
660 (struct cilkplus_an_loop_parts): Likewise.
661 (cilkplus_extract_an_triplets): New prototype.
662 (fix_sec_implicit_args): Likewise.
663 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
664 (fix_sec_implicit_args): Likewise.
666 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
668 * array-notation-common.c (find_inv_trees): Removed an unwanted
670 * c-common.h (struct inv_list::additional_tcodes): Changed type from
671 enum rid to enum tree_code.
673 2013-06-11 Jan Hubicka <jh@suse.cz>
675 * c-common.c (handle_alias_ifunc_attribute): Do not set
676 DECL_EXTERNAL for weakref variables.
677 * c-pragma.c (handle_pragma_weak): Make sure aliases
678 are not declared as external.
680 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
682 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
683 function from c/c-array-notation.c.
684 (is_cilkplus_reduce_builtin): Likewise.
685 (find_rank): Likewise.
686 (extract_array_notation_exprs): Likewise.
687 (replace_array_notations): Likewise.
688 (find_inv_trees): Likewise.
689 (replace_inv_trees): Likewise.
690 (contains_array_notation_expr): Likewise.
691 (find_correct_array_notation_type): Likewise.
692 * c-common.h (struct inv_list): Moved this struct from the file
693 c/c-array-notation.c and added a new field called additional tcodes.
694 (length_mismatch_in_expr_p): New prototype.
695 (is_cilkplus_reduce_builtin): Likewise.
696 (find_rank): Likewise.
697 (extract_array_notation_exprs): Likewise.
698 (replace_array_notation): Likewise.
699 (find_inv_trees): Likewise.
700 (replace_inv_trees): Likewise.
701 (find_correct_array_notation_type): Likewise.
703 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
705 * c-common.c (c_define_builtins): When cilkplus is enabled, the
706 function array_notation_init_builtins is called.
707 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
708 * c-common.def (ARRAY_NOTATION_REF): New tree.
709 * c-common.h (build_array_notation_expr): New function declaration.
710 (build_array_notation_ref): Likewise.
711 (extract_sec_implicit_index_arg): New extern declaration.
712 (is_sec_implicit_index_fn): Likewise.
713 (ARRAY_NOTATION_CHECK): New define.
714 (ARRAY_NOTATION_ARRAY): Likewise.
715 (ARRAY_NOTATION_START): Likewise.
716 (ARRAY_NOTATION_LENGTH): Likewise.
717 (ARRAY_NOTATION_STRIDE): Likewise.
718 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
720 (pp_c_expression): Likewise.
721 * c.opt (flag_enable_cilkplus): New flag.
722 * array-notation-common.c: New file.
724 2013-05-14 Jakub Jelinek <jakub@redhat.com>
727 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
729 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
731 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
734 2013-05-07 Han Shen <shenhan@google.com>
736 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
738 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
740 * c-common.c (check_user_alignment): Emit error for negative values.
742 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
744 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
746 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
748 * c-cppbuiltin.c (c_cpp_builtins): Do not define
749 __GXX_EXPERIMENTAL_CXX1Y__.
751 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
752 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
754 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
755 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
756 to simply use OPT_Wpointer_arith.
757 (c_sizeof_or_alignof_type): Likewise.
759 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
761 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
763 2013-04-12 Jakub Jelinek <jakub@redhat.com>
765 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
766 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
769 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
771 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
773 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
775 * c-common.c (pointer_int_sum): Remove dead code.
777 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
780 * c-common.c (handle_optimize_attribute): Don't call
781 save_optabs_if_changed.
783 2013-03-05 Jakub Jelinek <jakub@redhat.com>
786 * c-pch.c (pch_init): Free target_validity at the end.
788 2013-03-04 Jakub Jelinek <jakub@redhat.com>
790 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
792 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
793 Jakub Jelinek <jakub@redhat.com>
796 * c-common.c (handle_no_sanitize_address_attribute): New function.
797 (c_common_attribute_table): Add no_sanitize_address attribute.
798 (handle_no_address_safety_analysis_attribute): Add
799 no_sanitize_address attribute, not no_address_safety_analysis
802 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
805 * c-common.c (handle_optimize_attribute): Call
806 save_optabs_if_changed.
808 2013-02-18 Jakub Jelinek <jakub@redhat.com>
809 Steven Bosscher <steven@gcc.gnu.org>
812 * c-opts.c (c_common_post_options): If debug info is enabled
813 and non-dwarf*, refuse to load PCH files and when writing PCH
816 2013-02-05 Jakub Jelinek <jakub@redhat.com>
819 * c-common.c (handle_error_attribute): Fix condition.
821 2013-01-30 Jakub Jelinek <jakub@redhat.com>
824 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
826 2013-01-18 Jason Merrill <jason@redhat.com>
829 * c.opt (-fextern-tls-init): New.
830 * c-opts.c (c_common_post_options): Handle it.
832 2013-01-09 Jakub Jelinek <jakub@redhat.com>
835 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
836 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
837 and is either negative or bigger or equal to type precision
838 of the first operand.
840 2012-12-03 Marek Polacek <polacek@redhat.com>
843 * c-common.c (check_user_alignment): Swap order of tests,
844 check TREE_CODE first.
846 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
849 * c-common.h (overflow_type): New enum.
850 (build_userdef_literal): Add overflow_type argument.
851 (tree_userdef_literal): Add overflow_type.
852 (USERDEF_LITERAL_OVERFLOW): New access macro.
853 * c-common.c (build_userdef_literal): Add overflow_type
855 * c-lex.c (c_lex_with_flags): Add overflow_type to
856 build_userdef_literal calls.
857 (interpret_integer, interpret_float): Add overflow_type argument.
859 2012-11-28 Richard Biener <rguenther@suse.de>
862 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
863 here and use a type with proper overflow behavior for types that would
864 need to be promoted for the arithmetic.
866 2012-11-23 Jakub Jelinek <jakub@redhat.com>
869 * c-common.c (handle_no_address_safety_analysis_attribute): New
871 (c_common_attribute_table): Add no_address_safety_analysis.
873 2012-11-16 Simon Baldwin <simonb@google.com>
875 * c.opt: Add f[no-]canonical-system-headers.
876 * c-opts.c (c_common_handle_option): Handle
877 OPT_fcanonical_system_headers.
879 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
882 * c-opts.c (c_common_handle_option): Set new flags.
883 * c.opt: Describe new flags.
885 2012-11-09 Jason Merrill <jason@redhat.com>
887 * c.opt (Wabi-tag): New.
889 2012-11-09 Andi Kleen <ak@linux.intel.com>
892 * c-common.c (get_atomic_generic_size): Mask with
895 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
898 * c.opt (Wformat): Make it Alias Wformat=1.
899 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
900 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
902 (Wformat=): RejectNegative. Use LangEnabledBy.
903 (Wnonnull): Use LangEnabledBy.
904 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
905 * c-format.c (set_Wformat): Delete.
906 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
907 (maybe_read_dollar_number): Likewise.
908 (avoid_dollar_number): Likewise.
909 (finish_dollar_format_checking): Likewise.
910 (check_format_info): Likewise.
911 (check_format_info_main): Likewise.
912 (check_format_types): Likewise.
913 (format_type_warning): Likewise.
914 * c-common.c (int): Likewise.
915 (check_function_sentinel): Likewise.
916 * c-common.h (warn_format,set_Wformat): Do not declare here.
918 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
921 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
922 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
924 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
926 (Wvariadic-macros): Init(1).
927 * c-opts.c (c_common_handle_option): Do not handle them
929 (c_common_post_options): Likewise.
930 (sanitize_cpp_opts): warn_unused_macros is now
931 cpp_warn_unused_macros.
932 (push_command_line_include): Likewise.
933 * c-common.c (warn_unknown_pragmas): Do not define.
934 * c-common.h (warn_unknown_pragmas): Do not declare.
936 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
939 * c-common.c (conversion_warning): Handle conditional expressions.
941 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
944 * c.opt (Wreturn_local_addr): Define new option.
946 2012-10-25 Jason Merrill <jason@redhat.com>
948 * c.opt (Wvirtual-move-assign): New.
950 * c.opt (Winherited-variadic-ctor): New.
952 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
955 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
957 2012-10-23 Joseph Myers <joseph@codesourcery.com>
959 * c-common.h (pch_cpp_save_state): Declare.
960 * c-target.def (c_preinclude): New hook.
961 * c-opts.c (done_preinclude): New.
962 (push_command_line_include): Handle default preincluded header.
963 (cb_file_change): Call pch_cpp_save_state when calling
964 push_command_line_include.
965 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
966 (pch_cpp_save_state): New.
967 (pch_init): Call pch_cpp_save_state conditionally, instead of
968 calling cpp_save_state.
970 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
974 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
975 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
976 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
977 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
978 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
979 * c-opts.c (c_common_handle_option): Remove explicit handling from
981 (c_common_post_options): Likewise.
983 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
985 * c-ada-spec.c (LOCATION_COL): Delete.
986 (compare_location): New function.
987 (compare_node): Use it.
988 (compare_comment): Likewise.
990 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
994 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
995 * c-opts.c (c_common_handle_option): Do not set them here. Add
997 (c_common_post_options): Likewise.
999 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1001 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1002 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1003 Remove POINTER_TYPE handling, add large unsigned handling and use
1004 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1006 2012-10-12 Jakub Jelinek <jakub@redhat.com>
1009 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1010 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1011 locs and array of 3 trees instead of just single loc and single
1012 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1013 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1014 For *cmp* builtins that take two sources strings report warnings
1015 about first and second source, not about destination and source.
1017 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
1020 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1022 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1024 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1025 declaring something coming from another file.
1027 2012-10-10 Arnaud Charlet <charlet@adacore.com>
1030 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1032 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1035 * c-common.c (warn_about_parentheses): Add location_t parameter;
1036 use EXPR_LOC_OR_LOC.
1037 * c-common.h: Update declaration.
1039 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
1042 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1043 more operations. Make error messages optional.
1044 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1045 (scalar_to_vector): Declare.
1047 2012-10-08 Jason Merrill <jason@redhat.com>
1049 * c-common.c (c_common_reswords): Add thread_local.
1051 2012-10-08 Dodji Seketeli <dodji@redhat.com>
1053 PR c++/53528 C++11 attribute support
1054 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1056 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1058 (handle_aligned_attribute): In choose strictest alignment
1059 among many. Use new check_cxx_fundamental_alignment_constraints.
1060 (handle_transparent_union_attribute): In c++11 attribute syntax,
1061 don't look through typedefs.
1063 2012-10-04 Arnaud Charlet <charlet@adacore.com>
1065 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1066 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1069 2012-09-25 Dehao Chen <dehao@google.com>
1072 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
1073 map when read in the pch.
1075 2012-09-18 Arnaud Charlet <charlet@adacore.com>
1077 * c-ada-spec.c: Style fixes.
1079 2012-09-18 Thomas Quinot <quinot@adacore.com>
1081 * c.opt (-fada-spec-parent): Define new command line switch.
1082 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1083 is specified, generate binding spec as a child of the specified unit.
1085 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1086 Manuel López-Ibáñez <manu@gcc.gnu.org>
1089 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1091 2012-08-23 Arnaud Charlet <charlet@adacore.com>
1093 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1094 for pointers, and add missing Convention C pragma.
1095 (print_ada_struct_decl): Add missing aliased keyword.
1096 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1098 2012-08-17 Jakub Jelinek <jakub@redhat.com>
1100 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1101 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1102 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1103 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1104 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1106 2012-08-10 Richard Guenther <rguenther@suse.de>
1108 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1110 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1112 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1113 instead of separate pp_newline and pp_flush.
1114 (print_c_tree): Likewise.
1116 2012-07-26 Richard Henderson <rth@redhat.com>
1118 * c-common.c (handle_hot_attribute): Allow labels.
1119 (handle_cold_attribute): Likewise.
1121 2012-07-20 Jakub Jelinek <jakub@redhat.com>
1124 * c-common.c (check_function_nonnull): Handle multiple nonnull
1125 attributes properly.
1127 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1129 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1130 * c-ada-spec.c: Likewise.
1131 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1133 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1135 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1136 Remove code conditional on it.
1138 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1140 * c-gimplify.c: Do not include basic-block.h.
1141 * c-common.c: Do not include linfuncs.h.
1143 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1145 * c-common.h: Include tree.h.
1147 2012-07-02 Jason Merrill <jason@redhat.com>
1150 * c-common.c (get_priority): Call default_conversion.
1152 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
1154 * c-pch.c (c_common_write_pch): Remove unused variables.
1156 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1158 * cppspec.c: Moved from gcc/ to here.
1160 2012-06-27 Kai Tietz <ktietz@redhat.com>
1162 PR preprocessor/37215
1163 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1165 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1167 * c-common.h (c_common_print_pch_checksum): Remove.
1168 * c-pch.c: Do not include output.h.
1169 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1170 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1171 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1172 (struct c_pch_header): Remove.
1173 (get_ident): Update gpch version.
1174 (pch_init): Do not print executable_checksum to asm_out_file.
1175 Do not fail if there is no asm_out_file to read back from. Set
1176 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1177 (c_common_write_pch): Verify that nothing was written to asm_out_file
1178 since pch_init was called. Do not write a c_pch_header, and do not
1179 copy from asm_out_file to the PCH.
1180 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1181 the content of asm_out_file from the PCH.
1182 (c_common_print_pch_checksum): Remove.
1183 * c-opts.c (c_common_init): Print out executable_checksum directly.
1185 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1187 * c-target.def (objc_declare_unresolved_class_reference,
1188 objc_declare_class_definition): Add new hooks.
1190 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1192 * c-lex.c: Do not include output.h.
1193 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1194 Remove uses of ASM_OUTPUT_IDENT.
1196 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1199 * c-common.h (c_build_vec_perm_expr): Move decl here.
1200 * c-common.c (c_build_vec_perm_expr): Move definition
1203 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1205 * c.opt (fconserve-space): Turn into a no-op.
1207 2012-06-04 Sterling Augustine <saugustine@google.com>
1209 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1210 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1211 both the start and end of the function.
1213 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1215 * c-common.c: Do not include output.h.
1216 * c-pragma.c: Likewise.
1218 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1220 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1221 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1222 (lang_decl_name): Handle namespace decls.
1224 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1226 * c-ada-spec.c: Do not include output.h.
1227 * c-semantics.c: Likewise.
1229 2012-05-29 Joseph Myers <joseph@codesourcery.com>
1231 * c-common.c: Fix typo.
1233 2012-05-29 Michael Matz <matz@suse.de>
1235 * c-common.h (c_expand_decl): Remove prototype.
1237 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1239 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1240 * c-opts.c (c_common_handle_option): Remove code handling
1241 warn_missing_braces.
1243 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1246 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1249 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1252 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1254 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1256 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1257 * c-opts.c (c_common_handle_option): Do not handle explicitly
1258 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1260 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1262 PR preprocessor/7263
1263 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1264 to cpp_classify_number. For diagnostics, use the precise location
1265 instead of the global input_location.
1267 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1270 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1272 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1274 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1276 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1279 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1280 Wreorder): Use LangEnabledBy.
1281 * c-opts.c (c_common_handle_option): Do not enable them
1282 explicitly. Call lang-specific generated functions.
1283 (c_common_post_options): Do not set them here.
1285 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1287 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1288 Wmissing-field-initializers,Wmissing-parameter-type,
1289 Wold-style-declaration,Woverride-init): Use EnabledBy.
1290 * c-opts.c (c_common_post_options): Do not set here explicitly.
1292 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1295 * c-opts.c (c_common_handle_option): Use handle_generated_option
1296 to enable sub-options.
1298 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1301 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1303 2012-05-10 Richard Guenther <rguenther@suse.de>
1305 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1306 adjust commentary about TYPE_IS_SIZETYPE types.
1308 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1311 * c-common.c (warn_logical_operator): Check that argument of
1312 integer_zerop is not NULL.
1314 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1317 * c-common.c (warn_logical_operator): Do not warn if either side
1318 is already true or false.
1320 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1323 * c-common.c (expr_original_type): New.
1324 (shorten_compare): Do not warn for enumeration types.
1326 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1328 * c.opt (fpermissive): Add Var(flag_permissive).
1330 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1333 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1334 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1336 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1338 Add -Wvarargs option
1339 * c.opt (Wvarargs): Define new option.
1341 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1343 * c-common.c (check_function_arguments): Replace
1344 Wmissing-format-attribute with Wsuggest-attribute=format.
1346 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1348 * c.opt (Wsuggest-attribute=format): New. Alias of
1349 Wmissing-format-attribute.
1350 * c-format.c (decode_format_type): Replace
1351 Wmissing-format-attribute with Wsuggest-attribute=format.
1352 (check_function_format): Likewise.
1354 2012-04-27 Ollie Wild <aaw@google.com>
1356 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1357 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1358 * c.opt: Add Wliteral-suffix.
1360 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1363 * c.opt (Wpedantic): New.
1364 (pedantic): Alias Wpedantic.
1365 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1366 (c_common_post_options): Likewise.
1367 (sanitize_cpp_opts): Likewise.
1368 * c-lex.c (interpret_float): Likewise.
1369 * c-format.c (check_format_types): Likewise.
1370 * c-common.c (pointer_int_sum): Likewise.
1371 (c_sizeof_or_alignof_type): Likewise.
1372 (c_add_case_label): Likewise.
1373 (c_do_switch_warnings): Likewise.
1374 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1376 2012-04-15 Jason Merrill <jason@redhat.com>
1379 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1380 (C_STD_NAME): Distinguish between C++98 and C++11.
1382 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1385 * c-common.h (uint16_type_node): Rename into...
1386 (c_uint16_type_node): ...this.
1387 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1388 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1390 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1392 * c-common.c (warn_if_unused_value): Move definition to here.
1393 * c-common.h (warn_if_unused_value): Move declaration to here.
1395 2012-03-23 William Bader <williambader@hotmail.com>
1397 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1399 2012-03-20 Jason Merrill <jason@redhat.com>
1401 * c-common.h (enum cxx_dialect): Add cxx1y.
1402 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1404 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1405 * c-opts.c (c_common_post_options): Likewise.
1406 (set_std_cxx1y): New.
1407 (c_common_handle_option): Call it.
1408 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1410 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1413 * c.opt ([Wuseless-cast]): Add.
1415 2012-03-16 Richard Guenther <rguenther@suse.de>
1417 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1419 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1422 * c.opt (ftemplate-backtrace-limit) Add.
1424 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1426 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1428 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1429 (init_pragma): Don't register extern_prefix.
1431 2012-03-12 Richard Guenther <rguenther@suse.de>
1433 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1434 (builtin_type_for_size): Likewise.
1436 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1439 * c-common.c (sync_resolve_params): Don't decide whether to convert
1440 or not based on TYPE_SIZE comparison, convert whenever arg_type
1441 is unsigned INTEGER_TYPE.
1443 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1446 * c.opt ([Wunused-local-typedefs]): Fix description.
1448 2012-01-24 Mike Stump <mikestump@comcast.net>
1450 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1453 2012-01-18 Richard Guenther <rguenther@suse.de>
1455 * c-opts.c (c_common_post_options): Reset LTO flags if
1456 we are about to generate a PCH.
1458 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1461 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1462 use pp_unsigned_wide_integer.
1464 2012-01-10 Richard Guenther <rguenther@suse.de>
1467 * c-opts.c (c_common_handle_option): Move -Werror handling
1468 to language independent code.
1470 2012-01-05 Richard Guenther <rguenther@suse.de>
1473 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1476 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1479 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1480 of array types with an unknown bound.
1482 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1484 * c-common.c (flag_isoc99): Update comment to refer to C11.
1485 (flag_isoc1x): Change to flag_isoc11.
1486 * c-common.h (flag_isoc99): Update comment to refer to C11.
1487 (flag_isoc1x): Change to flag_isoc11.
1488 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1490 * c-opts.c (set_std_c1x): Change to set_std_c11.
1491 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1493 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1494 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1495 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1497 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1498 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1499 (std=gnu1x): Make alias of std=gnu11.
1501 2011-12-19 Jason Merrill <jason@redhat.com>
1504 * c-common.c (handle_transparent_union_attribute): Check the first
1505 field if the type is complete.
1507 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1510 * c-common.c (RID_IS_FINAL): Add.
1511 * c-common.h (RID_IS_FINAL): Add.
1513 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1515 * c.opt (fgnu-runtime): Provide full description.
1516 (fnext-runtime): Likewise.
1517 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1519 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1521 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1522 predefines in one place. Add LOCK_FREE predefines.
1523 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1526 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1529 * c-common.c (get_atomic_generic_size): Check for various error
1531 (resolve_overloaded_atomic_exchange,
1532 resolve_overloaded_atomic_compare_exchange,
1533 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1534 error_mark_node for error conditions.
1536 2011-11-08 Richard Guenther <rguenther@suse.de>
1541 2011-11-07 Richard Henderson <rth@redhat.com>
1542 Aldy Hernandez <aldyh@redhat.com>
1543 Torvald Riegel <triegel@redhat.com>
1545 Merged from transactional-memory.
1547 * c-common.c (handle_tm_wrap_attribute,
1548 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1549 (struct c_common_reswords): Added __transaction* keywords.
1550 (struct c_common_attribute_table): Added transaction* and tm_regparm
1552 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1554 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1555 find_tm_attribute): Declare.
1557 2011-11-07 Jason Merrill <jason@redhat.com>
1560 * c-common.c, c-common.h: Revert yesterday's changes.
1562 2011-11-06 Jason Merrill <jason@redhat.com>
1565 * c-common.c (decl_has_visibility_attr): Split out from...
1566 (c_determine_visibility): ...here.
1567 * c-common.h: Declare it.
1569 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1571 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1572 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1574 (check_user_alignment): New. Split out of
1575 handle_aligned_attribute. Disallow integer constants with
1576 noninteger types. Conditionally allow zero.
1577 (handle_aligned_attribute): Use check_user_alignment.
1578 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1580 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1581 Richard Henderson <rth@redhat.com>
1583 Merged from cxx-mem-model.
1585 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1586 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1587 parameters that are the same type size.
1588 (get_atomic_generic_size): New. Find size of generic
1589 atomic function parameters and do typechecking.
1590 (add_atomic_size_parameter): New. Insert size into parameter list.
1591 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1592 either __atomic_exchange_n or external library call.
1593 (resolve_overloaded_atomic_compare_exchange): Restructure
1594 __atomic_compare_exchange to either _n variant or external library call.
1595 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1596 __atomic_load_n or an external library call.
1597 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1598 __atomic_store_n or an external library call.
1599 (resolve_overloaded_builtin): Handle new __atomic builtins.
1601 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1604 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1605 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1606 <INDIRECT_REF>: Return the argument.
1607 <ARRAY_REF>: Remove special code for negative offset.
1608 Call fold_build_pointer_plus instead of size_binop.
1609 (fold_offsetof): Remove STOP_REF argument and adjust.
1610 * c-common.h (fold_offsetof_1): Declare.
1611 (fold_offsetof): Remove STOP_REF argument.
1613 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1616 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1617 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1618 Wnarrowing for C++0x and C++98.
1619 * c.opt ([Wnarrowing]): Update.
1621 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1624 * c.opt: Add Wzero-as-null-pointer-constant.
1626 2011-10-31 Jason Merrill <jason@redhat.com>
1628 * c.opt (-fdeduce-init-list): Off by default.
1631 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1632 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1634 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1636 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1639 * c.opt (fvisibility-inlines-hidden): Description change.
1641 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1643 Implement C++11 user-defined literals.
1644 * c-common.c (build_userdef_literal): New.
1645 * c-common.def: New tree code.
1646 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1647 * c-lex.c (interpret_float): Add suffix parm.
1648 (c_lex_with_flags): Build literal tokens.
1650 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1654 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1657 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1658 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1659 Wnarrowing for C++0x and C++98.
1660 * c.opt ([Wnarrowing]): Update.
1662 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1665 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1666 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1667 Wnarrowing for C++0x and C++98.
1668 * c.opt ([Wnarrowing]): Update.
1670 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1673 * c-common.c (conversion_warning): Remove code looking for
1674 artificial operands.
1676 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1679 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1680 !NO_IMPLICIT_EXTERN_C.
1682 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1684 * c-common.c (c_common_reswords): Add __bases,
1686 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1688 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1691 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1693 2011-10-15 Tom Tromey <tromey@redhat.com>
1694 Dodji Seketeli <dodji@redhat.com>
1696 * c.opt (fdebug-cpp): New option.
1697 * c-opts.c (c_common_handle_option): Handle the option.
1698 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1699 output stream in parameter. Factorized from ...
1700 (maybe_print_line): ... this. Dump location debug information when
1701 -fdebug-cpp is in effect.
1702 (print_line_1): New static function. Takes an output stream in
1703 parameter. Factorized from ...
1704 (print_line): ... here. Dump location information when -fdebug-cpp
1706 (scan_translation_unit): Dump location information when
1707 -fdebug-cpp is in effect.
1709 2011-10-15 Tom Tromey <tromey@redhat.com>
1710 Dodji Seketeli <dodji@redhat.com>
1712 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1714 * c-opts.c (c_common_handle_option)<case
1715 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1716 cases. Handle -ftrack-macro-expansion with and without argument.
1718 2011-10-15 Tom Tromey <tromey@redhat.com>
1719 Dodji Seketeli <dodji@redhat.com>
1721 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1722 (print_line, cb_define, do_line_change): Adjust to avoid touching
1723 the internals of struct line_map. Use the public API instead.
1724 * c-pch.c (c_common_read_pch): Likewise.
1725 * c-lex.c (fe_file_change): Likewise.
1727 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1730 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1732 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1735 * c-pretty-print.c (pp_c_floating_constant): Output
1736 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1738 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1740 * c-common.c (def_builtin_1): Delete old interface with two
1741 parallel arrays to hold standard builtin declarations, and replace
1742 it with a function based interface that can support creating
1743 builtins on the fly in the future. Change all uses, and poison
1744 the old names. Make sure 0 is not a legitimate builtin index.
1745 * c-omp.c (c_finish_omp_barrier): Ditto.
1746 (c_finish_omp_taskwait): Ditto.
1747 (c_finish_omp_flush): Ditto.
1749 2011-10-11 Tristan Gingold <gingold@adacore.com>
1751 * c.opt: (fallow-parameterless-variadic-functions): New.
1753 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1755 PR c++/33255 - Support -Wunused-local-typedefs warning
1756 * c-common.h (struct c_language_function::local_typedefs): New
1758 (record_locally_defined_typedef, maybe_record_typedef_use)
1759 (maybe_warn_unused_local_typedefs): Declare new functions.
1760 * c-common.c (record_locally_defined_typedef)
1761 (maybe_record_typedef_use)
1762 (maybe_warn_unused_local_typedefs): Define new functions.
1763 * c.opt: Declare new -Wunused-local-typedefs flag.
1765 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1768 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1771 2011-09-05 Richard Guenther <rguenther@suse.de>
1773 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1774 of integer_minus_one_node for empty array upper bounds.
1776 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1778 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1779 it's the first time it's being called on this main TU.
1781 2011-08-24 Richard Guenther <rguenther@suse.de>
1784 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1786 2011-08-22 Gabriel Charette <gchare@google.com>
1788 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1789 defined in cpp_init_builtins and c_cpp_builtins.
1791 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1793 * c-common.c (c_common_reswords): Add __builtin_complex.
1794 * c-common.h (RID_BUILTIN_COMPLEX): New.
1796 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1798 * c-common.c (c_common_reswords): Add _Noreturn.
1799 (keyword_is_function_specifier): Handle RID_NORETURN.
1800 * c-common.h (RID_NORETURN): New.
1802 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1804 * c-common.c (unsafe_conversion_p): New function. Check if it is
1805 unsafe to convert an expression to the type.
1806 (conversion_warning): Adjust, use unsafe_conversion_p.
1807 * c-common.h (unsafe_conversion_p): New function declaration.
1809 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1811 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1812 (c_finish_omp_taskyield): New prototype.
1813 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1814 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1815 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1816 or RHS1 have side-effects, evaluate those too in the right spot,
1817 if it is a decl and LHS is also a decl, error out if they
1819 (c_finish_omp_taskyield): New function.
1820 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1821 * c-pragma.c (omp_pragmas): Add taskyield.
1822 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1823 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1824 PRAGMA_OMP_CLAUSE_MERGEABLE.
1826 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1828 * c-common.h (set_underlying_type): Remove parm name from
1831 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1833 * c-pretty-print.h: Search c-common.h in c-family.
1835 2011-07-22 Jason Merrill <jason@redhat.com>
1838 * c.opt (Wnarrowing): New.
1841 * c-common.h: Declare c_linkage_bindings.
1842 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1845 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1846 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1847 as flag_isoc99 for 'restrict'.
1848 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1850 2011-07-21 Ian Lance Taylor <iant@google.com>
1853 * c-common.c (c_disable_warnings): New static function.
1854 (c_enable_warnings): New static function.
1855 (c_fully_fold_internal): Change local unused_p to bool. Call
1856 c_disable_warnings and c_enable_warnings rather than change
1857 c_inhibit_evaluation_warnings.
1859 2011-07-20 Jason Merrill <jason@redhat.com>
1861 PR c++/6709 (DR 743)
1862 PR c++/42603 (DR 950)
1863 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1864 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1865 (CPP_DECLTYPE): New.
1866 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1868 2011-07-19 Richard Guenther <rguenther@suse.de>
1870 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1871 * c-omp.c (c_finish_omp_for): Likewise.
1873 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1875 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1876 body on the next line.
1878 2011-07-08 Jason Merrill <jason@redhat.com>
1881 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1884 * c-common.c (c_apply_type_quals_to_decl): Don't check
1885 TYPE_NEEDS_CONSTRUCTING.
1887 2011-07-06 Richard Guenther <rguenther@suse.de>
1889 * c-common.c (c_common_nodes_and_builtins):
1890 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1892 2011-07-05 Richard Guenther <rguenther@suse.de>
1894 * c-common.c (c_common_nodes_and_builtins): Build all common
1897 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1899 * c-common.h (c_tree_chain_next): New static inline function.
1901 * c-common.c (check_builtin_function_arguments): Handle
1902 BUILT_IN_ASSUME_ALIGNED.
1904 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1906 * c-common.c: Add sync_ or SYNC__ to builtin names.
1907 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1909 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1911 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1913 (gen_pragma_handler): New union.
1914 (internal_pragma_handler): New type.
1915 (c_register_pragma_with_data)
1916 (c_register_pragma_with_expansion_and_data): New functions.
1918 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1919 (c_register_pragma, c_register_pragma_with_expansion)
1920 (c_invoke_pragma_handler): Changed to work with
1921 internal_pragma_handler.
1922 (c_register_pragma_with_data)
1923 (c_register_pragma_with_expansion_and_data): New functions.
1925 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1927 * c-common.c: Include common/common-target.h.
1928 (handle_section_attribute): Use
1929 targetm_common.have_named_sections.
1930 * c-cppbuiltin.c: Include common/common-target.h.
1931 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1933 2011-06-10 Richard Guenther <rguenther@suse.de>
1935 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1936 to print a IDENTIFIER_NODE.
1938 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1939 Joseph Myers <joseph@codesourcery.com>
1941 * c.opt (fbuilding-libgcc): New option.
1942 * c-cppbuiltin.c (c_cpp_builtins): Define
1943 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1945 2011-06-07 Jason Merrill <jason@redhat.com>
1947 * c-common.c (max_tinst_depth): Lower default to 900.
1949 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1951 2011-06-07 Richard Guenther <rguenther@suse.de>
1953 * c-common.c (c_common_nodes_and_builtins): Do not set
1954 size_type_node or call set_sizetype.
1956 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1959 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1960 type when using pointer comparison to compare types.
1962 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1964 * c.opt: Add -Wdelete-non-virtual-dtor.
1965 * c-opts.c (c_common_handle_option): Include it in -Wall.
1967 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1972 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1974 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1977 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1980 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1981 C++ don't call c_common_truthvalue_conversion on void type arms.
1983 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1985 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1986 (stmt_list_stack): Define.
1987 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1988 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1990 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1992 * c-common.c (warning_candidate_p): Check for BLOCKs.
1994 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1996 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1999 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2001 * c-common.c (def_fn_type): Remove extra va_end.
2003 2011-05-23 Jason Merrill <jason@redhat.com>
2006 * c-common.c (c_common_get_narrower): New.
2007 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2009 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2011 * c-common.h (check_function_arguments): Tweak prototype of
2012 check_function_arguments.
2013 * c-common.c (check_function_arguments): Likewise. Adjust
2014 calls to check_function_nonnull, check_function_format, and
2015 check_function_sentinel.
2016 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2017 separate attributes and typelist arguments. Use
2018 FOREACH_FUNCTION_ARGS to iterate over argument types.
2020 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2022 * c-common.c (c_common_reswords): Reorder.
2023 * c-common.h (rid): Likewise.
2025 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2027 * c-common.c (def_fn_type): Don't call build_function_type, call
2028 build_function_type_array or build_varargs_function_type_array
2030 (c_common_nodes_and_builtins): Likewise.
2032 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2034 * c-common.c (c_add_case_label): Omit the loc argument to
2036 * c-common.h (build_case_label): Remove.
2037 * c-semantics.c (build_case_label): Remove.
2039 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2041 * c-objc.h (objc_start_method_definition): Update prototype.
2042 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2044 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2046 * c-common.c (check_main_parameter_types): Reindent. Don't use
2047 TYPE_ARG_TYPES directly.
2048 (handle_nonnull_attribute): Likewise.
2049 (sync_resolve_params): Likewise.
2050 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2051 to check_format_string.
2052 (handle_format_attribute): Likewise.
2053 (check_format_string): Take a function type to examine instead of
2054 a type list. Use a function_arg_iterator to step through argument
2057 2011-05-04 Richard Guenther <rguenther@suse.de>
2059 * c-common.c (fix_string_type): Use size_int for index type bounds.
2060 (start_fname_decls): Do not pass NULL to build_int_cst.
2061 (c_init_attributes): Likewise.
2062 * c-lex.c (c_lex_with_flags): Likewise.
2064 2011-04-27 Jason Merrill <jason@redhat.com>
2066 * c-common.c (make_tree_vector_from_list): New.
2067 * c-common.h: Declare it.
2069 2011-04-26 Richard Guenther <rguenther@suse.de>
2071 PR preprocessor/48248
2072 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2073 for output size with -P.
2075 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2077 * c-common.c (struct c_common_resword): Add __underlying_type.
2078 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2080 2011-04-20 Jim Meyering <meyering@redhat.com>
2082 * c-format.c (init_dollar_format_checking): Remove useless
2085 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2087 * c-objc.h (objc_get_interface_ivars): Removed.
2088 (objc_detect_field_duplicates): New.
2089 * stub-objc.c: Likewise.
2091 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2093 * stub-objc.c (objc_declare_protocols): Renamed to
2094 objc_declare_protocol.
2095 * c-objc.h: Likewise.
2097 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2099 * stub-objc.c (objc_declare_class): Updated argument name.
2101 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2103 * c-common.h (c_common_init_ts): Declare.
2104 * c-common.c (c_common_init_ts): Define.
2106 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2108 * c-objc.h (objc_build_message_expr): Updated prototype.
2109 * stub-objc.c (objc_build_message_expr): Likewise.
2111 2011-04-12 Martin Jambor <mjambor@suse.cz>
2113 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2116 2011-04-11 Richard Guenther <rguenther@suse.de>
2118 * c-common.c (complete_array_type): Build a range type of
2121 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2123 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2124 (handle_type_generic_attribute): Likewise.
2126 2011-04-07 Jason Merrill <jason@redhat.com>
2129 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2130 conversion from C++0x scoped enum.
2132 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2134 * c-target-def.h: New file.
2135 * c-target.def: New file.
2136 * c-target.h: New file.
2137 * c-common.c (targetcm): Don't define here.
2138 * c-common.h (default_handle_c_option): Declare.
2139 * c-format.c: Include c-target.h instead of target.h.
2140 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2142 (default_handle_c_option): Move from targhooks.c.
2144 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2146 PR preprocessor/48248
2147 * c-ppoutput.c (print): Add src_file field.
2148 (init_pp_output): Initialize it.
2149 (maybe_print_line): Don't optimize by adding up to 8 newlines
2150 if map->to_file and print.src_file are different file.
2151 (print_line): Update print.src_file.
2153 2011-03-25 Kai Tietz <ktietz@redhat.com>
2155 * c-ada-spec.c (compare_comment): Use filename_cmp
2156 instead of strcmp for filename.
2158 2011-03-25 Jeff Law <law@redhat.com>
2160 * c-family/c-common.c (def_fn_type): Add missing va_end.
2162 2011-03-25 Jason Merrill <jason@redhat.com>
2164 * c.opt: Add -std=c++03.
2166 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2168 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2170 2011-03-17 Kai Tietz
2173 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2174 Display allowed attributes for function pointer types.
2175 (pp_c_attributes_display): New function to display
2176 attributes having affects_type_identity flag set to true.
2177 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2179 * c-common.c (c_common_attribute_table):
2181 (c_common_format_attribute_table): Likewise.
2183 2011-03-18 Jason Merrill <jason@redhat.com>
2185 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2186 * c-common.h: Don't declare it here.
2187 * c-common.c: Or define it here.
2188 * c-opts.c (c_common_handle_option): Or set it here.
2191 * c-common.c (handle_transparent_union_attribute): Don't
2192 make a duplicate type in C++.
2194 2011-03-15 Jason Merrill <jason@redhat.com>
2196 * c-common.c (max_constexpr_depth): New.
2197 * c-common.h: Declare it.
2198 * c-opts.c (c_common_handle_option): Set it.
2199 * c.opt (fconstexpr-depth): New option.
2201 2011-03-11 Jason Merrill <jason@redhat.com>
2203 * c-common.c (attribute_takes_identifier_p): Add missing const.
2206 * c-common.c (attribute_takes_identifier_p): Assume that an
2207 unknown attribute takes an identifier.
2209 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2212 * c-common.c (c_type_hash): Call list_length instead of iterating
2213 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2215 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2218 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2220 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2222 * c.opt (fobjc-abi-version=) New.
2223 (fobjc-nilcheck): New.
2225 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2228 * c-common.h (keyword_is_decl_specifier): Declare.
2229 * c-common.c (keyword_is_decl_specifier): Define.
2230 (keyword_is_function_specifier): New function.
2232 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2235 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2236 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2239 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2241 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2243 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2246 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2247 after init_c_lex if pch_file is set.
2249 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2252 * c.opt (-fkeep-inline-dllexport): New switch.
2254 2011-01-12 Richard Guenther <rguenther@suse.de>
2257 * c-common.c (handle_weak_attribute): Warn instead of error
2258 on declaring an inline function weak.
2260 2011-01-05 Tom Tromey <tromey@redhat.com>
2262 * c-common.h (lvalue_error): Update.
2263 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2266 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
2269 * c-objc.h (objc_finish_message_expr): Added argument to
2272 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2274 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2277 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2279 * c-objc.h (objc_maybe_warn_exceptions): New.
2280 * stub-objc.c (objc_maybe_warn_exceptions): New.
2282 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2284 * c-common.h (readonly_error): Declare.
2285 * c-common.c (readonly_error): Define.
2287 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2289 * c-common.h (invalid_indirection_error): Declare.
2290 * c-common.c (invalid_indirection_error): Define.
2292 2010-12-03 Richard Guenther <rguenther@suse.de>
2295 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2296 (pp_c_unary_expression): Likewise.
2297 (pp_c_expression): Likewise.
2299 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2301 * c-common.h (objc_finish_function): New.
2302 (objc_non_volatilized_type): Removed.
2303 (objc_type_quals_match): Removed.
2304 * stub-objc.c (objc_finish_function): New.
2305 (objc_non_volatilized_type): Removed.
2306 (objc_type_quals_match): Removed.
2308 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2310 * c-common.h (parse_optimize_options): Declare.
2311 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2312 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2314 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2316 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2318 * c-pch.c (O_BINARY): Don't define here.
2319 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2321 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2323 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2324 targetm.except_unwind_info.
2326 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2328 * c-opts.c (c_common_handle_option): Pass location to
2329 set_struct_debug_option.
2331 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2333 * c-common.c (visibility_options): Move from ../opts.c.
2334 * c-common.h (struct visibility_flags, visibility_options):
2336 * c-opts.c (finish_options): Rename to c_finish_options.
2337 (c_common_init): Update call to finish_options.
2339 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2342 * c-lex.c (lex_string): Check that each string in an Objective-C
2343 string concat sequence starts with either one or zero '@', and
2344 that there are no spurious '@' signs at the end.
2346 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2348 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2349 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2350 HANDLE_PRAGMA_VISIBILITY.
2351 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2352 HANDLE_PRAGMA_VISIBILITY): Don't define.
2353 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2355 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2360 * c-common.h (keyword_begins_type_specifier): Declare.
2361 (keyword_is_storage_class_specifier): Declare.
2362 (keyword_is_type_qualifier): Declare.
2363 * c-common.c (keyword_begins_type_specifier): New function.
2364 (keyword_is_storage_class_specifier): New function.
2365 (keyword_is_type_qualifier): Declare.
2367 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2370 * c-common.c (in_late_binary_op): Define.
2371 (c_common_truthvalue_conversion): Check in_late_binary_op before
2372 calling c_save_expr.
2373 * c-common.h (in_late_binary_op): Declare.
2375 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2377 * c-opts.c (c_common_handle_option): Update calls to
2378 set_struct_debug_option.
2380 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2382 * c-common.h (objc_declare_protocols): Added additional argument.
2383 * stub-objc.c (objc_declare_protocol): Same change.
2385 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2388 * c-common.h (build_real_imag_expr): Declare.
2389 * c-semantics.c (build_real_imag_expr): Define.
2391 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2393 * c-opts.c (c_common_parse_file): Take no arguments.
2394 * c-common.h (c_common_parse_file): Update prototype.
2396 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2399 * c-common.c (warning_candidate_p): Don't track non-const calls
2402 2010-11-15 Ian Lance Taylor <iant@google.com>
2404 * c-lex.c (init_c_lex): Set macro debug callbacks if
2405 flag_dump_go_spec is set.
2407 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2409 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2410 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2412 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2414 PR preprocessor/45038
2415 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2418 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2420 * c-common.h (c_family_lang_mask): Declare.
2421 * c-opts.c (c_family_lang_mask): Make extern.
2422 * c-pragma.c (handle_pragma_diagnostic): Use
2423 control_warning_option.
2425 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2427 * c-common.c (parse_optimize_options): Update call to
2429 * c-common.h (c_common_handle_option): Update prototype.
2430 * c-opts.c (c_common_handle_option): Take location_t parameter and
2431 pass it to other functions.
2433 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2435 * c-opts.c (warning_as_error_callback): Remove.
2436 (c_common_initialize_diagnostics): Don't call
2437 register_warning_as_error_callback.
2438 (c_common_handle_option): Handle -Werror=normalized= here.
2440 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2442 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2444 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2446 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2447 Remove trailing '.' from diagnostics.
2448 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2450 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2452 * c-common.c (parse_optimize_options): Pass global_dc to
2454 * c-opts.c (c_common_handle_option): Pass &global_options to
2455 set_Wstrict_aliasing.
2456 * c.opt (v): Don't mark Common or document here.
2458 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2461 * c-format.c (format_type): New type gcc_objc_string_format_type.
2462 (valid_stringptr_type_p): New.
2463 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2464 (check_format_string): Pass expected type, use
2465 valid_stringptr_type_p (), check that the format string types are
2466 consistent with the format specification.
2467 (decode_format_attr): Warn if NSString is used outside objective-c.
2468 (format_types_orig): Add NSString.
2470 (format_flags): New.
2471 (check_format_arg): Handle format strings requiring an external parser.
2472 first_target_format_type: New variable.
2473 (handle_format_attribute): Set up first_target_format_type, pass the
2474 expected format arg string type to check_format_string().
2475 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2476 * stub-objc.c (objc_string_ref_type_p): New.
2477 (objc_check_format_arg): New.
2479 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2481 Fixed using the Objective-C 2.0 dot-syntax with class names.
2482 * c-common.h (objc_build_class_component_ref): New.
2483 * stub-objc.c (objc_build_class_component_ref): New.
2485 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2487 * c.opt (Wproperty-assign-default): New option.
2489 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2491 Implemented -fobjc-std=objc1 flag.
2492 * c.opt (fobjc-std=objc1): New option.
2494 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2496 Implemented format and noreturn attributes for Objective-C methods.
2497 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2498 attribute for Objective-C methods.
2500 2010-10-31 Jason Merrill <jason@redhat.com>
2502 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2505 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2507 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2508 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2509 (objc_add_property_declaration): Removed arguments for copies and
2511 (objc_build_getter_call): Renamed to
2512 objc_maybe_build_component_ref.
2513 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2514 (objc_is_property_ref): New.
2515 * c-common.c (c_common_reswords): Removed copies and ivar.
2516 * stub-objc.c (objc_add_property_declaration): Removed arguments
2517 for copies and ivar.
2518 (objc_build_getter_call): Renamed to
2519 objc_maybe_build_component_ref.
2520 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2521 (objc_is_property_ref): New.
2523 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2524 Matthew Gingell <gingell@adacore.com>
2526 * c-ada-spec.c (separate_class_package): New function.
2527 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2528 name of their enclosing package.
2529 (print_ada_declaration): Use separate_class_package.
2531 2010-10-27 Jason Merrill <jason@redhat.com>
2533 * c-common.c (c_common_reswords): Add __is_literal_type.
2534 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2536 * c-common.c (check_case_value): Remove special C++ code.
2538 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2540 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2541 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2543 (objc_add_property_declaration): Added additional arguments.
2544 (objc_property_attribute_kind): Removed.
2545 (objc_set_property_attr): Removed.
2546 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2548 * stub-objc.c (objc_add_property_declaration): Added additional
2550 (objc_set_property_attr): Removed.
2552 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2554 * c-common.h (objc_add_property_variable): Renamed to
2555 objc_add_property_declaration. Added location argument.
2556 * stub-objc.c (objc_add_property_variable): Same change.
2558 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2560 * c-common.h (objc_maybe_printable_name): New.
2561 * stub-objc.c (objc_maybe_printable_name): New.
2563 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2564 Andrew Pinski <pinskia@gmail.com>
2566 * c-common.h (c_common_mark_addressable_vec): Declare.
2567 * c-common.c (c_common_mark_addressable_vec): New function.
2569 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2571 * c-common.h (objc_set_method_type): Removed.
2572 (objc_add_method_declaration): Added boolean argument.
2573 (objc_start_method_definition): Same change.
2574 (objc_build_method_signature): Same change.
2575 * stub-objc.c (objc_set_method_type): Removed.
2576 (objc_add_method_declaration): Added boolean argument.
2577 (objc_start_method_definition): Same change.
2578 (objc_build_method_signature): Same change.
2580 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2582 * c-common.h (finish_file): Removed.
2583 (objc_write_global_declarations): New.
2584 * c-opts.c (c_common_parse_file): Do not call finish_file.
2585 * stub-objc.c (objc_write_global_declarations): New.
2587 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2589 Implemented parsing @synthesize and @dynamic for
2590 Objective-C/Objective-C++.
2591 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2592 (objc_add_synthesize_declaration): New.
2593 (objc_add_dynamic_declaration): New.
2594 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2595 * stub-objc.c (objc_add_synthesize_declaration): New.
2596 (objc_add_dynamic_declaration): New.
2598 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2601 * c-cppbuiltin.c (mode_has_fma): Move function here from
2602 builtins.c. Don't use the fma optab, instead just use the
2603 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2606 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2608 Merge from 'apple/trunk' branch on FSF servers.
2610 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2613 * c-common.h (objc_non_volatilized_type): New declaration
2614 * stub-objc.c (objc_non_volatilized_type): New stub.
2616 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2618 Merge from 'apple/trunk' branch on FSF servers.
2620 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2623 * c-common.h (objc_diagnose_private_ivar): New decl.
2624 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2626 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2628 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2629 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2630 (objc_ivar_visibility_kind): New enum.
2631 (objc_set_visibility): Adjust prototype to use visibility enum.
2632 * stub-objc.c (objc_set_visibility): Adjust stub to use
2635 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2637 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2638 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2639 has the appropriate fma builtins.
2640 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2642 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2644 merge from FSF apple 'trunk' branch.
2645 2006 Fariborz Jahanian <fjahanian@apple.com>
2647 Radars 4436866, 4505126, 4506903, 4517826
2648 * c-common.c (c_common_resword): Define @property and its attributes.
2649 * c-common.h: Define property attribute enum entries.
2650 (OBJC_IS_PATTR_KEYWORD): New.
2651 (objc_property_attribute_kind): New enum.
2652 Declare objc_set_property_attr (), objc_add_property_variable (),
2653 objc_build_getter_call () and objc_build_setter_call ().
2654 * stub-objc.c (objc_set_property_attr): New stub.
2655 (objc_add_property_variable): Likewise.
2656 (objc_build_getter_call): Likewise.
2657 (objc_build_setter_call) Likewise.
2659 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2661 merge from FSF apple 'trunk' branch.
2662 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2664 Radar 3803157 (method attributes)
2665 * c-common.c (handle_deprecated_attribute): Recognize
2666 objc methods as valid declarations.
2667 * c-common.h: Declare objc_method_decl ().
2668 * stub-objc.c (objc_method_decl): New stub.
2670 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2672 * c-common.c (parse_optimize_options): Call
2673 decode_cmdline_options_to_array_default_mask before
2674 decode_options. Update arguments to decode_options.
2675 * c-common.h (c_common_init_options_struct): Declare.
2676 * c-opts.c (c_common_init_options_struct): New. Split out from
2677 c_common_init_options.
2679 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2681 Implemented fast enumeration for Objective-C.
2682 * c-common.h (objc_finish_foreach_loop): New.
2683 * stub-objc.c (objc_finish_foreach_loop): New.
2685 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2687 * c-common.h (struct diagnostic_context): Don't declare here.
2688 (c_common_initialize_diagnostics): Declare using
2689 diagnostic_context typedef.
2690 * c-opts.c (c_common_handle_option): Pass global_dc to
2691 handle_generated_option.
2693 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2695 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2696 handle_generated_option.
2698 2010-10-03 Ian Lance Taylor <iant@google.com>
2700 * c.opt (-fplan9-extensions): New option.
2702 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2704 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2706 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2707 of duplicating code.
2709 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2711 * c-common.c: Add two new entries for @optional
2712 and @required keywords.
2714 merge from FSF 'apple/trunk' branch.
2715 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2718 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2719 objective-c keywords.
2720 (objc_set_method_opt): New declaration.
2721 * stub-objc.c (objc_set_method_opt): New stub.
2723 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2725 * c-common.c (handle_optimize_attribute): Pass &global_options to
2726 cl_optimization_save and cl_optimization_restore.
2727 * c-opts.c (c_common_handle_option): Pass &global_options to
2728 handle_generated_option.
2729 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2730 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2731 &global_options to cl_optimization_restore.
2733 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2735 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2736 Objective-C/Objective-C++ keywords.
2738 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2740 Merge from 'apple/trunk' branch on FSF servers.
2742 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2745 * c-common.h (objc_check_global_decl): New declaration.
2746 * stub-objc.c (objc_check_global_decl): New stub.
2748 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2750 * c.opt: Don't use VarExists.
2752 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2754 * c-common.c (c_cpp_error): Update names of diagnostic_context
2756 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2757 cl_optimization members.
2758 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2759 sanitize_cpp_opts, finish_options): Update names of cpp_options
2762 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2764 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2765 (objc_is_reserved_word): Removed.
2766 * c-common.c: Updated comments.
2767 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2768 objc_is_reserved_word.
2769 * stub-objc.c (objc_is_reserved_word): Removed.
2771 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2773 * c-common.h (objc_add_method_declaration): Adjust prototype to
2775 (objc_start_method_definition): Likewise.
2776 (objc_build_keyword_decl): Likewise.
2777 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2778 (objc_start_method_definition): Likewise.
2779 (objc_build_keyword_decl): Likewise.
2781 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2783 * c-common.h (objc_start_class_interface): Adjust prototype.
2784 (objc_start_category_interface): Likewise.
2785 (objc_start_protocol): Likewise.
2786 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2787 (objc_start_class_interface): Likewise.
2788 (objc_start_category_interface): Likewise.
2790 2010-09-27 Ian Lance Taylor <iant@google.com>
2792 * c-common.c (c_common_attribute_table): Add no_split_stack.
2793 (handle_no_split_stack_attribute): New static function.
2795 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2797 Merge from 'apple/trunk' branch on FSF servers.
2799 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2802 * c-common.h (objc_have_common_type): New declaration.
2803 * stub-objc.c (objc_have_common_type): New stub.
2805 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2808 * c-common.h (objc_common_type): New prototype.
2809 * stub-objc.c (objc_common_type): New stub.
2811 2010-09-24 Jan Hubicka <jh@suse.cz>
2813 * c-common.c (handle_leaf_attribute): New function.
2814 (struct attribute_spec c_common_att): Add leaf.
2816 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2818 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2819 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2820 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2821 -include-barrier, -include-directory, -include-directory=,
2822 -include-directory-after, -include-directory-after=,
2823 -include-prefix, -include-prefix=, -include-with-prefix,
2824 -include-with-prefix=, -include-with-prefix-after,
2825 -include-with-prefix-after=, -include-with-prefix-before,
2826 -include-with-prefix-before=, -no-integrated-cpp,
2827 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2828 -output=, -pedantic, -pedantic-errors, -preprocess,
2829 -print-missing-file-dependencies, -trace-includes, -traditional,
2830 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2831 -user-dependencies, -verbose, -write-dependencies,
2832 -write-user-dependencies, no-integrated-cpp, traditional): New.
2834 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2837 * c-common.h (objc_start_method_definition): Return bool instead
2839 * stub-objc.c (objc_start_method_definition): Return bool instead
2842 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2845 * c-common.h (objc_get_interface_ivars): New declaration.
2846 * stub-objc.c (objc_get_interface_ivars): New stub.
2848 2010-09-15 Ian Lance Taylor <iant@google.com>
2850 * c-common.c (parse_optimize_options): Do not capitalize warning
2851 messages. Remove period at end of warning message.
2853 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2855 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2856 (handle_alias_attribute): ... here.
2857 (handle_ifunc_attribute): New.
2859 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2861 * c-common.h (do_warn_double_promotion): Declare.
2862 * c-common.c (do_warn_double_promotion): Define.
2864 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2866 * c.opt (Wdouble-promotion): New.
2868 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2870 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2871 fvtable-thunks, fxref): Mark no longer supported in help text.
2873 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2875 * c.opt (Wimport, fall-virtual, falt-external-templates,
2876 fdefault-inline, fenum-int-equiv, fexternal-templates,
2877 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2878 fname-mangling-version-, fnew-abi, fnonnull-objects,
2879 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2880 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2882 (fhandle-exceptions): Mark with Alias and Warn.
2883 * c-opts.c (c_common_handle_option): Don't handle options marked
2886 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2888 * c.opt (Wcomments, Werror-implicit-function-declaration,
2889 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2890 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2892 * c-common.c (option_codes): Use OPT_Wcomment instead of
2894 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2895 Don't handle options marked as aliases.
2897 2010-08-25 Richard Guenther <rguenther@suse.de>
2899 * c-common.c (c_common_get_alias_set): Remove special
2900 handling for pointers.
2902 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2904 * c-common.c: Use FOR_EACH_VEC_ELT.
2905 * c-gimplify.c: Likewise.
2906 * c-pragma.c: Likewise.
2908 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2910 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2912 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2914 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2915 instead of OPT_MDX and OPT_MMDX.
2917 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2919 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2921 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2923 * c.opt (MD, MMD): Change to MDX and MMDX.
2924 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2926 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2928 * c-opts.c (c_common_handle_option): Call handle_generated_option
2929 instead of handle_option.
2931 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2933 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2934 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2936 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2938 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2939 (pending_redefine_extname): Change type to a VEC.
2940 (add_to_renaming_pragma_list): Update for new type of
2941 pending_redefine_extname.
2942 (maybe_apply_renaming_pragma): Likewise.
2944 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2946 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2948 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2949 decide whether a type has already been declared/seen.
2950 Do not go to the original type.
2951 (dump_nested_types): New parameter forward.
2952 Generate forward declaration if needed and mark type as visited.
2953 (print_ada_declaration): Call dump_nested_types if not already done.
2954 Mark types as visited.
2956 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2958 * c.opt (-print-pch-checksum): Remove option.
2959 * c-opts.c (c_common_handle_option): Don't handle
2960 OPT_print_pch_checksum.
2962 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2964 * c-common.h (c_common_handle_option): Update prototype and return
2966 * c-opts.c (c_common_handle_option): Update prototype and return
2967 value type. Update calls to handle_option and
2968 enable_warning_as_error.
2970 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2973 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2975 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2977 * c-common.h (c_common_missing_argument): Remove.
2978 * c-opts.c (c_common_missing_argument): Remove.
2979 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2980 idirafter, imacros, include, isysroot, isystem, iquote): Add
2982 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2984 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2986 * c-common.h (c_common_option_lang_mask,
2987 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2989 (c_common_init_options): Update prototype.
2990 * c-opts.c (c_common_option_lang_mask): New.
2991 (c_common_initialize_diagnostics): Split out of
2992 c_common_init_options.
2993 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2995 (c_common_init_options): Update prototype. Use decoded options in
2996 search for -lang-asm.
2998 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3000 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3001 * c-format.c: Likewise.
3003 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3005 * c-common.h: Include diagnostic-core.h. Error if already
3007 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3009 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3011 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3012 Do not include expr.h
3013 (vector_mode_valid_p): Move here.
3015 2010-06-21 DJ Delorie <dj@redhat.com>
3017 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3018 allow these pragmas anywhere.
3020 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3023 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3024 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3025 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3026 ggc_strdup instead of xstrdup.
3028 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3030 * c-cppbuiltin.c: Include cpp-id-data.h.
3031 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3032 (lazy_hex_fp_value): New function.
3033 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3035 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3037 * c-gimplify.c: Do not include tree-flow.h
3039 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3042 * c-common.c: Rename targetm member:
3043 targetm.enum_va_list -> targetm.enum_va_list_p
3045 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3047 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3049 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3051 * c-cppbuiltin.c: Do not include except.h.
3053 2010-06-24 Andi Kleen <ak@linux.intel.com>
3055 * c-common.c (warn_for_omitted_condop): New.
3056 * c-common.h (warn_for_omitted_condop): Add prototype.
3058 2010-06-21 Joseph Myers <joseph@codesourcery.com>
3060 * c.opt (lang-objc): Remove.
3061 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3063 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3065 * c-opts.c: Include "tm_p.h".
3067 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3069 * c-common.c (parse_optimize_options): Update call to
3072 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3074 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3075 new type of types_used_by_cur_var_decl.
3077 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3080 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3081 for C++ standard compliance.
3083 2010-06-16 Jason Merrill <jason@redhat.com>
3085 * c.opt: Add -Wnoexcept.
3087 2010-06-16 Richard Guenther <rguenther@suse.de>
3090 * c-common.c (c_common_truthvalue_conversion): Remove
3091 premature and wrong optimization concering ADDR_EXPRs.
3093 2010-06-15 Arnaud Charlet <charlet@adacore.com>
3095 * c-ada-spec.c (dump_sloc): Remove column info.
3096 (is_simple_enum): New function.
3097 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3098 enum types when relevant.
3100 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3102 * c-common.c (conversion_warning): Warn at expression
3105 2010-06-10 Joseph Myers <joseph@codesourcery.com>
3107 * c-opts.c (c_common_handle_option): Don't handle
3110 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3112 * c-pragma.c (push_alignment): Use typed GC allocation.
3113 (handle_pragma_push_options): Likewise.
3115 * c-common.c (parse_optimize_options): Likewise.
3117 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3120 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3122 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3123 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3124 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3125 flag_signed_bitfields, warn_strict_null_sentinel,
3126 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3127 flag_gen_declaration, flag_no_gnu_keywords,
3128 flag_implement_inlines, flag_implicit_templates,
3129 flag_implicit_inline_templates, flag_optional_diags,
3130 flag_elide_constructors, flag_default_inline, flag_rtti,
3131 flag_conserve_space, flag_access_control, flag_check_new,
3132 flag_new_for_scope, flag_weak, flag_working_directory,
3133 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3134 flag_enforce_eh_specs, flag_threadsafe_statics,
3135 flag_pretty_templates): Remove.
3136 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3137 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3138 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3139 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3140 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3141 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3142 flag_no_gnu_keywords, flag_implement_inlines,
3143 flag_implicit_templates, flag_implicit_inline_templates,
3144 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3145 flag_rtti, flag_conserve_space, flag_access_control,
3146 flag_check_new, flag_new_for_scope, flag_weak,
3147 flag_working_directory, flag_use_cxa_atexit,
3148 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3149 flag_threadsafe_statics, flag_pretty_templates,
3150 warn_strict_null_sentinel): Remove.
3151 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3152 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3153 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3154 fimplicit-inline-templates, fimplicit-templates,
3155 flax-vector-conversions, fms-extensions, fnil-receivers,
3156 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3157 frtti, fshort-double, fshort-enums, fshort-wchar,
3158 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3159 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3160 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3161 gen-decls, undef): Use Var.
3162 (fdefault-inline, foptional-diags): Document as doing nothing.
3163 * c-opts.c (c_common_handle_option): Remove cases for options now
3164 using Var. Mark ignored options as such.
3166 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3168 * c-common.c: Moved to here from parent directory.
3169 * c-common.def: Likewise.
3170 * c-common.h: Likewise.
3171 * c-cppbuiltin.c: Likewise.
3172 * c-dump.c: Likewise.
3173 * c-format.c: Likewise.
3174 * c-format.h : Likewise.
3175 * c-gimplify.c: Likewise.
3176 * c-lex.c: Likewise.
3177 * c-omp.c: Likewise.
3179 * c-opts.c: Likewise.
3180 * c-pch.c: Likewise.
3181 * c-ppoutput.c: Likewise.
3182 * c-pragma.c: Likewise.
3183 * c-pragma.h: Likewise.
3184 * c-pretty-print.c: Likewise.
3185 * c-pretty-print.h: Likewise.
3186 * c-semantics.c: Likewise.
3187 * stub-objc.c: Likewise.
3189 * c-common.c: Include gt-c-family-c-common.h.
3190 * c-pragma.c: Include gt-c-family-c-pragma.h.
3192 Copyright (C) 2010-2013 Free Software Foundation, Inc.
3194 Copying and distribution of this file, with or without modification,
3195 are permitted in any medium without royalty provided the copyright
3196 notice and this notice are preserved.