1 2014-04-11 Jason Merrill <jason@redhat.com>
4 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
5 default_conversion for an array argument.
7 2014-04-08 Marek Polacek <polacek@redhat.com>
10 * c-ubsan.c: Include asan.h.
11 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
13 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
15 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
17 2014-04-02 Marek Polacek <polacek@redhat.com>
19 * c-common.h (c_expand_expr): Remove declaration.
21 2014-03-28 Jakub Jelinek <jakub@redhat.com>
24 * c-common.c (add_atomic_size_parameter): When creating new
25 params vector, push the size argument first.
27 2014-03-26 Jakub Jelinek <jakub@redhat.com>
29 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
30 ubsan_instrument_vla, ubsan_instrument_return): Adjust
31 ubsan_create_data callers.
33 2014-03-22 Jakub Jelinek <jakub@redhat.com>
36 * c-opts.c (c_finish_options): Restore cb_file_change call to
39 2014-03-13 Jakub Jelinek <jakub@redhat.com>
42 * c-pragma.c (apply_pragma_weak): Only look at
43 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
44 DECL_ASSEMBLER_NAME_SET_P (decl).
45 (maybe_apply_pending_pragma_weaks): Exit early if
46 vec_safe_is_empty (pending_weaks) rather than only when
48 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
49 set assembler name back to NULL afterwards.
51 2014-03-11 Jason Merrill <jason@redhat.com>
53 * c.opt: Add -std=gnu++14.
55 2014-03-11 Ian Bolton <ian.bolton@arm.com>
57 * c-opts.c (c_common_post_options): Don't override
58 -ffp-contract=fast if unsafe-math-optimizations is on.
60 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
62 * c.opt: Enable LTO FE for fshort-double.
64 2014-03-07 Jason Merrill <jason@redhat.com>
66 * c.opt: Add -std=c++14.
68 2014-03-06 Marek Polacek <polacek@redhat.com>
71 * cilk.c (contains_cilk_spawn_stmt): New function.
72 (contains_cilk_spawn_stmt_walker): Likewise.
73 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
74 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
76 2014-03-03 Jakub Jelinek <jakub@redhat.com>
78 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
79 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
80 even when flag_preprocess_only.
82 2014-02-26 Jason Merrill <jason@redhat.com>
86 * c-common.c (shorten_compare): Don't check
87 c_inhibit_evaluation_warnings.
89 2014-02-19 Jakub Jelinek <jakub@redhat.com>
92 * c-common.c (c_common_nodes_and_builtins): When initializing
93 c_uint{16,32,64}_type_node, also set corresponding
94 uint{16,32,64}_type_node to the same value.
97 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
98 for PRAGMA_IVDEP if flag_preprocess_only.
100 2014-02-12 Jakub Jelinek <jakub@redhat.com>
103 * c-common.c (merge_tlist): If copy is true, call new_tlist,
104 if false, add ADD itself, rather than vice versa.
105 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
106 copy. For SAVE_EXPR, only call merge_tlist once.
108 2014-02-08 Jakub Jelinek <jakub@redhat.com>
111 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
113 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
115 (c_common_attribute_table): Add alloc_align and assume_aligned
118 2014-02-06 Marek Polacek <polacek@redhat.com>
121 * c-common.c (warn_for_sign_compare): Call warning_at with location
124 2014-02-05 Marek Polacek <polacek@redhat.com>
127 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
130 2014-02-04 Marek Polacek <polacek@redhat.com>
133 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
136 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
140 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
141 handle_vector_size_attribute, handle_nonnull_attribute): Call
142 default_conversion on the attribute argument.
143 (handle_nonnull_attribute): Increment the argument number.
145 2014-01-31 Marek Polacek <polacek@redhat.com>
148 * c-common.c (add_atomic_size_parameter): Pass vNULL to
149 build_function_call_vec.
150 (resolve_overloaded_builtin): Likewise.
151 * c-common.h (build_function_call_vec): Adjust declaration.
153 2014-01-30 Marek Polacek <polacek@redhat.com>
156 * c-common.h (unsafe_conversion_p): Adjust declaration.
157 (warnings_for_convert_and_check): Likewise.
158 (convert_and_check): Likewise.
159 * c-common.c (unsafe_conversion_p): Add location parameter. Call
160 expansion_point_location_if_in_system_header on it.
161 (warnings_for_convert_and_check): Add location parameter. Call
162 expansion_point_location_if_in_system_header on it. Use it.
163 (convert_and_check): Add location parameter. Use it.
164 (conversion_warning): Likewise.
165 (c_add_case_label): Adjust convert_and_check calls.
166 (scalar_to_vector): Adjust unsafe_conversion_p calls.
168 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
170 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
172 * c-pragma.c (init_pragma): Likewise.
175 2014-01-23 Marek Polacek <polacek@redhat.com>
178 * c-common.c (shorten_compare): Add location_t parameter.
179 * c-common.h (shorten_binary_op): Adjust declaration.
181 2014-01-23 Marek Polacek <polacek@redhat.com>
184 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
185 * c-common.h: Declare it.
187 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
189 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
190 * c-ada-spec.c (dump_ads): Likewise.
191 (cpp_check): Likewise.
192 (dump_ada_specs): Likewise.
194 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
197 * c-common.c (handle_no_instrument_function_attribute): Allow
198 no_instrument_function attribute in class member
199 definition/declaration.
201 2014-01-15 Jakub Jelinek <jakub@redhat.com>
204 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
205 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
207 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
208 operand a SAVE_EXPR and second MODIFY_EXPR.
210 2014-01-09 Jakub Jelinek <jakub@redhat.com>
213 * c-pch.c (c_common_write_pch): Call
214 prepare_target_option_nodes_for_pch.
216 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
218 Update copyright years
220 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
222 * array-notation-common.c, c-cilkplus.c: Use the standard form for
223 the copyright notice.
225 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
227 * c-ada-spec.c (print_constructor): New function.
228 (print_destructor): Retrieve the origin of the destructor.
229 (print_ada_declaration): Revamp handling of constructors/destructors.
231 2013-12-23 Stuart Hastings <stuart@apple.com>
232 Bill Maddox <maddox@google.com>
233 Jason Merrill <jason@redhat.com>
235 * c.opt: Add -fdeclone-ctor-dtor.
236 * c-opts.c (c_common_post_options): Default to on iff -Os.
238 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
240 * c-common.c (c_common_attribute_table): Added "cilk simd function"
242 * c-pragma.h (enum pragma_cilk_clause): Remove.
243 (enum pragma_omp_clause): Added the following fields:
244 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
245 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
246 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
247 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
248 PRAGMA_CILK_CLAUSE_UNIFORM.
251 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
253 * cilk.c (cilk_outline): Made this function non-static.
254 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
255 (create_cilk_wrapper): Added a new parameter: a function pointer.
256 (c_install_body_w_frame_cleanup): Remove
257 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
258 * c-common.h (cilk_outline): New prototype.
259 (gimplify_cilk_spawn): Removed two parameters.
260 (cilk_install_body_with_frame_cleanup): New prototype.
261 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
262 CILK_SPAWN_STMT case.
264 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
266 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
268 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
269 (int_array_type_node): Remove.
270 * c-common.c (c_common_nodes_and_builtins): Don't build it.
272 2013-12-05 Marek Polacek <polacek@redhat.com>
275 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
276 [ADJUST_FIELD_ALIGN].
278 2013-12-04 Joseph Myers <joseph@codesourcery.com>
281 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
282 and check field alignment if set.
283 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
284 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
286 2013-12-04 Jakub Jelinek <jakub@redhat.com>
287 Marek Polacek <polacek@redhat.com>
289 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
290 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
292 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
295 * cilk.c (gimplify_cilk_spawn): Properly handle function without
298 2013-11-29 Jakub Jelinek <jakub@redhat.com>
301 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
302 goto invalid. If it is error_mark_node, don't issue further
305 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
307 * c.opt (Wopenmp-simd): New.
309 2013-11-22 Jakub Jelinek <jakub@redhat.com>
311 * c-ubsan.h (ubsan_instrument_return): New prototype.
312 * c-ubsan.c (ubsan_instrument_return): New function.
314 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
316 * c-common.c: Add required include files from gimple.h.
317 * c-gimplify.c: Likewise
320 2013-11-22 David Malcolm <dmalcolm@redhat.com>
322 * c-common.c (unsafe_conversion_p): Remove use of
323 EXPR_LOC_OR_HERE macro.
324 (conversion_warning): Likewise.
325 (warnings_for_convert_and_check): Likewise.
326 (warn_for_collisions_1): Likewise.
327 (shorten_compare): Likewise, and remove use of in_system_header
328 macro, using the location from the former.
329 * c-lex.c (dump_one_header): Remove use of input_filename macro.
330 (cb_def_pragma): Remove use of in_system_header macro.
331 (lex_string): Likewise.
332 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
334 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
335 Mike Stump <mikestump@comcast.net>
336 Richard Sandiford <rdsandiford@googlemail.com>
338 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
339 instead of TREE_INT_CST_LOW, in cases where there is a protecting
340 tree_fits_shwi_p or tree_fits_uhwi_p.
341 (dump_generic_ada_node): Likewise.
342 * c-format.c (check_format_arg): Likewise.
343 * c-pretty-print.c (pp_c_integer_constant): Likewise.
345 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
347 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
349 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
352 * c-common.c (unsafe_conversion_p): Make this function
353 return an enumeration with more detail.
354 (conversion_warning): Use the new return type of
355 unsafe_conversion_p to separately warn either about conversions
356 that lower floating point number precision or about the other
357 kinds of conversions.
358 * c-common.h (enum conversion_safety): New enumeration.
359 (unsafe_conversion_p): switching return type to
360 conversion_safety enumeration.
361 * c.opt: Adding new warning -Wfloat-conversion and
362 enabling it with -Wconversion.
364 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
366 * c-opts.c: Include plugin.h.
367 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
369 2013-11-19 Marek Polacek <polacek@redhat.com>
371 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
373 (ubsan_instrument_shift): Likewise.
374 (ubsan_instrument_vla): Likewise.
376 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
378 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
379 cast to unsigned type.
381 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
383 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
385 (complete_array_type): Update comment to refer to tree_to_[su]hwi
386 rather than tree_low_cst.
388 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
390 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
391 tree_to_uhwi throughout.
393 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
395 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
396 tree_low_cst (..., 0) with tree_to_shwi throughout.
398 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
400 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
401 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
403 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
405 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
406 host_integerp (..., 0) with tree_fits_shwi_p throughout.
408 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
410 * c-cilkplus.c: New file.
411 * c-common.c (readonly_error): Add location argument.
412 * c-common.h (readonly_error): Same.
413 (c_finish_cilk_clauses): Protoize.
414 (c_check_cilk_loop): Same.
415 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
416 Do not fail on error_mark_node.
417 Abstract increment canonicalization to here...
418 (c_omp_for_incr_canonicalize_ptr): New.
419 c-pragma.c (init_pragma): Register "simd" pragma.
420 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
421 (enum pragma_cilk_clause): New.
423 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
425 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
426 wchar_type and host_integerp checks.
428 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
430 * c-common.c: Likewise.
431 * c-gimplify.c: Likewise.
434 2013-11-14 Diego Novillo <dnovillo@google.com>
436 * c-common.c: Include fold-const.h.
437 Include stor-layout.h.
439 Include stringpool.h.
443 * c-cppbuiltin.c: Include stor-layout.h.
444 Include stringpool.h.
445 * c-format.c: Include stringpool.h.
446 * c-lex.c: Include stringpool.h.
447 Include stor-layout.h.
448 * c-pragma.c: Include stringpool.h.
451 Include gcc-symtab.h.
452 * c-pretty-print.c: Include stor-layout.h.
454 * cilk.c: Include stringpool.h.
457 2013-11-13 Joseph Myers <joseph@codesourcery.com>
459 * c-common.h (enum rid): Add RID_AUTO_TYPE.
460 * c-common.c (c_common_reswords): Add __auto_type.
461 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
463 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
465 * c-common.c: Include gimplify.h.
466 * c-gimplify.c: Likewise.
468 * c-omp.c: Include gimple-expr.h instead of gimple.h.
469 * c-ubsan.c: Don't include gimple.h.
471 2013-11-12 Joseph Myers <joseph@codesourcery.com>
473 * c-common.c (c_common_reswords): Add _Thread_local.
475 2013-11-09 Joseph Myers <joseph@codesourcery.com>
477 * c-common.c (atomic_size_supported_p): New function.
478 (resolve_overloaded_atomic_exchange)
479 (resolve_overloaded_atomic_compare_exchange)
480 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
481 Use it instead of comparing size with a local list of sizes.
483 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
484 Joseph Myers <joseph@codesourcery.com>
486 * c-common.h (enum rid): Add RID_ATOMIC.
487 * c-common.c (c_common_reswords): Add _Atomic.
488 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
489 (keyword_is_type_qualifier): Accept RID_ATOMIC.
490 * c-format.c (check_format_types): Check for extra _Atomic
491 qualifiers in format argument.
492 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
493 (pp_c_type_qualifier_list): Mention _Atomic in comment.
495 2013-11-06 Tobias Burnus <burnus@net-b.de>
497 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
499 2013-11-06 Joseph Myers <joseph@codesourcery.com>
501 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
503 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
504 to mean lack of IEEE 754 support.
506 2013-11-05 Tobias Burnus <burnus@net-b.de>
508 * c.opt (-Wdate-time): New option
509 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
511 2013-11-05 Joseph Myers <joseph@codesourcery.com>
513 * c-cppbuiltin.c (cpp_iec_559_value): Test
514 flag_excess_precision_cmdline not flag_excess_precision.
516 2013-11-05 Tobias Burnus <burnus@net-b.de>
518 * c.opt (fopenmp-simd): New option.
519 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
520 (omp_pragmas): ... this new struct.
521 (c_pp_lookup_pragma): Also walk omp_pragmas.
522 (init_pragma): Init pragmas for -fopenmp-simd.
524 2013-11-04 Marek Polacek <polacek@redhat.com>
527 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
529 2013-11-04 Joseph Myers <joseph@codesourcery.com>
531 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
533 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
535 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
537 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
538 (dump_ada_specs): Adjust prototype of second callback.
539 * c-ada-spec.c (cpp_check): New global variable.
540 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
541 (print_generic_ada_decl): Likewise.
542 (has_static_fields): Change return type to bool and add guard.
543 (has_nontrivial_methods): New predicate.
544 (is_tagged_type): Change return type to bool.
545 (separate_class_package): Call has_nontrivial_methods.
546 (pp_ada_tree_identifier): Minor tweaks.
547 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
548 (dump_ada_array_domains): Likewise.
549 (dump_ada_array_type): Likewise.
550 (dump_template_types): Remove cpp_check parameter and do not pass it to
551 dump_generic_ada_node.
552 (dump_ada_template): Likewise.
553 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
555 (print_ada_methods): Change return type to integer. Remove cpp_check
556 parameter and do not pass it down.
557 (dump_nested_types): Remove cpp_check parameter and do not pass it to
558 dump_generic_ada_node.
559 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
561 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
562 down. Use has_nontrivial_methods to recognize C++ classes. Use return
563 value of print_ada_methods.
564 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
565 Set cpp_check to it before invoking dump_ada_nodes.
566 (dump_ada_specs): Likewise.
568 2013-11-03 Marek Polacek <polacek@redhat.com>
570 * c-ubsan.c: Don't include hash-table.h.
571 (ubsan_instrument_vla): New function.
572 * c-ubsan.h: Declare it.
574 2013-10-31 David Malcolm <dmalcolm@redhat.com>
576 Automated part of renaming of symtab_node_base to symtab_node.
578 Patch autogenerated by rename_symtab.py from
579 https://github.com/davidmalcolm/gcc-refactoring-scripts
580 revision 58bb219cc090b2f4516a9297d868c245495ee622
582 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
583 symtab_node_base to symtab_node.
585 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
587 Implement C++14 digit separators.
588 * c-lex.c (interpret_float): Remove digit separators from scratch string
589 before building real literal.
591 2013-10-30 Jakub Jelinek <jakub@redhat.com>
593 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
595 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
597 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
599 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
601 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
602 (insert_cilk_frame): New prototype.
603 (cilk_init_builtins): Likewise.
604 (gimplify_cilk_spawn): Likewise.
605 (c_cilk_install_body_w_frame_cleanup): Likewise.
606 (cilk_detect_spawn_and_unwrap): Likewise.
607 (cilk_set_spawn_marker): Likewise.
608 (build_cilk_sync): Likewise.
609 (build_cilk_spawn): Likewise.
612 2013-10-29 David Malcolm <dmalcolm@redhat.com>
614 Patch autogenerated by refactor_symtab.py from
615 https://github.com/davidmalcolm/gcc-refactoring-scripts
616 revision 58bb219cc090b2f4516a9297d868c245495ee622
618 * c-gimplify.c (c_genericize): Update for conversion of symtab types
619 to a true class hierarchy.
620 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
622 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
624 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
626 2013-10-26 Jeff Law <law@redhat.com>
628 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
629 * c-family/c.opt: Ignore and warn for mudflap options.
631 2013-10-24 Tobias Burnus <burnus@net-b.de>
634 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
635 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
637 2013-10-23 Jason Merrill <jason@redhat.com>
639 * c-format.c (gcc_cxxdiag_char_table): Add %X.
641 2013-10-11 Jakub Jelinek <jakub@redhat.com>
643 * c-common.h (omp_clause_mask::operator !=): New method.
644 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
645 instead of if (mask & something) tests everywhere.
647 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
648 201307 instead of 201107.
649 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
650 (c_common_attribute_table): Add "omp declare target" and
651 "omp declare simd" attributes.
652 (handle_omp_declare_target_attribute,
653 handle_omp_declare_simd_attribute): New functions.
654 * c-omp.c: Include c-pragma.h.
655 (c_finish_omp_taskgroup): New function.
656 (c_finish_omp_atomic): Add swapped argument, if true,
657 build the operation first with rhs, lhs arguments and use NOP_EXPR
659 (c_finish_omp_for): Add code argument, pass it down to make_code.
660 (c_omp_split_clauses): New function.
661 (c_split_parallel_clauses): Removed.
662 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
663 c_omp_declare_simd_clauses_to_decls): New functions.
664 * c-common.h (omp_clause_mask): New type.
665 (OMP_CLAUSE_MASK_1): Define.
666 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
667 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
668 omp_clause_mask::operator |, omp_clause_mask::operator &,
669 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
670 omp_clause_mask::operator ==): New methods.
671 (enum c_omp_clause_split): New.
672 (c_finish_omp_taskgroup): New prototype.
673 (c_finish_omp_atomic): Add swapped argument.
674 (c_finish_omp_for): Add code argument.
675 (c_omp_split_clauses): New prototype.
676 (c_split_parallel_clauses): Removed.
677 (c_omp_declare_simd_clauses_to_numbers,
678 c_omp_declare_simd_clauses_to_decls): New prototypes.
679 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
680 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
681 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
682 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
683 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
684 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
685 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
686 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
687 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
688 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
689 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
690 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
691 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
692 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
693 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
694 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
695 PRAGMA_OMP_CLAUSE_UNIFORM.
697 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
699 PR tree-optimization/20318
700 * c-common.c (handle_returns_nonnull_attribute): New function.
701 (c_common_attribute_table): Add returns_nonnull.
703 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
706 * c.opt (fcheck-new): Move to common.opt.
708 2013-09-25 Marek Polacek <polacek@redhat.com>
709 Jakub Jelinek <jakub@redhat.com>
712 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
713 an expression if we can prove it is correct.
714 (ubsan_instrument_division): Likewise. Remove unnecessary
717 2013-09-18 Marek Polacek <polacek@redhat.com>
720 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
722 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
724 2013-09-14 Iain Sandoe <iain@codesourcery.com>
727 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
728 fobjc-gc, freplace-objc-classes): Accept for LTO.
730 2013-09-13 Jacek Caban <jacek@codeweavers.com>
732 * c-target.def: New hook
734 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
737 * c.opt (Wdelete-incomplete): Add.
739 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
741 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
742 (vector_types_compatible_elements_p): New function.
743 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
745 (vector_types_compatible_elements_p): Declare.
747 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
749 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
750 a virtual member function.
751 (pp_simple_type_specifier): Remove.
752 (pp_c_type_specifier): Likewise.
753 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
754 Rename from pp_c_type_specifier. Adjust.
755 (c_pretty_printer::c_pretty_printer): Do not assign to
756 simple_type_specifier.
758 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
760 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
762 (c_pretty_printer::storage_class_specifier): Likewise.
763 (c_pretty_printer::initializer): Likewise.
764 (pp_declaration): Remove.
765 (pp_declaration_specifiers): Likewise.
766 (pp_abstract_declarator): Likewise.
767 (pp_declarator): Likewise.
768 (pp_type_id): Likewise.
769 (pp_statement): Likewise.
770 (pp_constant): Likewise.
771 (pp_id_expression): Likewise.
772 (pp_primary_expression): Likewise.
773 (pp_unary_expression): Likewise.
774 (pp_multiplicative_expression): Likewise.
775 (pp_conditional_expression): Likewise.
776 (pp_assignment_expression): Likewise.
777 (pp_expression): Likewise.
778 (pp_c_type_id): Likewise.
779 (pp_c_storage_class_specifier): Likewise.
780 * c-pretty-print.c (pp_c_type_cast): Tidy.
781 (pp_c_pointer): Likewise.
782 (pp_c_type_specifier): Likewise.
783 (pp_c_parameter_type_list): Likewise.
784 (pp_c_function_definition): Likewise.
785 (pp_c_init_declarator): Likewise.
786 (pp_c_initializer_list): Likewise.
787 (pp_c_constructor_elts): Likewise.
788 (c_pretty_printer::direct_abstract_declarator): Likewise.
789 (c_pretty_printer::declaration_specifiers): Likewise.
790 (c_pretty_printer::primary_expression): Likewise.
791 (c_pretty_printer::postfix_expression): Likewise.
792 (c_pretty_printer::type_id): Rename from pp_c_type_id.
793 (c_pretty_printer::storage_class_specifier): Rename from
794 pp_c_storage_class_specifier.
795 (c_pretty_printer::initializer): Rename from pp_c_initializer.
796 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
797 storage_class_specifier, initializer, offset_list, flags.
799 2013-08-30 Marek Polacek <polacek@redhat.com>
801 * c-ubsan.c: New file.
802 * c-ubsan.h: New file.
804 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
806 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
808 (c_pretty_printer::declaration_specifiers): Likewise.
809 (c_pretty_printer::declarator): Likewise.
810 (c_pretty_printer::abstract_declarator): Likewise.
811 (c_pretty_printer::direct_abstract_declarator): Likewise.
812 (c_pretty_printer::direct_declarator): Likewise.
813 (c_pretty_printer::function_specifier): Likewise.
814 (pp_declaration): Adjust.
815 (pp_declaration_specifiers): Likewise.
816 (pp_abstract_declarator): Likewise.
817 (pp_direct_declarator): Likewise.
818 (pp_function_specifier): Likewise.
819 (pp_direct_abstract_declarator): Remove as unused.
820 (pp_c_declaration): Remove.
821 (pp_c_declaration_specifiers): Likewise.
822 (pp_c_declarator): Likewise.
823 (pp_c_direct_declarator): Likewise.
824 (pp_c_function_specifier): Likewise.
825 (pp_c_direct_abstract_declarator): Likewise.
826 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
827 from pp_c_abstract_declarator. Adjust.
828 (c_pretty_printer::direct_abstract_declarator): Rename from
829 pp_c_direct_abstract_declarator. Adjust.
830 (c_pretty_printer::function_specifier): Rename from
831 pp_c_function_specifier. Adjust.
832 (c_pretty_printer::declaration_specifiers): Rename from
833 pp_c_declaration_specifiers. Adjust.
834 (c_pretty_printer::direct_declarator): Rename from
835 pp_c_direct_declarator. Adjust.
836 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
837 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
838 (c_pretty_printer::c_pretty_printer): Do not assign to
839 declaration, declaration_specifiers, declarator,
840 direct_declarator, direct_abstract_declarator, function_specifier.
842 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
844 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
845 virtual member function.
846 (c_pretty_printer::multiplicative_expression): Likewise.
847 (c_pretty_printer::conditional_expression): Likewise.
848 (c_pretty_printer::assignment_expression): Likewise.
849 (c_pretty_printer::expression): Likewise.
850 (pp_unary_expression): Adjust.
851 (pp_multiplicative_expression): Likewise.
852 (pp_assignment_expression): Likewise.
853 (pp_conditional_expression): Likewise.
854 (pp_expression): Likewise.
855 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
856 from pp_c_unary_expression. Adjust.
857 (c_pretty_printer::multiplicative_expression): Rename from
858 pp_c_multiplicative_expression. Adjust.
859 (c_pretty_printer::conditional_expression): Rename from
860 pp_c_conditional_expression. Adjust.
861 (c_pretty_printer::assignment_expression): Rename from
862 pp_c_assignment_expression. Adjust.
863 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
864 (c_pretty_printer::c_pretty_printer): Do not assign to
865 unary_expression, multiplicative_expression,
866 conditional_expression, expression.
868 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
870 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
871 virtual member function.
872 (pp_postfix_expression): Adjust.
873 (pp_c_postfix_expression): Remove.
874 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
875 from pp_c_postfix_expression. Adjust.
876 (c_pretty_printer::c_pretty_printer): Do not assign to
879 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
881 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
882 virtua member function.
883 (pp_primary_expression): Adjust.
884 (pp_c_primary_expression): Remove.
885 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
886 from pp_c_primary_expression. Adjust.
887 (pp_c_initializer_list): Use pp_primary_expression.
888 (c_pretty_printer::c_pretty_printer): Do not assign to
891 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
893 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
894 * c-pretty-print.c (M_): Remove.
895 (c_pretty_printer::translate_string): Define.
896 (pp_c_type_specifier): Use it.
897 (pp_c_primary_expression): Likewise.
898 (pp_c_expression): Likewise.
900 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
902 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
904 (pp_c_id_expression): Remove.
905 (pp_id_expression): Adjust.
906 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
907 pp_c_id_expression. Adjust.
908 (pp_c_postfix_expression): Use pp_id_expression.
909 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
911 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
913 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
915 (pp_constant): Adjust.
916 (pp_c_constant): Remove.
917 * c-pretty-print.c (c_pretty_printer::constant): Rename from
918 pp_c_constant. Adjust.
920 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
921 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
923 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
925 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
926 (c_pretty_printer::c_pretty_printer): Declare.
927 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
928 c_pretty_printer_init. Adjust.
929 (print_c_tree): Do not call c_pretty_printer_init.
930 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
932 2013-08-09 Arnaud Charlet <charlet@adacore.com>
934 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
936 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
939 * c-common.c (pointer_int_sum): Add bool parameter.
940 * c-common.h (pointer_int_sum): Adjust declaration.
942 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
944 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
945 c_pretty_printer variable.
947 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
949 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
951 (pp_c_base): Likewise. Adjust users.
952 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
953 (pp_c_whitespace): Do not call pp_base.
954 (pp_c_left_paren): Likewise.
955 (pp_c_right_paren): Likewise.
956 (pp_c_left_brace): Likewise.
957 (pp_c_right_brace): Likewise.
958 (pp_c_left_bracket): Likewise.
959 (pp_c_right_bracket): Likewise.
960 (pp_c_dot): Likewise.
961 (pp_c_ampersand): Likewise.
962 (pp_c_star): Likewise.
963 (pp_c_arrow): Likewise.
964 (pp_c_semicolon): Likewise.
965 (pp_c_complement): Likewise.
966 (pp_c_exclamation): Likewise.
967 (pp_c_direct_declarator): Likewise.
968 (pp_c_ws_string): Likewise.
969 (pp_c_identifier): Likewise.
970 (pp_c_statement): Likewise.
971 (print_c_tree): Likewise.
973 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
976 * c-common.c (c_parse_error): Catch user-defined literal tokens and
977 provide useful error strings.
979 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
981 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
982 printer functions instead of pp_string or operators and punctuators.
983 (dump_generic_ada_node): Likewise.
984 * c-pretty-print.c (pp_c_type_specifier): Likewise.
985 (pp_c_relational_expression): Likewise.
986 (pp_c_logical_or_expression): Likewise.
988 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
990 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
991 functions instead of pp_character.
992 (pp_ada_tree_identifier): Likewise.
993 (dump_ada_double_name): Likewise.
994 (dump_ada_function_declaration): Likewise.
995 (dump_ada_array_domains): Likewise.
996 (dump_template_types): Likewise.
997 (dump_generic_ada_node): Likewise.
998 (print_ada_declaration): Likewise.
999 (print_ada_struct_decl): Likewise.
1000 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1002 2013-07-23 Tom Tromey <tromey@redhat.com>
1004 * c-common.h (enum rid) <RID_GENERIC>: New constant.
1005 * c-common.c (c_common_reswords): Add _Generic.
1007 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
1009 * c-common.c: Fix typos.
1010 * c-common.h: Likewise.
1012 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
1015 * c-common.c (c_common_attribute_table): Add warn_unused.
1016 (handle_warn_unused_attribute): New.
1018 2013-07-10 Jakub Jelinek <jakub@redhat.com>
1020 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
1021 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
1023 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1026 * c.opt: Add Wconditionally-supported.
1028 2013-07-08 Graham Stott <graham.stott@btinternet.com>
1030 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
1031 unused variables l_length and l_node.
1033 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
1036 * c-common.c (complete_array_type): Delay folding first index
1037 like other indices. When folding, check for index overflow.
1039 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
1042 * c-common.h (c_build_vec_perm_expr): New complain argument.
1043 * c-common.c (c_build_vec_perm_expr): Likewise.
1044 Use save_expr also in C++.
1046 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
1048 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
1049 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1050 * c-opts.c (c_common_post_options): Likewise.
1052 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1054 * array-notation-common.c (length_mismatch_in_expr): Changed the
1055 parameter type's from a dynamic array to a vec_tree. Also removed
1056 the size parameters.
1057 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
1060 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
1062 * c-common.h (struct cilkplus_an_parts): New structure.
1063 (struct cilkplus_an_loop_parts): Likewise.
1064 (cilkplus_extract_an_triplets): New prototype.
1065 (fix_sec_implicit_args): Likewise.
1066 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
1067 (fix_sec_implicit_args): Likewise.
1069 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
1071 * array-notation-common.c (find_inv_trees): Removed an unwanted
1073 * c-common.h (struct inv_list::additional_tcodes): Changed type from
1074 enum rid to enum tree_code.
1076 2013-06-11 Jan Hubicka <jh@suse.cz>
1078 * c-common.c (handle_alias_ifunc_attribute): Do not set
1079 DECL_EXTERNAL for weakref variables.
1080 * c-pragma.c (handle_pragma_weak): Make sure aliases
1081 are not declared as external.
1083 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
1085 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
1086 function from c/c-array-notation.c.
1087 (is_cilkplus_reduce_builtin): Likewise.
1088 (find_rank): Likewise.
1089 (extract_array_notation_exprs): Likewise.
1090 (replace_array_notations): Likewise.
1091 (find_inv_trees): Likewise.
1092 (replace_inv_trees): Likewise.
1093 (contains_array_notation_expr): Likewise.
1094 (find_correct_array_notation_type): Likewise.
1095 * c-common.h (struct inv_list): Moved this struct from the file
1096 c/c-array-notation.c and added a new field called additional tcodes.
1097 (length_mismatch_in_expr_p): New prototype.
1098 (is_cilkplus_reduce_builtin): Likewise.
1099 (find_rank): Likewise.
1100 (extract_array_notation_exprs): Likewise.
1101 (replace_array_notation): Likewise.
1102 (find_inv_trees): Likewise.
1103 (replace_inv_trees): Likewise.
1104 (find_correct_array_notation_type): Likewise.
1106 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1108 * c-common.c (c_define_builtins): When cilkplus is enabled, the
1109 function array_notation_init_builtins is called.
1110 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
1111 * c-common.def (ARRAY_NOTATION_REF): New tree.
1112 * c-common.h (build_array_notation_expr): New function declaration.
1113 (build_array_notation_ref): Likewise.
1114 (extract_sec_implicit_index_arg): New extern declaration.
1115 (is_sec_implicit_index_fn): Likewise.
1116 (ARRAY_NOTATION_CHECK): New define.
1117 (ARRAY_NOTATION_ARRAY): Likewise.
1118 (ARRAY_NOTATION_START): Likewise.
1119 (ARRAY_NOTATION_LENGTH): Likewise.
1120 (ARRAY_NOTATION_STRIDE): Likewise.
1121 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
1123 (pp_c_expression): Likewise.
1124 * c.opt (flag_enable_cilkplus): New flag.
1125 * array-notation-common.c: New file.
1127 2013-05-14 Jakub Jelinek <jakub@redhat.com>
1130 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
1132 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
1134 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
1137 2013-05-07 Han Shen <shenhan@google.com>
1139 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
1141 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
1143 * c-common.c (check_user_alignment): Emit error for negative values.
1145 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1147 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
1149 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1151 * c-cppbuiltin.c (c_cpp_builtins): Do not define
1152 __GXX_EXPERIMENTAL_CXX1Y__.
1154 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1155 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1157 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
1158 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
1159 to simply use OPT_Wpointer_arith.
1160 (c_sizeof_or_alignof_type): Likewise.
1162 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
1164 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
1166 2013-04-12 Jakub Jelinek <jakub@redhat.com>
1168 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
1169 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
1172 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
1174 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
1176 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
1178 * c-common.c (pointer_int_sum): Remove dead code.
1180 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1183 * c-common.c (handle_optimize_attribute): Don't call
1184 save_optabs_if_changed.
1186 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1189 * c-pch.c (pch_init): Free target_validity at the end.
1191 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1193 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
1195 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
1196 Jakub Jelinek <jakub@redhat.com>
1199 * c-common.c (handle_no_sanitize_address_attribute): New function.
1200 (c_common_attribute_table): Add no_sanitize_address attribute.
1201 (handle_no_address_safety_analysis_attribute): Add
1202 no_sanitize_address attribute, not no_address_safety_analysis
1205 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
1208 * c-common.c (handle_optimize_attribute): Call
1209 save_optabs_if_changed.
1211 2013-02-18 Jakub Jelinek <jakub@redhat.com>
1212 Steven Bosscher <steven@gcc.gnu.org>
1215 * c-opts.c (c_common_post_options): If debug info is enabled
1216 and non-dwarf*, refuse to load PCH files and when writing PCH
1219 2013-02-05 Jakub Jelinek <jakub@redhat.com>
1222 * c-common.c (handle_error_attribute): Fix condition.
1224 2013-01-30 Jakub Jelinek <jakub@redhat.com>
1227 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
1229 2013-01-18 Jason Merrill <jason@redhat.com>
1232 * c.opt (-fextern-tls-init): New.
1233 * c-opts.c (c_common_post_options): Handle it.
1235 2013-01-09 Jakub Jelinek <jakub@redhat.com>
1238 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
1239 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
1240 and is either negative or bigger or equal to type precision
1241 of the first operand.
1243 2012-12-03 Marek Polacek <polacek@redhat.com>
1246 * c-common.c (check_user_alignment): Swap order of tests,
1247 check TREE_CODE first.
1249 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
1252 * c-common.h (overflow_type): New enum.
1253 (build_userdef_literal): Add overflow_type argument.
1254 (tree_userdef_literal): Add overflow_type.
1255 (USERDEF_LITERAL_OVERFLOW): New access macro.
1256 * c-common.c (build_userdef_literal): Add overflow_type
1258 * c-lex.c (c_lex_with_flags): Add overflow_type to
1259 build_userdef_literal calls.
1260 (interpret_integer, interpret_float): Add overflow_type argument.
1262 2012-11-28 Richard Biener <rguenther@suse.de>
1265 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1266 here and use a type with proper overflow behavior for types that would
1267 need to be promoted for the arithmetic.
1269 2012-11-23 Jakub Jelinek <jakub@redhat.com>
1272 * c-common.c (handle_no_address_safety_analysis_attribute): New
1274 (c_common_attribute_table): Add no_address_safety_analysis.
1276 2012-11-16 Simon Baldwin <simonb@google.com>
1278 * c.opt: Add f[no-]canonical-system-headers.
1279 * c-opts.c (c_common_handle_option): Handle
1280 OPT_fcanonical_system_headers.
1282 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1285 * c-opts.c (c_common_handle_option): Set new flags.
1286 * c.opt: Describe new flags.
1288 2012-11-09 Jason Merrill <jason@redhat.com>
1290 * c.opt (Wabi-tag): New.
1292 2012-11-09 Andi Kleen <ak@linux.intel.com>
1295 * c-common.c (get_atomic_generic_size): Mask with
1298 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1301 * c.opt (Wformat): Make it Alias Wformat=1.
1302 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
1303 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
1305 (Wformat=): RejectNegative. Use LangEnabledBy.
1306 (Wnonnull): Use LangEnabledBy.
1307 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
1308 * c-format.c (set_Wformat): Delete.
1309 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
1310 (maybe_read_dollar_number): Likewise.
1311 (avoid_dollar_number): Likewise.
1312 (finish_dollar_format_checking): Likewise.
1313 (check_format_info): Likewise.
1314 (check_format_info_main): Likewise.
1315 (check_format_types): Likewise.
1316 (format_type_warning): Likewise.
1317 * c-common.c (int): Likewise.
1318 (check_function_sentinel): Likewise.
1319 * c-common.h (warn_format,set_Wformat): Do not declare here.
1321 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1324 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1325 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1327 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1329 (Wvariadic-macros): Init(1).
1330 * c-opts.c (c_common_handle_option): Do not handle them
1332 (c_common_post_options): Likewise.
1333 (sanitize_cpp_opts): warn_unused_macros is now
1334 cpp_warn_unused_macros.
1335 (push_command_line_include): Likewise.
1336 * c-common.c (warn_unknown_pragmas): Do not define.
1337 * c-common.h (warn_unknown_pragmas): Do not declare.
1339 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1342 * c-common.c (conversion_warning): Handle conditional expressions.
1344 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1347 * c.opt (Wreturn_local_addr): Define new option.
1349 2012-10-25 Jason Merrill <jason@redhat.com>
1351 * c.opt (Wvirtual-move-assign): New.
1353 * c.opt (Winherited-variadic-ctor): New.
1355 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
1358 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1360 2012-10-23 Joseph Myers <joseph@codesourcery.com>
1362 * c-common.h (pch_cpp_save_state): Declare.
1363 * c-target.def (c_preinclude): New hook.
1364 * c-opts.c (done_preinclude): New.
1365 (push_command_line_include): Handle default preincluded header.
1366 (cb_file_change): Call pch_cpp_save_state when calling
1367 push_command_line_include.
1368 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1369 (pch_cpp_save_state): New.
1370 (pch_init): Call pch_cpp_save_state conditionally, instead of
1371 calling cpp_save_state.
1373 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1377 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1378 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1379 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1380 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1381 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1382 * c-opts.c (c_common_handle_option): Remove explicit handling from
1384 (c_common_post_options): Likewise.
1386 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1388 * c-ada-spec.c (LOCATION_COL): Delete.
1389 (compare_location): New function.
1390 (compare_node): Use it.
1391 (compare_comment): Likewise.
1393 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1397 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1398 * c-opts.c (c_common_handle_option): Do not set them here. Add
1400 (c_common_post_options): Likewise.
1402 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1404 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1405 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1406 Remove POINTER_TYPE handling, add large unsigned handling and use
1407 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1409 2012-10-12 Jakub Jelinek <jakub@redhat.com>
1412 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1413 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1414 locs and array of 3 trees instead of just single loc and single
1415 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1416 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1417 For *cmp* builtins that take two sources strings report warnings
1418 about first and second source, not about destination and source.
1420 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
1423 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1425 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1427 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1428 declaring something coming from another file.
1430 2012-10-10 Arnaud Charlet <charlet@adacore.com>
1433 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1435 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1438 * c-common.c (warn_about_parentheses): Add location_t parameter;
1439 use EXPR_LOC_OR_LOC.
1440 * c-common.h: Update declaration.
1442 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
1445 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1446 more operations. Make error messages optional.
1447 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1448 (scalar_to_vector): Declare.
1450 2012-10-08 Jason Merrill <jason@redhat.com>
1452 * c-common.c (c_common_reswords): Add thread_local.
1454 2012-10-08 Dodji Seketeli <dodji@redhat.com>
1456 PR c++/53528 C++11 attribute support
1457 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1459 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1461 (handle_aligned_attribute): In choose strictest alignment
1462 among many. Use new check_cxx_fundamental_alignment_constraints.
1463 (handle_transparent_union_attribute): In c++11 attribute syntax,
1464 don't look through typedefs.
1466 2012-10-04 Arnaud Charlet <charlet@adacore.com>
1468 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1469 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1472 2012-09-25 Dehao Chen <dehao@google.com>
1475 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
1476 map when read in the pch.
1478 2012-09-18 Arnaud Charlet <charlet@adacore.com>
1480 * c-ada-spec.c: Style fixes.
1482 2012-09-18 Thomas Quinot <quinot@adacore.com>
1484 * c.opt (-fada-spec-parent): Define new command line switch.
1485 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1486 is specified, generate binding spec as a child of the specified unit.
1488 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1489 Manuel López-Ibáñez <manu@gcc.gnu.org>
1492 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1494 2012-08-23 Arnaud Charlet <charlet@adacore.com>
1496 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1497 for pointers, and add missing Convention C pragma.
1498 (print_ada_struct_decl): Add missing aliased keyword.
1499 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1501 2012-08-17 Jakub Jelinek <jakub@redhat.com>
1503 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1504 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1505 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1506 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1507 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1509 2012-08-10 Richard Guenther <rguenther@suse.de>
1511 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1513 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1515 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1516 instead of separate pp_newline and pp_flush.
1517 (print_c_tree): Likewise.
1519 2012-07-26 Richard Henderson <rth@redhat.com>
1521 * c-common.c (handle_hot_attribute): Allow labels.
1522 (handle_cold_attribute): Likewise.
1524 2012-07-20 Jakub Jelinek <jakub@redhat.com>
1527 * c-common.c (check_function_nonnull): Handle multiple nonnull
1528 attributes properly.
1530 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1532 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1533 * c-ada-spec.c: Likewise.
1534 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1536 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1538 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1539 Remove code conditional on it.
1541 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1543 * c-gimplify.c: Do not include basic-block.h.
1544 * c-common.c: Do not include linfuncs.h.
1546 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1548 * c-common.h: Include tree.h.
1550 2012-07-02 Jason Merrill <jason@redhat.com>
1553 * c-common.c (get_priority): Call default_conversion.
1555 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
1557 * c-pch.c (c_common_write_pch): Remove unused variables.
1559 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1561 * cppspec.c: Moved from gcc/ to here.
1563 2012-06-27 Kai Tietz <ktietz@redhat.com>
1565 PR preprocessor/37215
1566 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1568 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1570 * c-common.h (c_common_print_pch_checksum): Remove.
1571 * c-pch.c: Do not include output.h.
1572 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1573 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1574 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1575 (struct c_pch_header): Remove.
1576 (get_ident): Update gpch version.
1577 (pch_init): Do not print executable_checksum to asm_out_file.
1578 Do not fail if there is no asm_out_file to read back from. Set
1579 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1580 (c_common_write_pch): Verify that nothing was written to asm_out_file
1581 since pch_init was called. Do not write a c_pch_header, and do not
1582 copy from asm_out_file to the PCH.
1583 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1584 the content of asm_out_file from the PCH.
1585 (c_common_print_pch_checksum): Remove.
1586 * c-opts.c (c_common_init): Print out executable_checksum directly.
1588 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1590 * c-target.def (objc_declare_unresolved_class_reference,
1591 objc_declare_class_definition): Add new hooks.
1593 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1595 * c-lex.c: Do not include output.h.
1596 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1597 Remove uses of ASM_OUTPUT_IDENT.
1599 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1602 * c-common.h (c_build_vec_perm_expr): Move decl here.
1603 * c-common.c (c_build_vec_perm_expr): Move definition
1606 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1608 * c.opt (fconserve-space): Turn into a no-op.
1610 2012-06-04 Sterling Augustine <saugustine@google.com>
1612 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1613 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1614 both the start and end of the function.
1616 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1618 * c-common.c: Do not include output.h.
1619 * c-pragma.c: Likewise.
1621 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1623 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1624 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1625 (lang_decl_name): Handle namespace decls.
1627 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1629 * c-ada-spec.c: Do not include output.h.
1630 * c-semantics.c: Likewise.
1632 2012-05-29 Joseph Myers <joseph@codesourcery.com>
1634 * c-common.c: Fix typo.
1636 2012-05-29 Michael Matz <matz@suse.de>
1638 * c-common.h (c_expand_decl): Remove prototype.
1640 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1642 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1643 * c-opts.c (c_common_handle_option): Remove code handling
1644 warn_missing_braces.
1646 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1649 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1652 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1655 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1657 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1659 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1660 * c-opts.c (c_common_handle_option): Do not handle explicitly
1661 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1663 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1665 PR preprocessor/7263
1666 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1667 to cpp_classify_number. For diagnostics, use the precise location
1668 instead of the global input_location.
1670 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1673 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1675 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1677 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1679 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1682 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1683 Wreorder): Use LangEnabledBy.
1684 * c-opts.c (c_common_handle_option): Do not enable them
1685 explicitly. Call lang-specific generated functions.
1686 (c_common_post_options): Do not set them here.
1688 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1690 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1691 Wmissing-field-initializers,Wmissing-parameter-type,
1692 Wold-style-declaration,Woverride-init): Use EnabledBy.
1693 * c-opts.c (c_common_post_options): Do not set here explicitly.
1695 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1698 * c-opts.c (c_common_handle_option): Use handle_generated_option
1699 to enable sub-options.
1701 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1704 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1706 2012-05-10 Richard Guenther <rguenther@suse.de>
1708 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1709 adjust commentary about TYPE_IS_SIZETYPE types.
1711 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1714 * c-common.c (warn_logical_operator): Check that argument of
1715 integer_zerop is not NULL.
1717 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1720 * c-common.c (warn_logical_operator): Do not warn if either side
1721 is already true or false.
1723 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1726 * c-common.c (expr_original_type): New.
1727 (shorten_compare): Do not warn for enumeration types.
1729 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1731 * c.opt (fpermissive): Add Var(flag_permissive).
1733 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1736 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1737 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1739 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1741 Add -Wvarargs option
1742 * c.opt (Wvarargs): Define new option.
1744 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1746 * c-common.c (check_function_arguments): Replace
1747 Wmissing-format-attribute with Wsuggest-attribute=format.
1749 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1751 * c.opt (Wsuggest-attribute=format): New. Alias of
1752 Wmissing-format-attribute.
1753 * c-format.c (decode_format_type): Replace
1754 Wmissing-format-attribute with Wsuggest-attribute=format.
1755 (check_function_format): Likewise.
1757 2012-04-27 Ollie Wild <aaw@google.com>
1759 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1760 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1761 * c.opt: Add Wliteral-suffix.
1763 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1766 * c.opt (Wpedantic): New.
1767 (pedantic): Alias Wpedantic.
1768 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1769 (c_common_post_options): Likewise.
1770 (sanitize_cpp_opts): Likewise.
1771 * c-lex.c (interpret_float): Likewise.
1772 * c-format.c (check_format_types): Likewise.
1773 * c-common.c (pointer_int_sum): Likewise.
1774 (c_sizeof_or_alignof_type): Likewise.
1775 (c_add_case_label): Likewise.
1776 (c_do_switch_warnings): Likewise.
1777 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1779 2012-04-15 Jason Merrill <jason@redhat.com>
1782 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1783 (C_STD_NAME): Distinguish between C++98 and C++11.
1785 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1788 * c-common.h (uint16_type_node): Rename into...
1789 (c_uint16_type_node): ...this.
1790 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1791 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1793 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1795 * c-common.c (warn_if_unused_value): Move definition to here.
1796 * c-common.h (warn_if_unused_value): Move declaration to here.
1798 2012-03-23 William Bader <williambader@hotmail.com>
1800 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1802 2012-03-20 Jason Merrill <jason@redhat.com>
1804 * c-common.h (enum cxx_dialect): Add cxx1y.
1805 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1807 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1808 * c-opts.c (c_common_post_options): Likewise.
1809 (set_std_cxx1y): New.
1810 (c_common_handle_option): Call it.
1811 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1813 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1816 * c.opt ([Wuseless-cast]): Add.
1818 2012-03-16 Richard Guenther <rguenther@suse.de>
1820 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1822 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1825 * c.opt (ftemplate-backtrace-limit) Add.
1827 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1829 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1831 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1832 (init_pragma): Don't register extern_prefix.
1834 2012-03-12 Richard Guenther <rguenther@suse.de>
1836 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1837 (builtin_type_for_size): Likewise.
1839 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1842 * c-common.c (sync_resolve_params): Don't decide whether to convert
1843 or not based on TYPE_SIZE comparison, convert whenever arg_type
1844 is unsigned INTEGER_TYPE.
1846 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1849 * c.opt ([Wunused-local-typedefs]): Fix description.
1851 2012-01-24 Mike Stump <mikestump@comcast.net>
1853 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1856 2012-01-18 Richard Guenther <rguenther@suse.de>
1858 * c-opts.c (c_common_post_options): Reset LTO flags if
1859 we are about to generate a PCH.
1861 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1864 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1865 use pp_unsigned_wide_integer.
1867 2012-01-10 Richard Guenther <rguenther@suse.de>
1870 * c-opts.c (c_common_handle_option): Move -Werror handling
1871 to language independent code.
1873 2012-01-05 Richard Guenther <rguenther@suse.de>
1876 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1879 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1882 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1883 of array types with an unknown bound.
1885 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1887 * c-common.c (flag_isoc99): Update comment to refer to C11.
1888 (flag_isoc1x): Change to flag_isoc11.
1889 * c-common.h (flag_isoc99): Update comment to refer to C11.
1890 (flag_isoc1x): Change to flag_isoc11.
1891 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1893 * c-opts.c (set_std_c1x): Change to set_std_c11.
1894 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1896 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1897 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1898 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1900 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1901 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1902 (std=gnu1x): Make alias of std=gnu11.
1904 2011-12-19 Jason Merrill <jason@redhat.com>
1907 * c-common.c (handle_transparent_union_attribute): Check the first
1908 field if the type is complete.
1910 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1913 * c-common.c (RID_IS_FINAL): Add.
1914 * c-common.h (RID_IS_FINAL): Add.
1916 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1918 * c.opt (fgnu-runtime): Provide full description.
1919 (fnext-runtime): Likewise.
1920 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1922 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1924 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1925 predefines in one place. Add LOCK_FREE predefines.
1926 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1929 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1932 * c-common.c (get_atomic_generic_size): Check for various error
1934 (resolve_overloaded_atomic_exchange,
1935 resolve_overloaded_atomic_compare_exchange,
1936 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1937 error_mark_node for error conditions.
1939 2011-11-08 Richard Guenther <rguenther@suse.de>
1944 2011-11-07 Richard Henderson <rth@redhat.com>
1945 Aldy Hernandez <aldyh@redhat.com>
1946 Torvald Riegel <triegel@redhat.com>
1948 Merged from transactional-memory.
1950 * c-common.c (handle_tm_wrap_attribute,
1951 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1952 (struct c_common_reswords): Added __transaction* keywords.
1953 (struct c_common_attribute_table): Added transaction* and tm_regparm
1955 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1957 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1958 find_tm_attribute): Declare.
1960 2011-11-07 Jason Merrill <jason@redhat.com>
1963 * c-common.c, c-common.h: Revert yesterday's changes.
1965 2011-11-06 Jason Merrill <jason@redhat.com>
1968 * c-common.c (decl_has_visibility_attr): Split out from...
1969 (c_determine_visibility): ...here.
1970 * c-common.h: Declare it.
1972 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1974 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1975 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1977 (check_user_alignment): New. Split out of
1978 handle_aligned_attribute. Disallow integer constants with
1979 noninteger types. Conditionally allow zero.
1980 (handle_aligned_attribute): Use check_user_alignment.
1981 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1983 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1984 Richard Henderson <rth@redhat.com>
1986 Merged from cxx-mem-model.
1988 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1989 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1990 parameters that are the same type size.
1991 (get_atomic_generic_size): New. Find size of generic
1992 atomic function parameters and do typechecking.
1993 (add_atomic_size_parameter): New. Insert size into parameter list.
1994 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1995 either __atomic_exchange_n or external library call.
1996 (resolve_overloaded_atomic_compare_exchange): Restructure
1997 __atomic_compare_exchange to either _n variant or external library call.
1998 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1999 __atomic_load_n or an external library call.
2000 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
2001 __atomic_store_n or an external library call.
2002 (resolve_overloaded_builtin): Handle new __atomic builtins.
2004 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
2007 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
2008 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
2009 <INDIRECT_REF>: Return the argument.
2010 <ARRAY_REF>: Remove special code for negative offset.
2011 Call fold_build_pointer_plus instead of size_binop.
2012 (fold_offsetof): Remove STOP_REF argument and adjust.
2013 * c-common.h (fold_offsetof_1): Declare.
2014 (fold_offsetof): Remove STOP_REF argument.
2016 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
2019 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2020 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2021 Wnarrowing for C++0x and C++98.
2022 * c.opt ([Wnarrowing]): Update.
2024 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
2027 * c.opt: Add Wzero-as-null-pointer-constant.
2029 2011-10-31 Jason Merrill <jason@redhat.com>
2031 * c.opt (-fdeduce-init-list): Off by default.
2034 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
2035 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
2037 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
2039 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
2042 * c.opt (fvisibility-inlines-hidden): Description change.
2044 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
2046 Implement C++11 user-defined literals.
2047 * c-common.c (build_userdef_literal): New.
2048 * c-common.def: New tree code.
2049 * c-common.h (tree_userdef_literal): New tree struct and accessors.
2050 * c-lex.c (interpret_float): Add suffix parm.
2051 (c_lex_with_flags): Build literal tokens.
2053 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2057 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2060 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2061 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2062 Wnarrowing for C++0x and C++98.
2063 * c.opt ([Wnarrowing]): Update.
2065 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
2068 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
2069 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
2070 Wnarrowing for C++0x and C++98.
2071 * c.opt ([Wnarrowing]): Update.
2073 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
2076 * c-common.c (conversion_warning): Remove code looking for
2077 artificial operands.
2079 2011-10-18 Dodji Seketeli <dodji@redhat.com>
2082 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
2083 !NO_IMPLICIT_EXTERN_C.
2085 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
2087 * c-common.c (c_common_reswords): Add __bases,
2089 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
2091 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
2094 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
2096 2011-10-15 Tom Tromey <tromey@redhat.com>
2097 Dodji Seketeli <dodji@redhat.com>
2099 * c.opt (fdebug-cpp): New option.
2100 * c-opts.c (c_common_handle_option): Handle the option.
2101 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
2102 output stream in parameter. Factorized from ...
2103 (maybe_print_line): ... this. Dump location debug information when
2104 -fdebug-cpp is in effect.
2105 (print_line_1): New static function. Takes an output stream in
2106 parameter. Factorized from ...
2107 (print_line): ... here. Dump location information when -fdebug-cpp
2109 (scan_translation_unit): Dump location information when
2110 -fdebug-cpp is in effect.
2112 2011-10-15 Tom Tromey <tromey@redhat.com>
2113 Dodji Seketeli <dodji@redhat.com>
2115 * c.opt (ftrack-macro-expansion): New option. Handle it with and
2117 * c-opts.c (c_common_handle_option)<case
2118 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
2119 cases. Handle -ftrack-macro-expansion with and without argument.
2121 2011-10-15 Tom Tromey <tromey@redhat.com>
2122 Dodji Seketeli <dodji@redhat.com>
2124 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
2125 (print_line, cb_define, do_line_change): Adjust to avoid touching
2126 the internals of struct line_map. Use the public API instead.
2127 * c-pch.c (c_common_read_pch): Likewise.
2128 * c-lex.c (fe_file_change): Likewise.
2130 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
2133 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
2135 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
2138 * c-pretty-print.c (pp_c_floating_constant): Output
2139 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
2141 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2143 * c-common.c (def_builtin_1): Delete old interface with two
2144 parallel arrays to hold standard builtin declarations, and replace
2145 it with a function based interface that can support creating
2146 builtins on the fly in the future. Change all uses, and poison
2147 the old names. Make sure 0 is not a legitimate builtin index.
2148 * c-omp.c (c_finish_omp_barrier): Ditto.
2149 (c_finish_omp_taskwait): Ditto.
2150 (c_finish_omp_flush): Ditto.
2152 2011-10-11 Tristan Gingold <gingold@adacore.com>
2154 * c.opt: (fallow-parameterless-variadic-functions): New.
2156 2011-09-08 Dodji Seketeli <dodji@redhat.com>
2158 PR c++/33255 - Support -Wunused-local-typedefs warning
2159 * c-common.h (struct c_language_function::local_typedefs): New
2161 (record_locally_defined_typedef, maybe_record_typedef_use)
2162 (maybe_warn_unused_local_typedefs): Declare new functions.
2163 * c-common.c (record_locally_defined_typedef)
2164 (maybe_record_typedef_use)
2165 (maybe_warn_unused_local_typedefs): Define new functions.
2166 * c.opt: Declare new -Wunused-local-typedefs flag.
2168 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
2171 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
2174 2011-09-05 Richard Guenther <rguenther@suse.de>
2176 * c-common.c (complete_array_type): Use ssize_int (-1) instead
2177 of integer_minus_one_node for empty array upper bounds.
2179 2011-08-28 Dodji Seketeli <dodji@redhat.com>
2181 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
2182 it's the first time it's being called on this main TU.
2184 2011-08-24 Richard Guenther <rguenther@suse.de>
2187 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
2189 2011-08-22 Gabriel Charette <gchare@google.com>
2191 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
2192 defined in cpp_init_builtins and c_cpp_builtins.
2194 2011-08-19 Joseph Myers <joseph@codesourcery.com>
2196 * c-common.c (c_common_reswords): Add __builtin_complex.
2197 * c-common.h (RID_BUILTIN_COMPLEX): New.
2199 2011-08-18 Joseph Myers <joseph@codesourcery.com>
2201 * c-common.c (c_common_reswords): Add _Noreturn.
2202 (keyword_is_function_specifier): Handle RID_NORETURN.
2203 * c-common.h (RID_NORETURN): New.
2205 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2207 * c-common.c (unsafe_conversion_p): New function. Check if it is
2208 unsafe to convert an expression to the type.
2209 (conversion_warning): Adjust, use unsafe_conversion_p.
2210 * c-common.h (unsafe_conversion_p): New function declaration.
2212 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2214 * c-common.h (c_finish_omp_atomic): Adjust prototype.
2215 (c_finish_omp_taskyield): New prototype.
2216 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
2217 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
2218 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
2219 or RHS1 have side-effects, evaluate those too in the right spot,
2220 if it is a decl and LHS is also a decl, error out if they
2222 (c_finish_omp_taskyield): New function.
2223 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
2224 * c-pragma.c (omp_pragmas): Add taskyield.
2225 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
2226 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
2227 PRAGMA_OMP_CLAUSE_MERGEABLE.
2229 2011-07-25 Dodji Seketeli <dodji@redhat.com>
2231 * c-common.h (set_underlying_type): Remove parm name from
2234 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
2236 * c-pretty-print.h: Search c-common.h in c-family.
2238 2011-07-22 Jason Merrill <jason@redhat.com>
2241 * c.opt (Wnarrowing): New.
2244 * c-common.h: Declare c_linkage_bindings.
2245 * c-pragma.c (handle_pragma_redefine_extname): Use it.
2248 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
2249 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
2250 as flag_isoc99 for 'restrict'.
2251 (pp_c_specifier_qualifier_list): Likewise for _Complex.
2253 2011-07-21 Ian Lance Taylor <iant@google.com>
2256 * c-common.c (c_disable_warnings): New static function.
2257 (c_enable_warnings): New static function.
2258 (c_fully_fold_internal): Change local unused_p to bool. Call
2259 c_disable_warnings and c_enable_warnings rather than change
2260 c_inhibit_evaluation_warnings.
2262 2011-07-20 Jason Merrill <jason@redhat.com>
2264 PR c++/6709 (DR 743)
2265 PR c++/42603 (DR 950)
2266 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
2267 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
2268 (CPP_DECLTYPE): New.
2269 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
2271 2011-07-19 Richard Guenther <rguenther@suse.de>
2273 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
2274 * c-omp.c (c_finish_omp_for): Likewise.
2276 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
2278 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
2279 body on the next line.
2281 2011-07-08 Jason Merrill <jason@redhat.com>
2284 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
2287 * c-common.c (c_apply_type_quals_to_decl): Don't check
2288 TYPE_NEEDS_CONSTRUCTING.
2290 2011-07-06 Richard Guenther <rguenther@suse.de>
2292 * c-common.c (c_common_nodes_and_builtins):
2293 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
2295 2011-07-05 Richard Guenther <rguenther@suse.de>
2297 * c-common.c (c_common_nodes_and_builtins): Build all common
2300 2011-06-27 Jakub Jelinek <jakub@redhat.com>
2302 * c-common.h (c_tree_chain_next): New static inline function.
2304 * c-common.c (check_builtin_function_arguments): Handle
2305 BUILT_IN_ASSUME_ALIGNED.
2307 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
2309 * c-common.c: Add sync_ or SYNC__ to builtin names.
2310 * c-omp.c: Add sync_ or SYNC__ to builtin names.
2312 2011-06-20 Pierre Vittet <piervit@pvittet.com>
2314 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2316 (gen_pragma_handler): New union.
2317 (internal_pragma_handler): New type.
2318 (c_register_pragma_with_data)
2319 (c_register_pragma_with_expansion_and_data): New functions.
2321 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2322 (c_register_pragma, c_register_pragma_with_expansion)
2323 (c_invoke_pragma_handler): Changed to work with
2324 internal_pragma_handler.
2325 (c_register_pragma_with_data)
2326 (c_register_pragma_with_expansion_and_data): New functions.
2328 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2330 * c-common.c: Include common/common-target.h.
2331 (handle_section_attribute): Use
2332 targetm_common.have_named_sections.
2333 * c-cppbuiltin.c: Include common/common-target.h.
2334 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2336 2011-06-10 Richard Guenther <rguenther@suse.de>
2338 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2339 to print a IDENTIFIER_NODE.
2341 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2342 Joseph Myers <joseph@codesourcery.com>
2344 * c.opt (fbuilding-libgcc): New option.
2345 * c-cppbuiltin.c (c_cpp_builtins): Define
2346 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2348 2011-06-07 Jason Merrill <jason@redhat.com>
2350 * c-common.c (max_tinst_depth): Lower default to 900.
2352 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2354 2011-06-07 Richard Guenther <rguenther@suse.de>
2356 * c-common.c (c_common_nodes_and_builtins): Do not set
2357 size_type_node or call set_sizetype.
2359 2011-06-07 Dodji Seketeli <dodji@redhat.com>
2362 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
2363 type when using pointer comparison to compare types.
2365 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2367 * c.opt: Add -Wdelete-non-virtual-dtor.
2368 * c-opts.c (c_common_handle_option): Include it in -Wall.
2370 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2375 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2377 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2380 2011-05-27 Jakub Jelinek <jakub@redhat.com>
2383 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2384 C++ don't call c_common_truthvalue_conversion on void type arms.
2386 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2388 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2389 (stmt_list_stack): Define.
2390 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2391 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2393 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2395 * c-common.c (warning_candidate_p): Check for BLOCKs.
2397 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2399 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2402 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2404 * c-common.c (def_fn_type): Remove extra va_end.
2406 2011-05-23 Jason Merrill <jason@redhat.com>
2409 * c-common.c (c_common_get_narrower): New.
2410 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2412 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2414 * c-common.h (check_function_arguments): Tweak prototype of
2415 check_function_arguments.
2416 * c-common.c (check_function_arguments): Likewise. Adjust
2417 calls to check_function_nonnull, check_function_format, and
2418 check_function_sentinel.
2419 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2420 separate attributes and typelist arguments. Use
2421 FOREACH_FUNCTION_ARGS to iterate over argument types.
2423 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2425 * c-common.c (c_common_reswords): Reorder.
2426 * c-common.h (rid): Likewise.
2428 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2430 * c-common.c (def_fn_type): Don't call build_function_type, call
2431 build_function_type_array or build_varargs_function_type_array
2433 (c_common_nodes_and_builtins): Likewise.
2435 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2437 * c-common.c (c_add_case_label): Omit the loc argument to
2439 * c-common.h (build_case_label): Remove.
2440 * c-semantics.c (build_case_label): Remove.
2442 2011-05-05 Joseph Myers <joseph@codesourcery.com>
2444 * c-objc.h (objc_start_method_definition): Update prototype.
2445 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2447 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2449 * c-common.c (check_main_parameter_types): Reindent. Don't use
2450 TYPE_ARG_TYPES directly.
2451 (handle_nonnull_attribute): Likewise.
2452 (sync_resolve_params): Likewise.
2453 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2454 to check_format_string.
2455 (handle_format_attribute): Likewise.
2456 (check_format_string): Take a function type to examine instead of
2457 a type list. Use a function_arg_iterator to step through argument
2460 2011-05-04 Richard Guenther <rguenther@suse.de>
2462 * c-common.c (fix_string_type): Use size_int for index type bounds.
2463 (start_fname_decls): Do not pass NULL to build_int_cst.
2464 (c_init_attributes): Likewise.
2465 * c-lex.c (c_lex_with_flags): Likewise.
2467 2011-04-27 Jason Merrill <jason@redhat.com>
2469 * c-common.c (make_tree_vector_from_list): New.
2470 * c-common.h: Declare it.
2472 2011-04-26 Richard Guenther <rguenther@suse.de>
2474 PR preprocessor/48248
2475 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2476 for output size with -P.
2478 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2480 * c-common.c (struct c_common_resword): Add __underlying_type.
2481 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2483 2011-04-20 Jim Meyering <meyering@redhat.com>
2485 * c-format.c (init_dollar_format_checking): Remove useless
2488 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2490 * c-objc.h (objc_get_interface_ivars): Removed.
2491 (objc_detect_field_duplicates): New.
2492 * stub-objc.c: Likewise.
2494 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2496 * stub-objc.c (objc_declare_protocols): Renamed to
2497 objc_declare_protocol.
2498 * c-objc.h: Likewise.
2500 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2502 * stub-objc.c (objc_declare_class): Updated argument name.
2504 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2506 * c-common.h (c_common_init_ts): Declare.
2507 * c-common.c (c_common_init_ts): Define.
2509 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2511 * c-objc.h (objc_build_message_expr): Updated prototype.
2512 * stub-objc.c (objc_build_message_expr): Likewise.
2514 2011-04-12 Martin Jambor <mjambor@suse.cz>
2516 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2519 2011-04-11 Richard Guenther <rguenther@suse.de>
2521 * c-common.c (complete_array_type): Build a range type of
2524 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2526 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2527 (handle_type_generic_attribute): Likewise.
2529 2011-04-07 Jason Merrill <jason@redhat.com>
2532 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2533 conversion from C++0x scoped enum.
2535 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2537 * c-target-def.h: New file.
2538 * c-target.def: New file.
2539 * c-target.h: New file.
2540 * c-common.c (targetcm): Don't define here.
2541 * c-common.h (default_handle_c_option): Declare.
2542 * c-format.c: Include c-target.h instead of target.h.
2543 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2545 (default_handle_c_option): Move from targhooks.c.
2547 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2549 PR preprocessor/48248
2550 * c-ppoutput.c (print): Add src_file field.
2551 (init_pp_output): Initialize it.
2552 (maybe_print_line): Don't optimize by adding up to 8 newlines
2553 if map->to_file and print.src_file are different file.
2554 (print_line): Update print.src_file.
2556 2011-03-25 Kai Tietz <ktietz@redhat.com>
2558 * c-ada-spec.c (compare_comment): Use filename_cmp
2559 instead of strcmp for filename.
2561 2011-03-25 Jeff Law <law@redhat.com>
2563 * c-family/c-common.c (def_fn_type): Add missing va_end.
2565 2011-03-25 Jason Merrill <jason@redhat.com>
2567 * c.opt: Add -std=c++03.
2569 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2571 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2573 2011-03-17 Kai Tietz
2576 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2577 Display allowed attributes for function pointer types.
2578 (pp_c_attributes_display): New function to display
2579 attributes having affects_type_identity flag set to true.
2580 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2582 * c-common.c (c_common_attribute_table):
2584 (c_common_format_attribute_table): Likewise.
2586 2011-03-18 Jason Merrill <jason@redhat.com>
2588 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2589 * c-common.h: Don't declare it here.
2590 * c-common.c: Or define it here.
2591 * c-opts.c (c_common_handle_option): Or set it here.
2594 * c-common.c (handle_transparent_union_attribute): Don't
2595 make a duplicate type in C++.
2597 2011-03-15 Jason Merrill <jason@redhat.com>
2599 * c-common.c (max_constexpr_depth): New.
2600 * c-common.h: Declare it.
2601 * c-opts.c (c_common_handle_option): Set it.
2602 * c.opt (fconstexpr-depth): New option.
2604 2011-03-11 Jason Merrill <jason@redhat.com>
2606 * c-common.c (attribute_takes_identifier_p): Add missing const.
2609 * c-common.c (attribute_takes_identifier_p): Assume that an
2610 unknown attribute takes an identifier.
2612 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2615 * c-common.c (c_type_hash): Call list_length instead of iterating
2616 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2618 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2621 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2623 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2625 * c.opt (fobjc-abi-version=) New.
2626 (fobjc-nilcheck): New.
2628 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2631 * c-common.h (keyword_is_decl_specifier): Declare.
2632 * c-common.c (keyword_is_decl_specifier): Define.
2633 (keyword_is_function_specifier): New function.
2635 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2638 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2639 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2642 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2644 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2646 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2649 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2650 after init_c_lex if pch_file is set.
2652 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2655 * c.opt (-fkeep-inline-dllexport): New switch.
2657 2011-01-12 Richard Guenther <rguenther@suse.de>
2660 * c-common.c (handle_weak_attribute): Warn instead of error
2661 on declaring an inline function weak.
2663 2011-01-05 Tom Tromey <tromey@redhat.com>
2665 * c-common.h (lvalue_error): Update.
2666 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2669 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
2672 * c-objc.h (objc_finish_message_expr): Added argument to
2675 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2677 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2680 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2682 * c-objc.h (objc_maybe_warn_exceptions): New.
2683 * stub-objc.c (objc_maybe_warn_exceptions): New.
2685 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2687 * c-common.h (readonly_error): Declare.
2688 * c-common.c (readonly_error): Define.
2690 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2692 * c-common.h (invalid_indirection_error): Declare.
2693 * c-common.c (invalid_indirection_error): Define.
2695 2010-12-03 Richard Guenther <rguenther@suse.de>
2698 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2699 (pp_c_unary_expression): Likewise.
2700 (pp_c_expression): Likewise.
2702 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2704 * c-common.h (objc_finish_function): New.
2705 (objc_non_volatilized_type): Removed.
2706 (objc_type_quals_match): Removed.
2707 * stub-objc.c (objc_finish_function): New.
2708 (objc_non_volatilized_type): Removed.
2709 (objc_type_quals_match): Removed.
2711 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2713 * c-common.h (parse_optimize_options): Declare.
2714 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2715 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2717 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2719 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2721 * c-pch.c (O_BINARY): Don't define here.
2722 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2724 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2726 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2727 targetm.except_unwind_info.
2729 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2731 * c-opts.c (c_common_handle_option): Pass location to
2732 set_struct_debug_option.
2734 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2736 * c-common.c (visibility_options): Move from ../opts.c.
2737 * c-common.h (struct visibility_flags, visibility_options):
2739 * c-opts.c (finish_options): Rename to c_finish_options.
2740 (c_common_init): Update call to finish_options.
2742 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2745 * c-lex.c (lex_string): Check that each string in an Objective-C
2746 string concat sequence starts with either one or zero '@', and
2747 that there are no spurious '@' signs at the end.
2749 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2751 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2752 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2753 HANDLE_PRAGMA_VISIBILITY.
2754 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2755 HANDLE_PRAGMA_VISIBILITY): Don't define.
2756 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2758 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2763 * c-common.h (keyword_begins_type_specifier): Declare.
2764 (keyword_is_storage_class_specifier): Declare.
2765 (keyword_is_type_qualifier): Declare.
2766 * c-common.c (keyword_begins_type_specifier): New function.
2767 (keyword_is_storage_class_specifier): New function.
2768 (keyword_is_type_qualifier): Declare.
2770 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2773 * c-common.c (in_late_binary_op): Define.
2774 (c_common_truthvalue_conversion): Check in_late_binary_op before
2775 calling c_save_expr.
2776 * c-common.h (in_late_binary_op): Declare.
2778 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2780 * c-opts.c (c_common_handle_option): Update calls to
2781 set_struct_debug_option.
2783 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2785 * c-common.h (objc_declare_protocols): Added additional argument.
2786 * stub-objc.c (objc_declare_protocol): Same change.
2788 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2791 * c-common.h (build_real_imag_expr): Declare.
2792 * c-semantics.c (build_real_imag_expr): Define.
2794 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2796 * c-opts.c (c_common_parse_file): Take no arguments.
2797 * c-common.h (c_common_parse_file): Update prototype.
2799 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2802 * c-common.c (warning_candidate_p): Don't track non-const calls
2805 2010-11-15 Ian Lance Taylor <iant@google.com>
2807 * c-lex.c (init_c_lex): Set macro debug callbacks if
2808 flag_dump_go_spec is set.
2810 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2812 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2813 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2815 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2817 PR preprocessor/45038
2818 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2821 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2823 * c-common.h (c_family_lang_mask): Declare.
2824 * c-opts.c (c_family_lang_mask): Make extern.
2825 * c-pragma.c (handle_pragma_diagnostic): Use
2826 control_warning_option.
2828 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2830 * c-common.c (parse_optimize_options): Update call to
2832 * c-common.h (c_common_handle_option): Update prototype.
2833 * c-opts.c (c_common_handle_option): Take location_t parameter and
2834 pass it to other functions.
2836 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2838 * c-opts.c (warning_as_error_callback): Remove.
2839 (c_common_initialize_diagnostics): Don't call
2840 register_warning_as_error_callback.
2841 (c_common_handle_option): Handle -Werror=normalized= here.
2843 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2845 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2847 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2849 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2850 Remove trailing '.' from diagnostics.
2851 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2853 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2855 * c-common.c (parse_optimize_options): Pass global_dc to
2857 * c-opts.c (c_common_handle_option): Pass &global_options to
2858 set_Wstrict_aliasing.
2859 * c.opt (v): Don't mark Common or document here.
2861 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2864 * c-format.c (format_type): New type gcc_objc_string_format_type.
2865 (valid_stringptr_type_p): New.
2866 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2867 (check_format_string): Pass expected type, use
2868 valid_stringptr_type_p (), check that the format string types are
2869 consistent with the format specification.
2870 (decode_format_attr): Warn if NSString is used outside objective-c.
2871 (format_types_orig): Add NSString.
2873 (format_flags): New.
2874 (check_format_arg): Handle format strings requiring an external parser.
2875 first_target_format_type: New variable.
2876 (handle_format_attribute): Set up first_target_format_type, pass the
2877 expected format arg string type to check_format_string().
2878 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2879 * stub-objc.c (objc_string_ref_type_p): New.
2880 (objc_check_format_arg): New.
2882 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2884 Fixed using the Objective-C 2.0 dot-syntax with class names.
2885 * c-common.h (objc_build_class_component_ref): New.
2886 * stub-objc.c (objc_build_class_component_ref): New.
2888 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2890 * c.opt (Wproperty-assign-default): New option.
2892 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2894 Implemented -fobjc-std=objc1 flag.
2895 * c.opt (fobjc-std=objc1): New option.
2897 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2899 Implemented format and noreturn attributes for Objective-C methods.
2900 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2901 attribute for Objective-C methods.
2903 2010-10-31 Jason Merrill <jason@redhat.com>
2905 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2908 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2910 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2911 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2912 (objc_add_property_declaration): Removed arguments for copies and
2914 (objc_build_getter_call): Renamed to
2915 objc_maybe_build_component_ref.
2916 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2917 (objc_is_property_ref): New.
2918 * c-common.c (c_common_reswords): Removed copies and ivar.
2919 * stub-objc.c (objc_add_property_declaration): Removed arguments
2920 for copies and ivar.
2921 (objc_build_getter_call): Renamed to
2922 objc_maybe_build_component_ref.
2923 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2924 (objc_is_property_ref): New.
2926 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2927 Matthew Gingell <gingell@adacore.com>
2929 * c-ada-spec.c (separate_class_package): New function.
2930 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2931 name of their enclosing package.
2932 (print_ada_declaration): Use separate_class_package.
2934 2010-10-27 Jason Merrill <jason@redhat.com>
2936 * c-common.c (c_common_reswords): Add __is_literal_type.
2937 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2939 * c-common.c (check_case_value): Remove special C++ code.
2941 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2943 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2944 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2946 (objc_add_property_declaration): Added additional arguments.
2947 (objc_property_attribute_kind): Removed.
2948 (objc_set_property_attr): Removed.
2949 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2951 * stub-objc.c (objc_add_property_declaration): Added additional
2953 (objc_set_property_attr): Removed.
2955 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2957 * c-common.h (objc_add_property_variable): Renamed to
2958 objc_add_property_declaration. Added location argument.
2959 * stub-objc.c (objc_add_property_variable): Same change.
2961 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2963 * c-common.h (objc_maybe_printable_name): New.
2964 * stub-objc.c (objc_maybe_printable_name): New.
2966 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2967 Andrew Pinski <pinskia@gmail.com>
2969 * c-common.h (c_common_mark_addressable_vec): Declare.
2970 * c-common.c (c_common_mark_addressable_vec): New function.
2972 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2974 * c-common.h (objc_set_method_type): Removed.
2975 (objc_add_method_declaration): Added boolean argument.
2976 (objc_start_method_definition): Same change.
2977 (objc_build_method_signature): Same change.
2978 * stub-objc.c (objc_set_method_type): Removed.
2979 (objc_add_method_declaration): Added boolean argument.
2980 (objc_start_method_definition): Same change.
2981 (objc_build_method_signature): Same change.
2983 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2985 * c-common.h (finish_file): Removed.
2986 (objc_write_global_declarations): New.
2987 * c-opts.c (c_common_parse_file): Do not call finish_file.
2988 * stub-objc.c (objc_write_global_declarations): New.
2990 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2992 Implemented parsing @synthesize and @dynamic for
2993 Objective-C/Objective-C++.
2994 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2995 (objc_add_synthesize_declaration): New.
2996 (objc_add_dynamic_declaration): New.
2997 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2998 * stub-objc.c (objc_add_synthesize_declaration): New.
2999 (objc_add_dynamic_declaration): New.
3001 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3004 * c-cppbuiltin.c (mode_has_fma): Move function here from
3005 builtins.c. Don't use the fma optab, instead just use the
3006 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
3009 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3011 Merge from 'apple/trunk' branch on FSF servers.
3013 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
3016 * c-common.h (objc_non_volatilized_type): New declaration
3017 * stub-objc.c (objc_non_volatilized_type): New stub.
3019 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3021 Merge from 'apple/trunk' branch on FSF servers.
3023 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3026 * c-common.h (objc_diagnose_private_ivar): New decl.
3027 * stub-objc.c (objc_diagnose_private_ivar): New stub.
3029 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3031 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
3032 * c-common.h (enum rid): Add RID_AT_PACKAGE.
3033 (objc_ivar_visibility_kind): New enum.
3034 (objc_set_visibility): Adjust prototype to use visibility enum.
3035 * stub-objc.c (objc_set_visibility): Adjust stub to use
3038 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3040 * c-cppbuiltin.c (builtin_define_float_constants): Emit
3041 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
3042 has the appropriate fma builtins.
3043 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
3045 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3047 merge from FSF apple 'trunk' branch.
3048 2006 Fariborz Jahanian <fjahanian@apple.com>
3050 Radars 4436866, 4505126, 4506903, 4517826
3051 * c-common.c (c_common_resword): Define @property and its attributes.
3052 * c-common.h: Define property attribute enum entries.
3053 (OBJC_IS_PATTR_KEYWORD): New.
3054 (objc_property_attribute_kind): New enum.
3055 Declare objc_set_property_attr (), objc_add_property_variable (),
3056 objc_build_getter_call () and objc_build_setter_call ().
3057 * stub-objc.c (objc_set_property_attr): New stub.
3058 (objc_add_property_variable): Likewise.
3059 (objc_build_getter_call): Likewise.
3060 (objc_build_setter_call) Likewise.
3062 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
3064 merge from FSF apple 'trunk' branch.
3065 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
3067 Radar 3803157 (method attributes)
3068 * c-common.c (handle_deprecated_attribute): Recognize
3069 objc methods as valid declarations.
3070 * c-common.h: Declare objc_method_decl ().
3071 * stub-objc.c (objc_method_decl): New stub.
3073 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3075 * c-common.c (parse_optimize_options): Call
3076 decode_cmdline_options_to_array_default_mask before
3077 decode_options. Update arguments to decode_options.
3078 * c-common.h (c_common_init_options_struct): Declare.
3079 * c-opts.c (c_common_init_options_struct): New. Split out from
3080 c_common_init_options.
3082 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
3084 Implemented fast enumeration for Objective-C.
3085 * c-common.h (objc_finish_foreach_loop): New.
3086 * stub-objc.c (objc_finish_foreach_loop): New.
3088 2010-10-05 Joseph Myers <joseph@codesourcery.com>
3090 * c-common.h (struct diagnostic_context): Don't declare here.
3091 (c_common_initialize_diagnostics): Declare using
3092 diagnostic_context typedef.
3093 * c-opts.c (c_common_handle_option): Pass global_dc to
3094 handle_generated_option.
3096 2010-10-04 Joseph Myers <joseph@codesourcery.com>
3098 * c-opts.c (c_common_handle_option): Pass &global_options_set to
3099 handle_generated_option.
3101 2010-10-03 Ian Lance Taylor <iant@google.com>
3103 * c.opt (-fplan9-extensions): New option.
3105 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
3107 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
3109 (c_cpp_builtins): Call functions from cppbuiltin.c instead
3110 of duplicating code.
3112 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
3114 * c-common.c: Add two new entries for @optional
3115 and @required keywords.
3117 merge from FSF 'apple/trunk' branch.
3118 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
3121 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
3122 objective-c keywords.
3123 (objc_set_method_opt): New declaration.
3124 * stub-objc.c (objc_set_method_opt): New stub.
3126 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3128 * c-common.c (handle_optimize_attribute): Pass &global_options to
3129 cl_optimization_save and cl_optimization_restore.
3130 * c-opts.c (c_common_handle_option): Pass &global_options to
3131 handle_generated_option.
3132 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
3133 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
3134 &global_options to cl_optimization_restore.
3136 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
3138 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
3139 Objective-C/Objective-C++ keywords.
3141 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3143 Merge from 'apple/trunk' branch on FSF servers.
3145 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
3148 * c-common.h (objc_check_global_decl): New declaration.
3149 * stub-objc.c (objc_check_global_decl): New stub.
3151 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3153 * c.opt: Don't use VarExists.
3155 2010-09-29 Joseph Myers <joseph@codesourcery.com>
3157 * c-common.c (c_cpp_error): Update names of diagnostic_context
3159 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
3160 cl_optimization members.
3161 * c-opts.c (warning_as_error_callback, c_common_handle_option,
3162 sanitize_cpp_opts, finish_options): Update names of cpp_options
3165 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
3167 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
3168 (objc_is_reserved_word): Removed.
3169 * c-common.c: Updated comments.
3170 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
3171 objc_is_reserved_word.
3172 * stub-objc.c (objc_is_reserved_word): Removed.
3174 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3176 * c-common.h (objc_add_method_declaration): Adjust prototype to
3178 (objc_start_method_definition): Likewise.
3179 (objc_build_keyword_decl): Likewise.
3180 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
3181 (objc_start_method_definition): Likewise.
3182 (objc_build_keyword_decl): Likewise.
3184 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
3186 * c-common.h (objc_start_class_interface): Adjust prototype.
3187 (objc_start_category_interface): Likewise.
3188 (objc_start_protocol): Likewise.
3189 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
3190 (objc_start_class_interface): Likewise.
3191 (objc_start_category_interface): Likewise.
3193 2010-09-27 Ian Lance Taylor <iant@google.com>
3195 * c-common.c (c_common_attribute_table): Add no_split_stack.
3196 (handle_no_split_stack_attribute): New static function.
3198 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
3200 Merge from 'apple/trunk' branch on FSF servers.
3202 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
3205 * c-common.h (objc_have_common_type): New declaration.
3206 * stub-objc.c (objc_have_common_type): New stub.
3208 2005-06-22 Ziemowit Laski <zlaski@apple.com>
3211 * c-common.h (objc_common_type): New prototype.
3212 * stub-objc.c (objc_common_type): New stub.
3214 2010-09-24 Jan Hubicka <jh@suse.cz>
3216 * c-common.c (handle_leaf_attribute): New function.
3217 (struct attribute_spec c_common_att): Add leaf.
3219 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3221 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
3222 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
3223 -dump, -dump=, -imacros, -imacros=, -include, -include=,
3224 -include-barrier, -include-directory, -include-directory=,
3225 -include-directory-after, -include-directory-after=,
3226 -include-prefix, -include-prefix=, -include-with-prefix,
3227 -include-with-prefix=, -include-with-prefix-after,
3228 -include-with-prefix-after=, -include-with-prefix-before,
3229 -include-with-prefix-before=, -no-integrated-cpp,
3230 -no-line-commands, -no-standard-includes, -no-warnings, -output,
3231 -output=, -pedantic, -pedantic-errors, -preprocess,
3232 -print-missing-file-dependencies, -trace-includes, -traditional,
3233 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
3234 -user-dependencies, -verbose, -write-dependencies,
3235 -write-user-dependencies, no-integrated-cpp, traditional): New.
3237 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3240 * c-common.h (objc_start_method_definition): Return bool instead
3242 * stub-objc.c (objc_start_method_definition): Return bool instead
3245 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
3248 * c-common.h (objc_get_interface_ivars): New declaration.
3249 * stub-objc.c (objc_get_interface_ivars): New stub.
3251 2010-09-15 Ian Lance Taylor <iant@google.com>
3253 * c-common.c (parse_optimize_options): Do not capitalize warning
3254 messages. Remove period at end of warning message.
3256 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
3258 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
3259 (handle_alias_attribute): ... here.
3260 (handle_ifunc_attribute): New.
3262 2010-09-06 Mark Mitchell <mark@codesourcery.com>
3264 * c-common.h (do_warn_double_promotion): Declare.
3265 * c-common.c (do_warn_double_promotion): Define.
3267 2010-09-05 Mark Mitchell <mark@codesourcery.com>
3269 * c.opt (Wdouble-promotion): New.
3271 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3273 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
3274 fvtable-thunks, fxref): Mark no longer supported in help text.
3276 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3278 * c.opt (Wimport, fall-virtual, falt-external-templates,
3279 fdefault-inline, fenum-int-equiv, fexternal-templates,
3280 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
3281 fname-mangling-version-, fnew-abi, fnonnull-objects,
3282 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
3283 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
3285 (fhandle-exceptions): Mark with Alias and Warn.
3286 * c-opts.c (c_common_handle_option): Don't handle options marked
3289 2010-09-02 Joseph Myers <joseph@codesourcery.com>
3291 * c.opt (Wcomments, Werror-implicit-function-declaration,
3292 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
3293 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
3295 * c-common.c (option_codes): Use OPT_Wcomment instead of
3297 * c-opts.c (warning_as_error_callback, c_common_handle_option):
3298 Don't handle options marked as aliases.
3300 2010-08-25 Richard Guenther <rguenther@suse.de>
3302 * c-common.c (c_common_get_alias_set): Remove special
3303 handling for pointers.
3305 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
3307 * c-common.c: Use FOR_EACH_VEC_ELT.
3308 * c-gimplify.c: Likewise.
3309 * c-pragma.c: Likewise.
3311 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3313 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3315 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3317 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3318 instead of OPT_MDX and OPT_MMDX.
3320 2010-08-16 Joseph Myers <joseph@codesourcery.com>
3322 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3324 2010-08-12 Joseph Myers <joseph@codesourcery.com>
3326 * c.opt (MD, MMD): Change to MDX and MMDX.
3327 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3329 2010-08-11 Joseph Myers <joseph@codesourcery.com>
3331 * c-opts.c (c_common_handle_option): Call handle_generated_option
3332 instead of handle_option.
3334 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3336 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3337 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3339 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3341 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3342 (pending_redefine_extname): Change type to a VEC.
3343 (add_to_renaming_pragma_list): Update for new type of
3344 pending_redefine_extname.
3345 (maybe_apply_renaming_pragma): Likewise.
3347 2010-08-04 Arnaud Charlet <charlet@adacore.com>
3349 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3351 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3352 decide whether a type has already been declared/seen.
3353 Do not go to the original type.
3354 (dump_nested_types): New parameter forward.
3355 Generate forward declaration if needed and mark type as visited.
3356 (print_ada_declaration): Call dump_nested_types if not already done.
3357 Mark types as visited.
3359 2010-08-03 Joseph Myers <joseph@codesourcery.com>
3361 * c.opt (-print-pch-checksum): Remove option.
3362 * c-opts.c (c_common_handle_option): Don't handle
3363 OPT_print_pch_checksum.
3365 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3367 * c-common.h (c_common_handle_option): Update prototype and return
3369 * c-opts.c (c_common_handle_option): Update prototype and return
3370 value type. Update calls to handle_option and
3371 enable_warning_as_error.
3373 2010-07-27 Jakub Jelinek <jakub@redhat.com>
3376 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3378 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3380 * c-common.h (c_common_missing_argument): Remove.
3381 * c-opts.c (c_common_missing_argument): Remove.
3382 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3383 idirafter, imacros, include, isysroot, isystem, iquote): Add
3385 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3387 2010-07-27 Joseph Myers <joseph@codesourcery.com>
3389 * c-common.h (c_common_option_lang_mask,
3390 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3392 (c_common_init_options): Update prototype.
3393 * c-opts.c (c_common_option_lang_mask): New.
3394 (c_common_initialize_diagnostics): Split out of
3395 c_common_init_options.
3396 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3398 (c_common_init_options): Update prototype. Use decoded options in
3399 search for -lang-asm.
3401 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3403 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3404 * c-format.c: Likewise.
3406 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3408 * c-common.h: Include diagnostic-core.h. Error if already
3410 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3412 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3414 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3415 Do not include expr.h
3416 (vector_mode_valid_p): Move here.
3418 2010-06-21 DJ Delorie <dj@redhat.com>
3420 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3421 allow these pragmas anywhere.
3423 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3426 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3427 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3428 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3429 ggc_strdup instead of xstrdup.
3431 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3433 * c-cppbuiltin.c: Include cpp-id-data.h.
3434 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3435 (lazy_hex_fp_value): New function.
3436 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3438 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3440 * c-gimplify.c: Do not include tree-flow.h
3442 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3445 * c-common.c: Rename targetm member:
3446 targetm.enum_va_list -> targetm.enum_va_list_p
3448 2010-06-28 Anatoly Sokolov <aesok@post.ru>
3450 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3452 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3454 * c-cppbuiltin.c: Do not include except.h.
3456 2010-06-24 Andi Kleen <ak@linux.intel.com>
3458 * c-common.c (warn_for_omitted_condop): New.
3459 * c-common.h (warn_for_omitted_condop): Add prototype.
3461 2010-06-21 Joseph Myers <joseph@codesourcery.com>
3463 * c.opt (lang-objc): Remove.
3464 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3466 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3468 * c-opts.c: Include "tm_p.h".
3470 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3472 * c-common.c (parse_optimize_options): Update call to
3475 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3477 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3478 new type of types_used_by_cur_var_decl.
3480 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3483 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3484 for C++ standard compliance.
3486 2010-06-16 Jason Merrill <jason@redhat.com>
3488 * c.opt: Add -Wnoexcept.
3490 2010-06-16 Richard Guenther <rguenther@suse.de>
3493 * c-common.c (c_common_truthvalue_conversion): Remove
3494 premature and wrong optimization concering ADDR_EXPRs.
3496 2010-06-15 Arnaud Charlet <charlet@adacore.com>
3498 * c-ada-spec.c (dump_sloc): Remove column info.
3499 (is_simple_enum): New function.
3500 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3501 enum types when relevant.
3503 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3505 * c-common.c (conversion_warning): Warn at expression
3508 2010-06-10 Joseph Myers <joseph@codesourcery.com>
3510 * c-opts.c (c_common_handle_option): Don't handle
3513 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3515 * c-pragma.c (push_alignment): Use typed GC allocation.
3516 (handle_pragma_push_options): Likewise.
3518 * c-common.c (parse_optimize_options): Likewise.
3520 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3523 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3525 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3526 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3527 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3528 flag_signed_bitfields, warn_strict_null_sentinel,
3529 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3530 flag_gen_declaration, flag_no_gnu_keywords,
3531 flag_implement_inlines, flag_implicit_templates,
3532 flag_implicit_inline_templates, flag_optional_diags,
3533 flag_elide_constructors, flag_default_inline, flag_rtti,
3534 flag_conserve_space, flag_access_control, flag_check_new,
3535 flag_new_for_scope, flag_weak, flag_working_directory,
3536 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3537 flag_enforce_eh_specs, flag_threadsafe_statics,
3538 flag_pretty_templates): Remove.
3539 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3540 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3541 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3542 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3543 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3544 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3545 flag_no_gnu_keywords, flag_implement_inlines,
3546 flag_implicit_templates, flag_implicit_inline_templates,
3547 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3548 flag_rtti, flag_conserve_space, flag_access_control,
3549 flag_check_new, flag_new_for_scope, flag_weak,
3550 flag_working_directory, flag_use_cxa_atexit,
3551 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3552 flag_threadsafe_statics, flag_pretty_templates,
3553 warn_strict_null_sentinel): Remove.
3554 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3555 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3556 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3557 fimplicit-inline-templates, fimplicit-templates,
3558 flax-vector-conversions, fms-extensions, fnil-receivers,
3559 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3560 frtti, fshort-double, fshort-enums, fshort-wchar,
3561 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3562 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3563 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3564 gen-decls, undef): Use Var.
3565 (fdefault-inline, foptional-diags): Document as doing nothing.
3566 * c-opts.c (c_common_handle_option): Remove cases for options now
3567 using Var. Mark ignored options as such.
3569 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3571 * c-common.c: Moved to here from parent directory.
3572 * c-common.def: Likewise.
3573 * c-common.h: Likewise.
3574 * c-cppbuiltin.c: Likewise.
3575 * c-dump.c: Likewise.
3576 * c-format.c: Likewise.
3577 * c-format.h : Likewise.
3578 * c-gimplify.c: Likewise.
3579 * c-lex.c: Likewise.
3580 * c-omp.c: Likewise.
3582 * c-opts.c: Likewise.
3583 * c-pch.c: Likewise.
3584 * c-ppoutput.c: Likewise.
3585 * c-pragma.c: Likewise.
3586 * c-pragma.h: Likewise.
3587 * c-pretty-print.c: Likewise.
3588 * c-pretty-print.h: Likewise.
3589 * c-semantics.c: Likewise.
3590 * stub-objc.c: Likewise.
3592 * c-common.c: Include gt-c-family-c-common.h.
3593 * c-pragma.c: Include gt-c-family-c-pragma.h.
3595 Copyright (C) 2010-2014 Free Software Foundation, Inc.
3597 Copying and distribution of this file, with or without modification,
3598 are permitted in any medium without royalty provided the copyright
3599 notice and this notice are preserved.