1 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3 * c-common.h (enum rid): Add RID_AUTO_TYPE.
4 * c-common.c (c_common_reswords): Add __auto_type.
5 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
7 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
9 * c-family/c-common.c: Include gimplify.h.
10 * c-family/c-gimplify.c: Likewise.
11 * c-family/cilk.c: Likewise.
12 * c-family/c-omp.c: Include gimple-expr.h instead of gimple.h.
13 * c-family/c-ubsan.c: Don't include gimple.h.
15 2013-11-12 Joseph Myers <joseph@codesourcery.com>
17 * c-common.c (c_common_reswords): Add _Thread_local.
19 2013-11-09 Joseph Myers <joseph@codesourcery.com>
21 * c-common.c (atomic_size_supported_p): New function.
22 (resolve_overloaded_atomic_exchange)
23 (resolve_overloaded_atomic_compare_exchange)
24 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
25 Use it instead of comparing size with a local list of sizes.
27 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
28 Joseph Myers <joseph@codesourcery.com>
30 * c-common.h (enum rid): Add RID_ATOMIC.
31 * c-common.c (c_common_reswords): Add _Atomic.
32 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
33 (keyword_is_type_qualifier): Accept RID_ATOMIC.
34 * c-format.c (check_format_types): Check for extra _Atomic
35 qualifiers in format argument.
36 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
37 (pp_c_type_qualifier_list): Mention _Atomic in comment.
39 2013-11-06 Tobias Burnus <burnus@net-b.de>
41 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
43 2013-11-06 Joseph Myers <joseph@codesourcery.com>
45 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
47 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
48 to mean lack of IEEE 754 support.
50 2013-11-05 Tobias Burnus <burnus@net-b.de>
52 * c.opt (-Wdate-time): New option
53 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
55 2013-11-05 Joseph Myers <joseph@codesourcery.com>
57 * c-cppbuiltin.c (cpp_iec_559_value): Test
58 flag_excess_precision_cmdline not flag_excess_precision.
60 2013-11-05 Tobias Burnus <burnus@net-b.de>
62 * c.opt (fopenmp-simd): New option.
63 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
64 (omp_pragmas): ... this new struct.
65 (c_pp_lookup_pragma): Also walk omp_pragmas.
66 (init_pragma): Init pragmas for -fopenmp-simd.
68 2013-11-04 Marek Polacek <polacek@redhat.com>
71 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
73 2013-11-04 Joseph Myers <joseph@codesourcery.com>
75 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
77 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
79 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
81 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
82 (dump_ada_specs): Adjust prototype of second callback.
83 * c-ada-spec.c (cpp_check): New global variable.
84 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
85 (print_generic_ada_decl): Likewise.
86 (has_static_fields): Change return type to bool and add guard.
87 (has_nontrivial_methods): New predicate.
88 (is_tagged_type): Change return type to bool.
89 (separate_class_package): Call has_nontrivial_methods.
90 (pp_ada_tree_identifier): Minor tweaks.
91 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
92 (dump_ada_array_domains): Likewise.
93 (dump_ada_array_type): Likewise.
94 (dump_template_types): Remove cpp_check parameter and do not pass it to
95 dump_generic_ada_node.
96 (dump_ada_template): Likewise.
97 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
99 (print_ada_methods): Change return type to integer. Remove cpp_check
100 parameter and do not pass it down.
101 (dump_nested_types): Remove cpp_check parameter and do not pass it to
102 dump_generic_ada_node.
103 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
105 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
106 down. Use has_nontrivial_methods to recognize C++ classes. Use return
107 value of print_ada_methods.
108 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
109 Set cpp_check to it before invoking dump_ada_nodes.
110 (dump_ada_specs): Likewise.
112 2013-11-03 Marek Polacek <polacek@redhat.com>
114 * c-ubsan.c: Don't include hash-table.h.
115 (ubsan_instrument_vla): New function.
116 * c-ubsan.h: Declare it.
118 2013-10-31 David Malcolm <dmalcolm@redhat.com>
120 Automated part of renaming of symtab_node_base to symtab_node.
122 Patch autogenerated by rename_symtab.py from
123 https://github.com/davidmalcolm/gcc-refactoring-scripts
124 revision 58bb219cc090b2f4516a9297d868c245495ee622
126 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
127 symtab_node_base to symtab_node.
129 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
131 Implement C++14 digit separators.
132 * c-lex.c (interpret_float): Remove digit separators from scratch string
133 before building real literal.
135 2013-10-30 Jakub Jelinek <jakub@redhat.com>
137 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
139 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
141 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
143 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
145 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
146 (insert_cilk_frame): New prototype.
147 (cilk_init_builtins): Likewise.
148 (gimplify_cilk_spawn): Likewise.
149 (c_cilk_install_body_w_frame_cleanup): Likewise.
150 (cilk_detect_spawn_and_unwrap): Likewise.
151 (cilk_set_spawn_marker): Likewise.
152 (build_cilk_sync): Likewise.
153 (build_cilk_spawn): Likewise.
156 2013-10-29 David Malcolm <dmalcolm@redhat.com>
158 Patch autogenerated by refactor_symtab.py from
159 https://github.com/davidmalcolm/gcc-refactoring-scripts
160 revision 58bb219cc090b2f4516a9297d868c245495ee622
162 * c-gimplify.c (c_genericize): Update for conversion of symtab types
163 to a true class hierarchy.
164 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
166 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
168 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
170 2013-10-26 Jeff Law <law@redhat.com>
172 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
173 * c-family/c.opt: Ignore and warn for mudflap options.
175 2013-10-24 Tobias Burnus <burnus@net-b.de>
178 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
179 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
181 2013-10-23 Jason Merrill <jason@redhat.com>
183 * c-format.c (gcc_cxxdiag_char_table): Add %X.
185 2013-10-11 Jakub Jelinek <jakub@redhat.com>
187 * c-common.h (omp_clause_mask::operator !=): New method.
188 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
189 instead of if (mask & something) tests everywhere.
191 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
192 201307 instead of 201107.
193 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
194 (c_common_attribute_table): Add "omp declare target" and
195 "omp declare simd" attributes.
196 (handle_omp_declare_target_attribute,
197 handle_omp_declare_simd_attribute): New functions.
198 * c-omp.c: Include c-pragma.h.
199 (c_finish_omp_taskgroup): New function.
200 (c_finish_omp_atomic): Add swapped argument, if true,
201 build the operation first with rhs, lhs arguments and use NOP_EXPR
203 (c_finish_omp_for): Add code argument, pass it down to make_code.
204 (c_omp_split_clauses): New function.
205 (c_split_parallel_clauses): Removed.
206 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
207 c_omp_declare_simd_clauses_to_decls): New functions.
208 * c-common.h (omp_clause_mask): New type.
209 (OMP_CLAUSE_MASK_1): Define.
210 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
211 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
212 omp_clause_mask::operator |, omp_clause_mask::operator &,
213 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
214 omp_clause_mask::operator ==): New methods.
215 (enum c_omp_clause_split): New.
216 (c_finish_omp_taskgroup): New prototype.
217 (c_finish_omp_atomic): Add swapped argument.
218 (c_finish_omp_for): Add code argument.
219 (c_omp_split_clauses): New prototype.
220 (c_split_parallel_clauses): Removed.
221 (c_omp_declare_simd_clauses_to_numbers,
222 c_omp_declare_simd_clauses_to_decls): New prototypes.
223 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
224 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
225 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
226 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
227 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
228 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
229 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
230 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
231 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
232 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
233 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
234 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
235 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
236 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
237 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
238 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
239 PRAGMA_OMP_CLAUSE_UNIFORM.
241 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
243 PR tree-optimization/20318
244 * c-common.c (handle_returns_nonnull_attribute): New function.
245 (c_common_attribute_table): Add returns_nonnull.
247 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
250 * c.opt (fcheck-new): Move to common.opt.
252 2013-09-25 Marek Polacek <polacek@redhat.com>
253 Jakub Jelinek <jakub@redhat.com>
256 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
257 an expression if we can prove it is correct.
258 (ubsan_instrument_division): Likewise. Remove unnecessary
261 2013-09-18 Marek Polacek <polacek@redhat.com>
264 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
266 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
268 2013-09-14 Iain Sandoe <iain@codesourcery.com>
271 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
272 fobjc-gc, freplace-objc-classes): Accept for LTO.
274 2013-09-13 Jacek Caban <jacek@codeweavers.com>
276 * c-target.def: New hook
278 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
281 * c.opt (Wdelete-incomplete): Add.
283 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
285 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
286 (vector_types_compatible_elements_p): New function.
287 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
289 (vector_types_compatible_elements_p): Declare.
291 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
293 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
294 a virtual member function.
295 (pp_simple_type_specifier): Remove.
296 (pp_c_type_specifier): Likewise.
297 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
298 Rename from pp_c_type_specifier. Adjust.
299 (c_pretty_printer::c_pretty_printer): Do not assign to
300 simple_type_specifier.
302 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
304 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
306 (c_pretty_printer::storage_class_specifier): Likewise.
307 (c_pretty_printer::initializer): Likewise.
308 (pp_declaration): Remove.
309 (pp_declaration_specifiers): Likewise.
310 (pp_abstract_declarator): Likewise.
311 (pp_declarator): Likewise.
312 (pp_type_id): Likewise.
313 (pp_statement): Likewise.
314 (pp_constant): Likewise.
315 (pp_id_expression): Likewise.
316 (pp_primary_expression): Likewise.
317 (pp_unary_expression): Likewise.
318 (pp_multiplicative_expression): Likewise.
319 (pp_conditional_expression): Likewise.
320 (pp_assignment_expression): Likewise.
321 (pp_expression): Likewise.
322 (pp_c_type_id): Likewise.
323 (pp_c_storage_class_specifier): Likewise.
324 * c-pretty-print.c (pp_c_type_cast): Tidy.
325 (pp_c_pointer): Likewise.
326 (pp_c_type_specifier): Likewise.
327 (pp_c_parameter_type_list): Likewise.
328 (pp_c_function_definition): Likewise.
329 (pp_c_init_declarator): Likewise.
330 (pp_c_initializer_list): Likewise.
331 (pp_c_constructor_elts): Likewise.
332 (c_pretty_printer::direct_abstract_declarator): Likewise.
333 (c_pretty_printer::declaration_specifiers): Likewise.
334 (c_pretty_printer::primary_expression): Likewise.
335 (c_pretty_printer::postfix_expression): Likewise.
336 (c_pretty_printer::type_id): Rename from pp_c_type_id.
337 (c_pretty_printer::storage_class_specifier): Rename from
338 pp_c_storage_class_specifier.
339 (c_pretty_printer::initializer): Rename from pp_c_initializer.
340 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
341 storage_class_specifier, initializer, offset_list, flags.
343 2013-08-30 Marek Polacek <polacek@redhat.com>
345 * c-ubsan.c: New file.
346 * c-ubsan.h: New file.
348 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
350 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
352 (c_pretty_printer::declaration_specifiers): Likewise.
353 (c_pretty_printer::declarator): Likewise.
354 (c_pretty_printer::abstract_declarator): Likewise.
355 (c_pretty_printer::direct_abstract_declarator): Likewise.
356 (c_pretty_printer::direct_declarator): Likewise.
357 (c_pretty_printer::function_specifier): Likewise.
358 (pp_declaration): Adjust.
359 (pp_declaration_specifiers): Likewise.
360 (pp_abstract_declarator): Likewise.
361 (pp_direct_declarator): Likewise.
362 (pp_function_specifier): Likewise.
363 (pp_direct_abstract_declarator): Remove as unused.
364 (pp_c_declaration): Remove.
365 (pp_c_declaration_specifiers): Likewise.
366 (pp_c_declarator): Likewise.
367 (pp_c_direct_declarator): Likewise.
368 (pp_c_function_specifier): Likewise.
369 (pp_c_direct_abstract_declarator): Likewise.
370 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
371 from pp_c_abstract_declarator. Adjust.
372 (c_pretty_printer::direct_abstract_declarator): Rename from
373 pp_c_direct_abstract_declarator. Adjust.
374 (c_pretty_printer::function_specifier): Rename from
375 pp_c_function_specifier. Adjust.
376 (c_pretty_printer::declaration_specifiers): Rename from
377 pp_c_declaration_specifiers. Adjust.
378 (c_pretty_printer::direct_declarator): Rename from
379 pp_c_direct_declarator. Adjust.
380 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
381 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
382 (c_pretty_printer::c_pretty_printer): Do not assign to
383 declaration, declaration_specifiers, declarator,
384 direct_declarator, direct_abstract_declarator, function_specifier.
386 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
388 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
389 virtual member function.
390 (c_pretty_printer::multiplicative_expression): Likewise.
391 (c_pretty_printer::conditional_expression): Likewise.
392 (c_pretty_printer::assignment_expression): Likewise.
393 (c_pretty_printer::expression): Likewise.
394 (pp_unary_expression): Adjust.
395 (pp_multiplicative_expression): Likewise.
396 (pp_assignment_expression): Likewise.
397 (pp_conditional_expression): Likewise.
398 (pp_expression): Likewise.
399 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
400 from pp_c_unary_expression. Adjust.
401 (c_pretty_printer::multiplicative_expression): Rename from
402 pp_c_multiplicative_expression. Adjust.
403 (c_pretty_printer::conditional_expression): Rename from
404 pp_c_conditional_expression. Adjust.
405 (c_pretty_printer::assignment_expression): Rename from
406 pp_c_assignment_expression. Adjust.
407 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
408 (c_pretty_printer::c_pretty_printer): Do not assign to
409 unary_expression, multiplicative_expression,
410 conditional_expression, expression.
412 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
414 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
415 virtual member function.
416 (pp_postfix_expression): Adjust.
417 (pp_c_postfix_expression): Remove.
418 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
419 from pp_c_postfix_expression. Adjust.
420 (c_pretty_printer::c_pretty_printer): Do not assign to
423 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
425 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
426 virtua member function.
427 (pp_primary_expression): Adjust.
428 (pp_c_primary_expression): Remove.
429 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
430 from pp_c_primary_expression. Adjust.
431 (pp_c_initializer_list): Use pp_primary_expression.
432 (c_pretty_printer::c_pretty_printer): Do not assign to
435 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
437 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
438 * c-pretty-print.c (M_): Remove.
439 (c_pretty_printer::translate_string): Define.
440 (pp_c_type_specifier): Use it.
441 (pp_c_primary_expression): Likewise.
442 (pp_c_expression): Likewise.
444 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
446 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
448 (pp_c_id_expression): Remove.
449 (pp_id_expression): Adjust.
450 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
451 pp_c_id_expression. Adjust.
452 (pp_c_postfix_expression): Use pp_id_expression.
453 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
455 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
457 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
459 (pp_constant): Adjust.
460 (pp_c_constant): Remove.
461 * c-pretty-print.c (c_pretty_printer::constant): Rename from
462 pp_c_constant. Adjust.
464 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
465 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
467 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
469 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
470 (c_pretty_printer::c_pretty_printer): Declare.
471 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
472 c_pretty_printer_init. Adjust.
473 (print_c_tree): Do not call c_pretty_printer_init.
474 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
476 2013-08-09 Arnaud Charlet <charlet@adacore.com>
478 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
480 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
483 * c-common.c (pointer_int_sum): Add bool parameter.
484 * c-common.h (pointer_int_sum): Adjust declaration.
486 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
488 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
489 c_pretty_printer variable.
491 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
493 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
495 (pp_c_base): Likewise. Adjust users.
496 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
497 (pp_c_whitespace): Do not call pp_base.
498 (pp_c_left_paren): Likewise.
499 (pp_c_right_paren): Likewise.
500 (pp_c_left_brace): Likewise.
501 (pp_c_right_brace): Likewise.
502 (pp_c_left_bracket): Likewise.
503 (pp_c_right_bracket): Likewise.
504 (pp_c_dot): Likewise.
505 (pp_c_ampersand): Likewise.
506 (pp_c_star): Likewise.
507 (pp_c_arrow): Likewise.
508 (pp_c_semicolon): Likewise.
509 (pp_c_complement): Likewise.
510 (pp_c_exclamation): Likewise.
511 (pp_c_direct_declarator): Likewise.
512 (pp_c_ws_string): Likewise.
513 (pp_c_identifier): Likewise.
514 (pp_c_statement): Likewise.
515 (print_c_tree): Likewise.
517 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
520 * c-common.c (c_parse_error): Catch user-defined literal tokens and
521 provide useful error strings.
523 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
525 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
526 printer functions instead of pp_string or operators and punctuators.
527 (dump_generic_ada_node): Likewise.
528 * c-pretty-print.c (pp_c_type_specifier): Likewise.
529 (pp_c_relational_expression): Likewise.
530 (pp_c_logical_or_expression): Likewise.
532 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
534 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
535 functions instead of pp_character.
536 (pp_ada_tree_identifier): Likewise.
537 (dump_ada_double_name): Likewise.
538 (dump_ada_function_declaration): Likewise.
539 (dump_ada_array_domains): Likewise.
540 (dump_template_types): Likewise.
541 (dump_generic_ada_node): Likewise.
542 (print_ada_declaration): Likewise.
543 (print_ada_struct_decl): Likewise.
544 * c-pretty-print.c (pp_c_integer_constant): Likewise.
546 2013-07-23 Tom Tromey <tromey@redhat.com>
548 * c-common.h (enum rid) <RID_GENERIC>: New constant.
549 * c-common.c (c_common_reswords): Add _Generic.
551 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
553 * c-common.c: Fix typos.
554 * c-common.h: Likewise.
556 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
559 * c-common.c (c_common_attribute_table): Add warn_unused.
560 (handle_warn_unused_attribute): New.
562 2013-07-10 Jakub Jelinek <jakub@redhat.com>
564 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
565 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
567 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
570 * c.opt: Add Wconditionally-supported.
572 2013-07-08 Graham Stott <graham.stott@btinternet.com>
574 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
575 unused variables l_length and l_node.
577 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
580 * c-common.c (complete_array_type): Delay folding first index
581 like other indices. When folding, check for index overflow.
583 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
586 * c-common.h (c_build_vec_perm_expr): New complain argument.
587 * c-common.c (c_build_vec_perm_expr): Likewise.
588 Use save_expr also in C++.
590 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
592 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
593 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
594 * c-opts.c (c_common_post_options): Likewise.
596 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
598 * array-notation-common.c (length_mismatch_in_expr): Changed the
599 parameter type's from a dynamic array to a vec_tree. Also removed
601 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
604 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
606 * c-common.h (struct cilkplus_an_parts): New structure.
607 (struct cilkplus_an_loop_parts): Likewise.
608 (cilkplus_extract_an_triplets): New prototype.
609 (fix_sec_implicit_args): Likewise.
610 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
611 (fix_sec_implicit_args): Likewise.
613 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
615 * array-notation-common.c (find_inv_trees): Removed an unwanted
617 * c-common.h (struct inv_list::additional_tcodes): Changed type from
618 enum rid to enum tree_code.
620 2013-06-11 Jan Hubicka <jh@suse.cz>
622 * c-common.c (handle_alias_ifunc_attribute): Do not set
623 DECL_EXTERNAL for weakref variables.
624 * c-pragma.c (handle_pragma_weak): Make sure aliases
625 are not declared as external.
627 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
629 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
630 function from c/c-array-notation.c.
631 (is_cilkplus_reduce_builtin): Likewise.
632 (find_rank): Likewise.
633 (extract_array_notation_exprs): Likewise.
634 (replace_array_notations): Likewise.
635 (find_inv_trees): Likewise.
636 (replace_inv_trees): Likewise.
637 (contains_array_notation_expr): Likewise.
638 (find_correct_array_notation_type): Likewise.
639 * c-common.h (struct inv_list): Moved this struct from the file
640 c/c-array-notation.c and added a new field called additional tcodes.
641 (length_mismatch_in_expr_p): New prototype.
642 (is_cilkplus_reduce_builtin): Likewise.
643 (find_rank): Likewise.
644 (extract_array_notation_exprs): Likewise.
645 (replace_array_notation): Likewise.
646 (find_inv_trees): Likewise.
647 (replace_inv_trees): Likewise.
648 (find_correct_array_notation_type): Likewise.
650 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
652 * c-common.c (c_define_builtins): When cilkplus is enabled, the
653 function array_notation_init_builtins is called.
654 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
655 * c-common.def (ARRAY_NOTATION_REF): New tree.
656 * c-common.h (build_array_notation_expr): New function declaration.
657 (build_array_notation_ref): Likewise.
658 (extract_sec_implicit_index_arg): New extern declaration.
659 (is_sec_implicit_index_fn): Likewise.
660 (ARRAY_NOTATION_CHECK): New define.
661 (ARRAY_NOTATION_ARRAY): Likewise.
662 (ARRAY_NOTATION_START): Likewise.
663 (ARRAY_NOTATION_LENGTH): Likewise.
664 (ARRAY_NOTATION_STRIDE): Likewise.
665 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
667 (pp_c_expression): Likewise.
668 * c.opt (flag_enable_cilkplus): New flag.
669 * array-notation-common.c: New file.
671 2013-05-14 Jakub Jelinek <jakub@redhat.com>
674 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
676 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
678 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
681 2013-05-07 Han Shen <shenhan@google.com>
683 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
685 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
687 * c-common.c (check_user_alignment): Emit error for negative values.
689 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
691 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
693 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
695 * c-cppbuiltin.c (c_cpp_builtins): Do not define
696 __GXX_EXPERIMENTAL_CXX1Y__.
698 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
699 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
701 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
702 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
703 to simply use OPT_Wpointer_arith.
704 (c_sizeof_or_alignof_type): Likewise.
706 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
708 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
710 2013-04-12 Jakub Jelinek <jakub@redhat.com>
712 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
713 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
716 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
718 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
720 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
722 * c-common.c (pointer_int_sum): Remove dead code.
724 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
727 * c-common.c (handle_optimize_attribute): Don't call
728 save_optabs_if_changed.
730 2013-03-05 Jakub Jelinek <jakub@redhat.com>
733 * c-pch.c (pch_init): Free target_validity at the end.
735 2013-03-04 Jakub Jelinek <jakub@redhat.com>
737 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
739 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
740 Jakub Jelinek <jakub@redhat.com>
743 * c-common.c (handle_no_sanitize_address_attribute): New function.
744 (c_common_attribute_table): Add no_sanitize_address attribute.
745 (handle_no_address_safety_analysis_attribute): Add
746 no_sanitize_address attribute, not no_address_safety_analysis
749 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
752 * c-common.c (handle_optimize_attribute): Call
753 save_optabs_if_changed.
755 2013-02-18 Jakub Jelinek <jakub@redhat.com>
756 Steven Bosscher <steven@gcc.gnu.org>
759 * c-opts.c (c_common_post_options): If debug info is enabled
760 and non-dwarf*, refuse to load PCH files and when writing PCH
763 2013-02-05 Jakub Jelinek <jakub@redhat.com>
766 * c-common.c (handle_error_attribute): Fix condition.
768 2013-01-30 Jakub Jelinek <jakub@redhat.com>
771 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
773 2013-01-18 Jason Merrill <jason@redhat.com>
776 * c.opt (-fextern-tls-init): New.
777 * c-opts.c (c_common_post_options): Handle it.
779 2013-01-09 Jakub Jelinek <jakub@redhat.com>
782 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
783 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
784 and is either negative or bigger or equal to type precision
785 of the first operand.
787 2012-12-03 Marek Polacek <polacek@redhat.com>
790 * c-common.c (check_user_alignment): Swap order of tests,
791 check TREE_CODE first.
793 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
796 * c-common.h (overflow_type): New enum.
797 (build_userdef_literal): Add overflow_type argument.
798 (tree_userdef_literal): Add overflow_type.
799 (USERDEF_LITERAL_OVERFLOW): New access macro.
800 * c-common.c (build_userdef_literal): Add overflow_type
802 * c-lex.c (c_lex_with_flags): Add overflow_type to
803 build_userdef_literal calls.
804 (interpret_integer, interpret_float): Add overflow_type argument.
806 2012-11-28 Richard Biener <rguenther@suse.de>
809 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
810 here and use a type with proper overflow behavior for types that would
811 need to be promoted for the arithmetic.
813 2012-11-23 Jakub Jelinek <jakub@redhat.com>
816 * c-common.c (handle_no_address_safety_analysis_attribute): New
818 (c_common_attribute_table): Add no_address_safety_analysis.
820 2012-11-16 Simon Baldwin <simonb@google.com>
822 * c.opt: Add f[no-]canonical-system-headers.
823 * c-opts.c (c_common_handle_option): Handle
824 OPT_fcanonical_system_headers.
826 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
829 * c-opts.c (c_common_handle_option): Set new flags.
830 * c.opt: Describe new flags.
832 2012-11-09 Jason Merrill <jason@redhat.com>
834 * c.opt (Wabi-tag): New.
836 2012-11-09 Andi Kleen <ak@linux.intel.com>
839 * c-common.c (get_atomic_generic_size): Mask with
842 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
845 * c.opt (Wformat): Make it Alias Wformat=1.
846 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
847 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
849 (Wformat=): RejectNegative. Use LangEnabledBy.
850 (Wnonnull): Use LangEnabledBy.
851 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
852 * c-format.c (set_Wformat): Delete.
853 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
854 (maybe_read_dollar_number): Likewise.
855 (avoid_dollar_number): Likewise.
856 (finish_dollar_format_checking): Likewise.
857 (check_format_info): Likewise.
858 (check_format_info_main): Likewise.
859 (check_format_types): Likewise.
860 (format_type_warning): Likewise.
861 * c-common.c (int): Likewise.
862 (check_function_sentinel): Likewise.
863 * c-common.h (warn_format,set_Wformat): Do not declare here.
865 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
868 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
869 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
871 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
873 (Wvariadic-macros): Init(1).
874 * c-opts.c (c_common_handle_option): Do not handle them
876 (c_common_post_options): Likewise.
877 (sanitize_cpp_opts): warn_unused_macros is now
878 cpp_warn_unused_macros.
879 (push_command_line_include): Likewise.
880 * c-common.c (warn_unknown_pragmas): Do not define.
881 * c-common.h (warn_unknown_pragmas): Do not declare.
883 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
886 * c-common.c (conversion_warning): Handle conditional expressions.
888 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
891 * c.opt (Wreturn_local_addr): Define new option.
893 2012-10-25 Jason Merrill <jason@redhat.com>
895 * c.opt (Wvirtual-move-assign): New.
897 * c.opt (Winherited-variadic-ctor): New.
899 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
902 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
904 2012-10-23 Joseph Myers <joseph@codesourcery.com>
906 * c-common.h (pch_cpp_save_state): Declare.
907 * c-target.def (c_preinclude): New hook.
908 * c-opts.c (done_preinclude): New.
909 (push_command_line_include): Handle default preincluded header.
910 (cb_file_change): Call pch_cpp_save_state when calling
911 push_command_line_include.
912 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
913 (pch_cpp_save_state): New.
914 (pch_init): Call pch_cpp_save_state conditionally, instead of
915 calling cpp_save_state.
917 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
921 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
922 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
923 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
924 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
925 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
926 * c-opts.c (c_common_handle_option): Remove explicit handling from
928 (c_common_post_options): Likewise.
930 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
932 * c-ada-spec.c (LOCATION_COL): Delete.
933 (compare_location): New function.
934 (compare_node): Use it.
935 (compare_comment): Likewise.
937 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
941 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
942 * c-opts.c (c_common_handle_option): Do not set them here. Add
944 (c_common_post_options): Likewise.
946 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
948 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
949 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
950 Remove POINTER_TYPE handling, add large unsigned handling and use
951 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
953 2012-10-12 Jakub Jelinek <jakub@redhat.com>
956 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
957 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
958 locs and array of 3 trees instead of just single loc and single
959 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
960 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
961 For *cmp* builtins that take two sources strings report warnings
962 about first and second source, not about destination and source.
964 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
967 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
969 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
971 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
972 declaring something coming from another file.
974 2012-10-10 Arnaud Charlet <charlet@adacore.com>
977 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
979 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
982 * c-common.c (warn_about_parentheses): Add location_t parameter;
984 * c-common.h: Update declaration.
986 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
989 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
990 more operations. Make error messages optional.
991 * c-common.h (enum stv_conv): Moved from c-typeck.c.
992 (scalar_to_vector): Declare.
994 2012-10-08 Jason Merrill <jason@redhat.com>
996 * c-common.c (c_common_reswords): Add thread_local.
998 2012-10-08 Dodji Seketeli <dodji@redhat.com>
1000 PR c++/53528 C++11 attribute support
1001 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1003 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1005 (handle_aligned_attribute): In choose strictest alignment
1006 among many. Use new check_cxx_fundamental_alignment_constraints.
1007 (handle_transparent_union_attribute): In c++11 attribute syntax,
1008 don't look through typedefs.
1010 2012-10-04 Arnaud Charlet <charlet@adacore.com>
1012 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1013 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1016 2012-09-25 Dehao Chen <dehao@google.com>
1019 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
1020 map when read in the pch.
1022 2012-09-18 Arnaud Charlet <charlet@adacore.com>
1024 * c-ada-spec.c: Style fixes.
1026 2012-09-18 Thomas Quinot <quinot@adacore.com>
1028 * c.opt (-fada-spec-parent): Define new command line switch.
1029 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1030 is specified, generate binding spec as a child of the specified unit.
1032 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1033 Manuel López-Ibáñez <manu@gcc.gnu.org>
1036 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1038 2012-08-23 Arnaud Charlet <charlet@adacore.com>
1040 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1041 for pointers, and add missing Convention C pragma.
1042 (print_ada_struct_decl): Add missing aliased keyword.
1043 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1045 2012-08-17 Jakub Jelinek <jakub@redhat.com>
1047 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1048 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1049 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1050 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1051 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1053 2012-08-10 Richard Guenther <rguenther@suse.de>
1055 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1057 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1059 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1060 instead of separate pp_newline and pp_flush.
1061 (print_c_tree): Likewise.
1063 2012-07-26 Richard Henderson <rth@redhat.com>
1065 * c-common.c (handle_hot_attribute): Allow labels.
1066 (handle_cold_attribute): Likewise.
1068 2012-07-20 Jakub Jelinek <jakub@redhat.com>
1071 * c-common.c (check_function_nonnull): Handle multiple nonnull
1072 attributes properly.
1074 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1076 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1077 * c-ada-spec.c: Likewise.
1078 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1080 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1082 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1083 Remove code conditional on it.
1085 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1087 * c-gimplify.c: Do not include basic-block.h.
1088 * c-common.c: Do not include linfuncs.h.
1090 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1092 * c-common.h: Include tree.h.
1094 2012-07-02 Jason Merrill <jason@redhat.com>
1097 * c-common.c (get_priority): Call default_conversion.
1099 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
1101 * c-pch.c (c_common_write_pch): Remove unused variables.
1103 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1105 * cppspec.c: Moved from gcc/ to here.
1107 2012-06-27 Kai Tietz <ktietz@redhat.com>
1109 PR preprocessor/37215
1110 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1112 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1114 * c-common.h (c_common_print_pch_checksum): Remove.
1115 * c-pch.c: Do not include output.h.
1116 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1117 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1118 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1119 (struct c_pch_header): Remove.
1120 (get_ident): Update gpch version.
1121 (pch_init): Do not print executable_checksum to asm_out_file.
1122 Do not fail if there is no asm_out_file to read back from. Set
1123 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1124 (c_common_write_pch): Verify that nothing was written to asm_out_file
1125 since pch_init was called. Do not write a c_pch_header, and do not
1126 copy from asm_out_file to the PCH.
1127 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1128 the content of asm_out_file from the PCH.
1129 (c_common_print_pch_checksum): Remove.
1130 * c-opts.c (c_common_init): Print out executable_checksum directly.
1132 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1134 * c-target.def (objc_declare_unresolved_class_reference,
1135 objc_declare_class_definition): Add new hooks.
1137 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1139 * c-lex.c: Do not include output.h.
1140 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1141 Remove uses of ASM_OUTPUT_IDENT.
1143 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1146 * c-common.h (c_build_vec_perm_expr): Move decl here.
1147 * c-common.c (c_build_vec_perm_expr): Move definition
1150 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1152 * c.opt (fconserve-space): Turn into a no-op.
1154 2012-06-04 Sterling Augustine <saugustine@google.com>
1156 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1157 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1158 both the start and end of the function.
1160 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1162 * c-common.c: Do not include output.h.
1163 * c-pragma.c: Likewise.
1165 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1167 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1168 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1169 (lang_decl_name): Handle namespace decls.
1171 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1173 * c-ada-spec.c: Do not include output.h.
1174 * c-semantics.c: Likewise.
1176 2012-05-29 Joseph Myers <joseph@codesourcery.com>
1178 * c-common.c: Fix typo.
1180 2012-05-29 Michael Matz <matz@suse.de>
1182 * c-common.h (c_expand_decl): Remove prototype.
1184 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1186 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1187 * c-opts.c (c_common_handle_option): Remove code handling
1188 warn_missing_braces.
1190 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1193 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1196 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1199 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1201 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1203 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1204 * c-opts.c (c_common_handle_option): Do not handle explicitly
1205 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1207 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1209 PR preprocessor/7263
1210 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1211 to cpp_classify_number. For diagnostics, use the precise location
1212 instead of the global input_location.
1214 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1217 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1219 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1221 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1223 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1226 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1227 Wreorder): Use LangEnabledBy.
1228 * c-opts.c (c_common_handle_option): Do not enable them
1229 explicitly. Call lang-specific generated functions.
1230 (c_common_post_options): Do not set them here.
1232 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1234 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1235 Wmissing-field-initializers,Wmissing-parameter-type,
1236 Wold-style-declaration,Woverride-init): Use EnabledBy.
1237 * c-opts.c (c_common_post_options): Do not set here explicitly.
1239 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1242 * c-opts.c (c_common_handle_option): Use handle_generated_option
1243 to enable sub-options.
1245 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1248 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1250 2012-05-10 Richard Guenther <rguenther@suse.de>
1252 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1253 adjust commentary about TYPE_IS_SIZETYPE types.
1255 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1258 * c-common.c (warn_logical_operator): Check that argument of
1259 integer_zerop is not NULL.
1261 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1264 * c-common.c (warn_logical_operator): Do not warn if either side
1265 is already true or false.
1267 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1270 * c-common.c (expr_original_type): New.
1271 (shorten_compare): Do not warn for enumeration types.
1273 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1275 * c.opt (fpermissive): Add Var(flag_permissive).
1277 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1280 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1281 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1283 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1285 Add -Wvarargs option
1286 * c.opt (Wvarargs): Define new option.
1288 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1290 * c-common.c (check_function_arguments): Replace
1291 Wmissing-format-attribute with Wsuggest-attribute=format.
1293 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1295 * c.opt (Wsuggest-attribute=format): New. Alias of
1296 Wmissing-format-attribute.
1297 * c-format.c (decode_format_type): Replace
1298 Wmissing-format-attribute with Wsuggest-attribute=format.
1299 (check_function_format): Likewise.
1301 2012-04-27 Ollie Wild <aaw@google.com>
1303 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1304 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1305 * c.opt: Add Wliteral-suffix.
1307 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1310 * c.opt (Wpedantic): New.
1311 (pedantic): Alias Wpedantic.
1312 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1313 (c_common_post_options): Likewise.
1314 (sanitize_cpp_opts): Likewise.
1315 * c-lex.c (interpret_float): Likewise.
1316 * c-format.c (check_format_types): Likewise.
1317 * c-common.c (pointer_int_sum): Likewise.
1318 (c_sizeof_or_alignof_type): Likewise.
1319 (c_add_case_label): Likewise.
1320 (c_do_switch_warnings): Likewise.
1321 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1323 2012-04-15 Jason Merrill <jason@redhat.com>
1326 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1327 (C_STD_NAME): Distinguish between C++98 and C++11.
1329 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1332 * c-common.h (uint16_type_node): Rename into...
1333 (c_uint16_type_node): ...this.
1334 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1335 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1337 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1339 * c-common.c (warn_if_unused_value): Move definition to here.
1340 * c-common.h (warn_if_unused_value): Move declaration to here.
1342 2012-03-23 William Bader <williambader@hotmail.com>
1344 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1346 2012-03-20 Jason Merrill <jason@redhat.com>
1348 * c-common.h (enum cxx_dialect): Add cxx1y.
1349 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1351 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1352 * c-opts.c (c_common_post_options): Likewise.
1353 (set_std_cxx1y): New.
1354 (c_common_handle_option): Call it.
1355 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1357 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1360 * c.opt ([Wuseless-cast]): Add.
1362 2012-03-16 Richard Guenther <rguenther@suse.de>
1364 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1366 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1369 * c.opt (ftemplate-backtrace-limit) Add.
1371 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1373 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1375 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1376 (init_pragma): Don't register extern_prefix.
1378 2012-03-12 Richard Guenther <rguenther@suse.de>
1380 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1381 (builtin_type_for_size): Likewise.
1383 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1386 * c-common.c (sync_resolve_params): Don't decide whether to convert
1387 or not based on TYPE_SIZE comparison, convert whenever arg_type
1388 is unsigned INTEGER_TYPE.
1390 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1393 * c.opt ([Wunused-local-typedefs]): Fix description.
1395 2012-01-24 Mike Stump <mikestump@comcast.net>
1397 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1400 2012-01-18 Richard Guenther <rguenther@suse.de>
1402 * c-opts.c (c_common_post_options): Reset LTO flags if
1403 we are about to generate a PCH.
1405 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1408 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1409 use pp_unsigned_wide_integer.
1411 2012-01-10 Richard Guenther <rguenther@suse.de>
1414 * c-opts.c (c_common_handle_option): Move -Werror handling
1415 to language independent code.
1417 2012-01-05 Richard Guenther <rguenther@suse.de>
1420 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1423 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1426 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1427 of array types with an unknown bound.
1429 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1431 * c-common.c (flag_isoc99): Update comment to refer to C11.
1432 (flag_isoc1x): Change to flag_isoc11.
1433 * c-common.h (flag_isoc99): Update comment to refer to C11.
1434 (flag_isoc1x): Change to flag_isoc11.
1435 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1437 * c-opts.c (set_std_c1x): Change to set_std_c11.
1438 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1440 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1441 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1442 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1444 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1445 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1446 (std=gnu1x): Make alias of std=gnu11.
1448 2011-12-19 Jason Merrill <jason@redhat.com>
1451 * c-common.c (handle_transparent_union_attribute): Check the first
1452 field if the type is complete.
1454 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1457 * c-common.c (RID_IS_FINAL): Add.
1458 * c-common.h (RID_IS_FINAL): Add.
1460 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1462 * c.opt (fgnu-runtime): Provide full description.
1463 (fnext-runtime): Likewise.
1464 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1466 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1468 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1469 predefines in one place. Add LOCK_FREE predefines.
1470 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1473 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1476 * c-common.c (get_atomic_generic_size): Check for various error
1478 (resolve_overloaded_atomic_exchange,
1479 resolve_overloaded_atomic_compare_exchange,
1480 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1481 error_mark_node for error conditions.
1483 2011-11-08 Richard Guenther <rguenther@suse.de>
1488 2011-11-07 Richard Henderson <rth@redhat.com>
1489 Aldy Hernandez <aldyh@redhat.com>
1490 Torvald Riegel <triegel@redhat.com>
1492 Merged from transactional-memory.
1494 * c-common.c (handle_tm_wrap_attribute,
1495 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1496 (struct c_common_reswords): Added __transaction* keywords.
1497 (struct c_common_attribute_table): Added transaction* and tm_regparm
1499 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1501 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1502 find_tm_attribute): Declare.
1504 2011-11-07 Jason Merrill <jason@redhat.com>
1507 * c-common.c, c-common.h: Revert yesterday's changes.
1509 2011-11-06 Jason Merrill <jason@redhat.com>
1512 * c-common.c (decl_has_visibility_attr): Split out from...
1513 (c_determine_visibility): ...here.
1514 * c-common.h: Declare it.
1516 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1518 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1519 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1521 (check_user_alignment): New. Split out of
1522 handle_aligned_attribute. Disallow integer constants with
1523 noninteger types. Conditionally allow zero.
1524 (handle_aligned_attribute): Use check_user_alignment.
1525 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1527 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1528 Richard Henderson <rth@redhat.com>
1530 Merged from cxx-mem-model.
1532 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1533 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1534 parameters that are the same type size.
1535 (get_atomic_generic_size): New. Find size of generic
1536 atomic function parameters and do typechecking.
1537 (add_atomic_size_parameter): New. Insert size into parameter list.
1538 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1539 either __atomic_exchange_n or external library call.
1540 (resolve_overloaded_atomic_compare_exchange): Restructure
1541 __atomic_compare_exchange to either _n variant or external library call.
1542 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1543 __atomic_load_n or an external library call.
1544 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1545 __atomic_store_n or an external library call.
1546 (resolve_overloaded_builtin): Handle new __atomic builtins.
1548 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1551 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1552 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1553 <INDIRECT_REF>: Return the argument.
1554 <ARRAY_REF>: Remove special code for negative offset.
1555 Call fold_build_pointer_plus instead of size_binop.
1556 (fold_offsetof): Remove STOP_REF argument and adjust.
1557 * c-common.h (fold_offsetof_1): Declare.
1558 (fold_offsetof): Remove STOP_REF argument.
1560 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1563 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1564 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1565 Wnarrowing for C++0x and C++98.
1566 * c.opt ([Wnarrowing]): Update.
1568 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1571 * c.opt: Add Wzero-as-null-pointer-constant.
1573 2011-10-31 Jason Merrill <jason@redhat.com>
1575 * c.opt (-fdeduce-init-list): Off by default.
1578 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1579 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1581 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1583 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1586 * c.opt (fvisibility-inlines-hidden): Description change.
1588 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1590 Implement C++11 user-defined literals.
1591 * c-common.c (build_userdef_literal): New.
1592 * c-common.def: New tree code.
1593 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1594 * c-lex.c (interpret_float): Add suffix parm.
1595 (c_lex_with_flags): Build literal tokens.
1597 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1601 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1604 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1605 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1606 Wnarrowing for C++0x and C++98.
1607 * c.opt ([Wnarrowing]): Update.
1609 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1612 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1613 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1614 Wnarrowing for C++0x and C++98.
1615 * c.opt ([Wnarrowing]): Update.
1617 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1620 * c-common.c (conversion_warning): Remove code looking for
1621 artificial operands.
1623 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1626 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1627 !NO_IMPLICIT_EXTERN_C.
1629 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1631 * c-common.c (c_common_reswords): Add __bases,
1633 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1635 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1638 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1640 2011-10-15 Tom Tromey <tromey@redhat.com>
1641 Dodji Seketeli <dodji@redhat.com>
1643 * c.opt (fdebug-cpp): New option.
1644 * c-opts.c (c_common_handle_option): Handle the option.
1645 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1646 output stream in parameter. Factorized from ...
1647 (maybe_print_line): ... this. Dump location debug information when
1648 -fdebug-cpp is in effect.
1649 (print_line_1): New static function. Takes an output stream in
1650 parameter. Factorized from ...
1651 (print_line): ... here. Dump location information when -fdebug-cpp
1653 (scan_translation_unit): Dump location information when
1654 -fdebug-cpp is in effect.
1656 2011-10-15 Tom Tromey <tromey@redhat.com>
1657 Dodji Seketeli <dodji@redhat.com>
1659 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1661 * c-opts.c (c_common_handle_option)<case
1662 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1663 cases. Handle -ftrack-macro-expansion with and without argument.
1665 2011-10-15 Tom Tromey <tromey@redhat.com>
1666 Dodji Seketeli <dodji@redhat.com>
1668 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1669 (print_line, cb_define, do_line_change): Adjust to avoid touching
1670 the internals of struct line_map. Use the public API instead.
1671 * c-pch.c (c_common_read_pch): Likewise.
1672 * c-lex.c (fe_file_change): Likewise.
1674 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1677 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1679 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1682 * c-pretty-print.c (pp_c_floating_constant): Output
1683 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1685 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1687 * c-common.c (def_builtin_1): Delete old interface with two
1688 parallel arrays to hold standard builtin declarations, and replace
1689 it with a function based interface that can support creating
1690 builtins on the fly in the future. Change all uses, and poison
1691 the old names. Make sure 0 is not a legitimate builtin index.
1692 * c-omp.c (c_finish_omp_barrier): Ditto.
1693 (c_finish_omp_taskwait): Ditto.
1694 (c_finish_omp_flush): Ditto.
1696 2011-10-11 Tristan Gingold <gingold@adacore.com>
1698 * c.opt: (fallow-parameterless-variadic-functions): New.
1700 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1702 PR c++/33255 - Support -Wunused-local-typedefs warning
1703 * c-common.h (struct c_language_function::local_typedefs): New
1705 (record_locally_defined_typedef, maybe_record_typedef_use)
1706 (maybe_warn_unused_local_typedefs): Declare new functions.
1707 * c-common.c (record_locally_defined_typedef)
1708 (maybe_record_typedef_use)
1709 (maybe_warn_unused_local_typedefs): Define new functions.
1710 * c.opt: Declare new -Wunused-local-typedefs flag.
1712 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1715 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1718 2011-09-05 Richard Guenther <rguenther@suse.de>
1720 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1721 of integer_minus_one_node for empty array upper bounds.
1723 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1725 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1726 it's the first time it's being called on this main TU.
1728 2011-08-24 Richard Guenther <rguenther@suse.de>
1731 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1733 2011-08-22 Gabriel Charette <gchare@google.com>
1735 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1736 defined in cpp_init_builtins and c_cpp_builtins.
1738 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1740 * c-common.c (c_common_reswords): Add __builtin_complex.
1741 * c-common.h (RID_BUILTIN_COMPLEX): New.
1743 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1745 * c-common.c (c_common_reswords): Add _Noreturn.
1746 (keyword_is_function_specifier): Handle RID_NORETURN.
1747 * c-common.h (RID_NORETURN): New.
1749 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1751 * c-common.c (unsafe_conversion_p): New function. Check if it is
1752 unsafe to convert an expression to the type.
1753 (conversion_warning): Adjust, use unsafe_conversion_p.
1754 * c-common.h (unsafe_conversion_p): New function declaration.
1756 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1758 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1759 (c_finish_omp_taskyield): New prototype.
1760 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1761 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1762 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1763 or RHS1 have side-effects, evaluate those too in the right spot,
1764 if it is a decl and LHS is also a decl, error out if they
1766 (c_finish_omp_taskyield): New function.
1767 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1768 * c-pragma.c (omp_pragmas): Add taskyield.
1769 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1770 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1771 PRAGMA_OMP_CLAUSE_MERGEABLE.
1773 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1775 * c-common.h (set_underlying_type): Remove parm name from
1778 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1780 * c-pretty-print.h: Search c-common.h in c-family.
1782 2011-07-22 Jason Merrill <jason@redhat.com>
1785 * c.opt (Wnarrowing): New.
1788 * c-common.h: Declare c_linkage_bindings.
1789 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1792 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1793 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1794 as flag_isoc99 for 'restrict'.
1795 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1797 2011-07-21 Ian Lance Taylor <iant@google.com>
1800 * c-common.c (c_disable_warnings): New static function.
1801 (c_enable_warnings): New static function.
1802 (c_fully_fold_internal): Change local unused_p to bool. Call
1803 c_disable_warnings and c_enable_warnings rather than change
1804 c_inhibit_evaluation_warnings.
1806 2011-07-20 Jason Merrill <jason@redhat.com>
1808 PR c++/6709 (DR 743)
1809 PR c++/42603 (DR 950)
1810 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1811 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1812 (CPP_DECLTYPE): New.
1813 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1815 2011-07-19 Richard Guenther <rguenther@suse.de>
1817 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1818 * c-omp.c (c_finish_omp_for): Likewise.
1820 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1822 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1823 body on the next line.
1825 2011-07-08 Jason Merrill <jason@redhat.com>
1828 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1831 * c-common.c (c_apply_type_quals_to_decl): Don't check
1832 TYPE_NEEDS_CONSTRUCTING.
1834 2011-07-06 Richard Guenther <rguenther@suse.de>
1836 * c-common.c (c_common_nodes_and_builtins):
1837 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1839 2011-07-05 Richard Guenther <rguenther@suse.de>
1841 * c-common.c (c_common_nodes_and_builtins): Build all common
1844 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1846 * c-common.h (c_tree_chain_next): New static inline function.
1848 * c-common.c (check_builtin_function_arguments): Handle
1849 BUILT_IN_ASSUME_ALIGNED.
1851 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1853 * c-common.c: Add sync_ or SYNC__ to builtin names.
1854 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1856 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1858 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1860 (gen_pragma_handler): New union.
1861 (internal_pragma_handler): New type.
1862 (c_register_pragma_with_data)
1863 (c_register_pragma_with_expansion_and_data): New functions.
1865 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1866 (c_register_pragma, c_register_pragma_with_expansion)
1867 (c_invoke_pragma_handler): Changed to work with
1868 internal_pragma_handler.
1869 (c_register_pragma_with_data)
1870 (c_register_pragma_with_expansion_and_data): New functions.
1872 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1874 * c-common.c: Include common/common-target.h.
1875 (handle_section_attribute): Use
1876 targetm_common.have_named_sections.
1877 * c-cppbuiltin.c: Include common/common-target.h.
1878 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1880 2011-06-10 Richard Guenther <rguenther@suse.de>
1882 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1883 to print a IDENTIFIER_NODE.
1885 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1886 Joseph Myers <joseph@codesourcery.com>
1888 * c.opt (fbuilding-libgcc): New option.
1889 * c-cppbuiltin.c (c_cpp_builtins): Define
1890 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1892 2011-06-07 Jason Merrill <jason@redhat.com>
1894 * c-common.c (max_tinst_depth): Lower default to 900.
1896 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1898 2011-06-07 Richard Guenther <rguenther@suse.de>
1900 * c-common.c (c_common_nodes_and_builtins): Do not set
1901 size_type_node or call set_sizetype.
1903 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1906 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1907 type when using pointer comparison to compare types.
1909 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1911 * c.opt: Add -Wdelete-non-virtual-dtor.
1912 * c-opts.c (c_common_handle_option): Include it in -Wall.
1914 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1919 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1921 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1924 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1927 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1928 C++ don't call c_common_truthvalue_conversion on void type arms.
1930 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1932 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1933 (stmt_list_stack): Define.
1934 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1935 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1937 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1939 * c-common.c (warning_candidate_p): Check for BLOCKs.
1941 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1943 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1946 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1948 * c-common.c (def_fn_type): Remove extra va_end.
1950 2011-05-23 Jason Merrill <jason@redhat.com>
1953 * c-common.c (c_common_get_narrower): New.
1954 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1956 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1958 * c-common.h (check_function_arguments): Tweak prototype of
1959 check_function_arguments.
1960 * c-common.c (check_function_arguments): Likewise. Adjust
1961 calls to check_function_nonnull, check_function_format, and
1962 check_function_sentinel.
1963 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1964 separate attributes and typelist arguments. Use
1965 FOREACH_FUNCTION_ARGS to iterate over argument types.
1967 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1969 * c-common.c (c_common_reswords): Reorder.
1970 * c-common.h (rid): Likewise.
1972 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1974 * c-common.c (def_fn_type): Don't call build_function_type, call
1975 build_function_type_array or build_varargs_function_type_array
1977 (c_common_nodes_and_builtins): Likewise.
1979 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1981 * c-common.c (c_add_case_label): Omit the loc argument to
1983 * c-common.h (build_case_label): Remove.
1984 * c-semantics.c (build_case_label): Remove.
1986 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1988 * c-objc.h (objc_start_method_definition): Update prototype.
1989 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1991 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1993 * c-common.c (check_main_parameter_types): Reindent. Don't use
1994 TYPE_ARG_TYPES directly.
1995 (handle_nonnull_attribute): Likewise.
1996 (sync_resolve_params): Likewise.
1997 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1998 to check_format_string.
1999 (handle_format_attribute): Likewise.
2000 (check_format_string): Take a function type to examine instead of
2001 a type list. Use a function_arg_iterator to step through argument
2004 2011-05-04 Richard Guenther <rguenther@suse.de>
2006 * c-common.c (fix_string_type): Use size_int for index type bounds.
2007 (start_fname_decls): Do not pass NULL to build_int_cst.
2008 (c_init_attributes): Likewise.
2009 * c-lex.c (c_lex_with_flags): Likewise.
2011 2011-04-27 Jason Merrill <jason@redhat.com>
2013 * c-common.c (make_tree_vector_from_list): New.
2014 * c-common.h: Declare it.
2016 2011-04-26 Richard Guenther <rguenther@suse.de>
2018 PR preprocessor/48248
2019 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2020 for output size with -P.
2022 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2024 * c-common.c (struct c_common_resword): Add __underlying_type.
2025 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2027 2011-04-20 Jim Meyering <meyering@redhat.com>
2029 * c-format.c (init_dollar_format_checking): Remove useless
2032 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2034 * c-objc.h (objc_get_interface_ivars): Removed.
2035 (objc_detect_field_duplicates): New.
2036 * stub-objc.c: Likewise.
2038 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2040 * stub-objc.c (objc_declare_protocols): Renamed to
2041 objc_declare_protocol.
2042 * c-objc.h: Likewise.
2044 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2046 * stub-objc.c (objc_declare_class): Updated argument name.
2048 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2050 * c-common.h (c_common_init_ts): Declare.
2051 * c-common.c (c_common_init_ts): Define.
2053 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2055 * c-objc.h (objc_build_message_expr): Updated prototype.
2056 * stub-objc.c (objc_build_message_expr): Likewise.
2058 2011-04-12 Martin Jambor <mjambor@suse.cz>
2060 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2063 2011-04-11 Richard Guenther <rguenther@suse.de>
2065 * c-common.c (complete_array_type): Build a range type of
2068 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2070 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2071 (handle_type_generic_attribute): Likewise.
2073 2011-04-07 Jason Merrill <jason@redhat.com>
2076 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2077 conversion from C++0x scoped enum.
2079 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2081 * c-target-def.h: New file.
2082 * c-target.def: New file.
2083 * c-target.h: New file.
2084 * c-common.c (targetcm): Don't define here.
2085 * c-common.h (default_handle_c_option): Declare.
2086 * c-format.c: Include c-target.h instead of target.h.
2087 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2089 (default_handle_c_option): Move from targhooks.c.
2091 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2093 PR preprocessor/48248
2094 * c-ppoutput.c (print): Add src_file field.
2095 (init_pp_output): Initialize it.
2096 (maybe_print_line): Don't optimize by adding up to 8 newlines
2097 if map->to_file and print.src_file are different file.
2098 (print_line): Update print.src_file.
2100 2011-03-25 Kai Tietz <ktietz@redhat.com>
2102 * c-ada-spec.c (compare_comment): Use filename_cmp
2103 instead of strcmp for filename.
2105 2011-03-25 Jeff Law <law@redhat.com>
2107 * c-family/c-common.c (def_fn_type): Add missing va_end.
2109 2011-03-25 Jason Merrill <jason@redhat.com>
2111 * c.opt: Add -std=c++03.
2113 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2115 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2117 2011-03-17 Kai Tietz
2120 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2121 Display allowed attributes for function pointer types.
2122 (pp_c_attributes_display): New function to display
2123 attributes having affects_type_identity flag set to true.
2124 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2126 * c-common.c (c_common_attribute_table):
2128 (c_common_format_attribute_table): Likewise.
2130 2011-03-18 Jason Merrill <jason@redhat.com>
2132 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2133 * c-common.h: Don't declare it here.
2134 * c-common.c: Or define it here.
2135 * c-opts.c (c_common_handle_option): Or set it here.
2138 * c-common.c (handle_transparent_union_attribute): Don't
2139 make a duplicate type in C++.
2141 2011-03-15 Jason Merrill <jason@redhat.com>
2143 * c-common.c (max_constexpr_depth): New.
2144 * c-common.h: Declare it.
2145 * c-opts.c (c_common_handle_option): Set it.
2146 * c.opt (fconstexpr-depth): New option.
2148 2011-03-11 Jason Merrill <jason@redhat.com>
2150 * c-common.c (attribute_takes_identifier_p): Add missing const.
2153 * c-common.c (attribute_takes_identifier_p): Assume that an
2154 unknown attribute takes an identifier.
2156 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2159 * c-common.c (c_type_hash): Call list_length instead of iterating
2160 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2162 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2165 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2167 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2169 * c.opt (fobjc-abi-version=) New.
2170 (fobjc-nilcheck): New.
2172 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2175 * c-common.h (keyword_is_decl_specifier): Declare.
2176 * c-common.c (keyword_is_decl_specifier): Define.
2177 (keyword_is_function_specifier): New function.
2179 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2182 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2183 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2186 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2188 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2190 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2193 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2194 after init_c_lex if pch_file is set.
2196 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2199 * c.opt (-fkeep-inline-dllexport): New switch.
2201 2011-01-12 Richard Guenther <rguenther@suse.de>
2204 * c-common.c (handle_weak_attribute): Warn instead of error
2205 on declaring an inline function weak.
2207 2011-01-05 Tom Tromey <tromey@redhat.com>
2209 * c-common.h (lvalue_error): Update.
2210 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2213 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
2216 * c-objc.h (objc_finish_message_expr): Added argument to
2219 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2221 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2224 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2226 * c-objc.h (objc_maybe_warn_exceptions): New.
2227 * stub-objc.c (objc_maybe_warn_exceptions): New.
2229 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2231 * c-common.h (readonly_error): Declare.
2232 * c-common.c (readonly_error): Define.
2234 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2236 * c-common.h (invalid_indirection_error): Declare.
2237 * c-common.c (invalid_indirection_error): Define.
2239 2010-12-03 Richard Guenther <rguenther@suse.de>
2242 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2243 (pp_c_unary_expression): Likewise.
2244 (pp_c_expression): Likewise.
2246 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2248 * c-common.h (objc_finish_function): New.
2249 (objc_non_volatilized_type): Removed.
2250 (objc_type_quals_match): Removed.
2251 * stub-objc.c (objc_finish_function): New.
2252 (objc_non_volatilized_type): Removed.
2253 (objc_type_quals_match): Removed.
2255 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2257 * c-common.h (parse_optimize_options): Declare.
2258 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2259 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2261 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2263 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2265 * c-pch.c (O_BINARY): Don't define here.
2266 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2268 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2270 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2271 targetm.except_unwind_info.
2273 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2275 * c-opts.c (c_common_handle_option): Pass location to
2276 set_struct_debug_option.
2278 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2280 * c-common.c (visibility_options): Move from ../opts.c.
2281 * c-common.h (struct visibility_flags, visibility_options):
2283 * c-opts.c (finish_options): Rename to c_finish_options.
2284 (c_common_init): Update call to finish_options.
2286 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2289 * c-lex.c (lex_string): Check that each string in an Objective-C
2290 string concat sequence starts with either one or zero '@', and
2291 that there are no spurious '@' signs at the end.
2293 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2295 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2296 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2297 HANDLE_PRAGMA_VISIBILITY.
2298 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2299 HANDLE_PRAGMA_VISIBILITY): Don't define.
2300 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2302 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2307 * c-common.h (keyword_begins_type_specifier): Declare.
2308 (keyword_is_storage_class_specifier): Declare.
2309 (keyword_is_type_qualifier): Declare.
2310 * c-common.c (keyword_begins_type_specifier): New function.
2311 (keyword_is_storage_class_specifier): New function.
2312 (keyword_is_type_qualifier): Declare.
2314 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2317 * c-common.c (in_late_binary_op): Define.
2318 (c_common_truthvalue_conversion): Check in_late_binary_op before
2319 calling c_save_expr.
2320 * c-common.h (in_late_binary_op): Declare.
2322 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2324 * c-opts.c (c_common_handle_option): Update calls to
2325 set_struct_debug_option.
2327 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2329 * c-common.h (objc_declare_protocols): Added additional argument.
2330 * stub-objc.c (objc_declare_protocol): Same change.
2332 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2335 * c-common.h (build_real_imag_expr): Declare.
2336 * c-semantics.c (build_real_imag_expr): Define.
2338 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2340 * c-opts.c (c_common_parse_file): Take no arguments.
2341 * c-common.h (c_common_parse_file): Update prototype.
2343 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2346 * c-common.c (warning_candidate_p): Don't track non-const calls
2349 2010-11-15 Ian Lance Taylor <iant@google.com>
2351 * c-lex.c (init_c_lex): Set macro debug callbacks if
2352 flag_dump_go_spec is set.
2354 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2356 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2357 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2359 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2361 PR preprocessor/45038
2362 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2365 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2367 * c-common.h (c_family_lang_mask): Declare.
2368 * c-opts.c (c_family_lang_mask): Make extern.
2369 * c-pragma.c (handle_pragma_diagnostic): Use
2370 control_warning_option.
2372 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2374 * c-common.c (parse_optimize_options): Update call to
2376 * c-common.h (c_common_handle_option): Update prototype.
2377 * c-opts.c (c_common_handle_option): Take location_t parameter and
2378 pass it to other functions.
2380 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2382 * c-opts.c (warning_as_error_callback): Remove.
2383 (c_common_initialize_diagnostics): Don't call
2384 register_warning_as_error_callback.
2385 (c_common_handle_option): Handle -Werror=normalized= here.
2387 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2389 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2391 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2393 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2394 Remove trailing '.' from diagnostics.
2395 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2397 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2399 * c-common.c (parse_optimize_options): Pass global_dc to
2401 * c-opts.c (c_common_handle_option): Pass &global_options to
2402 set_Wstrict_aliasing.
2403 * c.opt (v): Don't mark Common or document here.
2405 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2408 * c-format.c (format_type): New type gcc_objc_string_format_type.
2409 (valid_stringptr_type_p): New.
2410 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2411 (check_format_string): Pass expected type, use
2412 valid_stringptr_type_p (), check that the format string types are
2413 consistent with the format specification.
2414 (decode_format_attr): Warn if NSString is used outside objective-c.
2415 (format_types_orig): Add NSString.
2417 (format_flags): New.
2418 (check_format_arg): Handle format strings requiring an external parser.
2419 first_target_format_type: New variable.
2420 (handle_format_attribute): Set up first_target_format_type, pass the
2421 expected format arg string type to check_format_string().
2422 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2423 * stub-objc.c (objc_string_ref_type_p): New.
2424 (objc_check_format_arg): New.
2426 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2428 Fixed using the Objective-C 2.0 dot-syntax with class names.
2429 * c-common.h (objc_build_class_component_ref): New.
2430 * stub-objc.c (objc_build_class_component_ref): New.
2432 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2434 * c.opt (Wproperty-assign-default): New option.
2436 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2438 Implemented -fobjc-std=objc1 flag.
2439 * c.opt (fobjc-std=objc1): New option.
2441 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2443 Implemented format and noreturn attributes for Objective-C methods.
2444 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2445 attribute for Objective-C methods.
2447 2010-10-31 Jason Merrill <jason@redhat.com>
2449 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2452 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2454 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2455 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2456 (objc_add_property_declaration): Removed arguments for copies and
2458 (objc_build_getter_call): Renamed to
2459 objc_maybe_build_component_ref.
2460 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2461 (objc_is_property_ref): New.
2462 * c-common.c (c_common_reswords): Removed copies and ivar.
2463 * stub-objc.c (objc_add_property_declaration): Removed arguments
2464 for copies and ivar.
2465 (objc_build_getter_call): Renamed to
2466 objc_maybe_build_component_ref.
2467 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2468 (objc_is_property_ref): New.
2470 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2471 Matthew Gingell <gingell@adacore.com>
2473 * c-ada-spec.c (separate_class_package): New function.
2474 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2475 name of their enclosing package.
2476 (print_ada_declaration): Use separate_class_package.
2478 2010-10-27 Jason Merrill <jason@redhat.com>
2480 * c-common.c (c_common_reswords): Add __is_literal_type.
2481 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2483 * c-common.c (check_case_value): Remove special C++ code.
2485 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2487 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2488 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2490 (objc_add_property_declaration): Added additional arguments.
2491 (objc_property_attribute_kind): Removed.
2492 (objc_set_property_attr): Removed.
2493 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2495 * stub-objc.c (objc_add_property_declaration): Added additional
2497 (objc_set_property_attr): Removed.
2499 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2501 * c-common.h (objc_add_property_variable): Renamed to
2502 objc_add_property_declaration. Added location argument.
2503 * stub-objc.c (objc_add_property_variable): Same change.
2505 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2507 * c-common.h (objc_maybe_printable_name): New.
2508 * stub-objc.c (objc_maybe_printable_name): New.
2510 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2511 Andrew Pinski <pinskia@gmail.com>
2513 * c-common.h (c_common_mark_addressable_vec): Declare.
2514 * c-common.c (c_common_mark_addressable_vec): New function.
2516 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2518 * c-common.h (objc_set_method_type): Removed.
2519 (objc_add_method_declaration): Added boolean argument.
2520 (objc_start_method_definition): Same change.
2521 (objc_build_method_signature): Same change.
2522 * stub-objc.c (objc_set_method_type): Removed.
2523 (objc_add_method_declaration): Added boolean argument.
2524 (objc_start_method_definition): Same change.
2525 (objc_build_method_signature): Same change.
2527 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2529 * c-common.h (finish_file): Removed.
2530 (objc_write_global_declarations): New.
2531 * c-opts.c (c_common_parse_file): Do not call finish_file.
2532 * stub-objc.c (objc_write_global_declarations): New.
2534 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2536 Implemented parsing @synthesize and @dynamic for
2537 Objective-C/Objective-C++.
2538 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2539 (objc_add_synthesize_declaration): New.
2540 (objc_add_dynamic_declaration): New.
2541 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2542 * stub-objc.c (objc_add_synthesize_declaration): New.
2543 (objc_add_dynamic_declaration): New.
2545 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2548 * c-cppbuiltin.c (mode_has_fma): Move function here from
2549 builtins.c. Don't use the fma optab, instead just use the
2550 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2553 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2555 Merge from 'apple/trunk' branch on FSF servers.
2557 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2560 * c-common.h (objc_non_volatilized_type): New declaration
2561 * stub-objc.c (objc_non_volatilized_type): New stub.
2563 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2565 Merge from 'apple/trunk' branch on FSF servers.
2567 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2570 * c-common.h (objc_diagnose_private_ivar): New decl.
2571 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2573 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2575 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2576 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2577 (objc_ivar_visibility_kind): New enum.
2578 (objc_set_visibility): Adjust prototype to use visibility enum.
2579 * stub-objc.c (objc_set_visibility): Adjust stub to use
2582 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2584 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2585 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2586 has the appropriate fma builtins.
2587 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2589 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2591 merge from FSF apple 'trunk' branch.
2592 2006 Fariborz Jahanian <fjahanian@apple.com>
2594 Radars 4436866, 4505126, 4506903, 4517826
2595 * c-common.c (c_common_resword): Define @property and its attributes.
2596 * c-common.h: Define property attribute enum entries.
2597 (OBJC_IS_PATTR_KEYWORD): New.
2598 (objc_property_attribute_kind): New enum.
2599 Declare objc_set_property_attr (), objc_add_property_variable (),
2600 objc_build_getter_call () and objc_build_setter_call ().
2601 * stub-objc.c (objc_set_property_attr): New stub.
2602 (objc_add_property_variable): Likewise.
2603 (objc_build_getter_call): Likewise.
2604 (objc_build_setter_call) Likewise.
2606 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2608 merge from FSF apple 'trunk' branch.
2609 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2611 Radar 3803157 (method attributes)
2612 * c-common.c (handle_deprecated_attribute): Recognize
2613 objc methods as valid declarations.
2614 * c-common.h: Declare objc_method_decl ().
2615 * stub-objc.c (objc_method_decl): New stub.
2617 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2619 * c-common.c (parse_optimize_options): Call
2620 decode_cmdline_options_to_array_default_mask before
2621 decode_options. Update arguments to decode_options.
2622 * c-common.h (c_common_init_options_struct): Declare.
2623 * c-opts.c (c_common_init_options_struct): New. Split out from
2624 c_common_init_options.
2626 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2628 Implemented fast enumeration for Objective-C.
2629 * c-common.h (objc_finish_foreach_loop): New.
2630 * stub-objc.c (objc_finish_foreach_loop): New.
2632 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2634 * c-common.h (struct diagnostic_context): Don't declare here.
2635 (c_common_initialize_diagnostics): Declare using
2636 diagnostic_context typedef.
2637 * c-opts.c (c_common_handle_option): Pass global_dc to
2638 handle_generated_option.
2640 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2642 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2643 handle_generated_option.
2645 2010-10-03 Ian Lance Taylor <iant@google.com>
2647 * c.opt (-fplan9-extensions): New option.
2649 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2651 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2653 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2654 of duplicating code.
2656 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2658 * c-common.c: Add two new entries for @optional
2659 and @required keywords.
2661 merge from FSF 'apple/trunk' branch.
2662 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2665 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2666 objective-c keywords.
2667 (objc_set_method_opt): New declaration.
2668 * stub-objc.c (objc_set_method_opt): New stub.
2670 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2672 * c-common.c (handle_optimize_attribute): Pass &global_options to
2673 cl_optimization_save and cl_optimization_restore.
2674 * c-opts.c (c_common_handle_option): Pass &global_options to
2675 handle_generated_option.
2676 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2677 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2678 &global_options to cl_optimization_restore.
2680 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2682 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2683 Objective-C/Objective-C++ keywords.
2685 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2687 Merge from 'apple/trunk' branch on FSF servers.
2689 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2692 * c-common.h (objc_check_global_decl): New declaration.
2693 * stub-objc.c (objc_check_global_decl): New stub.
2695 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2697 * c.opt: Don't use VarExists.
2699 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2701 * c-common.c (c_cpp_error): Update names of diagnostic_context
2703 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2704 cl_optimization members.
2705 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2706 sanitize_cpp_opts, finish_options): Update names of cpp_options
2709 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2711 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2712 (objc_is_reserved_word): Removed.
2713 * c-common.c: Updated comments.
2714 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2715 objc_is_reserved_word.
2716 * stub-objc.c (objc_is_reserved_word): Removed.
2718 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2720 * c-common.h (objc_add_method_declaration): Adjust prototype to
2722 (objc_start_method_definition): Likewise.
2723 (objc_build_keyword_decl): Likewise.
2724 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2725 (objc_start_method_definition): Likewise.
2726 (objc_build_keyword_decl): Likewise.
2728 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2730 * c-common.h (objc_start_class_interface): Adjust prototype.
2731 (objc_start_category_interface): Likewise.
2732 (objc_start_protocol): Likewise.
2733 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2734 (objc_start_class_interface): Likewise.
2735 (objc_start_category_interface): Likewise.
2737 2010-09-27 Ian Lance Taylor <iant@google.com>
2739 * c-common.c (c_common_attribute_table): Add no_split_stack.
2740 (handle_no_split_stack_attribute): New static function.
2742 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2744 Merge from 'apple/trunk' branch on FSF servers.
2746 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2749 * c-common.h (objc_have_common_type): New declaration.
2750 * stub-objc.c (objc_have_common_type): New stub.
2752 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2755 * c-common.h (objc_common_type): New prototype.
2756 * stub-objc.c (objc_common_type): New stub.
2758 2010-09-24 Jan Hubicka <jh@suse.cz>
2760 * c-common.c (handle_leaf_attribute): New function.
2761 (struct attribute_spec c_common_att): Add leaf.
2763 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2765 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2766 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2767 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2768 -include-barrier, -include-directory, -include-directory=,
2769 -include-directory-after, -include-directory-after=,
2770 -include-prefix, -include-prefix=, -include-with-prefix,
2771 -include-with-prefix=, -include-with-prefix-after,
2772 -include-with-prefix-after=, -include-with-prefix-before,
2773 -include-with-prefix-before=, -no-integrated-cpp,
2774 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2775 -output=, -pedantic, -pedantic-errors, -preprocess,
2776 -print-missing-file-dependencies, -trace-includes, -traditional,
2777 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2778 -user-dependencies, -verbose, -write-dependencies,
2779 -write-user-dependencies, no-integrated-cpp, traditional): New.
2781 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2784 * c-common.h (objc_start_method_definition): Return bool instead
2786 * stub-objc.c (objc_start_method_definition): Return bool instead
2789 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2792 * c-common.h (objc_get_interface_ivars): New declaration.
2793 * stub-objc.c (objc_get_interface_ivars): New stub.
2795 2010-09-15 Ian Lance Taylor <iant@google.com>
2797 * c-common.c (parse_optimize_options): Do not capitalize warning
2798 messages. Remove period at end of warning message.
2800 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2802 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2803 (handle_alias_attribute): ... here.
2804 (handle_ifunc_attribute): New.
2806 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2808 * c-common.h (do_warn_double_promotion): Declare.
2809 * c-common.c (do_warn_double_promotion): Define.
2811 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2813 * c.opt (Wdouble-promotion): New.
2815 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2817 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2818 fvtable-thunks, fxref): Mark no longer supported in help text.
2820 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2822 * c.opt (Wimport, fall-virtual, falt-external-templates,
2823 fdefault-inline, fenum-int-equiv, fexternal-templates,
2824 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2825 fname-mangling-version-, fnew-abi, fnonnull-objects,
2826 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2827 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2829 (fhandle-exceptions): Mark with Alias and Warn.
2830 * c-opts.c (c_common_handle_option): Don't handle options marked
2833 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2835 * c.opt (Wcomments, Werror-implicit-function-declaration,
2836 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2837 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2839 * c-common.c (option_codes): Use OPT_Wcomment instead of
2841 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2842 Don't handle options marked as aliases.
2844 2010-08-25 Richard Guenther <rguenther@suse.de>
2846 * c-common.c (c_common_get_alias_set): Remove special
2847 handling for pointers.
2849 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2851 * c-common.c: Use FOR_EACH_VEC_ELT.
2852 * c-gimplify.c: Likewise.
2853 * c-pragma.c: Likewise.
2855 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2857 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2859 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2861 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2862 instead of OPT_MDX and OPT_MMDX.
2864 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2866 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2868 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2870 * c.opt (MD, MMD): Change to MDX and MMDX.
2871 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2873 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2875 * c-opts.c (c_common_handle_option): Call handle_generated_option
2876 instead of handle_option.
2878 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2880 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2881 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2883 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2885 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2886 (pending_redefine_extname): Change type to a VEC.
2887 (add_to_renaming_pragma_list): Update for new type of
2888 pending_redefine_extname.
2889 (maybe_apply_renaming_pragma): Likewise.
2891 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2893 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2895 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2896 decide whether a type has already been declared/seen.
2897 Do not go to the original type.
2898 (dump_nested_types): New parameter forward.
2899 Generate forward declaration if needed and mark type as visited.
2900 (print_ada_declaration): Call dump_nested_types if not already done.
2901 Mark types as visited.
2903 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2905 * c.opt (-print-pch-checksum): Remove option.
2906 * c-opts.c (c_common_handle_option): Don't handle
2907 OPT_print_pch_checksum.
2909 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2911 * c-common.h (c_common_handle_option): Update prototype and return
2913 * c-opts.c (c_common_handle_option): Update prototype and return
2914 value type. Update calls to handle_option and
2915 enable_warning_as_error.
2917 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2920 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2922 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2924 * c-common.h (c_common_missing_argument): Remove.
2925 * c-opts.c (c_common_missing_argument): Remove.
2926 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2927 idirafter, imacros, include, isysroot, isystem, iquote): Add
2929 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2931 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2933 * c-common.h (c_common_option_lang_mask,
2934 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2936 (c_common_init_options): Update prototype.
2937 * c-opts.c (c_common_option_lang_mask): New.
2938 (c_common_initialize_diagnostics): Split out of
2939 c_common_init_options.
2940 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2942 (c_common_init_options): Update prototype. Use decoded options in
2943 search for -lang-asm.
2945 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2947 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2948 * c-format.c: Likewise.
2950 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2952 * c-common.h: Include diagnostic-core.h. Error if already
2954 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2956 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2958 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2959 Do not include expr.h
2960 (vector_mode_valid_p): Move here.
2962 2010-06-21 DJ Delorie <dj@redhat.com>
2964 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2965 allow these pragmas anywhere.
2967 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2970 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2971 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2972 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2973 ggc_strdup instead of xstrdup.
2975 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2977 * c-cppbuiltin.c: Include cpp-id-data.h.
2978 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2979 (lazy_hex_fp_value): New function.
2980 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2982 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2984 * c-gimplify.c: Do not include tree-flow.h
2986 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2989 * c-common.c: Rename targetm member:
2990 targetm.enum_va_list -> targetm.enum_va_list_p
2992 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2994 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2996 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2998 * c-cppbuiltin.c: Do not include except.h.
3000 2010-06-24 Andi Kleen <ak@linux.intel.com>
3002 * c-common.c (warn_for_omitted_condop): New.
3003 * c-common.h (warn_for_omitted_condop): Add prototype.
3005 2010-06-21 Joseph Myers <joseph@codesourcery.com>
3007 * c.opt (lang-objc): Remove.
3008 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3010 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3012 * c-opts.c: Include "tm_p.h".
3014 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3016 * c-common.c (parse_optimize_options): Update call to
3019 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3021 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3022 new type of types_used_by_cur_var_decl.
3024 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3027 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3028 for C++ standard compliance.
3030 2010-06-16 Jason Merrill <jason@redhat.com>
3032 * c.opt: Add -Wnoexcept.
3034 2010-06-16 Richard Guenther <rguenther@suse.de>
3037 * c-common.c (c_common_truthvalue_conversion): Remove
3038 premature and wrong optimization concering ADDR_EXPRs.
3040 2010-06-15 Arnaud Charlet <charlet@adacore.com>
3042 * c-ada-spec.c (dump_sloc): Remove column info.
3043 (is_simple_enum): New function.
3044 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3045 enum types when relevant.
3047 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3049 * c-common.c (conversion_warning): Warn at expression
3052 2010-06-10 Joseph Myers <joseph@codesourcery.com>
3054 * c-opts.c (c_common_handle_option): Don't handle
3057 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3059 * c-pragma.c (push_alignment): Use typed GC allocation.
3060 (handle_pragma_push_options): Likewise.
3062 * c-common.c (parse_optimize_options): Likewise.
3064 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3067 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3069 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3070 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3071 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3072 flag_signed_bitfields, warn_strict_null_sentinel,
3073 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3074 flag_gen_declaration, flag_no_gnu_keywords,
3075 flag_implement_inlines, flag_implicit_templates,
3076 flag_implicit_inline_templates, flag_optional_diags,
3077 flag_elide_constructors, flag_default_inline, flag_rtti,
3078 flag_conserve_space, flag_access_control, flag_check_new,
3079 flag_new_for_scope, flag_weak, flag_working_directory,
3080 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3081 flag_enforce_eh_specs, flag_threadsafe_statics,
3082 flag_pretty_templates): Remove.
3083 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3084 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3085 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3086 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3087 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3088 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3089 flag_no_gnu_keywords, flag_implement_inlines,
3090 flag_implicit_templates, flag_implicit_inline_templates,
3091 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3092 flag_rtti, flag_conserve_space, flag_access_control,
3093 flag_check_new, flag_new_for_scope, flag_weak,
3094 flag_working_directory, flag_use_cxa_atexit,
3095 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3096 flag_threadsafe_statics, flag_pretty_templates,
3097 warn_strict_null_sentinel): Remove.
3098 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3099 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3100 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3101 fimplicit-inline-templates, fimplicit-templates,
3102 flax-vector-conversions, fms-extensions, fnil-receivers,
3103 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3104 frtti, fshort-double, fshort-enums, fshort-wchar,
3105 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3106 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3107 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3108 gen-decls, undef): Use Var.
3109 (fdefault-inline, foptional-diags): Document as doing nothing.
3110 * c-opts.c (c_common_handle_option): Remove cases for options now
3111 using Var. Mark ignored options as such.
3113 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3115 * c-common.c: Moved to here from parent directory.
3116 * c-common.def: Likewise.
3117 * c-common.h: Likewise.
3118 * c-cppbuiltin.c: Likewise.
3119 * c-dump.c: Likewise.
3120 * c-format.c: Likewise.
3121 * c-format.h : Likewise.
3122 * c-gimplify.c: Likewise.
3123 * c-lex.c: Likewise.
3124 * c-omp.c: Likewise.
3126 * c-opts.c: Likewise.
3127 * c-pch.c: Likewise.
3128 * c-ppoutput.c: Likewise.
3129 * c-pragma.c: Likewise.
3130 * c-pragma.h: Likewise.
3131 * c-pretty-print.c: Likewise.
3132 * c-pretty-print.h: Likewise.
3133 * c-semantics.c: Likewise.
3134 * stub-objc.c: Likewise.
3136 * c-common.c: Include gt-c-family-c-common.h.
3137 * c-pragma.c: Include gt-c-family-c-pragma.h.
3139 Copyright (C) 2010-2013 Free Software Foundation, Inc.
3141 Copying and distribution of this file, with or without modification,
3142 are permitted in any medium without royalty provided the copyright
3143 notice and this notice are preserved.