1 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
7 * array-notation-common.c, c-cilkplus.c: Use the standard form for
10 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
12 * c-ada-spec.c (print_constructor): New function.
13 (print_destructor): Retrieve the origin of the destructor.
14 (print_ada_declaration): Revamp handling of constructors/destructors.
16 2013-12-23 Stuart Hastings <stuart@apple.com>
17 Bill Maddox <maddox@google.com>
18 Jason Merrill <jason@redhat.com>
20 * c.opt: Add -fdeclone-ctor-dtor.
21 * c-opts.c (c_common_post_options): Default to on iff -Os.
23 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
25 * c-common.c (c_common_attribute_table): Added "cilk simd function"
27 * c-pragma.h (enum pragma_cilk_clause): Remove.
28 (enum pragma_omp_clause): Added the following fields:
29 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
30 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
31 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
32 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
33 PRAGMA_CILK_CLAUSE_UNIFORM.
36 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
38 * cilk.c (cilk_outline): Made this function non-static.
39 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
40 (create_cilk_wrapper): Added a new parameter: a function pointer.
41 (c_install_body_w_frame_cleanup): Remove
42 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
43 * c-common.h (cilk_outline): New prototype.
44 (gimplify_cilk_spawn): Removed two parameters.
45 (cilk_install_body_with_frame_cleanup): New prototype.
46 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
49 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
51 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
53 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
54 (int_array_type_node): Remove.
55 * c-common.c (c_common_nodes_and_builtins): Don't build it.
57 2013-12-05 Marek Polacek <polacek@redhat.com>
60 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
63 2013-12-04 Joseph Myers <joseph@codesourcery.com>
66 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
67 and check field alignment if set.
68 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
69 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
71 2013-12-04 Jakub Jelinek <jakub@redhat.com>
72 Marek Polacek <polacek@redhat.com>
74 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
75 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
77 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
80 * cilk.c (gimplify_cilk_spawn): Properly handle function without
83 2013-11-29 Jakub Jelinek <jakub@redhat.com>
86 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
87 goto invalid. If it is error_mark_node, don't issue further
90 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
92 * c.opt (Wopenmp-simd): New.
94 2013-11-22 Jakub Jelinek <jakub@redhat.com>
96 * c-ubsan.h (ubsan_instrument_return): New prototype.
97 * c-ubsan.c (ubsan_instrument_return): New function.
99 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
101 * c-common.c: Add required include files from gimple.h.
102 * c-gimplify.c: Likewise
105 2013-11-22 David Malcolm <dmalcolm@redhat.com>
107 * c-common.c (unsafe_conversion_p): Remove use of
108 EXPR_LOC_OR_HERE macro.
109 (conversion_warning): Likewise.
110 (warnings_for_convert_and_check): Likewise.
111 (warn_for_collisions_1): Likewise.
112 (shorten_compare): Likewise, and remove use of in_system_header
113 macro, using the location from the former.
114 * c-lex.c (dump_one_header): Remove use of input_filename macro.
115 (cb_def_pragma): Remove use of in_system_header macro.
116 (lex_string): Likewise.
117 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
119 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
120 Mike Stump <mikestump@comcast.net>
121 Richard Sandiford <rdsandiford@googlemail.com>
123 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
124 instead of TREE_INT_CST_LOW, in cases where there is a protecting
125 tree_fits_shwi_p or tree_fits_uhwi_p.
126 (dump_generic_ada_node): Likewise.
127 * c-format.c (check_format_arg): Likewise.
128 * c-pretty-print.c (pp_c_integer_constant): Likewise.
130 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
132 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
134 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
137 * c-common.c (unsafe_conversion_p): Make this function
138 return an enumeration with more detail.
139 (conversion_warning): Use the new return type of
140 unsafe_conversion_p to separately warn either about conversions
141 that lower floating point number precision or about the other
142 kinds of conversions.
143 * c-common.h (enum conversion_safety): New enumeration.
144 (unsafe_conversion_p): switching return type to
145 conversion_safety enumeration.
146 * c.opt: Adding new warning -Wfloat-conversion and
147 enabling it with -Wconversion.
149 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
151 * c-opts.c: Include plugin.h.
152 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
154 2013-11-19 Marek Polacek <polacek@redhat.com>
156 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
158 (ubsan_instrument_shift): Likewise.
159 (ubsan_instrument_vla): Likewise.
161 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
163 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
164 cast to unsigned type.
166 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
168 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
170 (complete_array_type): Update comment to refer to tree_to_[su]hwi
171 rather than tree_low_cst.
173 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
175 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
176 tree_to_uhwi throughout.
178 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
180 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
181 tree_low_cst (..., 0) with tree_to_shwi throughout.
183 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
185 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
186 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
188 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
190 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
191 host_integerp (..., 0) with tree_fits_shwi_p throughout.
193 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
195 * c-cilkplus.c: New file.
196 * c-common.c (readonly_error): Add location argument.
197 * c-common.h (readonly_error): Same.
198 (c_finish_cilk_clauses): Protoize.
199 (c_check_cilk_loop): Same.
200 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
201 Do not fail on error_mark_node.
202 Abstract increment canonicalization to here...
203 (c_omp_for_incr_canonicalize_ptr): New.
204 c-pragma.c (init_pragma): Register "simd" pragma.
205 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
206 (enum pragma_cilk_clause): New.
208 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
210 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
211 wchar_type and host_integerp checks.
213 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
215 * c-common.c: Likewise.
216 * c-gimplify.c: Likewise.
219 2013-11-14 Diego Novillo <dnovillo@google.com>
221 * c-common.c: Include fold-const.h.
222 Include stor-layout.h.
224 Include stringpool.h.
228 * c-cppbuiltin.c: Include stor-layout.h.
229 Include stringpool.h.
230 * c-format.c: Include stringpool.h.
231 * c-lex.c: Include stringpool.h.
232 Include stor-layout.h.
233 * c-pragma.c: Include stringpool.h.
236 Include gcc-symtab.h.
237 * c-pretty-print.c: Include stor-layout.h.
239 * cilk.c: Include stringpool.h.
242 2013-11-13 Joseph Myers <joseph@codesourcery.com>
244 * c-common.h (enum rid): Add RID_AUTO_TYPE.
245 * c-common.c (c_common_reswords): Add __auto_type.
246 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
248 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
250 * c-common.c: Include gimplify.h.
251 * c-gimplify.c: Likewise.
253 * c-omp.c: Include gimple-expr.h instead of gimple.h.
254 * c-ubsan.c: Don't include gimple.h.
256 2013-11-12 Joseph Myers <joseph@codesourcery.com>
258 * c-common.c (c_common_reswords): Add _Thread_local.
260 2013-11-09 Joseph Myers <joseph@codesourcery.com>
262 * c-common.c (atomic_size_supported_p): New function.
263 (resolve_overloaded_atomic_exchange)
264 (resolve_overloaded_atomic_compare_exchange)
265 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
266 Use it instead of comparing size with a local list of sizes.
268 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
269 Joseph Myers <joseph@codesourcery.com>
271 * c-common.h (enum rid): Add RID_ATOMIC.
272 * c-common.c (c_common_reswords): Add _Atomic.
273 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
274 (keyword_is_type_qualifier): Accept RID_ATOMIC.
275 * c-format.c (check_format_types): Check for extra _Atomic
276 qualifiers in format argument.
277 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
278 (pp_c_type_qualifier_list): Mention _Atomic in comment.
280 2013-11-06 Tobias Burnus <burnus@net-b.de>
282 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
284 2013-11-06 Joseph Myers <joseph@codesourcery.com>
286 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
288 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
289 to mean lack of IEEE 754 support.
291 2013-11-05 Tobias Burnus <burnus@net-b.de>
293 * c.opt (-Wdate-time): New option
294 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
296 2013-11-05 Joseph Myers <joseph@codesourcery.com>
298 * c-cppbuiltin.c (cpp_iec_559_value): Test
299 flag_excess_precision_cmdline not flag_excess_precision.
301 2013-11-05 Tobias Burnus <burnus@net-b.de>
303 * c.opt (fopenmp-simd): New option.
304 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
305 (omp_pragmas): ... this new struct.
306 (c_pp_lookup_pragma): Also walk omp_pragmas.
307 (init_pragma): Init pragmas for -fopenmp-simd.
309 2013-11-04 Marek Polacek <polacek@redhat.com>
312 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
314 2013-11-04 Joseph Myers <joseph@codesourcery.com>
316 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
318 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
320 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
322 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
323 (dump_ada_specs): Adjust prototype of second callback.
324 * c-ada-spec.c (cpp_check): New global variable.
325 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
326 (print_generic_ada_decl): Likewise.
327 (has_static_fields): Change return type to bool and add guard.
328 (has_nontrivial_methods): New predicate.
329 (is_tagged_type): Change return type to bool.
330 (separate_class_package): Call has_nontrivial_methods.
331 (pp_ada_tree_identifier): Minor tweaks.
332 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
333 (dump_ada_array_domains): Likewise.
334 (dump_ada_array_type): Likewise.
335 (dump_template_types): Remove cpp_check parameter and do not pass it to
336 dump_generic_ada_node.
337 (dump_ada_template): Likewise.
338 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
340 (print_ada_methods): Change return type to integer. Remove cpp_check
341 parameter and do not pass it down.
342 (dump_nested_types): Remove cpp_check parameter and do not pass it to
343 dump_generic_ada_node.
344 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
346 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
347 down. Use has_nontrivial_methods to recognize C++ classes. Use return
348 value of print_ada_methods.
349 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
350 Set cpp_check to it before invoking dump_ada_nodes.
351 (dump_ada_specs): Likewise.
353 2013-11-03 Marek Polacek <polacek@redhat.com>
355 * c-ubsan.c: Don't include hash-table.h.
356 (ubsan_instrument_vla): New function.
357 * c-ubsan.h: Declare it.
359 2013-10-31 David Malcolm <dmalcolm@redhat.com>
361 Automated part of renaming of symtab_node_base to symtab_node.
363 Patch autogenerated by rename_symtab.py from
364 https://github.com/davidmalcolm/gcc-refactoring-scripts
365 revision 58bb219cc090b2f4516a9297d868c245495ee622
367 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
368 symtab_node_base to symtab_node.
370 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
372 Implement C++14 digit separators.
373 * c-lex.c (interpret_float): Remove digit separators from scratch string
374 before building real literal.
376 2013-10-30 Jakub Jelinek <jakub@redhat.com>
378 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
380 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
382 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
384 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
386 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
387 (insert_cilk_frame): New prototype.
388 (cilk_init_builtins): Likewise.
389 (gimplify_cilk_spawn): Likewise.
390 (c_cilk_install_body_w_frame_cleanup): Likewise.
391 (cilk_detect_spawn_and_unwrap): Likewise.
392 (cilk_set_spawn_marker): Likewise.
393 (build_cilk_sync): Likewise.
394 (build_cilk_spawn): Likewise.
397 2013-10-29 David Malcolm <dmalcolm@redhat.com>
399 Patch autogenerated by refactor_symtab.py from
400 https://github.com/davidmalcolm/gcc-refactoring-scripts
401 revision 58bb219cc090b2f4516a9297d868c245495ee622
403 * c-gimplify.c (c_genericize): Update for conversion of symtab types
404 to a true class hierarchy.
405 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
407 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
409 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
411 2013-10-26 Jeff Law <law@redhat.com>
413 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
414 * c-family/c.opt: Ignore and warn for mudflap options.
416 2013-10-24 Tobias Burnus <burnus@net-b.de>
419 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
420 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
422 2013-10-23 Jason Merrill <jason@redhat.com>
424 * c-format.c (gcc_cxxdiag_char_table): Add %X.
426 2013-10-11 Jakub Jelinek <jakub@redhat.com>
428 * c-common.h (omp_clause_mask::operator !=): New method.
429 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
430 instead of if (mask & something) tests everywhere.
432 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
433 201307 instead of 201107.
434 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
435 (c_common_attribute_table): Add "omp declare target" and
436 "omp declare simd" attributes.
437 (handle_omp_declare_target_attribute,
438 handle_omp_declare_simd_attribute): New functions.
439 * c-omp.c: Include c-pragma.h.
440 (c_finish_omp_taskgroup): New function.
441 (c_finish_omp_atomic): Add swapped argument, if true,
442 build the operation first with rhs, lhs arguments and use NOP_EXPR
444 (c_finish_omp_for): Add code argument, pass it down to make_code.
445 (c_omp_split_clauses): New function.
446 (c_split_parallel_clauses): Removed.
447 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
448 c_omp_declare_simd_clauses_to_decls): New functions.
449 * c-common.h (omp_clause_mask): New type.
450 (OMP_CLAUSE_MASK_1): Define.
451 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
452 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
453 omp_clause_mask::operator |, omp_clause_mask::operator &,
454 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
455 omp_clause_mask::operator ==): New methods.
456 (enum c_omp_clause_split): New.
457 (c_finish_omp_taskgroup): New prototype.
458 (c_finish_omp_atomic): Add swapped argument.
459 (c_finish_omp_for): Add code argument.
460 (c_omp_split_clauses): New prototype.
461 (c_split_parallel_clauses): Removed.
462 (c_omp_declare_simd_clauses_to_numbers,
463 c_omp_declare_simd_clauses_to_decls): New prototypes.
464 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
465 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
466 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
467 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
468 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
469 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
470 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
471 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
472 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
473 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
474 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
475 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
476 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
477 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
478 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
479 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
480 PRAGMA_OMP_CLAUSE_UNIFORM.
482 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
484 PR tree-optimization/20318
485 * c-common.c (handle_returns_nonnull_attribute): New function.
486 (c_common_attribute_table): Add returns_nonnull.
488 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
491 * c.opt (fcheck-new): Move to common.opt.
493 2013-09-25 Marek Polacek <polacek@redhat.com>
494 Jakub Jelinek <jakub@redhat.com>
497 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
498 an expression if we can prove it is correct.
499 (ubsan_instrument_division): Likewise. Remove unnecessary
502 2013-09-18 Marek Polacek <polacek@redhat.com>
505 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
507 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
509 2013-09-14 Iain Sandoe <iain@codesourcery.com>
512 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
513 fobjc-gc, freplace-objc-classes): Accept for LTO.
515 2013-09-13 Jacek Caban <jacek@codeweavers.com>
517 * c-target.def: New hook
519 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
522 * c.opt (Wdelete-incomplete): Add.
524 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
526 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
527 (vector_types_compatible_elements_p): New function.
528 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
530 (vector_types_compatible_elements_p): Declare.
532 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
534 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
535 a virtual member function.
536 (pp_simple_type_specifier): Remove.
537 (pp_c_type_specifier): Likewise.
538 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
539 Rename from pp_c_type_specifier. Adjust.
540 (c_pretty_printer::c_pretty_printer): Do not assign to
541 simple_type_specifier.
543 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
545 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
547 (c_pretty_printer::storage_class_specifier): Likewise.
548 (c_pretty_printer::initializer): Likewise.
549 (pp_declaration): Remove.
550 (pp_declaration_specifiers): Likewise.
551 (pp_abstract_declarator): Likewise.
552 (pp_declarator): Likewise.
553 (pp_type_id): Likewise.
554 (pp_statement): Likewise.
555 (pp_constant): Likewise.
556 (pp_id_expression): Likewise.
557 (pp_primary_expression): Likewise.
558 (pp_unary_expression): Likewise.
559 (pp_multiplicative_expression): Likewise.
560 (pp_conditional_expression): Likewise.
561 (pp_assignment_expression): Likewise.
562 (pp_expression): Likewise.
563 (pp_c_type_id): Likewise.
564 (pp_c_storage_class_specifier): Likewise.
565 * c-pretty-print.c (pp_c_type_cast): Tidy.
566 (pp_c_pointer): Likewise.
567 (pp_c_type_specifier): Likewise.
568 (pp_c_parameter_type_list): Likewise.
569 (pp_c_function_definition): Likewise.
570 (pp_c_init_declarator): Likewise.
571 (pp_c_initializer_list): Likewise.
572 (pp_c_constructor_elts): Likewise.
573 (c_pretty_printer::direct_abstract_declarator): Likewise.
574 (c_pretty_printer::declaration_specifiers): Likewise.
575 (c_pretty_printer::primary_expression): Likewise.
576 (c_pretty_printer::postfix_expression): Likewise.
577 (c_pretty_printer::type_id): Rename from pp_c_type_id.
578 (c_pretty_printer::storage_class_specifier): Rename from
579 pp_c_storage_class_specifier.
580 (c_pretty_printer::initializer): Rename from pp_c_initializer.
581 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
582 storage_class_specifier, initializer, offset_list, flags.
584 2013-08-30 Marek Polacek <polacek@redhat.com>
586 * c-ubsan.c: New file.
587 * c-ubsan.h: New file.
589 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
591 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
593 (c_pretty_printer::declaration_specifiers): Likewise.
594 (c_pretty_printer::declarator): Likewise.
595 (c_pretty_printer::abstract_declarator): Likewise.
596 (c_pretty_printer::direct_abstract_declarator): Likewise.
597 (c_pretty_printer::direct_declarator): Likewise.
598 (c_pretty_printer::function_specifier): Likewise.
599 (pp_declaration): Adjust.
600 (pp_declaration_specifiers): Likewise.
601 (pp_abstract_declarator): Likewise.
602 (pp_direct_declarator): Likewise.
603 (pp_function_specifier): Likewise.
604 (pp_direct_abstract_declarator): Remove as unused.
605 (pp_c_declaration): Remove.
606 (pp_c_declaration_specifiers): Likewise.
607 (pp_c_declarator): Likewise.
608 (pp_c_direct_declarator): Likewise.
609 (pp_c_function_specifier): Likewise.
610 (pp_c_direct_abstract_declarator): Likewise.
611 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
612 from pp_c_abstract_declarator. Adjust.
613 (c_pretty_printer::direct_abstract_declarator): Rename from
614 pp_c_direct_abstract_declarator. Adjust.
615 (c_pretty_printer::function_specifier): Rename from
616 pp_c_function_specifier. Adjust.
617 (c_pretty_printer::declaration_specifiers): Rename from
618 pp_c_declaration_specifiers. Adjust.
619 (c_pretty_printer::direct_declarator): Rename from
620 pp_c_direct_declarator. Adjust.
621 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
622 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
623 (c_pretty_printer::c_pretty_printer): Do not assign to
624 declaration, declaration_specifiers, declarator,
625 direct_declarator, direct_abstract_declarator, function_specifier.
627 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
629 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
630 virtual member function.
631 (c_pretty_printer::multiplicative_expression): Likewise.
632 (c_pretty_printer::conditional_expression): Likewise.
633 (c_pretty_printer::assignment_expression): Likewise.
634 (c_pretty_printer::expression): Likewise.
635 (pp_unary_expression): Adjust.
636 (pp_multiplicative_expression): Likewise.
637 (pp_assignment_expression): Likewise.
638 (pp_conditional_expression): Likewise.
639 (pp_expression): Likewise.
640 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
641 from pp_c_unary_expression. Adjust.
642 (c_pretty_printer::multiplicative_expression): Rename from
643 pp_c_multiplicative_expression. Adjust.
644 (c_pretty_printer::conditional_expression): Rename from
645 pp_c_conditional_expression. Adjust.
646 (c_pretty_printer::assignment_expression): Rename from
647 pp_c_assignment_expression. Adjust.
648 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
649 (c_pretty_printer::c_pretty_printer): Do not assign to
650 unary_expression, multiplicative_expression,
651 conditional_expression, expression.
653 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
655 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
656 virtual member function.
657 (pp_postfix_expression): Adjust.
658 (pp_c_postfix_expression): Remove.
659 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
660 from pp_c_postfix_expression. Adjust.
661 (c_pretty_printer::c_pretty_printer): Do not assign to
664 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
666 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
667 virtua member function.
668 (pp_primary_expression): Adjust.
669 (pp_c_primary_expression): Remove.
670 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
671 from pp_c_primary_expression. Adjust.
672 (pp_c_initializer_list): Use pp_primary_expression.
673 (c_pretty_printer::c_pretty_printer): Do not assign to
676 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
678 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
679 * c-pretty-print.c (M_): Remove.
680 (c_pretty_printer::translate_string): Define.
681 (pp_c_type_specifier): Use it.
682 (pp_c_primary_expression): Likewise.
683 (pp_c_expression): Likewise.
685 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
687 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
689 (pp_c_id_expression): Remove.
690 (pp_id_expression): Adjust.
691 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
692 pp_c_id_expression. Adjust.
693 (pp_c_postfix_expression): Use pp_id_expression.
694 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
696 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
698 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
700 (pp_constant): Adjust.
701 (pp_c_constant): Remove.
702 * c-pretty-print.c (c_pretty_printer::constant): Rename from
703 pp_c_constant. Adjust.
705 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
706 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
708 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
710 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
711 (c_pretty_printer::c_pretty_printer): Declare.
712 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
713 c_pretty_printer_init. Adjust.
714 (print_c_tree): Do not call c_pretty_printer_init.
715 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
717 2013-08-09 Arnaud Charlet <charlet@adacore.com>
719 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
721 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
724 * c-common.c (pointer_int_sum): Add bool parameter.
725 * c-common.h (pointer_int_sum): Adjust declaration.
727 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
729 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
730 c_pretty_printer variable.
732 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
734 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
736 (pp_c_base): Likewise. Adjust users.
737 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
738 (pp_c_whitespace): Do not call pp_base.
739 (pp_c_left_paren): Likewise.
740 (pp_c_right_paren): Likewise.
741 (pp_c_left_brace): Likewise.
742 (pp_c_right_brace): Likewise.
743 (pp_c_left_bracket): Likewise.
744 (pp_c_right_bracket): Likewise.
745 (pp_c_dot): Likewise.
746 (pp_c_ampersand): Likewise.
747 (pp_c_star): Likewise.
748 (pp_c_arrow): Likewise.
749 (pp_c_semicolon): Likewise.
750 (pp_c_complement): Likewise.
751 (pp_c_exclamation): Likewise.
752 (pp_c_direct_declarator): Likewise.
753 (pp_c_ws_string): Likewise.
754 (pp_c_identifier): Likewise.
755 (pp_c_statement): Likewise.
756 (print_c_tree): Likewise.
758 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
761 * c-common.c (c_parse_error): Catch user-defined literal tokens and
762 provide useful error strings.
764 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
766 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
767 printer functions instead of pp_string or operators and punctuators.
768 (dump_generic_ada_node): Likewise.
769 * c-pretty-print.c (pp_c_type_specifier): Likewise.
770 (pp_c_relational_expression): Likewise.
771 (pp_c_logical_or_expression): Likewise.
773 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
775 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
776 functions instead of pp_character.
777 (pp_ada_tree_identifier): Likewise.
778 (dump_ada_double_name): Likewise.
779 (dump_ada_function_declaration): Likewise.
780 (dump_ada_array_domains): Likewise.
781 (dump_template_types): Likewise.
782 (dump_generic_ada_node): Likewise.
783 (print_ada_declaration): Likewise.
784 (print_ada_struct_decl): Likewise.
785 * c-pretty-print.c (pp_c_integer_constant): Likewise.
787 2013-07-23 Tom Tromey <tromey@redhat.com>
789 * c-common.h (enum rid) <RID_GENERIC>: New constant.
790 * c-common.c (c_common_reswords): Add _Generic.
792 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
794 * c-common.c: Fix typos.
795 * c-common.h: Likewise.
797 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
800 * c-common.c (c_common_attribute_table): Add warn_unused.
801 (handle_warn_unused_attribute): New.
803 2013-07-10 Jakub Jelinek <jakub@redhat.com>
805 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
806 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
808 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
811 * c.opt: Add Wconditionally-supported.
813 2013-07-08 Graham Stott <graham.stott@btinternet.com>
815 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
816 unused variables l_length and l_node.
818 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
821 * c-common.c (complete_array_type): Delay folding first index
822 like other indices. When folding, check for index overflow.
824 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
827 * c-common.h (c_build_vec_perm_expr): New complain argument.
828 * c-common.c (c_build_vec_perm_expr): Likewise.
829 Use save_expr also in C++.
831 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
833 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
834 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
835 * c-opts.c (c_common_post_options): Likewise.
837 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
839 * array-notation-common.c (length_mismatch_in_expr): Changed the
840 parameter type's from a dynamic array to a vec_tree. Also removed
842 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
845 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
847 * c-common.h (struct cilkplus_an_parts): New structure.
848 (struct cilkplus_an_loop_parts): Likewise.
849 (cilkplus_extract_an_triplets): New prototype.
850 (fix_sec_implicit_args): Likewise.
851 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
852 (fix_sec_implicit_args): Likewise.
854 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
856 * array-notation-common.c (find_inv_trees): Removed an unwanted
858 * c-common.h (struct inv_list::additional_tcodes): Changed type from
859 enum rid to enum tree_code.
861 2013-06-11 Jan Hubicka <jh@suse.cz>
863 * c-common.c (handle_alias_ifunc_attribute): Do not set
864 DECL_EXTERNAL for weakref variables.
865 * c-pragma.c (handle_pragma_weak): Make sure aliases
866 are not declared as external.
868 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
870 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
871 function from c/c-array-notation.c.
872 (is_cilkplus_reduce_builtin): Likewise.
873 (find_rank): Likewise.
874 (extract_array_notation_exprs): Likewise.
875 (replace_array_notations): Likewise.
876 (find_inv_trees): Likewise.
877 (replace_inv_trees): Likewise.
878 (contains_array_notation_expr): Likewise.
879 (find_correct_array_notation_type): Likewise.
880 * c-common.h (struct inv_list): Moved this struct from the file
881 c/c-array-notation.c and added a new field called additional tcodes.
882 (length_mismatch_in_expr_p): New prototype.
883 (is_cilkplus_reduce_builtin): Likewise.
884 (find_rank): Likewise.
885 (extract_array_notation_exprs): Likewise.
886 (replace_array_notation): Likewise.
887 (find_inv_trees): Likewise.
888 (replace_inv_trees): Likewise.
889 (find_correct_array_notation_type): Likewise.
891 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
893 * c-common.c (c_define_builtins): When cilkplus is enabled, the
894 function array_notation_init_builtins is called.
895 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
896 * c-common.def (ARRAY_NOTATION_REF): New tree.
897 * c-common.h (build_array_notation_expr): New function declaration.
898 (build_array_notation_ref): Likewise.
899 (extract_sec_implicit_index_arg): New extern declaration.
900 (is_sec_implicit_index_fn): Likewise.
901 (ARRAY_NOTATION_CHECK): New define.
902 (ARRAY_NOTATION_ARRAY): Likewise.
903 (ARRAY_NOTATION_START): Likewise.
904 (ARRAY_NOTATION_LENGTH): Likewise.
905 (ARRAY_NOTATION_STRIDE): Likewise.
906 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
908 (pp_c_expression): Likewise.
909 * c.opt (flag_enable_cilkplus): New flag.
910 * array-notation-common.c: New file.
912 2013-05-14 Jakub Jelinek <jakub@redhat.com>
915 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
917 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
919 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
922 2013-05-07 Han Shen <shenhan@google.com>
924 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
926 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
928 * c-common.c (check_user_alignment): Emit error for negative values.
930 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
932 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
934 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
936 * c-cppbuiltin.c (c_cpp_builtins): Do not define
937 __GXX_EXPERIMENTAL_CXX1Y__.
939 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
940 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
942 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
943 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
944 to simply use OPT_Wpointer_arith.
945 (c_sizeof_or_alignof_type): Likewise.
947 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
949 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
951 2013-04-12 Jakub Jelinek <jakub@redhat.com>
953 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
954 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
957 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
959 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
961 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
963 * c-common.c (pointer_int_sum): Remove dead code.
965 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
968 * c-common.c (handle_optimize_attribute): Don't call
969 save_optabs_if_changed.
971 2013-03-05 Jakub Jelinek <jakub@redhat.com>
974 * c-pch.c (pch_init): Free target_validity at the end.
976 2013-03-04 Jakub Jelinek <jakub@redhat.com>
978 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
980 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
981 Jakub Jelinek <jakub@redhat.com>
984 * c-common.c (handle_no_sanitize_address_attribute): New function.
985 (c_common_attribute_table): Add no_sanitize_address attribute.
986 (handle_no_address_safety_analysis_attribute): Add
987 no_sanitize_address attribute, not no_address_safety_analysis
990 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
993 * c-common.c (handle_optimize_attribute): Call
994 save_optabs_if_changed.
996 2013-02-18 Jakub Jelinek <jakub@redhat.com>
997 Steven Bosscher <steven@gcc.gnu.org>
1000 * c-opts.c (c_common_post_options): If debug info is enabled
1001 and non-dwarf*, refuse to load PCH files and when writing PCH
1004 2013-02-05 Jakub Jelinek <jakub@redhat.com>
1007 * c-common.c (handle_error_attribute): Fix condition.
1009 2013-01-30 Jakub Jelinek <jakub@redhat.com>
1012 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1014 2013-01-18 Jason Merrill <jason@redhat.com>
1017 * c.opt (-fextern-tls-init): New.
1018 * c-opts.c (c_common_post_options): Handle it.
1020 2013-01-09 Jakub Jelinek <jakub@redhat.com>
1023 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1024 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1025 and is either negative or bigger or equal to type precision
1026 of the first operand.
1028 2012-12-03 Marek Polacek <polacek@redhat.com>
1031 * c-common.c (check_user_alignment): Swap order of tests,
1032 check TREE_CODE first.
1034 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1037 * c-common.h (overflow_type): New enum.
1038 (build_userdef_literal): Add overflow_type argument.
1039 (tree_userdef_literal): Add overflow_type.
1040 (USERDEF_LITERAL_OVERFLOW): New access macro.
1041 * c-common.c (build_userdef_literal): Add overflow_type
1043 * c-lex.c (c_lex_with_flags): Add overflow_type to
1044 build_userdef_literal calls.
1045 (interpret_integer, interpret_float): Add overflow_type argument.
1047 2012-11-28 Richard Biener <rguenther@suse.de>
1050 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1051 here and use a type with proper overflow behavior for types that would
1052 need to be promoted for the arithmetic.
1054 2012-11-23 Jakub Jelinek <jakub@redhat.com>
1057 * c-common.c (handle_no_address_safety_analysis_attribute): New
1059 (c_common_attribute_table): Add no_address_safety_analysis.
1061 2012-11-16 Simon Baldwin <simonb@google.com>
1063 * c.opt: Add f[no-]canonical-system-headers.
1064 * c-opts.c (c_common_handle_option): Handle
1065 OPT_fcanonical_system_headers.
1067 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1070 * c-opts.c (c_common_handle_option): Set new flags.
1071 * c.opt: Describe new flags.
1073 2012-11-09 Jason Merrill <jason@redhat.com>
1075 * c.opt (Wabi-tag): New.
1077 2012-11-09 Andi Kleen <ak@linux.intel.com>
1080 * c-common.c (get_atomic_generic_size): Mask with
1083 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1086 * c.opt (Wformat): Make it Alias Wformat=1.
1087 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1088 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1090 (Wformat=): RejectNegative. Use LangEnabledBy.
1091 (Wnonnull): Use LangEnabledBy.
1092 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1093 * c-format.c (set_Wformat): Delete.
1094 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1095 (maybe_read_dollar_number): Likewise.
1096 (avoid_dollar_number): Likewise.
1097 (finish_dollar_format_checking): Likewise.
1098 (check_format_info): Likewise.
1099 (check_format_info_main): Likewise.
1100 (check_format_types): Likewise.
1101 (format_type_warning): Likewise.
1102 * c-common.c (int): Likewise.
1103 (check_function_sentinel): Likewise.
1104 * c-common.h (warn_format,set_Wformat): Do not declare here.
1106 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1109 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1110 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1112 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1114 (Wvariadic-macros): Init(1).
1115 * c-opts.c (c_common_handle_option): Do not handle them
1117 (c_common_post_options): Likewise.
1118 (sanitize_cpp_opts): warn_unused_macros is now
1119 cpp_warn_unused_macros.
1120 (push_command_line_include): Likewise.
1121 * c-common.c (warn_unknown_pragmas): Do not define.
1122 * c-common.h (warn_unknown_pragmas): Do not declare.
1124 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1127 * c-common.c (conversion_warning): Handle conditional expressions.
1129 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1132 * c.opt (Wreturn_local_addr): Define new option.
1134 2012-10-25 Jason Merrill <jason@redhat.com>
1136 * c.opt (Wvirtual-move-assign): New.
1138 * c.opt (Winherited-variadic-ctor): New.
1140 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
1143 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1145 2012-10-23 Joseph Myers <joseph@codesourcery.com>
1147 * c-common.h (pch_cpp_save_state): Declare.
1148 * c-target.def (c_preinclude): New hook.
1149 * c-opts.c (done_preinclude): New.
1150 (push_command_line_include): Handle default preincluded header.
1151 (cb_file_change): Call pch_cpp_save_state when calling
1152 push_command_line_include.
1153 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1154 (pch_cpp_save_state): New.
1155 (pch_init): Call pch_cpp_save_state conditionally, instead of
1156 calling cpp_save_state.
1158 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1162 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1163 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1164 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1165 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1166 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1167 * c-opts.c (c_common_handle_option): Remove explicit handling from
1169 (c_common_post_options): Likewise.
1171 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1173 * c-ada-spec.c (LOCATION_COL): Delete.
1174 (compare_location): New function.
1175 (compare_node): Use it.
1176 (compare_comment): Likewise.
1178 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1182 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1183 * c-opts.c (c_common_handle_option): Do not set them here. Add
1185 (c_common_post_options): Likewise.
1187 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1189 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1190 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1191 Remove POINTER_TYPE handling, add large unsigned handling and use
1192 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1194 2012-10-12 Jakub Jelinek <jakub@redhat.com>
1197 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1198 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1199 locs and array of 3 trees instead of just single loc and single
1200 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1201 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1202 For *cmp* builtins that take two sources strings report warnings
1203 about first and second source, not about destination and source.
1205 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
1208 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1210 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1212 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1213 declaring something coming from another file.
1215 2012-10-10 Arnaud Charlet <charlet@adacore.com>
1218 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1220 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1223 * c-common.c (warn_about_parentheses): Add location_t parameter;
1224 use EXPR_LOC_OR_LOC.
1225 * c-common.h: Update declaration.
1227 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
1230 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1231 more operations. Make error messages optional.
1232 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1233 (scalar_to_vector): Declare.
1235 2012-10-08 Jason Merrill <jason@redhat.com>
1237 * c-common.c (c_common_reswords): Add thread_local.
1239 2012-10-08 Dodji Seketeli <dodji@redhat.com>
1241 PR c++/53528 C++11 attribute support
1242 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1244 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1246 (handle_aligned_attribute): In choose strictest alignment
1247 among many. Use new check_cxx_fundamental_alignment_constraints.
1248 (handle_transparent_union_attribute): In c++11 attribute syntax,
1249 don't look through typedefs.
1251 2012-10-04 Arnaud Charlet <charlet@adacore.com>
1253 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1254 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1257 2012-09-25 Dehao Chen <dehao@google.com>
1260 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
1261 map when read in the pch.
1263 2012-09-18 Arnaud Charlet <charlet@adacore.com>
1265 * c-ada-spec.c: Style fixes.
1267 2012-09-18 Thomas Quinot <quinot@adacore.com>
1269 * c.opt (-fada-spec-parent): Define new command line switch.
1270 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1271 is specified, generate binding spec as a child of the specified unit.
1273 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1274 Manuel López-Ibáñez <manu@gcc.gnu.org>
1277 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1279 2012-08-23 Arnaud Charlet <charlet@adacore.com>
1281 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1282 for pointers, and add missing Convention C pragma.
1283 (print_ada_struct_decl): Add missing aliased keyword.
1284 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1286 2012-08-17 Jakub Jelinek <jakub@redhat.com>
1288 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1289 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1290 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1291 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1292 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1294 2012-08-10 Richard Guenther <rguenther@suse.de>
1296 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1298 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1300 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1301 instead of separate pp_newline and pp_flush.
1302 (print_c_tree): Likewise.
1304 2012-07-26 Richard Henderson <rth@redhat.com>
1306 * c-common.c (handle_hot_attribute): Allow labels.
1307 (handle_cold_attribute): Likewise.
1309 2012-07-20 Jakub Jelinek <jakub@redhat.com>
1312 * c-common.c (check_function_nonnull): Handle multiple nonnull
1313 attributes properly.
1315 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1317 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1318 * c-ada-spec.c: Likewise.
1319 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1321 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1323 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1324 Remove code conditional on it.
1326 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1328 * c-gimplify.c: Do not include basic-block.h.
1329 * c-common.c: Do not include linfuncs.h.
1331 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1333 * c-common.h: Include tree.h.
1335 2012-07-02 Jason Merrill <jason@redhat.com>
1338 * c-common.c (get_priority): Call default_conversion.
1340 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
1342 * c-pch.c (c_common_write_pch): Remove unused variables.
1344 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1346 * cppspec.c: Moved from gcc/ to here.
1348 2012-06-27 Kai Tietz <ktietz@redhat.com>
1350 PR preprocessor/37215
1351 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1353 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1355 * c-common.h (c_common_print_pch_checksum): Remove.
1356 * c-pch.c: Do not include output.h.
1357 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1358 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1359 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1360 (struct c_pch_header): Remove.
1361 (get_ident): Update gpch version.
1362 (pch_init): Do not print executable_checksum to asm_out_file.
1363 Do not fail if there is no asm_out_file to read back from. Set
1364 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1365 (c_common_write_pch): Verify that nothing was written to asm_out_file
1366 since pch_init was called. Do not write a c_pch_header, and do not
1367 copy from asm_out_file to the PCH.
1368 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1369 the content of asm_out_file from the PCH.
1370 (c_common_print_pch_checksum): Remove.
1371 * c-opts.c (c_common_init): Print out executable_checksum directly.
1373 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1375 * c-target.def (objc_declare_unresolved_class_reference,
1376 objc_declare_class_definition): Add new hooks.
1378 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1380 * c-lex.c: Do not include output.h.
1381 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1382 Remove uses of ASM_OUTPUT_IDENT.
1384 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1387 * c-common.h (c_build_vec_perm_expr): Move decl here.
1388 * c-common.c (c_build_vec_perm_expr): Move definition
1391 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1393 * c.opt (fconserve-space): Turn into a no-op.
1395 2012-06-04 Sterling Augustine <saugustine@google.com>
1397 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1398 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1399 both the start and end of the function.
1401 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1403 * c-common.c: Do not include output.h.
1404 * c-pragma.c: Likewise.
1406 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1408 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1409 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1410 (lang_decl_name): Handle namespace decls.
1412 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1414 * c-ada-spec.c: Do not include output.h.
1415 * c-semantics.c: Likewise.
1417 2012-05-29 Joseph Myers <joseph@codesourcery.com>
1419 * c-common.c: Fix typo.
1421 2012-05-29 Michael Matz <matz@suse.de>
1423 * c-common.h (c_expand_decl): Remove prototype.
1425 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1427 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1428 * c-opts.c (c_common_handle_option): Remove code handling
1429 warn_missing_braces.
1431 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1434 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1437 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1440 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1442 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1444 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1445 * c-opts.c (c_common_handle_option): Do not handle explicitly
1446 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1448 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1450 PR preprocessor/7263
1451 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1452 to cpp_classify_number. For diagnostics, use the precise location
1453 instead of the global input_location.
1455 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1458 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1460 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1462 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1464 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1467 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1468 Wreorder): Use LangEnabledBy.
1469 * c-opts.c (c_common_handle_option): Do not enable them
1470 explicitly. Call lang-specific generated functions.
1471 (c_common_post_options): Do not set them here.
1473 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1475 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1476 Wmissing-field-initializers,Wmissing-parameter-type,
1477 Wold-style-declaration,Woverride-init): Use EnabledBy.
1478 * c-opts.c (c_common_post_options): Do not set here explicitly.
1480 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1483 * c-opts.c (c_common_handle_option): Use handle_generated_option
1484 to enable sub-options.
1486 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1489 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1491 2012-05-10 Richard Guenther <rguenther@suse.de>
1493 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1494 adjust commentary about TYPE_IS_SIZETYPE types.
1496 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1499 * c-common.c (warn_logical_operator): Check that argument of
1500 integer_zerop is not NULL.
1502 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1505 * c-common.c (warn_logical_operator): Do not warn if either side
1506 is already true or false.
1508 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1511 * c-common.c (expr_original_type): New.
1512 (shorten_compare): Do not warn for enumeration types.
1514 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1516 * c.opt (fpermissive): Add Var(flag_permissive).
1518 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1521 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1522 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1524 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1526 Add -Wvarargs option
1527 * c.opt (Wvarargs): Define new option.
1529 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1531 * c-common.c (check_function_arguments): Replace
1532 Wmissing-format-attribute with Wsuggest-attribute=format.
1534 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1536 * c.opt (Wsuggest-attribute=format): New. Alias of
1537 Wmissing-format-attribute.
1538 * c-format.c (decode_format_type): Replace
1539 Wmissing-format-attribute with Wsuggest-attribute=format.
1540 (check_function_format): Likewise.
1542 2012-04-27 Ollie Wild <aaw@google.com>
1544 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1545 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1546 * c.opt: Add Wliteral-suffix.
1548 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1551 * c.opt (Wpedantic): New.
1552 (pedantic): Alias Wpedantic.
1553 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1554 (c_common_post_options): Likewise.
1555 (sanitize_cpp_opts): Likewise.
1556 * c-lex.c (interpret_float): Likewise.
1557 * c-format.c (check_format_types): Likewise.
1558 * c-common.c (pointer_int_sum): Likewise.
1559 (c_sizeof_or_alignof_type): Likewise.
1560 (c_add_case_label): Likewise.
1561 (c_do_switch_warnings): Likewise.
1562 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1564 2012-04-15 Jason Merrill <jason@redhat.com>
1567 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1568 (C_STD_NAME): Distinguish between C++98 and C++11.
1570 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1573 * c-common.h (uint16_type_node): Rename into...
1574 (c_uint16_type_node): ...this.
1575 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1576 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1578 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1580 * c-common.c (warn_if_unused_value): Move definition to here.
1581 * c-common.h (warn_if_unused_value): Move declaration to here.
1583 2012-03-23 William Bader <williambader@hotmail.com>
1585 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1587 2012-03-20 Jason Merrill <jason@redhat.com>
1589 * c-common.h (enum cxx_dialect): Add cxx1y.
1590 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1592 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1593 * c-opts.c (c_common_post_options): Likewise.
1594 (set_std_cxx1y): New.
1595 (c_common_handle_option): Call it.
1596 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1598 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1601 * c.opt ([Wuseless-cast]): Add.
1603 2012-03-16 Richard Guenther <rguenther@suse.de>
1605 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1607 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1610 * c.opt (ftemplate-backtrace-limit) Add.
1612 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1614 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1616 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1617 (init_pragma): Don't register extern_prefix.
1619 2012-03-12 Richard Guenther <rguenther@suse.de>
1621 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1622 (builtin_type_for_size): Likewise.
1624 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1627 * c-common.c (sync_resolve_params): Don't decide whether to convert
1628 or not based on TYPE_SIZE comparison, convert whenever arg_type
1629 is unsigned INTEGER_TYPE.
1631 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1634 * c.opt ([Wunused-local-typedefs]): Fix description.
1636 2012-01-24 Mike Stump <mikestump@comcast.net>
1638 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1641 2012-01-18 Richard Guenther <rguenther@suse.de>
1643 * c-opts.c (c_common_post_options): Reset LTO flags if
1644 we are about to generate a PCH.
1646 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1649 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1650 use pp_unsigned_wide_integer.
1652 2012-01-10 Richard Guenther <rguenther@suse.de>
1655 * c-opts.c (c_common_handle_option): Move -Werror handling
1656 to language independent code.
1658 2012-01-05 Richard Guenther <rguenther@suse.de>
1661 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1664 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1667 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1668 of array types with an unknown bound.
1670 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1672 * c-common.c (flag_isoc99): Update comment to refer to C11.
1673 (flag_isoc1x): Change to flag_isoc11.
1674 * c-common.h (flag_isoc99): Update comment to refer to C11.
1675 (flag_isoc1x): Change to flag_isoc11.
1676 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1678 * c-opts.c (set_std_c1x): Change to set_std_c11.
1679 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1681 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1682 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1683 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1685 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1686 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1687 (std=gnu1x): Make alias of std=gnu11.
1689 2011-12-19 Jason Merrill <jason@redhat.com>
1692 * c-common.c (handle_transparent_union_attribute): Check the first
1693 field if the type is complete.
1695 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1698 * c-common.c (RID_IS_FINAL): Add.
1699 * c-common.h (RID_IS_FINAL): Add.
1701 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1703 * c.opt (fgnu-runtime): Provide full description.
1704 (fnext-runtime): Likewise.
1705 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1707 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1709 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1710 predefines in one place. Add LOCK_FREE predefines.
1711 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1714 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1717 * c-common.c (get_atomic_generic_size): Check for various error
1719 (resolve_overloaded_atomic_exchange,
1720 resolve_overloaded_atomic_compare_exchange,
1721 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1722 error_mark_node for error conditions.
1724 2011-11-08 Richard Guenther <rguenther@suse.de>
1729 2011-11-07 Richard Henderson <rth@redhat.com>
1730 Aldy Hernandez <aldyh@redhat.com>
1731 Torvald Riegel <triegel@redhat.com>
1733 Merged from transactional-memory.
1735 * c-common.c (handle_tm_wrap_attribute,
1736 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1737 (struct c_common_reswords): Added __transaction* keywords.
1738 (struct c_common_attribute_table): Added transaction* and tm_regparm
1740 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1742 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1743 find_tm_attribute): Declare.
1745 2011-11-07 Jason Merrill <jason@redhat.com>
1748 * c-common.c, c-common.h: Revert yesterday's changes.
1750 2011-11-06 Jason Merrill <jason@redhat.com>
1753 * c-common.c (decl_has_visibility_attr): Split out from...
1754 (c_determine_visibility): ...here.
1755 * c-common.h: Declare it.
1757 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1759 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1760 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1762 (check_user_alignment): New. Split out of
1763 handle_aligned_attribute. Disallow integer constants with
1764 noninteger types. Conditionally allow zero.
1765 (handle_aligned_attribute): Use check_user_alignment.
1766 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1768 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1769 Richard Henderson <rth@redhat.com>
1771 Merged from cxx-mem-model.
1773 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1774 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1775 parameters that are the same type size.
1776 (get_atomic_generic_size): New. Find size of generic
1777 atomic function parameters and do typechecking.
1778 (add_atomic_size_parameter): New. Insert size into parameter list.
1779 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1780 either __atomic_exchange_n or external library call.
1781 (resolve_overloaded_atomic_compare_exchange): Restructure
1782 __atomic_compare_exchange to either _n variant or external library call.
1783 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1784 __atomic_load_n or an external library call.
1785 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1786 __atomic_store_n or an external library call.
1787 (resolve_overloaded_builtin): Handle new __atomic builtins.
1789 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1792 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1793 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1794 <INDIRECT_REF>: Return the argument.
1795 <ARRAY_REF>: Remove special code for negative offset.
1796 Call fold_build_pointer_plus instead of size_binop.
1797 (fold_offsetof): Remove STOP_REF argument and adjust.
1798 * c-common.h (fold_offsetof_1): Declare.
1799 (fold_offsetof): Remove STOP_REF argument.
1801 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1804 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1805 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1806 Wnarrowing for C++0x and C++98.
1807 * c.opt ([Wnarrowing]): Update.
1809 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1812 * c.opt: Add Wzero-as-null-pointer-constant.
1814 2011-10-31 Jason Merrill <jason@redhat.com>
1816 * c.opt (-fdeduce-init-list): Off by default.
1819 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1820 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1822 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1824 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1827 * c.opt (fvisibility-inlines-hidden): Description change.
1829 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1831 Implement C++11 user-defined literals.
1832 * c-common.c (build_userdef_literal): New.
1833 * c-common.def: New tree code.
1834 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1835 * c-lex.c (interpret_float): Add suffix parm.
1836 (c_lex_with_flags): Build literal tokens.
1838 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1842 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1845 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1846 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1847 Wnarrowing for C++0x and C++98.
1848 * c.opt ([Wnarrowing]): Update.
1850 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1853 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1854 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1855 Wnarrowing for C++0x and C++98.
1856 * c.opt ([Wnarrowing]): Update.
1858 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1861 * c-common.c (conversion_warning): Remove code looking for
1862 artificial operands.
1864 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1867 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1868 !NO_IMPLICIT_EXTERN_C.
1870 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1872 * c-common.c (c_common_reswords): Add __bases,
1874 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1876 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1879 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1881 2011-10-15 Tom Tromey <tromey@redhat.com>
1882 Dodji Seketeli <dodji@redhat.com>
1884 * c.opt (fdebug-cpp): New option.
1885 * c-opts.c (c_common_handle_option): Handle the option.
1886 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1887 output stream in parameter. Factorized from ...
1888 (maybe_print_line): ... this. Dump location debug information when
1889 -fdebug-cpp is in effect.
1890 (print_line_1): New static function. Takes an output stream in
1891 parameter. Factorized from ...
1892 (print_line): ... here. Dump location information when -fdebug-cpp
1894 (scan_translation_unit): Dump location information when
1895 -fdebug-cpp is in effect.
1897 2011-10-15 Tom Tromey <tromey@redhat.com>
1898 Dodji Seketeli <dodji@redhat.com>
1900 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1902 * c-opts.c (c_common_handle_option)<case
1903 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1904 cases. Handle -ftrack-macro-expansion with and without argument.
1906 2011-10-15 Tom Tromey <tromey@redhat.com>
1907 Dodji Seketeli <dodji@redhat.com>
1909 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1910 (print_line, cb_define, do_line_change): Adjust to avoid touching
1911 the internals of struct line_map. Use the public API instead.
1912 * c-pch.c (c_common_read_pch): Likewise.
1913 * c-lex.c (fe_file_change): Likewise.
1915 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1918 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1920 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1923 * c-pretty-print.c (pp_c_floating_constant): Output
1924 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1926 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1928 * c-common.c (def_builtin_1): Delete old interface with two
1929 parallel arrays to hold standard builtin declarations, and replace
1930 it with a function based interface that can support creating
1931 builtins on the fly in the future. Change all uses, and poison
1932 the old names. Make sure 0 is not a legitimate builtin index.
1933 * c-omp.c (c_finish_omp_barrier): Ditto.
1934 (c_finish_omp_taskwait): Ditto.
1935 (c_finish_omp_flush): Ditto.
1937 2011-10-11 Tristan Gingold <gingold@adacore.com>
1939 * c.opt: (fallow-parameterless-variadic-functions): New.
1941 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1943 PR c++/33255 - Support -Wunused-local-typedefs warning
1944 * c-common.h (struct c_language_function::local_typedefs): New
1946 (record_locally_defined_typedef, maybe_record_typedef_use)
1947 (maybe_warn_unused_local_typedefs): Declare new functions.
1948 * c-common.c (record_locally_defined_typedef)
1949 (maybe_record_typedef_use)
1950 (maybe_warn_unused_local_typedefs): Define new functions.
1951 * c.opt: Declare new -Wunused-local-typedefs flag.
1953 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1956 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1959 2011-09-05 Richard Guenther <rguenther@suse.de>
1961 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1962 of integer_minus_one_node for empty array upper bounds.
1964 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1966 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1967 it's the first time it's being called on this main TU.
1969 2011-08-24 Richard Guenther <rguenther@suse.de>
1972 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1974 2011-08-22 Gabriel Charette <gchare@google.com>
1976 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1977 defined in cpp_init_builtins and c_cpp_builtins.
1979 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1981 * c-common.c (c_common_reswords): Add __builtin_complex.
1982 * c-common.h (RID_BUILTIN_COMPLEX): New.
1984 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1986 * c-common.c (c_common_reswords): Add _Noreturn.
1987 (keyword_is_function_specifier): Handle RID_NORETURN.
1988 * c-common.h (RID_NORETURN): New.
1990 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1992 * c-common.c (unsafe_conversion_p): New function. Check if it is
1993 unsafe to convert an expression to the type.
1994 (conversion_warning): Adjust, use unsafe_conversion_p.
1995 * c-common.h (unsafe_conversion_p): New function declaration.
1997 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1999 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2000 (c_finish_omp_taskyield): New prototype.
2001 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2002 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2003 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2004 or RHS1 have side-effects, evaluate those too in the right spot,
2005 if it is a decl and LHS is also a decl, error out if they
2007 (c_finish_omp_taskyield): New function.
2008 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2009 * c-pragma.c (omp_pragmas): Add taskyield.
2010 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2011 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2012 PRAGMA_OMP_CLAUSE_MERGEABLE.
2014 2011-07-25 Dodji Seketeli <dodji@redhat.com>
2016 * c-common.h (set_underlying_type): Remove parm name from
2019 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
2021 * c-pretty-print.h: Search c-common.h in c-family.
2023 2011-07-22 Jason Merrill <jason@redhat.com>
2026 * c.opt (Wnarrowing): New.
2029 * c-common.h: Declare c_linkage_bindings.
2030 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2033 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2034 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2035 as flag_isoc99 for 'restrict'.
2036 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2038 2011-07-21 Ian Lance Taylor <iant@google.com>
2041 * c-common.c (c_disable_warnings): New static function.
2042 (c_enable_warnings): New static function.
2043 (c_fully_fold_internal): Change local unused_p to bool. Call
2044 c_disable_warnings and c_enable_warnings rather than change
2045 c_inhibit_evaluation_warnings.
2047 2011-07-20 Jason Merrill <jason@redhat.com>
2049 PR c++/6709 (DR 743)
2050 PR c++/42603 (DR 950)
2051 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2052 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2053 (CPP_DECLTYPE): New.
2054 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2056 2011-07-19 Richard Guenther <rguenther@suse.de>
2058 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2059 * c-omp.c (c_finish_omp_for): Likewise.
2061 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2063 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2064 body on the next line.
2066 2011-07-08 Jason Merrill <jason@redhat.com>
2069 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2072 * c-common.c (c_apply_type_quals_to_decl): Don't check
2073 TYPE_NEEDS_CONSTRUCTING.
2075 2011-07-06 Richard Guenther <rguenther@suse.de>
2077 * c-common.c (c_common_nodes_and_builtins):
2078 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2080 2011-07-05 Richard Guenther <rguenther@suse.de>
2082 * c-common.c (c_common_nodes_and_builtins): Build all common
2085 2011-06-27 Jakub Jelinek <jakub@redhat.com>
2087 * c-common.h (c_tree_chain_next): New static inline function.
2089 * c-common.c (check_builtin_function_arguments): Handle
2090 BUILT_IN_ASSUME_ALIGNED.
2092 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
2094 * c-common.c: Add sync_ or SYNC__ to builtin names.
2095 * c-omp.c: Add sync_ or SYNC__ to builtin names.
2097 2011-06-20 Pierre Vittet <piervit@pvittet.com>
2099 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2101 (gen_pragma_handler): New union.
2102 (internal_pragma_handler): New type.
2103 (c_register_pragma_with_data)
2104 (c_register_pragma_with_expansion_and_data): New functions.
2106 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2107 (c_register_pragma, c_register_pragma_with_expansion)
2108 (c_invoke_pragma_handler): Changed to work with
2109 internal_pragma_handler.
2110 (c_register_pragma_with_data)
2111 (c_register_pragma_with_expansion_and_data): New functions.
2113 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2115 * c-common.c: Include common/common-target.h.
2116 (handle_section_attribute): Use
2117 targetm_common.have_named_sections.
2118 * c-cppbuiltin.c: Include common/common-target.h.
2119 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2121 2011-06-10 Richard Guenther <rguenther@suse.de>
2123 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2124 to print a IDENTIFIER_NODE.
2126 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2127 Joseph Myers <joseph@codesourcery.com>
2129 * c.opt (fbuilding-libgcc): New option.
2130 * c-cppbuiltin.c (c_cpp_builtins): Define
2131 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2133 2011-06-07 Jason Merrill <jason@redhat.com>
2135 * c-common.c (max_tinst_depth): Lower default to 900.
2137 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2139 2011-06-07 Richard Guenther <rguenther@suse.de>
2141 * c-common.c (c_common_nodes_and_builtins): Do not set
2142 size_type_node or call set_sizetype.
2144 2011-06-07 Dodji Seketeli <dodji@redhat.com>
2147 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
2148 type when using pointer comparison to compare types.
2150 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2152 * c.opt: Add -Wdelete-non-virtual-dtor.
2153 * c-opts.c (c_common_handle_option): Include it in -Wall.
2155 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2160 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2162 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2165 2011-05-27 Jakub Jelinek <jakub@redhat.com>
2168 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2169 C++ don't call c_common_truthvalue_conversion on void type arms.
2171 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2173 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2174 (stmt_list_stack): Define.
2175 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2176 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2178 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2180 * c-common.c (warning_candidate_p): Check for BLOCKs.
2182 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2184 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2187 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2189 * c-common.c (def_fn_type): Remove extra va_end.
2191 2011-05-23 Jason Merrill <jason@redhat.com>
2194 * c-common.c (c_common_get_narrower): New.
2195 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2197 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2199 * c-common.h (check_function_arguments): Tweak prototype of
2200 check_function_arguments.
2201 * c-common.c (check_function_arguments): Likewise. Adjust
2202 calls to check_function_nonnull, check_function_format, and
2203 check_function_sentinel.
2204 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2205 separate attributes and typelist arguments. Use
2206 FOREACH_FUNCTION_ARGS to iterate over argument types.
2208 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2210 * c-common.c (c_common_reswords): Reorder.
2211 * c-common.h (rid): Likewise.
2213 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2215 * c-common.c (def_fn_type): Don't call build_function_type, call
2216 build_function_type_array or build_varargs_function_type_array
2218 (c_common_nodes_and_builtins): Likewise.
2220 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2222 * c-common.c (c_add_case_label): Omit the loc argument to
2224 * c-common.h (build_case_label): Remove.
2225 * c-semantics.c (build_case_label): Remove.
2227 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2229 * c-objc.h (objc_start_method_definition): Update prototype.
2230 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2232 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2234 * c-common.c (check_main_parameter_types): Reindent. Don't use
2235 TYPE_ARG_TYPES directly.
2236 (handle_nonnull_attribute): Likewise.
2237 (sync_resolve_params): Likewise.
2238 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2239 to check_format_string.
2240 (handle_format_attribute): Likewise.
2241 (check_format_string): Take a function type to examine instead of
2242 a type list. Use a function_arg_iterator to step through argument
2245 2011-05-04 Richard Guenther <rguenther@suse.de>
2247 * c-common.c (fix_string_type): Use size_int for index type bounds.
2248 (start_fname_decls): Do not pass NULL to build_int_cst.
2249 (c_init_attributes): Likewise.
2250 * c-lex.c (c_lex_with_flags): Likewise.
2252 2011-04-27 Jason Merrill <jason@redhat.com>
2254 * c-common.c (make_tree_vector_from_list): New.
2255 * c-common.h: Declare it.
2257 2011-04-26 Richard Guenther <rguenther@suse.de>
2259 PR preprocessor/48248
2260 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2261 for output size with -P.
2263 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2265 * c-common.c (struct c_common_resword): Add __underlying_type.
2266 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2268 2011-04-20 Jim Meyering <meyering@redhat.com>
2270 * c-format.c (init_dollar_format_checking): Remove useless
2273 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2275 * c-objc.h (objc_get_interface_ivars): Removed.
2276 (objc_detect_field_duplicates): New.
2277 * stub-objc.c: Likewise.
2279 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2281 * stub-objc.c (objc_declare_protocols): Renamed to
2282 objc_declare_protocol.
2283 * c-objc.h: Likewise.
2285 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2287 * stub-objc.c (objc_declare_class): Updated argument name.
2289 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2291 * c-common.h (c_common_init_ts): Declare.
2292 * c-common.c (c_common_init_ts): Define.
2294 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2296 * c-objc.h (objc_build_message_expr): Updated prototype.
2297 * stub-objc.c (objc_build_message_expr): Likewise.
2299 2011-04-12 Martin Jambor <mjambor@suse.cz>
2301 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2304 2011-04-11 Richard Guenther <rguenther@suse.de>
2306 * c-common.c (complete_array_type): Build a range type of
2309 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2311 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2312 (handle_type_generic_attribute): Likewise.
2314 2011-04-07 Jason Merrill <jason@redhat.com>
2317 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2318 conversion from C++0x scoped enum.
2320 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2322 * c-target-def.h: New file.
2323 * c-target.def: New file.
2324 * c-target.h: New file.
2325 * c-common.c (targetcm): Don't define here.
2326 * c-common.h (default_handle_c_option): Declare.
2327 * c-format.c: Include c-target.h instead of target.h.
2328 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2330 (default_handle_c_option): Move from targhooks.c.
2332 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2334 PR preprocessor/48248
2335 * c-ppoutput.c (print): Add src_file field.
2336 (init_pp_output): Initialize it.
2337 (maybe_print_line): Don't optimize by adding up to 8 newlines
2338 if map->to_file and print.src_file are different file.
2339 (print_line): Update print.src_file.
2341 2011-03-25 Kai Tietz <ktietz@redhat.com>
2343 * c-ada-spec.c (compare_comment): Use filename_cmp
2344 instead of strcmp for filename.
2346 2011-03-25 Jeff Law <law@redhat.com>
2348 * c-family/c-common.c (def_fn_type): Add missing va_end.
2350 2011-03-25 Jason Merrill <jason@redhat.com>
2352 * c.opt: Add -std=c++03.
2354 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2356 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2358 2011-03-17 Kai Tietz
2361 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2362 Display allowed attributes for function pointer types.
2363 (pp_c_attributes_display): New function to display
2364 attributes having affects_type_identity flag set to true.
2365 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2367 * c-common.c (c_common_attribute_table):
2369 (c_common_format_attribute_table): Likewise.
2371 2011-03-18 Jason Merrill <jason@redhat.com>
2373 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2374 * c-common.h: Don't declare it here.
2375 * c-common.c: Or define it here.
2376 * c-opts.c (c_common_handle_option): Or set it here.
2379 * c-common.c (handle_transparent_union_attribute): Don't
2380 make a duplicate type in C++.
2382 2011-03-15 Jason Merrill <jason@redhat.com>
2384 * c-common.c (max_constexpr_depth): New.
2385 * c-common.h: Declare it.
2386 * c-opts.c (c_common_handle_option): Set it.
2387 * c.opt (fconstexpr-depth): New option.
2389 2011-03-11 Jason Merrill <jason@redhat.com>
2391 * c-common.c (attribute_takes_identifier_p): Add missing const.
2394 * c-common.c (attribute_takes_identifier_p): Assume that an
2395 unknown attribute takes an identifier.
2397 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2400 * c-common.c (c_type_hash): Call list_length instead of iterating
2401 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2403 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2406 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2408 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2410 * c.opt (fobjc-abi-version=) New.
2411 (fobjc-nilcheck): New.
2413 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2416 * c-common.h (keyword_is_decl_specifier): Declare.
2417 * c-common.c (keyword_is_decl_specifier): Define.
2418 (keyword_is_function_specifier): New function.
2420 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2423 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2424 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2427 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2429 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2431 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2434 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2435 after init_c_lex if pch_file is set.
2437 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2440 * c.opt (-fkeep-inline-dllexport): New switch.
2442 2011-01-12 Richard Guenther <rguenther@suse.de>
2445 * c-common.c (handle_weak_attribute): Warn instead of error
2446 on declaring an inline function weak.
2448 2011-01-05 Tom Tromey <tromey@redhat.com>
2450 * c-common.h (lvalue_error): Update.
2451 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2454 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
2457 * c-objc.h (objc_finish_message_expr): Added argument to
2460 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2462 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2465 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2467 * c-objc.h (objc_maybe_warn_exceptions): New.
2468 * stub-objc.c (objc_maybe_warn_exceptions): New.
2470 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2472 * c-common.h (readonly_error): Declare.
2473 * c-common.c (readonly_error): Define.
2475 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2477 * c-common.h (invalid_indirection_error): Declare.
2478 * c-common.c (invalid_indirection_error): Define.
2480 2010-12-03 Richard Guenther <rguenther@suse.de>
2483 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2484 (pp_c_unary_expression): Likewise.
2485 (pp_c_expression): Likewise.
2487 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2489 * c-common.h (objc_finish_function): New.
2490 (objc_non_volatilized_type): Removed.
2491 (objc_type_quals_match): Removed.
2492 * stub-objc.c (objc_finish_function): New.
2493 (objc_non_volatilized_type): Removed.
2494 (objc_type_quals_match): Removed.
2496 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2498 * c-common.h (parse_optimize_options): Declare.
2499 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2500 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2502 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2504 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2506 * c-pch.c (O_BINARY): Don't define here.
2507 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2509 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2511 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2512 targetm.except_unwind_info.
2514 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2516 * c-opts.c (c_common_handle_option): Pass location to
2517 set_struct_debug_option.
2519 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2521 * c-common.c (visibility_options): Move from ../opts.c.
2522 * c-common.h (struct visibility_flags, visibility_options):
2524 * c-opts.c (finish_options): Rename to c_finish_options.
2525 (c_common_init): Update call to finish_options.
2527 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2530 * c-lex.c (lex_string): Check that each string in an Objective-C
2531 string concat sequence starts with either one or zero '@', and
2532 that there are no spurious '@' signs at the end.
2534 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2536 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2537 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2538 HANDLE_PRAGMA_VISIBILITY.
2539 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2540 HANDLE_PRAGMA_VISIBILITY): Don't define.
2541 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2543 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2548 * c-common.h (keyword_begins_type_specifier): Declare.
2549 (keyword_is_storage_class_specifier): Declare.
2550 (keyword_is_type_qualifier): Declare.
2551 * c-common.c (keyword_begins_type_specifier): New function.
2552 (keyword_is_storage_class_specifier): New function.
2553 (keyword_is_type_qualifier): Declare.
2555 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2558 * c-common.c (in_late_binary_op): Define.
2559 (c_common_truthvalue_conversion): Check in_late_binary_op before
2560 calling c_save_expr.
2561 * c-common.h (in_late_binary_op): Declare.
2563 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2565 * c-opts.c (c_common_handle_option): Update calls to
2566 set_struct_debug_option.
2568 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2570 * c-common.h (objc_declare_protocols): Added additional argument.
2571 * stub-objc.c (objc_declare_protocol): Same change.
2573 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2576 * c-common.h (build_real_imag_expr): Declare.
2577 * c-semantics.c (build_real_imag_expr): Define.
2579 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2581 * c-opts.c (c_common_parse_file): Take no arguments.
2582 * c-common.h (c_common_parse_file): Update prototype.
2584 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2587 * c-common.c (warning_candidate_p): Don't track non-const calls
2590 2010-11-15 Ian Lance Taylor <iant@google.com>
2592 * c-lex.c (init_c_lex): Set macro debug callbacks if
2593 flag_dump_go_spec is set.
2595 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2597 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2598 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2600 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2602 PR preprocessor/45038
2603 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2606 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2608 * c-common.h (c_family_lang_mask): Declare.
2609 * c-opts.c (c_family_lang_mask): Make extern.
2610 * c-pragma.c (handle_pragma_diagnostic): Use
2611 control_warning_option.
2613 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2615 * c-common.c (parse_optimize_options): Update call to
2617 * c-common.h (c_common_handle_option): Update prototype.
2618 * c-opts.c (c_common_handle_option): Take location_t parameter and
2619 pass it to other functions.
2621 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2623 * c-opts.c (warning_as_error_callback): Remove.
2624 (c_common_initialize_diagnostics): Don't call
2625 register_warning_as_error_callback.
2626 (c_common_handle_option): Handle -Werror=normalized= here.
2628 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2630 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2632 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2634 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2635 Remove trailing '.' from diagnostics.
2636 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2638 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2640 * c-common.c (parse_optimize_options): Pass global_dc to
2642 * c-opts.c (c_common_handle_option): Pass &global_options to
2643 set_Wstrict_aliasing.
2644 * c.opt (v): Don't mark Common or document here.
2646 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2649 * c-format.c (format_type): New type gcc_objc_string_format_type.
2650 (valid_stringptr_type_p): New.
2651 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2652 (check_format_string): Pass expected type, use
2653 valid_stringptr_type_p (), check that the format string types are
2654 consistent with the format specification.
2655 (decode_format_attr): Warn if NSString is used outside objective-c.
2656 (format_types_orig): Add NSString.
2658 (format_flags): New.
2659 (check_format_arg): Handle format strings requiring an external parser.
2660 first_target_format_type: New variable.
2661 (handle_format_attribute): Set up first_target_format_type, pass the
2662 expected format arg string type to check_format_string().
2663 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2664 * stub-objc.c (objc_string_ref_type_p): New.
2665 (objc_check_format_arg): New.
2667 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2669 Fixed using the Objective-C 2.0 dot-syntax with class names.
2670 * c-common.h (objc_build_class_component_ref): New.
2671 * stub-objc.c (objc_build_class_component_ref): New.
2673 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2675 * c.opt (Wproperty-assign-default): New option.
2677 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2679 Implemented -fobjc-std=objc1 flag.
2680 * c.opt (fobjc-std=objc1): New option.
2682 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2684 Implemented format and noreturn attributes for Objective-C methods.
2685 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2686 attribute for Objective-C methods.
2688 2010-10-31 Jason Merrill <jason@redhat.com>
2690 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2693 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2695 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2696 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2697 (objc_add_property_declaration): Removed arguments for copies and
2699 (objc_build_getter_call): Renamed to
2700 objc_maybe_build_component_ref.
2701 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2702 (objc_is_property_ref): New.
2703 * c-common.c (c_common_reswords): Removed copies and ivar.
2704 * stub-objc.c (objc_add_property_declaration): Removed arguments
2705 for copies and ivar.
2706 (objc_build_getter_call): Renamed to
2707 objc_maybe_build_component_ref.
2708 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2709 (objc_is_property_ref): New.
2711 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2712 Matthew Gingell <gingell@adacore.com>
2714 * c-ada-spec.c (separate_class_package): New function.
2715 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2716 name of their enclosing package.
2717 (print_ada_declaration): Use separate_class_package.
2719 2010-10-27 Jason Merrill <jason@redhat.com>
2721 * c-common.c (c_common_reswords): Add __is_literal_type.
2722 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2724 * c-common.c (check_case_value): Remove special C++ code.
2726 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2728 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2729 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2731 (objc_add_property_declaration): Added additional arguments.
2732 (objc_property_attribute_kind): Removed.
2733 (objc_set_property_attr): Removed.
2734 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2736 * stub-objc.c (objc_add_property_declaration): Added additional
2738 (objc_set_property_attr): Removed.
2740 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2742 * c-common.h (objc_add_property_variable): Renamed to
2743 objc_add_property_declaration. Added location argument.
2744 * stub-objc.c (objc_add_property_variable): Same change.
2746 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2748 * c-common.h (objc_maybe_printable_name): New.
2749 * stub-objc.c (objc_maybe_printable_name): New.
2751 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2752 Andrew Pinski <pinskia@gmail.com>
2754 * c-common.h (c_common_mark_addressable_vec): Declare.
2755 * c-common.c (c_common_mark_addressable_vec): New function.
2757 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2759 * c-common.h (objc_set_method_type): Removed.
2760 (objc_add_method_declaration): Added boolean argument.
2761 (objc_start_method_definition): Same change.
2762 (objc_build_method_signature): Same change.
2763 * stub-objc.c (objc_set_method_type): Removed.
2764 (objc_add_method_declaration): Added boolean argument.
2765 (objc_start_method_definition): Same change.
2766 (objc_build_method_signature): Same change.
2768 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2770 * c-common.h (finish_file): Removed.
2771 (objc_write_global_declarations): New.
2772 * c-opts.c (c_common_parse_file): Do not call finish_file.
2773 * stub-objc.c (objc_write_global_declarations): New.
2775 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2777 Implemented parsing @synthesize and @dynamic for
2778 Objective-C/Objective-C++.
2779 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2780 (objc_add_synthesize_declaration): New.
2781 (objc_add_dynamic_declaration): New.
2782 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2783 * stub-objc.c (objc_add_synthesize_declaration): New.
2784 (objc_add_dynamic_declaration): New.
2786 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2789 * c-cppbuiltin.c (mode_has_fma): Move function here from
2790 builtins.c. Don't use the fma optab, instead just use the
2791 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2794 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2796 Merge from 'apple/trunk' branch on FSF servers.
2798 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2801 * c-common.h (objc_non_volatilized_type): New declaration
2802 * stub-objc.c (objc_non_volatilized_type): New stub.
2804 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2806 Merge from 'apple/trunk' branch on FSF servers.
2808 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2811 * c-common.h (objc_diagnose_private_ivar): New decl.
2812 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2814 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2816 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2817 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2818 (objc_ivar_visibility_kind): New enum.
2819 (objc_set_visibility): Adjust prototype to use visibility enum.
2820 * stub-objc.c (objc_set_visibility): Adjust stub to use
2823 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2825 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2826 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2827 has the appropriate fma builtins.
2828 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2830 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2832 merge from FSF apple 'trunk' branch.
2833 2006 Fariborz Jahanian <fjahanian@apple.com>
2835 Radars 4436866, 4505126, 4506903, 4517826
2836 * c-common.c (c_common_resword): Define @property and its attributes.
2837 * c-common.h: Define property attribute enum entries.
2838 (OBJC_IS_PATTR_KEYWORD): New.
2839 (objc_property_attribute_kind): New enum.
2840 Declare objc_set_property_attr (), objc_add_property_variable (),
2841 objc_build_getter_call () and objc_build_setter_call ().
2842 * stub-objc.c (objc_set_property_attr): New stub.
2843 (objc_add_property_variable): Likewise.
2844 (objc_build_getter_call): Likewise.
2845 (objc_build_setter_call) Likewise.
2847 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2849 merge from FSF apple 'trunk' branch.
2850 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2852 Radar 3803157 (method attributes)
2853 * c-common.c (handle_deprecated_attribute): Recognize
2854 objc methods as valid declarations.
2855 * c-common.h: Declare objc_method_decl ().
2856 * stub-objc.c (objc_method_decl): New stub.
2858 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2860 * c-common.c (parse_optimize_options): Call
2861 decode_cmdline_options_to_array_default_mask before
2862 decode_options. Update arguments to decode_options.
2863 * c-common.h (c_common_init_options_struct): Declare.
2864 * c-opts.c (c_common_init_options_struct): New. Split out from
2865 c_common_init_options.
2867 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2869 Implemented fast enumeration for Objective-C.
2870 * c-common.h (objc_finish_foreach_loop): New.
2871 * stub-objc.c (objc_finish_foreach_loop): New.
2873 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2875 * c-common.h (struct diagnostic_context): Don't declare here.
2876 (c_common_initialize_diagnostics): Declare using
2877 diagnostic_context typedef.
2878 * c-opts.c (c_common_handle_option): Pass global_dc to
2879 handle_generated_option.
2881 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2883 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2884 handle_generated_option.
2886 2010-10-03 Ian Lance Taylor <iant@google.com>
2888 * c.opt (-fplan9-extensions): New option.
2890 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2892 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2894 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2895 of duplicating code.
2897 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2899 * c-common.c: Add two new entries for @optional
2900 and @required keywords.
2902 merge from FSF 'apple/trunk' branch.
2903 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2906 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2907 objective-c keywords.
2908 (objc_set_method_opt): New declaration.
2909 * stub-objc.c (objc_set_method_opt): New stub.
2911 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2913 * c-common.c (handle_optimize_attribute): Pass &global_options to
2914 cl_optimization_save and cl_optimization_restore.
2915 * c-opts.c (c_common_handle_option): Pass &global_options to
2916 handle_generated_option.
2917 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2918 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2919 &global_options to cl_optimization_restore.
2921 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2923 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2924 Objective-C/Objective-C++ keywords.
2926 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2928 Merge from 'apple/trunk' branch on FSF servers.
2930 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2933 * c-common.h (objc_check_global_decl): New declaration.
2934 * stub-objc.c (objc_check_global_decl): New stub.
2936 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2938 * c.opt: Don't use VarExists.
2940 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2942 * c-common.c (c_cpp_error): Update names of diagnostic_context
2944 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2945 cl_optimization members.
2946 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2947 sanitize_cpp_opts, finish_options): Update names of cpp_options
2950 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2952 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2953 (objc_is_reserved_word): Removed.
2954 * c-common.c: Updated comments.
2955 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2956 objc_is_reserved_word.
2957 * stub-objc.c (objc_is_reserved_word): Removed.
2959 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2961 * c-common.h (objc_add_method_declaration): Adjust prototype to
2963 (objc_start_method_definition): Likewise.
2964 (objc_build_keyword_decl): Likewise.
2965 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2966 (objc_start_method_definition): Likewise.
2967 (objc_build_keyword_decl): Likewise.
2969 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2971 * c-common.h (objc_start_class_interface): Adjust prototype.
2972 (objc_start_category_interface): Likewise.
2973 (objc_start_protocol): Likewise.
2974 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2975 (objc_start_class_interface): Likewise.
2976 (objc_start_category_interface): Likewise.
2978 2010-09-27 Ian Lance Taylor <iant@google.com>
2980 * c-common.c (c_common_attribute_table): Add no_split_stack.
2981 (handle_no_split_stack_attribute): New static function.
2983 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2985 Merge from 'apple/trunk' branch on FSF servers.
2987 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2990 * c-common.h (objc_have_common_type): New declaration.
2991 * stub-objc.c (objc_have_common_type): New stub.
2993 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2996 * c-common.h (objc_common_type): New prototype.
2997 * stub-objc.c (objc_common_type): New stub.
2999 2010-09-24 Jan Hubicka <jh@suse.cz>
3001 * c-common.c (handle_leaf_attribute): New function.
3002 (struct attribute_spec c_common_att): Add leaf.
3004 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3006 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3007 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3008 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3009 -include-barrier, -include-directory, -include-directory=,
3010 -include-directory-after, -include-directory-after=,
3011 -include-prefix, -include-prefix=, -include-with-prefix,
3012 -include-with-prefix=, -include-with-prefix-after,
3013 -include-with-prefix-after=, -include-with-prefix-before,
3014 -include-with-prefix-before=, -no-integrated-cpp,
3015 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3016 -output=, -pedantic, -pedantic-errors, -preprocess,
3017 -print-missing-file-dependencies, -trace-includes, -traditional,
3018 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3019 -user-dependencies, -verbose, -write-dependencies,
3020 -write-user-dependencies, no-integrated-cpp, traditional): New.
3022 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3025 * c-common.h (objc_start_method_definition): Return bool instead
3027 * stub-objc.c (objc_start_method_definition): Return bool instead
3030 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3033 * c-common.h (objc_get_interface_ivars): New declaration.
3034 * stub-objc.c (objc_get_interface_ivars): New stub.
3036 2010-09-15 Ian Lance Taylor <iant@google.com>
3038 * c-common.c (parse_optimize_options): Do not capitalize warning
3039 messages. Remove period at end of warning message.
3041 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3043 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3044 (handle_alias_attribute): ... here.
3045 (handle_ifunc_attribute): New.
3047 2010-09-06 Mark Mitchell <mark@codesourcery.com>
3049 * c-common.h (do_warn_double_promotion): Declare.
3050 * c-common.c (do_warn_double_promotion): Define.
3052 2010-09-05 Mark Mitchell <mark@codesourcery.com>
3054 * c.opt (Wdouble-promotion): New.
3056 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3058 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3059 fvtable-thunks, fxref): Mark no longer supported in help text.
3061 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3063 * c.opt (Wimport, fall-virtual, falt-external-templates,
3064 fdefault-inline, fenum-int-equiv, fexternal-templates,
3065 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3066 fname-mangling-version-, fnew-abi, fnonnull-objects,
3067 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3068 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3070 (fhandle-exceptions): Mark with Alias and Warn.
3071 * c-opts.c (c_common_handle_option): Don't handle options marked
3074 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3076 * c.opt (Wcomments, Werror-implicit-function-declaration,
3077 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3078 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3080 * c-common.c (option_codes): Use OPT_Wcomment instead of
3082 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3083 Don't handle options marked as aliases.
3085 2010-08-25 Richard Guenther <rguenther@suse.de>
3087 * c-common.c (c_common_get_alias_set): Remove special
3088 handling for pointers.
3090 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3092 * c-common.c: Use FOR_EACH_VEC_ELT.
3093 * c-gimplify.c: Likewise.
3094 * c-pragma.c: Likewise.
3096 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3098 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3100 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3102 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3103 instead of OPT_MDX and OPT_MMDX.
3105 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3107 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3109 2010-08-12 Joseph Myers <joseph@codesourcery.com>
3111 * c.opt (MD, MMD): Change to MDX and MMDX.
3112 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3114 2010-08-11 Joseph Myers <joseph@codesourcery.com>
3116 * c-opts.c (c_common_handle_option): Call handle_generated_option
3117 instead of handle_option.
3119 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3121 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3122 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3124 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3126 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3127 (pending_redefine_extname): Change type to a VEC.
3128 (add_to_renaming_pragma_list): Update for new type of
3129 pending_redefine_extname.
3130 (maybe_apply_renaming_pragma): Likewise.
3132 2010-08-04 Arnaud Charlet <charlet@adacore.com>
3134 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3136 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3137 decide whether a type has already been declared/seen.
3138 Do not go to the original type.
3139 (dump_nested_types): New parameter forward.
3140 Generate forward declaration if needed and mark type as visited.
3141 (print_ada_declaration): Call dump_nested_types if not already done.
3142 Mark types as visited.
3144 2010-08-03 Joseph Myers <joseph@codesourcery.com>
3146 * c.opt (-print-pch-checksum): Remove option.
3147 * c-opts.c (c_common_handle_option): Don't handle
3148 OPT_print_pch_checksum.
3150 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3152 * c-common.h (c_common_handle_option): Update prototype and return
3154 * c-opts.c (c_common_handle_option): Update prototype and return
3155 value type. Update calls to handle_option and
3156 enable_warning_as_error.
3158 2010-07-27 Jakub Jelinek <jakub@redhat.com>
3161 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3163 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3165 * c-common.h (c_common_missing_argument): Remove.
3166 * c-opts.c (c_common_missing_argument): Remove.
3167 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3168 idirafter, imacros, include, isysroot, isystem, iquote): Add
3170 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3172 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3174 * c-common.h (c_common_option_lang_mask,
3175 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3177 (c_common_init_options): Update prototype.
3178 * c-opts.c (c_common_option_lang_mask): New.
3179 (c_common_initialize_diagnostics): Split out of
3180 c_common_init_options.
3181 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3183 (c_common_init_options): Update prototype. Use decoded options in
3184 search for -lang-asm.
3186 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3188 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3189 * c-format.c: Likewise.
3191 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3193 * c-common.h: Include diagnostic-core.h. Error if already
3195 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3197 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3199 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3200 Do not include expr.h
3201 (vector_mode_valid_p): Move here.
3203 2010-06-21 DJ Delorie <dj@redhat.com>
3205 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3206 allow these pragmas anywhere.
3208 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3211 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3212 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3213 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3214 ggc_strdup instead of xstrdup.
3216 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3218 * c-cppbuiltin.c: Include cpp-id-data.h.
3219 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3220 (lazy_hex_fp_value): New function.
3221 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3223 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3225 * c-gimplify.c: Do not include tree-flow.h
3227 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3230 * c-common.c: Rename targetm member:
3231 targetm.enum_va_list -> targetm.enum_va_list_p
3233 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3235 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3237 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3239 * c-cppbuiltin.c: Do not include except.h.
3241 2010-06-24 Andi Kleen <ak@linux.intel.com>
3243 * c-common.c (warn_for_omitted_condop): New.
3244 * c-common.h (warn_for_omitted_condop): Add prototype.
3246 2010-06-21 Joseph Myers <joseph@codesourcery.com>
3248 * c.opt (lang-objc): Remove.
3249 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3251 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3253 * c-opts.c: Include "tm_p.h".
3255 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3257 * c-common.c (parse_optimize_options): Update call to
3260 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3262 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3263 new type of types_used_by_cur_var_decl.
3265 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3268 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3269 for C++ standard compliance.
3271 2010-06-16 Jason Merrill <jason@redhat.com>
3273 * c.opt: Add -Wnoexcept.
3275 2010-06-16 Richard Guenther <rguenther@suse.de>
3278 * c-common.c (c_common_truthvalue_conversion): Remove
3279 premature and wrong optimization concering ADDR_EXPRs.
3281 2010-06-15 Arnaud Charlet <charlet@adacore.com>
3283 * c-ada-spec.c (dump_sloc): Remove column info.
3284 (is_simple_enum): New function.
3285 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3286 enum types when relevant.
3288 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3290 * c-common.c (conversion_warning): Warn at expression
3293 2010-06-10 Joseph Myers <joseph@codesourcery.com>
3295 * c-opts.c (c_common_handle_option): Don't handle
3298 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3300 * c-pragma.c (push_alignment): Use typed GC allocation.
3301 (handle_pragma_push_options): Likewise.
3303 * c-common.c (parse_optimize_options): Likewise.
3305 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3308 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3310 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3311 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3312 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3313 flag_signed_bitfields, warn_strict_null_sentinel,
3314 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3315 flag_gen_declaration, flag_no_gnu_keywords,
3316 flag_implement_inlines, flag_implicit_templates,
3317 flag_implicit_inline_templates, flag_optional_diags,
3318 flag_elide_constructors, flag_default_inline, flag_rtti,
3319 flag_conserve_space, flag_access_control, flag_check_new,
3320 flag_new_for_scope, flag_weak, flag_working_directory,
3321 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3322 flag_enforce_eh_specs, flag_threadsafe_statics,
3323 flag_pretty_templates): Remove.
3324 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3325 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3326 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3327 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3328 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3329 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3330 flag_no_gnu_keywords, flag_implement_inlines,
3331 flag_implicit_templates, flag_implicit_inline_templates,
3332 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3333 flag_rtti, flag_conserve_space, flag_access_control,
3334 flag_check_new, flag_new_for_scope, flag_weak,
3335 flag_working_directory, flag_use_cxa_atexit,
3336 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3337 flag_threadsafe_statics, flag_pretty_templates,
3338 warn_strict_null_sentinel): Remove.
3339 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3340 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3341 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3342 fimplicit-inline-templates, fimplicit-templates,
3343 flax-vector-conversions, fms-extensions, fnil-receivers,
3344 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3345 frtti, fshort-double, fshort-enums, fshort-wchar,
3346 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3347 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3348 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3349 gen-decls, undef): Use Var.
3350 (fdefault-inline, foptional-diags): Document as doing nothing.
3351 * c-opts.c (c_common_handle_option): Remove cases for options now
3352 using Var. Mark ignored options as such.
3354 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3356 * c-common.c: Moved to here from parent directory.
3357 * c-common.def: Likewise.
3358 * c-common.h: Likewise.
3359 * c-cppbuiltin.c: Likewise.
3360 * c-dump.c: Likewise.
3361 * c-format.c: Likewise.
3362 * c-format.h : Likewise.
3363 * c-gimplify.c: Likewise.
3364 * c-lex.c: Likewise.
3365 * c-omp.c: Likewise.
3367 * c-opts.c: Likewise.
3368 * c-pch.c: Likewise.
3369 * c-ppoutput.c: Likewise.
3370 * c-pragma.c: Likewise.
3371 * c-pragma.h: Likewise.
3372 * c-pretty-print.c: Likewise.
3373 * c-pretty-print.h: Likewise.
3374 * c-semantics.c: Likewise.
3375 * stub-objc.c: Likewise.
3377 * c-common.c: Include gt-c-family-c-common.h.
3378 * c-pragma.c: Include gt-c-family-c-pragma.h.
3380 Copyright (C) 2010-2014 Free Software Foundation, Inc.
3382 Copying and distribution of this file, with or without modification,
3383 are permitted in any medium without royalty provided the copyright
3384 notice and this notice are preserved.