1 2015-05-25 Marek Polacek <polacek@redhat.com>
3 * c-ubsan.c (ubsan_instrument_shift): Use type0.
5 2015-05-22 Marek Polacek <polacek@redhat.com>
8 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
10 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
15 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
18 STACK_GROWS_DOWNWARD rather than if it is defined.
20 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
23 * c-format.c (location_column_from_byte_offset): New.
24 (location_from_offset): New.
25 (struct format_wanted_type): Add offset_loc field.
26 (check_format_info): Move handling of location for extra arguments
27 closer to the point of warning.
28 (check_format_info_main): Pass the result of location_from_offset
30 (format_type_warning): Pass the result of location_from_offset
33 2015-05-20 Marek Polacek <polacek@redhat.com>
35 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
37 2015-05-20 Marek Polacek <polacek@redhat.com>
39 * c-ada-spec.c (dump_sloc): Use DECL_P.
41 2015-05-20 Marek Polacek <polacek@redhat.com>
43 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
44 * c-common.c: Likewise.
46 2015-05-19 David Malcolm <dmalcolm@redhat.com>
48 * c-common.h (fe_file_change): Strengthen param from
49 const line_map * to const line_map_ordinary *.
50 (pp_file_change): Likewise.
51 * c-lex.c (fe_file_change): Likewise.
52 (cb_define): Use linemap_check_ordinary when invoking
55 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
56 invoking cb_file_change.
57 (c_finish_options): Likewise.
58 (push_command_line_include): Likewise.
59 (cb_file_change): Strengthen param "new_map" from
60 const line_map * to const line_map_ordinary *.
61 * c-ppoutput.c (cb_define): Likewise for local "map".
62 (pp_file_change): Likewise for param "map" and local "from".
64 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
66 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
68 2015-05-18 Tom de Vries <tom@codesourcery.com>
70 * c-common.c (build_va_arg_1): New function.
71 (build_va_arg): Add address operator to va_list operand if necessary.
73 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
76 * c-common.c (int_safely_convertible_to_real_p): Define.
77 (unsafe_conversion_p): Check conversions involving complex types.
78 (conversion_warning): Add new warning message for conversions which
79 discard imaginary component.
80 * c-common.h: (enum conversion_safety): Add new enumerator for such
83 2015-05-14 Marek Polacek <polacek@redhat.com>
87 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
88 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
89 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
90 use it. If FOR_INT_CONST, require that all evaluated operands be
93 2015-05-12 David Malcolm <dmalcolm@redhat.com>
95 * c-common.h (warn_for_misleading_indentation): New prototype.
96 * c-indentation.c: New file.
97 * c.opt (Wmisleading-indentation): New option.
99 2015-05-12 Tom de Vries <tom@codesourcery.com>
101 PR tree-optimization/66010
102 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
104 2015-05-09 Jason Merrill <jason@redhat.com>
106 * c-opts.c (c_common_post_options): Also clear
107 cpp_opts->cpp_warn_cxx11_compat.
109 * c-common.h (enum cxx_dialect): Add cxx_unset.
110 * c-common.c (cxx_dialect): Initialize to cxx_unset.
111 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
113 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
114 (std=gnu++0x): Mark as Undocumented.
115 (std=gnu++1y): Add deprecated message.
117 2015-05-08 Jason Merrill <jason@redhat.com>
119 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
122 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
124 2015-05-08 Marek Polacek <polacek@redhat.com>
127 * c.opt (Woverride-init-side-effects): New option.
129 2015-05-07 Marek Polacek <polacek@redhat.com>
132 * c-common.c (c_fully_fold_internal): Warn when left shifting a
134 * c.opt (Wshift-negative-value): New option.
135 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
136 when -Wextra and C99/C++11 mode.
138 2015-05-07 Marek Polacek <polacek@redhat.com>
139 Martin Uecker <uecker@eecs.berkeley.edu>
141 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
142 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
144 2015-05-05 Jason Merrill <jason@redhat.com>
146 * c.opt (Wterminate): New.
148 2015-04-30 Marek Polacek <polacek@redhat.com>
150 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
151 require that the non-constant be of a boolean type.
153 2015-04-29 Josh Triplett <josh@joshtriplett.org>
155 * c-common.c (handle_section_attribute): Refactor to reduce
156 nesting and distinguish between error cases.
158 2015-04-29 Marek Polacek <polacek@redhat.com>
161 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
164 2015-04-29 Jakub Jelinek <jakub@redhat.com>
166 * c-common.h (omp_clause_mask): Unconditionally define as a class.
167 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
168 HOST_BITS_PER_WIDE_INT.
170 2015-04-28 Tom de Vries <tom@codesourcery.com>
172 PR tree-optimization/65887
173 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
175 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
176 Pierre-Marie de Rodat <derodat@adacore.com>
178 * c-ada-spec.c (in_function): Delete.
179 (dump_generic_ada_node): Do not change in_function and remove the
180 redundant code dealing with it.
181 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
182 (print_ada_methods): Output the static member functions in a nested
183 package after the regular methods as well as associated renamings.
185 2015-04-24 Marek Polacek <polacek@redhat.com>
188 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
189 and OPT_Wshift_count_overflow.
192 * c-common.c (warn_logical_operator): Warn if the operands have the
195 2015-04-24 Marek Polacek <polacek@redhat.com>
198 * c-common.c (warn_logical_operator): Bail if either operand comes
199 from a macro expansion.
201 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
204 * c-common.c (c_default_pointer_mode): Add definition.
205 * c-common.h (c_default_pointer_mode): Add declaration.
207 2015-03-11 Jakub Jelinek <jakub@redhat.com>
209 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
210 on record_builtin_type argument.
212 2015-03-10 Jakub Jelinek <jakub@redhat.com>
215 * c-common.c (warn_logical_not_parentheses): Don't warn for
218 2015-03-07 Marek Polacek <polacek@redhat.com>
221 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
222 before trying to figure out whether we have a flexible array member.
224 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
225 Jonathan Wakely <jwakely.gcc@gmail.com>
227 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
229 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
232 * c-ada-spec.c (print_destructor): Remove obsolete code.
234 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
236 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
237 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
238 DECL_TEMPLATE_RESULT emulations.
239 (dump_ada_template)): Add guard for TYPE_METHODS.
241 2015-02-27 Marek Polacek <polacek@redhat.com>
244 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
246 2015-02-27 Kai Tietz <ktietz@redhat.com>
249 * c-pragma.c (handle_pragma_weak): Do not try to create
250 weak/alias of declarations not being function, or variable
253 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
256 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
258 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
260 2015-02-16 Marek Polacek <polacek@redhat.com>
263 * c-format.c (check_format_types): Handle null param.
265 2015-02-13 Marek Polacek <polacek@redhat.com>
268 * c-format.c (check_format_types): Don't warn about different
269 signedness if the original value is in the range of WANTED_TYPE.
271 2015-02-12 Jason Merrill <jason@redhat.com>
274 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
275 to the current highest version.
276 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
278 2015-02-04 Jakub Jelinek <jakub@redhat.com>
282 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
283 instead of RDIV_EXPR. Use build_binary_op instead of
286 2015-01-30 Joseph Myers <joseph@codesourcery.com>
288 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
289 to pass input_location as first argument.
291 2015-01-23 Tom de Vries <tom@codesourcery.com>
294 * c.opt (fopenacc): Mark as LTO option.
296 2015-01-23 Tom de Vries <tom@codesourcery.com>
299 * c.opt (fopenmp): Mark as LTO option.
301 2015-01-21 Jakub Jelinek <jakub@redhat.com>
304 * cilk.c (fill_decls_vec): Only put decls into vector v.
305 (compare_decls): Fix up formatting.
307 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
310 * cilk.c: Include vec.h.
311 (struct cilk_decls): New structure.
312 (wrapper_parm_cb): Split this function to...
313 (fill_decls_vec): ...this...
314 (create_parm_list): ...and this.
315 (compare_decls): New function.
316 (for_local_cb): Remove.
317 (wrapper_local_cb): Ditto.
318 (build_wrapper_type): For now first traverse and fill vector of
319 declarations then sort it and then deal with sorted vector.
320 (cilk_outline): Ditto.
321 (declare_one_free_variable): Ditto.
323 2015-01-21 Jason Merrill <jason@redhat.com>
326 * c-format.c (check_format_arg): Call decl_constant_value.
328 2015-01-19 Martin Liska <mliska@suse.cz>
330 * c-common.c (handle_noicf_attribute): New function.
332 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
333 Bernd Schmidt <bernds@codesourcery.com>
334 James Norris <jnorris@codesourcery.com>
335 Cesar Philippidis <cesar@codesourcery.com>
336 Ilmir Usmanov <i.usmanov@samsung.com>
337 Jakub Jelinek <jakub@redhat.com>
339 * c.opt (fopenacc): New option.
340 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
341 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
343 * c-common.h (c_finish_oacc_wait): New prototype.
344 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
345 (c_finish_oacc_wait): New function.
346 * c-pragma.c (oacc_pragmas): New variable.
347 (c_pp_lookup_pragma, init_pragma): Handle it.
348 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
349 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
350 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
351 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
352 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
353 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
354 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
355 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
356 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
357 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
358 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
359 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
360 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
361 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
362 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
363 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
364 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
365 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
366 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
367 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
368 PRAGMA_OACC_CLAUSE_WORKER.
370 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
372 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
373 for the new option fstack-protector_explicit.
374 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
375 (handle_stack_protect_attribute): New function.
377 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
379 * c.opt: New option -Warray-bounds=.
381 2015-01-09 Michael Collison <michael.collison@linaro.org>
383 * array-notation-common.c: Include hash-set.h, machmode.h,
384 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
385 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
386 * c-ada-spec.c: Ditto.
387 * c-cilkplus.c: Ditto.
388 * c-common.c: Include input.h due to flattening of tree.h.
389 Define macro GCC_C_COMMON_C.
390 * c-common.h: Flatten tree.h header files into c-common.h.
391 Remove include of tree-core.h.
392 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
393 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
394 fold-const.h, wide-int.h, and inchash.h due to
395 flattening of tree.h.
397 * c-format.c: Flatten tree.h header files into c-common.h.
398 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
399 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
400 fold-const.h, wide-int.h, and inchash.h due to
401 flattening of tree.h.
402 * c-dump.c: Include hash-set.h, machmode.h,
403 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
404 fold-const.h, wide-int.h, and inchash.h due to
405 flattening of tree.h.
406 * c-format.c: Include hash-set.h, machmode.h,
407 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
408 fold-const.h, wide-int.h, inchash.h and real.h due to
409 flattening of tree.h.
410 * c-gimplify.c: Include hash-set.h, machmode.h,
411 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
412 fold-const.h, wide-int.h, and inchash.h due to
413 flattening of tree.h.
419 * c-ppoutput.c: Ditto.
421 * c-pretty-print.c: Ditto.
422 * c-semantics.c: Ditto.
424 * stub-objc.c: Ditto.
426 2015-01-08 Jason Merrill <jason@redhat.com>
428 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
429 do_ubsan_in_current_function.
430 (ubsan_maybe_instrument_reference_or_call): Likewise.
431 * c-ubsan.h: Declare it.
433 2015-01-08 Mike Stump <mikestump@comcast.net>
435 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
437 2015-01-07 Marek Polacek <polacek@redhat.com>
440 * c-common.c (c_fully_fold_internal): Warn for division and modulo
441 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
443 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
446 * c.opt (Wsuggest-override): New option.
448 2015-01-05 Jakub Jelinek <jakub@redhat.com>
450 Update copyright years.
452 2015-01-05 Marek Polacek <polacek@redhat.com>
455 * c-common.c (warn_array_subscript_with_type_char): Add location_t
457 * c-common.h (warn_array_subscript_with_type_char): Update
460 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
462 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
463 Control macro with flag_sized_deallocation.
465 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
467 * c.opt (Wdiscarded-array-qualifiers): New option.
469 2014-12-19 Jakub Jelinek <jakub@redhat.com>
471 PR preprocessor/63831
472 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
473 and __has_cpp_attribute here.
474 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
475 c_common_has_attribute.
476 * c-common.h (c_common_has_attribute): New prototype.
477 * c-lex.c (init_c_lex): Set cb->has_attribute to
478 c_common_has_attribute instead of cb_has_attribute.
479 (get_token_no_padding): New function.
480 (cb_has_attribute): Renamed to ...
481 (c_common_has_attribute): ... this. No longer static. Use
482 get_token_no_padding, require ()s, don't build TREE_LIST
483 unnecessarily, fix up formatting, adjust diagnostics, call
486 2014-12-15 Jason Merrill <jason@redhat.com>
488 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
489 (-Wsized-deallocation): New.
490 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
491 to on in C++14 and up.
493 2014-12-11 Jason Merrill <jason@redhat.com>
495 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
497 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
498 we aren't complaining about VLAs.
500 2014-12-06 Marek Polacek <polacek@redhat.com>
502 PR tree-optimization/64183
503 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
504 shift-expression if it is integer_type_node. Use types_compatible_p.
506 2014-11-29 Jakub Jelinek <jakub@redhat.com>
508 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
509 last argument from create_tmp_var_raw and create_tmp_var calls.
510 * cilk.c (gimplify_cilk_spawn): Likewise.
511 * c-omp.c (c_finish_omp_atomic): Likewise.
513 2014-11-28 Marek Polacek <polacek@redhat.com>
515 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
516 instead of unsigned_type_node.
518 2014-11-28 Marek Polacek <polacek@redhat.com>
521 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
523 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
524 expression to unsigned_type_node.
526 2014-11-20 Mark Wielaard <mjw@redhat.com>
529 * c-opts.c (set_std_c89): Set lang_hooks.name.
530 (set_std_c99): Likewise.
531 (set_std_c11): Likewise.
532 (set_std_cxx98): Likewise.
533 (set_std_cxx11): Likewise.
534 (set_std_cxx14): Likewise.
535 (set_std_cxx1z): Likewise.
537 2014-11-21 Jakub Jelinek <jakub@redhat.com>
540 * c-common.h (convert_vector_to_pointer_for_subscript): Change
542 * c-common.c: Include gimple-expr.h.
543 (convert_vector_to_pointer_for_subscript): Change return type to
544 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
545 and copy it into a TARGET_EXPR and use that instead of *vecp
548 2014-11-19 David Malcolm <dmalcolm@redhat.com>
550 Merger of git branch "gimple-classes-v2-option-3".
551 * ChangeLog.gimple-classes: New.
552 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
553 from being just a vec<gimple> to a vec<gbind *>.
555 2014-11-18 Jakub Jelinek <jakub@redhat.com>
558 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
559 argument to ptype, set type to TREE_TYPE (ptype). Don't call
560 get_pointer_alignment for non-pointers. Use ptype, or if it is
561 reference type, corresponding pointer type, as type of kind
563 (ubsan_maybe_instrument_reference,
564 ubsan_maybe_instrument_member_call): Adjust callers.
566 2014-11-15 Marek Polacek <polacek@redhat.com>
569 * array-notation-common.c (is_sec_implicit_index_fn): Return false
571 (extract_array_notation_exprs): Return for NULL node.
573 2014-11-12 Joseph Myers <joseph@codesourcery.com>
575 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
576 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
578 2014-11-12 Jakub Jelinek <jakub@redhat.com>
581 * c-common.c (check_builtin_function_arguments): Handle
582 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
584 2014-11-10 Andi Kleen <ak@linux.intel.com>
587 * c-common.h (check_no_cilk): Declare.
588 * cilk.c (get_error_location): New function.
589 (check_no_cilk): Dito.
591 2014-11-10 Andi Kleen <ak@linux.intel.com>
593 * cilk.c (recognize_spawn): Use expression location
596 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
598 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
600 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
602 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
603 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
604 (__cpp_range_based_for, __cpp_initializer_lists,
605 __cpp_delegating_constructors, __cpp_nsdmi,
606 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
607 for C++11; (__cpp_attribute_deprecated): Remove in favor of
609 * c-lex.c (cb_has_attribute): New callback CPP function;
610 (init_c_lex): Set has_attribute callback.
612 2014-11-04 Richard Biener <rguenther@suse.de>
614 * c-common.c (shorten_compare): Do not shorten mixed
615 DFP and non-DFP compares.
617 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
619 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
620 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
621 Commentary and rearrangement of tests.
622 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
623 Commentary and rearrangement of tests.
624 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
625 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
627 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
629 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
630 enum from machine_mode.
632 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
634 * c-common.c: Adjust include files.
635 * c-gimplify.c: Ditto.
640 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
642 * c-gimplify.c: Adjust include files.
644 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
647 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
648 c_common_initialize_diagnostics.
649 * c-common.h: Likewise.
651 2014-10-24 Marek Polacek <polacek@redhat.com>
654 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
655 print "struct"/"union"/"enum" for typedefed names.
657 2014-10-23 Marek Polacek <polacek@redhat.com>
659 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
662 2014-10-22 Jakub Jelinek <jakub@redhat.com>
663 Yury Gribov <y.gribov@samsung.com>
665 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
666 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
667 instead of flag_sanitize_recover as bool flag.
669 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
671 * cilk.c: Revert previous change.
673 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
676 * cilk.c: Include vec.h.
677 (struct cilk_decls): New structure.
678 (wrapper_parm_cb): Split this function to...
679 (fill_decls_vec): ...this...
680 (create_parm_list): ...and this.
681 (compare_decls): New function.
682 (for_local_cb): Remove.
683 (wrapper_local_cb): Ditto.
684 (build_wrapper_type): For now first traverse and fill vector of
685 declarations then sort it and then deal with sorted vector.
686 (cilk_outline): Ditto.
687 (declare_one_free_variable): Ditto.
689 2014-10-17 Marek Polacek <polacek@redhat.com>
691 * c-opts.c (c_common_post_options): Set warn_implicit_int.
692 * c.opt (Wimplicit-int): Initialize to -1.
694 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
696 * c-pragma.c: Adjust include files.
697 * c-semantics.c: Likewise.
699 2014-10-16 DJ Delorie <dj@redhat.com>
701 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
704 2014-10-14 Jason Merrill <jason@redhat.com>
707 * c-common.h (CPP_PREPARSED_EXPR): New.
708 (N_CP_TTYPES): Adjust.
710 2014-10-15 Marek Polacek <polacek@redhat.com>
712 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
714 2014-10-14 DJ Delorie <dj@redhat.com>
716 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
717 types, not just __int128.
718 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
719 types, not just __int128.
720 (cpp_atomic_builtins): Round pointer sizes up.
721 (type_suffix): Use type precision, not specific types.
722 * c-common.c (c_common_reswords): Remove __int128 special case.
723 (c_common_type_for_size): Check for all __intN types, not just
725 (c_common_type_for_mode): Likewise.
726 (c_common_signed_or_unsigned_type): Likewise.
727 (c_build_bitfield_integer_type): Likewise.
728 (c_common_nodes_and_builtins): Likewise.
729 (keyword_begins_type_specifier): Likewise.
730 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
733 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
735 * c-common.c: Use hash_table instead of hashtab.
737 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
739 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
742 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
747 * c-common.c (warn_logical_operator): Punt for vectors.
749 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
751 Implement SD-6: SG10 Feature Test Recommendations
752 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
753 macros and the __has_header macro.
755 2014-09-30 Jason Merrill <jason@redhat.com>
757 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
758 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
759 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
761 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
762 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
764 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
765 * c-common.c (c_common_reswords): Remove __is_convertible_to.
767 2014-09-24 Marek Polacek <polacek@redhat.com>
771 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
773 2014-09-23 Andi Kleen <ak@linux.intel.com>
775 * c-common.c (handle_no_reorder_attribute): New function.
776 (c_common_attribute_table): Add no_reorder attribute.
778 2014-09-22 Joseph Myers <joseph@codesourcery.com>
780 * c-cppbuiltin.c (c_cpp_builtins): Define
781 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
784 2014-09-18 Joseph Myers <joseph@codesourcery.com>
786 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
787 for supported floating-point modes.
789 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
791 * c.opt (Wpsabi): Use LangEnabledBy.
792 * c-opts.c (c_common_handle_option): Do not handle here.
794 2014-09-12 Joseph Myers <joseph@codesourcery.com>
796 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
797 macros for floating-point modes.
799 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
802 * c-cppbuiltin.c (builtin_define_float_constants): Correct
803 __*_DENORM_MIN__ without denormals.
805 2014-09-10 Jakub Jelinek <jakub@redhat.com>
807 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
808 ubsan_instrument_vla, ubsan_instrument_return): Adjust
809 ubsan_create_data callers.
810 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
811 index is constant or BIT_AND_EXPR with constant mask and is
812 small enough for the bound.
813 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
814 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
816 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
818 * c.opt: Add CppReason to various flags.
819 (Wdate-time): Re-sort.
820 * c-common.c: Include c-common.h earlier.
821 (struct reason_option_codes_t): Delete.
822 (c_option_controlling_cpp_error): Prefix global type and struct
825 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
827 * c.opt (Wnormalized): New.
828 (Wnormalized=): Use Enum and Reject Negative.
829 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
831 2014-09-08 Joseph Myers <joseph@codesourcery.com>
833 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
834 digits of floating-point modes if -fbuilding-libgcc.
836 2014-09-05 Joseph Myers <joseph@codesourcery.com>
838 * c-cppbuiltin.c (c_cpp_builtins): Also define
839 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
840 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
841 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
842 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
843 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
844 __LIBGCC_STACK_GROWS_DOWNWARD__,
845 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
846 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
847 __LIBGCC_DWARF_FRAME_REGISTERS__,
848 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
849 __LIBGCC_STACK_POINTER_REGNUM__ and
850 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
851 (builtin_define_with_value): Handle backslash-escaping in string
854 2014-09-05 Richard Biener <rguenther@suse.de>
857 * c-format.c (check_format_arg): Properly handle
858 effectively signed POINTER_PLUS_EXPR offset.
860 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
862 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
863 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
864 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
866 * c-opts.c (c_common_handle_option): Do not handle here.
867 (sanitize_cpp_opts): Likewise.
868 * c-common.c (struct reason_option_codes_t): Handle
869 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
871 2014-09-03 Marek Polacek <polacek@redhat.com>
873 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
875 2014-09-02 Jakub Jelinek <jakub@redhat.com>
876 Balaji V. Iyer <balaji.v.iyer@intel.com>
877 Igor Zamyatin <igor.zamyatin@intel.com>
879 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
880 * c-common.c (c_common_reswords): Added _Cilk_for.
881 * c-common.h (enum rid): Added RID_CILK_FOR.
882 (cilk_for_number_of_iterations): Add declaration.
883 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
885 * c-pragma.c (init_pragma): Register "grainsize" pragma.
886 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
888 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
890 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
891 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
892 Wundef): Use CPP, Var and Init.
893 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
895 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
897 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
898 * c-opts.c (c_common_handle_option): Do not handle here.
900 2014-08-25 Jason Merrill <jason@redhat.com>
902 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
903 -std=c++14 and -std=gnu++14, rather than the reverse.
904 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
905 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
906 * c-common.h (cxx_dialect): Remove cxx1y.
908 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
910 * c-common.h (enum cxx_dialect): Add cxx14.
911 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
912 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
913 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
915 2014-08-22 Jason Merrill <jason@redhat.com>
917 * c.opt (std=gnu++17): Fix alias.
919 2014-08-22 Marek Polacek <polacek@redhat.com>
922 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
923 check for vector types. Drop LHS argument.
924 * c-common.h (warn_logical_not_parentheses): Adjust.
926 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
928 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
929 (Wmultichar): Likewise.
930 (Wdate-time): Use C-family languages instead of Common. Use CPP
932 * c-opts.c (c_common_handle_option): Do not handle the above
934 (sanitize_cpp_opts): Likewise.
936 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
939 * c-opts.c: Include tree-diagnostics.h.
940 (c_diagnostic_finalizer): New.
941 (c_common_initialize_diagnostics): Use it.
943 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
945 PR preprocessor/51303
946 * c-common.c (struct reason_option_codes_t option_codes):
947 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
949 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
953 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
954 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
955 (c_common_post_options): Call init_global_opts_from_cpp.
956 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
958 2014-08-19 Marek Polacek <polacek@redhat.com>
961 * c-common.c (maybe_warn_bool_compare): New function.
962 * c-common.h (maybe_warn_bool_compare): Declare.
963 * c.opt (Wbool-compare): New option.
965 2014-08-19 Marek Polacek <polacek@redhat.com>
967 * c.opt (Wc99-c11-compat): New option.
969 2014-08-19 Marek Polacek <polacek@redhat.com>
971 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
972 to warn_c90_c99_compat.
973 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
976 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
977 Steven Bosscher <steven@gcc.gnu.org>
980 * c-format.c: Add extra_arg_loc and format_string_loc to struct
981 format_check_results.
982 (check_function_format): Use true and add comment for boolean
984 (finish_dollar_format_checking): Use explicit location when warning.
985 (check_format_info): Likewise.
986 (check_format_arg): Set extra_arg_loc and format_string_loc.
987 (check_format_info_main): Use explicit location when warning.
988 (check_format_types): Pass explicit location.
989 (format_type_warning): Likewise.
991 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
994 * c-format.c: Handle Fortran flags.
996 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
999 * array-notation-common.c (find_rank): Added handling for other
1000 types of references.
1002 2014-08-10 Marek Polacek <polacek@redhat.com>
1005 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1006 * c.opt (Wc90-c99-compat): Add option.
1008 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1010 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1012 2014-08-03 Marek Polacek <polacek@redhat.com>
1014 * c-common.c (check_case_value): Add location_t parameter. Use it.
1015 (c_add_case_label): Pass loc to check_case_value.
1017 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1019 * cilk.c: Use hash_map instead of pointer_map.
1021 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1023 * c-gimplify.c: Use hash_set instead of pointer_set.
1025 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1028 * array-notation-common.c (extract_array_notation_exprs): Handling
1031 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1033 * c-common.h (min_align_of_type): Removed prototype.
1034 * c-common.c (min_align_of_type): Removed.
1035 * c-ubsan.h (ubsan_maybe_instrument_reference,
1036 ubsan_maybe_instrument_member_call): New prototypes.
1037 * c-ubsan.c: Include stor-layout.h and builtins.h.
1038 (ubsan_maybe_instrument_reference_or_call,
1039 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1042 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
1045 * c.opt (-Wreturn-local-addr): Move to common.opt.
1047 2014-07-30 Jason Merrill <jason@redhat.com>
1052 * c.opt (-fuse-all-virtuals): New.
1054 2014-07-30 Tom Tromey <tromey@redhat.com>
1057 * c.opt (Wdesignated-init): New option.
1058 * c-common.c (c_common_attribute_table): Add "designated_init".
1059 (handle_designated_init): New function.
1061 2014-07-24 Marek Polacek <polacek@redhat.com>
1064 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1066 2014-07-16 Dodji Seketeli <dodji@redhat.com>
1068 PR preprocessor/60723 - missing system-ness marks for macro tokens
1069 * c-ppoutput.c (struct print::prev_was_system_token): New data
1071 (init_pp_output): Initialize it.
1072 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1073 (do_line_change): Return a flag saying if a line marker was
1075 (scan_translation_unit): Detect if the system-ness of the token we
1076 are about to emit is different from the one of the previously
1077 emitted token. If so, emit a line marker. Avoid emitting useless
1078 adjacent line markers. Avoid emitting line markers for tokens
1079 originating from the expansion of built-in macros.
1080 (scan_translation_unit_directives_only): Adjust.
1082 2014-07-15 Marek Polacek <polacek@redhat.com>
1084 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1085 TYPE_MAX_VALUE is NULL.
1087 2014-07-14 Jakub Jelinek <jakub@redhat.com>
1090 * c.opt (Wmemset-transposed-args): New warning.
1092 2014-07-10 Jason Merrill <jason@redhat.com>
1096 * c.opt (-fuse-all-virtuals): New.
1098 2014-07-09 Richard Biener <rguenther@suse.de>
1101 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1102 using unsigned arithmetic if overflow does not wrap instead of
1103 if overflow is undefined.
1105 2014-07-06 Marek Polacek <polacek@redhat.com>
1108 * c.opt (Wsizeof-array-argument): New option.
1110 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1112 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1113 comments->count <= 1, as comments->entries might be NULL.
1115 2014-07-01 Marek Polacek <polacek@redhat.com>
1117 * c.opt (Wint-conversion): New option.
1119 2014-07-01 Marek Polacek <polacek@redhat.com>
1122 * c.opt (Wincompatible-pointer-types): New option.
1124 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1127 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1128 Do not discard TYPE_QUALS of type.
1130 2014-06-26 Jason Merrill <jason@redhat.com>
1132 * c-common.h (enum cxx_dialect): Add cxx1z.
1133 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1134 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1136 2014-06-26 Teresa Johnson <tejohnson@google.com>
1138 * c-common.h (get_dump_info): Declare.
1139 * c-gimplify.c (c_genericize): Use saved dump files.
1140 * c-opts.c (c_common_parse_file): Begin and end dumps
1141 once around parsing invocation.
1142 (get_dump_info): New function.
1144 2014-06-23 Marek Polacek <polacek@redhat.com>
1145 Andrew MacLeod <amacleod@redhat.com>
1148 * c-common.c (get_atomic_generic_size): Don't segfault if the
1149 type doesn't have a size.
1151 2014-06-20 Marek Polacek <polacek@redhat.com>
1153 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1154 (ubsan_walk_array_refs_r): New function.
1155 (c_genericize): Instrument array bounds.
1156 * c-ubsan.c: Include "internal-fn.h".
1157 (ubsan_instrument_division): Mark instrumented arrays as having
1158 side effects. Adjust ubsan_type_descriptor call.
1159 (ubsan_instrument_shift): Likewise.
1160 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1161 (ubsan_instrument_bounds): New function.
1162 (ubsan_array_ref_instrumented_p): New function.
1163 (ubsan_maybe_instrument_array_ref): New function.
1164 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1165 (ubsan_array_ref_instrumented_p): Declare.
1166 (ubsan_maybe_instrument_array_ref): Declare.
1168 2014-06-20 Hale Wang <hale.wang@arm.com>
1171 * c.opt (fshort-enums): Add to LTO.
1172 * c.opt (fshort-wchar): Likewise.
1174 2014-06-16 Marek Polacek <polacek@redhat.com>
1177 * c.opt (Wswitch-bool): Add Var.
1179 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1182 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1183 #pragma omp target teams or
1184 #pragma omp {,target }teams distribute simd.
1186 2014-06-12 Jason Merrill <jason@redhat.com>
1188 * c.opt (Wabi=, fabi-compat-version): New.
1189 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1190 (c_common_post_options): Handle flag_abi_compat_version default.
1191 Disallow -fabi-compat-version=1.
1192 * c-common.h (abi_version_crosses): New.
1194 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1196 * c-common.c (handle_section_attribute): Update handling for
1197 section names that are no longer trees.
1199 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1202 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1203 (omp_pragmas): ... back here.
1205 2014-06-05 Marek Polacek <polacek@redhat.com>
1208 * c-common.c (warn_logical_not_parentheses): New function.
1209 * c-common.h (warn_logical_not_parentheses): Declare.
1210 * c.opt (Wlogical-not-parentheses): New option.
1212 2014-06-04 Marek Polacek <polacek@redhat.com>
1215 * c-common.c (check_case_bounds): Add location parameter.
1217 (c_add_case_label): Pass loc to check_case_bounds.
1219 2014-06-03 Marek Polacek <polacek@redhat.com>
1222 * c.opt (Wswitch-bool): New option.
1224 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1226 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1228 (record_types_used_by_current_var_decl): Move prototype to where
1231 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1232 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1233 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1235 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1237 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1238 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1240 * c-pretty-print.c (pp_c_void_constant): New function.
1241 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1242 (c_pretty_printer::expression): Handle VOID_CST.
1243 * cilk.c (extract_free_variables): Likewise.
1244 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1245 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1247 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1249 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1250 * c-pragma.c (push_alignment): Adjust.
1251 (handle_pragma_push_options): Likewise.
1253 2014-05-09 Marek Polacek <polacek@redhat.com>
1256 * c-common.c (check_user_alignment): Return -1 if alignment is error
1258 (handle_aligned_attribute): Don't call default_conversion on
1260 (handle_vector_size_attribute): Likewise.
1261 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1262 (handle_sentinel_attribute): Call default_conversion and allow even
1263 integral types as an argument.
1265 2014-05-08 Marek Polacek <polacek@redhat.com>
1268 * c-common.c (min_align_of_type): New function factored out from...
1269 (c_sizeof_or_alignof_type): ...here.
1270 * c-common.h (min_align_of_type): Declare.
1272 2014-05-08 Marek Polacek <polacek@redhat.com>
1275 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1276 parameter type of main.
1278 2014-05-07 DJ Delorie <dj@redhat.com>
1280 * c-cppbuiltin.c (print_bits_of_hex): New.
1281 (builtin_define_type_minmax): Print values using hex so as not to
1282 require a pre-computed list of string values.
1284 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1285 Mike Stump <mikestump@comcast.net>
1286 Richard Sandiford <rdsandiford@googlemail.com>
1288 * c-ada-spec.c: Include wide-int.h.
1289 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1290 (dump_generic_ada_node): Use wide-int interfaces.
1291 * c-common.c: Include wide-int-print.h.
1292 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1293 (pointer_int_sum): Use wide-int interfaces.
1294 (c_common_nodes_and_builtins): Use make_int_cst.
1295 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1296 (handle_alloc_size_attribute): Use wide-int interfaces.
1297 (get_nonnull_operand): Likewise.
1298 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1299 * c-lex.c: Include wide-int.h.
1300 (narrowest_unsigned_type): Take a widest_int rather than two
1302 (narrowest_signed_type): Likewise.
1303 (interpret_integer): Update accordingly. Use wide-int interfaces.
1304 (lex_charconst): Use wide-int interfaces.
1305 * c-pretty-print.c: Include wide-int.h.
1306 (pp_c_integer_constant): Use wide-int interfaces.
1307 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1308 INT_CST_LT_UNSIGNED.
1310 2014-05-06 Richard Biener <rguenther@suse.de>
1312 * c-opts.c (c_common_post_options): For -freestanding,
1313 -fno-hosted and -fno-builtin disable pattern recognition
1314 if not enabled explicitely.
1316 2014-05-02 Marek Polacek <polacek@redhat.com>
1318 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1320 2014-05-01 Marek Polacek <polacek@redhat.com>
1323 * c.opt (Wdiscarded-qualifiers): Add.
1325 2014-04-30 Marek Polacek <polacek@redhat.com>
1327 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1328 INT_MIN / -1 sanitization only for integer types.
1330 2014-04-25 Marek Polacek <polacek@redhat.com>
1333 * c-common.c (handle_noinline_attribute): Warn if the attribute
1334 conflicts with always_inline attribute.
1335 (handle_always_inline_attribute): Warn if the attribute conflicts
1336 with noinline attribute.
1338 2014-04-25 Marek Polacek <polacek@redhat.com>
1341 * c-common.c (check_main_parameter_types): Warn about variadic main.
1343 2014-04-24 Mike Stump <mikestump@comcast.net>
1345 * c.opt (Wshadow-ivar): Default to on.
1347 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1349 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1351 2014-04-23 Marek Polacek <polacek@redhat.com>
1353 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1355 2014-04-22 Jakub Jelinek <jakub@redhat.com>
1358 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1359 if flag_sanitize_undefined_trap_on_error.
1360 (ubsan_instrument_division, ubsan_instrument_shift,
1361 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1362 if !flag_sanitize_recover.
1364 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
1367 * c-common.c (registered_builtin_types): Make non-static.
1368 * c-common.h (registered_builtin_types): Declare.
1370 2014-04-14 Richard Biener <rguenther@suse.de>
1371 Marc Glisse <marc.glisse@inria.fr>
1374 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1375 apply may-alias the scalar pointer type when applicable.
1377 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1380 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1381 as possible argument for Cilk_spawn.
1383 2014-04-11 Tobias Burnus <burnus@net-b.de>
1386 * c.opt (Wformat-signedness): Add
1387 * c-format.c(check_format_types): Use it.
1389 2014-04-11 Jason Merrill <jason@redhat.com>
1392 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1393 default_conversion for an array argument.
1395 2014-04-08 Marek Polacek <polacek@redhat.com>
1398 * c-ubsan.c: Include asan.h.
1399 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1401 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1403 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1405 2014-04-02 Marek Polacek <polacek@redhat.com>
1407 * c-common.h (c_expand_expr): Remove declaration.
1409 2014-03-28 Jakub Jelinek <jakub@redhat.com>
1412 * c-common.c (add_atomic_size_parameter): When creating new
1413 params vector, push the size argument first.
1415 2014-03-26 Jakub Jelinek <jakub@redhat.com>
1417 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1418 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1419 ubsan_create_data callers.
1421 2014-03-22 Jakub Jelinek <jakub@redhat.com>
1424 * c-opts.c (c_finish_options): Restore cb_file_change call to
1427 2014-03-13 Jakub Jelinek <jakub@redhat.com>
1430 * c-pragma.c (apply_pragma_weak): Only look at
1431 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1432 DECL_ASSEMBLER_NAME_SET_P (decl).
1433 (maybe_apply_pending_pragma_weaks): Exit early if
1434 vec_safe_is_empty (pending_weaks) rather than only when
1436 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1437 set assembler name back to NULL afterwards.
1439 2014-03-11 Jason Merrill <jason@redhat.com>
1441 * c.opt: Add -std=gnu++14.
1443 2014-03-11 Ian Bolton <ian.bolton@arm.com>
1445 * c-opts.c (c_common_post_options): Don't override
1446 -ffp-contract=fast if unsafe-math-optimizations is on.
1448 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
1450 * c.opt: Enable LTO FE for fshort-double.
1452 2014-03-07 Jason Merrill <jason@redhat.com>
1454 * c.opt: Add -std=c++14.
1456 2014-03-06 Marek Polacek <polacek@redhat.com>
1459 * cilk.c (contains_cilk_spawn_stmt): New function.
1460 (contains_cilk_spawn_stmt_walker): Likewise.
1461 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1462 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1464 2014-03-03 Jakub Jelinek <jakub@redhat.com>
1466 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1467 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1468 even when flag_preprocess_only.
1470 2014-02-26 Jason Merrill <jason@redhat.com>
1474 * c-common.c (shorten_compare): Don't check
1475 c_inhibit_evaluation_warnings.
1477 2014-02-19 Jakub Jelinek <jakub@redhat.com>
1480 * c-common.c (c_common_nodes_and_builtins): When initializing
1481 c_uint{16,32,64}_type_node, also set corresponding
1482 uint{16,32,64}_type_node to the same value.
1485 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1486 for PRAGMA_IVDEP if flag_preprocess_only.
1488 2014-02-12 Jakub Jelinek <jakub@redhat.com>
1491 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1492 if false, add ADD itself, rather than vice versa.
1493 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1494 copy. For SAVE_EXPR, only call merge_tlist once.
1496 2014-02-08 Jakub Jelinek <jakub@redhat.com>
1499 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1501 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1503 (c_common_attribute_table): Add alloc_align and assume_aligned
1506 2014-02-06 Marek Polacek <polacek@redhat.com>
1509 * c-common.c (warn_for_sign_compare): Call warning_at with location
1512 2014-02-05 Marek Polacek <polacek@redhat.com>
1515 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1518 2014-02-04 Marek Polacek <polacek@redhat.com>
1521 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1524 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
1528 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1529 handle_vector_size_attribute, handle_nonnull_attribute): Call
1530 default_conversion on the attribute argument.
1531 (handle_nonnull_attribute): Increment the argument number.
1533 2014-01-31 Marek Polacek <polacek@redhat.com>
1536 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1537 build_function_call_vec.
1538 (resolve_overloaded_builtin): Likewise.
1539 * c-common.h (build_function_call_vec): Adjust declaration.
1541 2014-01-30 Marek Polacek <polacek@redhat.com>
1544 * c-common.h (unsafe_conversion_p): Adjust declaration.
1545 (warnings_for_convert_and_check): Likewise.
1546 (convert_and_check): Likewise.
1547 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1548 expansion_point_location_if_in_system_header on it.
1549 (warnings_for_convert_and_check): Add location parameter. Call
1550 expansion_point_location_if_in_system_header on it. Use it.
1551 (convert_and_check): Add location parameter. Use it.
1552 (conversion_warning): Likewise.
1553 (c_add_case_label): Adjust convert_and_check calls.
1554 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1556 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1558 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1560 * c-pragma.c (init_pragma): Likewise.
1563 2014-01-23 Marek Polacek <polacek@redhat.com>
1566 * c-common.c (shorten_compare): Add location_t parameter.
1567 * c-common.h (shorten_binary_op): Adjust declaration.
1569 2014-01-23 Marek Polacek <polacek@redhat.com>
1572 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1573 * c-common.h: Declare it.
1575 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1577 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1578 * c-ada-spec.c (dump_ads): Likewise.
1579 (cpp_check): Likewise.
1580 (dump_ada_specs): Likewise.
1582 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
1585 * c-common.c (handle_no_instrument_function_attribute): Allow
1586 no_instrument_function attribute in class member
1587 definition/declaration.
1589 2014-01-15 Jakub Jelinek <jakub@redhat.com>
1592 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1593 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1594 being COMPOUND_EXPR.
1595 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1596 operand a SAVE_EXPR and second MODIFY_EXPR.
1598 2014-01-09 Jakub Jelinek <jakub@redhat.com>
1601 * c-pch.c (c_common_write_pch): Call
1602 prepare_target_option_nodes_for_pch.
1604 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1606 Update copyright years
1608 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1610 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1611 the copyright notice.
1613 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1615 * c-ada-spec.c (print_constructor): New function.
1616 (print_destructor): Retrieve the origin of the destructor.
1617 (print_ada_declaration): Revamp handling of constructors/destructors.
1619 2013-12-23 Stuart Hastings <stuart@apple.com>
1620 Bill Maddox <maddox@google.com>
1621 Jason Merrill <jason@redhat.com>
1623 * c.opt: Add -fdeclone-ctor-dtor.
1624 * c-opts.c (c_common_post_options): Default to on iff -Os.
1626 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1628 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1630 * c-pragma.h (enum pragma_cilk_clause): Remove.
1631 (enum pragma_omp_clause): Added the following fields:
1632 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1633 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1634 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1635 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1636 PRAGMA_CILK_CLAUSE_UNIFORM.
1639 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1641 * cilk.c (cilk_outline): Made this function non-static.
1642 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1643 (create_cilk_wrapper): Added a new parameter: a function pointer.
1644 (c_install_body_w_frame_cleanup): Remove
1645 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1646 * c-common.h (cilk_outline): New prototype.
1647 (gimplify_cilk_spawn): Removed two parameters.
1648 (cilk_install_body_with_frame_cleanup): New prototype.
1649 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1650 CILK_SPAWN_STMT case.
1652 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1654 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1656 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1657 (int_array_type_node): Remove.
1658 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1660 2013-12-05 Marek Polacek <polacek@redhat.com>
1663 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1664 [ADJUST_FIELD_ALIGN].
1666 2013-12-04 Joseph Myers <joseph@codesourcery.com>
1669 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1670 and check field alignment if set.
1671 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1672 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1674 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1675 Marek Polacek <polacek@redhat.com>
1677 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1678 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1680 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1683 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1686 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1689 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1690 goto invalid. If it is error_mark_node, don't issue further
1693 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1695 * c.opt (Wopenmp-simd): New.
1697 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1699 * c-ubsan.h (ubsan_instrument_return): New prototype.
1700 * c-ubsan.c (ubsan_instrument_return): New function.
1702 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1704 * c-common.c: Add required include files from gimple.h.
1705 * c-gimplify.c: Likewise
1708 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1710 * c-common.c (unsafe_conversion_p): Remove use of
1711 EXPR_LOC_OR_HERE macro.
1712 (conversion_warning): Likewise.
1713 (warnings_for_convert_and_check): Likewise.
1714 (warn_for_collisions_1): Likewise.
1715 (shorten_compare): Likewise, and remove use of in_system_header
1716 macro, using the location from the former.
1717 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1718 (cb_def_pragma): Remove use of in_system_header macro.
1719 (lex_string): Likewise.
1720 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1722 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1723 Mike Stump <mikestump@comcast.net>
1724 Richard Sandiford <rdsandiford@googlemail.com>
1726 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1727 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1728 tree_fits_shwi_p or tree_fits_uhwi_p.
1729 (dump_generic_ada_node): Likewise.
1730 * c-format.c (check_format_arg): Likewise.
1731 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1733 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1735 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1737 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1740 * c-common.c (unsafe_conversion_p): Make this function
1741 return an enumeration with more detail.
1742 (conversion_warning): Use the new return type of
1743 unsafe_conversion_p to separately warn either about conversions
1744 that lower floating point number precision or about the other
1745 kinds of conversions.
1746 * c-common.h (enum conversion_safety): New enumeration.
1747 (unsafe_conversion_p): switching return type to
1748 conversion_safety enumeration.
1749 * c.opt: Adding new warning -Wfloat-conversion and
1750 enabling it with -Wconversion.
1752 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1754 * c-opts.c: Include plugin.h.
1755 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1757 2013-11-19 Marek Polacek <polacek@redhat.com>
1759 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1761 (ubsan_instrument_shift): Likewise.
1762 (ubsan_instrument_vla): Likewise.
1764 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1766 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1767 cast to unsigned type.
1769 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1771 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1773 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1774 rather than tree_low_cst.
1776 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1778 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1779 tree_to_uhwi throughout.
1781 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1783 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1784 tree_low_cst (..., 0) with tree_to_shwi throughout.
1786 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1788 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1789 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1791 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1793 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1794 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1796 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1798 * c-cilkplus.c: New file.
1799 * c-common.c (readonly_error): Add location argument.
1800 * c-common.h (readonly_error): Same.
1801 (c_finish_cilk_clauses): Protoize.
1802 (c_check_cilk_loop): Same.
1803 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1804 Do not fail on error_mark_node.
1805 Abstract increment canonicalization to here...
1806 (c_omp_for_incr_canonicalize_ptr): New.
1807 c-pragma.c (init_pragma): Register "simd" pragma.
1808 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1809 (enum pragma_cilk_clause): New.
1811 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1813 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1814 wchar_type and host_integerp checks.
1816 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1818 * c-common.c: Likewise.
1819 * c-gimplify.c: Likewise.
1822 2013-11-14 Diego Novillo <dnovillo@google.com>
1824 * c-common.c: Include fold-const.h.
1825 Include stor-layout.h.
1827 Include stringpool.h.
1830 Include trans-mem.h.
1831 * c-cppbuiltin.c: Include stor-layout.h.
1832 Include stringpool.h.
1833 * c-format.c: Include stringpool.h.
1834 * c-lex.c: Include stringpool.h.
1835 Include stor-layout.h.
1836 * c-pragma.c: Include stringpool.h.
1839 Include gcc-symtab.h.
1840 * c-pretty-print.c: Include stor-layout.h.
1842 * cilk.c: Include stringpool.h.
1845 2013-11-13 Joseph Myers <joseph@codesourcery.com>
1847 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1848 * c-common.c (c_common_reswords): Add __auto_type.
1849 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1851 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1853 * c-common.c: Include gimplify.h.
1854 * c-gimplify.c: Likewise.
1856 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1857 * c-ubsan.c: Don't include gimple.h.
1859 2013-11-12 Joseph Myers <joseph@codesourcery.com>
1861 * c-common.c (c_common_reswords): Add _Thread_local.
1863 2013-11-09 Joseph Myers <joseph@codesourcery.com>
1865 * c-common.c (atomic_size_supported_p): New function.
1866 (resolve_overloaded_atomic_exchange)
1867 (resolve_overloaded_atomic_compare_exchange)
1868 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1869 Use it instead of comparing size with a local list of sizes.
1871 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
1872 Joseph Myers <joseph@codesourcery.com>
1874 * c-common.h (enum rid): Add RID_ATOMIC.
1875 * c-common.c (c_common_reswords): Add _Atomic.
1876 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1877 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1878 * c-format.c (check_format_types): Check for extra _Atomic
1879 qualifiers in format argument.
1880 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1881 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1883 2013-11-06 Tobias Burnus <burnus@net-b.de>
1885 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1887 2013-11-06 Joseph Myers <joseph@codesourcery.com>
1889 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1891 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1892 to mean lack of IEEE 754 support.
1894 2013-11-05 Tobias Burnus <burnus@net-b.de>
1896 * c.opt (-Wdate-time): New option
1897 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1899 2013-11-05 Joseph Myers <joseph@codesourcery.com>
1901 * c-cppbuiltin.c (cpp_iec_559_value): Test
1902 flag_excess_precision_cmdline not flag_excess_precision.
1904 2013-11-05 Tobias Burnus <burnus@net-b.de>
1906 * c.opt (fopenmp-simd): New option.
1907 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1908 (omp_pragmas): ... this new struct.
1909 (c_pp_lookup_pragma): Also walk omp_pragmas.
1910 (init_pragma): Init pragmas for -fopenmp-simd.
1912 2013-11-04 Marek Polacek <polacek@redhat.com>
1915 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1917 2013-11-04 Joseph Myers <joseph@codesourcery.com>
1919 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1921 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1923 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1925 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1926 (dump_ada_specs): Adjust prototype of second callback.
1927 * c-ada-spec.c (cpp_check): New global variable.
1928 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1929 (print_generic_ada_decl): Likewise.
1930 (has_static_fields): Change return type to bool and add guard.
1931 (has_nontrivial_methods): New predicate.
1932 (is_tagged_type): Change return type to bool.
1933 (separate_class_package): Call has_nontrivial_methods.
1934 (pp_ada_tree_identifier): Minor tweaks.
1935 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1936 (dump_ada_array_domains): Likewise.
1937 (dump_ada_array_type): Likewise.
1938 (dump_template_types): Remove cpp_check parameter and do not pass it to
1939 dump_generic_ada_node.
1940 (dump_ada_template): Likewise.
1941 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1943 (print_ada_methods): Change return type to integer. Remove cpp_check
1944 parameter and do not pass it down.
1945 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1946 dump_generic_ada_node.
1947 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1949 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1950 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1951 value of print_ada_methods.
1952 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1953 Set cpp_check to it before invoking dump_ada_nodes.
1954 (dump_ada_specs): Likewise.
1956 2013-11-03 Marek Polacek <polacek@redhat.com>
1958 * c-ubsan.c: Don't include hash-table.h.
1959 (ubsan_instrument_vla): New function.
1960 * c-ubsan.h: Declare it.
1962 2013-10-31 David Malcolm <dmalcolm@redhat.com>
1964 Automated part of renaming of symtab_node_base to symtab_node.
1966 Patch autogenerated by rename_symtab.py from
1967 https://github.com/davidmalcolm/gcc-refactoring-scripts
1968 revision 58bb219cc090b2f4516a9297d868c245495ee622
1970 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1971 symtab_node_base to symtab_node.
1973 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1975 Implement C++14 digit separators.
1976 * c-lex.c (interpret_float): Remove digit separators from scratch string
1977 before building real literal.
1979 2013-10-30 Jakub Jelinek <jakub@redhat.com>
1981 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1983 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1985 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1987 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1989 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1990 (insert_cilk_frame): New prototype.
1991 (cilk_init_builtins): Likewise.
1992 (gimplify_cilk_spawn): Likewise.
1993 (c_cilk_install_body_w_frame_cleanup): Likewise.
1994 (cilk_detect_spawn_and_unwrap): Likewise.
1995 (cilk_set_spawn_marker): Likewise.
1996 (build_cilk_sync): Likewise.
1997 (build_cilk_spawn): Likewise.
2000 2013-10-29 David Malcolm <dmalcolm@redhat.com>
2002 Patch autogenerated by refactor_symtab.py from
2003 https://github.com/davidmalcolm/gcc-refactoring-scripts
2004 revision 58bb219cc090b2f4516a9297d868c245495ee622
2006 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2007 to a true class hierarchy.
2008 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2010 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2012 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2014 2013-10-26 Jeff Law <law@redhat.com>
2016 * c-common.c (c_define_builtins): Remove mudflap support.
2017 * c.opt: Ignore and warn for mudflap options.
2019 2013-10-24 Tobias Burnus <burnus@net-b.de>
2022 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2023 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2025 2013-10-23 Jason Merrill <jason@redhat.com>
2027 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2029 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2031 * c-common.h (omp_clause_mask::operator !=): New method.
2032 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2033 instead of if (mask & something) tests everywhere.
2035 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2036 201307 instead of 201107.
2037 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2038 (c_common_attribute_table): Add "omp declare target" and
2039 "omp declare simd" attributes.
2040 (handle_omp_declare_target_attribute,
2041 handle_omp_declare_simd_attribute): New functions.
2042 * c-omp.c: Include c-pragma.h.
2043 (c_finish_omp_taskgroup): New function.
2044 (c_finish_omp_atomic): Add swapped argument, if true,
2045 build the operation first with rhs, lhs arguments and use NOP_EXPR
2047 (c_finish_omp_for): Add code argument, pass it down to make_code.
2048 (c_omp_split_clauses): New function.
2049 (c_split_parallel_clauses): Removed.
2050 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2051 c_omp_declare_simd_clauses_to_decls): New functions.
2052 * c-common.h (omp_clause_mask): New type.
2053 (OMP_CLAUSE_MASK_1): Define.
2054 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2055 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2056 omp_clause_mask::operator |, omp_clause_mask::operator &,
2057 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2058 omp_clause_mask::operator ==): New methods.
2059 (enum c_omp_clause_split): New.
2060 (c_finish_omp_taskgroup): New prototype.
2061 (c_finish_omp_atomic): Add swapped argument.
2062 (c_finish_omp_for): Add code argument.
2063 (c_omp_split_clauses): New prototype.
2064 (c_split_parallel_clauses): Removed.
2065 (c_omp_declare_simd_clauses_to_numbers,
2066 c_omp_declare_simd_clauses_to_decls): New prototypes.
2067 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2068 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2069 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2070 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2071 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2072 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2073 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2074 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2075 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2076 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2077 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2078 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2079 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2080 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2081 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2082 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2083 PRAGMA_OMP_CLAUSE_UNIFORM.
2085 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
2087 PR tree-optimization/20318
2088 * c-common.c (handle_returns_nonnull_attribute): New function.
2089 (c_common_attribute_table): Add returns_nonnull.
2091 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
2094 * c.opt (fcheck-new): Move to common.opt.
2096 2013-09-25 Marek Polacek <polacek@redhat.com>
2097 Jakub Jelinek <jakub@redhat.com>
2100 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2101 an expression if we can prove it is correct.
2102 (ubsan_instrument_division): Likewise. Remove unnecessary
2105 2013-09-18 Marek Polacek <polacek@redhat.com>
2108 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2110 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2112 2013-09-14 Iain Sandoe <iain@codesourcery.com>
2115 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2116 fobjc-gc, freplace-objc-classes): Accept for LTO.
2118 2013-09-13 Jacek Caban <jacek@codeweavers.com>
2120 * c-target.def: New hook
2122 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2125 * c.opt (Wdelete-incomplete): Add.
2127 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2129 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2130 (vector_types_compatible_elements_p): New function.
2131 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2133 (vector_types_compatible_elements_p): Declare.
2135 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2137 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2138 a virtual member function.
2139 (pp_simple_type_specifier): Remove.
2140 (pp_c_type_specifier): Likewise.
2141 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2142 Rename from pp_c_type_specifier. Adjust.
2143 (c_pretty_printer::c_pretty_printer): Do not assign to
2144 simple_type_specifier.
2146 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2148 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2150 (c_pretty_printer::storage_class_specifier): Likewise.
2151 (c_pretty_printer::initializer): Likewise.
2152 (pp_declaration): Remove.
2153 (pp_declaration_specifiers): Likewise.
2154 (pp_abstract_declarator): Likewise.
2155 (pp_declarator): Likewise.
2156 (pp_type_id): Likewise.
2157 (pp_statement): Likewise.
2158 (pp_constant): Likewise.
2159 (pp_id_expression): Likewise.
2160 (pp_primary_expression): Likewise.
2161 (pp_unary_expression): Likewise.
2162 (pp_multiplicative_expression): Likewise.
2163 (pp_conditional_expression): Likewise.
2164 (pp_assignment_expression): Likewise.
2165 (pp_expression): Likewise.
2166 (pp_c_type_id): Likewise.
2167 (pp_c_storage_class_specifier): Likewise.
2168 * c-pretty-print.c (pp_c_type_cast): Tidy.
2169 (pp_c_pointer): Likewise.
2170 (pp_c_type_specifier): Likewise.
2171 (pp_c_parameter_type_list): Likewise.
2172 (pp_c_function_definition): Likewise.
2173 (pp_c_init_declarator): Likewise.
2174 (pp_c_initializer_list): Likewise.
2175 (pp_c_constructor_elts): Likewise.
2176 (c_pretty_printer::direct_abstract_declarator): Likewise.
2177 (c_pretty_printer::declaration_specifiers): Likewise.
2178 (c_pretty_printer::primary_expression): Likewise.
2179 (c_pretty_printer::postfix_expression): Likewise.
2180 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2181 (c_pretty_printer::storage_class_specifier): Rename from
2182 pp_c_storage_class_specifier.
2183 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2184 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2185 storage_class_specifier, initializer, offset_list, flags.
2187 2013-08-30 Marek Polacek <polacek@redhat.com>
2189 * c-ubsan.c: New file.
2190 * c-ubsan.h: New file.
2192 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2194 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2196 (c_pretty_printer::declaration_specifiers): Likewise.
2197 (c_pretty_printer::declarator): Likewise.
2198 (c_pretty_printer::abstract_declarator): Likewise.
2199 (c_pretty_printer::direct_abstract_declarator): Likewise.
2200 (c_pretty_printer::direct_declarator): Likewise.
2201 (c_pretty_printer::function_specifier): Likewise.
2202 (pp_declaration): Adjust.
2203 (pp_declaration_specifiers): Likewise.
2204 (pp_abstract_declarator): Likewise.
2205 (pp_direct_declarator): Likewise.
2206 (pp_function_specifier): Likewise.
2207 (pp_direct_abstract_declarator): Remove as unused.
2208 (pp_c_declaration): Remove.
2209 (pp_c_declaration_specifiers): Likewise.
2210 (pp_c_declarator): Likewise.
2211 (pp_c_direct_declarator): Likewise.
2212 (pp_c_function_specifier): Likewise.
2213 (pp_c_direct_abstract_declarator): Likewise.
2214 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2215 from pp_c_abstract_declarator. Adjust.
2216 (c_pretty_printer::direct_abstract_declarator): Rename from
2217 pp_c_direct_abstract_declarator. Adjust.
2218 (c_pretty_printer::function_specifier): Rename from
2219 pp_c_function_specifier. Adjust.
2220 (c_pretty_printer::declaration_specifiers): Rename from
2221 pp_c_declaration_specifiers. Adjust.
2222 (c_pretty_printer::direct_declarator): Rename from
2223 pp_c_direct_declarator. Adjust.
2224 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2225 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2226 (c_pretty_printer::c_pretty_printer): Do not assign to
2227 declaration, declaration_specifiers, declarator,
2228 direct_declarator, direct_abstract_declarator, function_specifier.
2230 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2232 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2233 virtual member function.
2234 (c_pretty_printer::multiplicative_expression): Likewise.
2235 (c_pretty_printer::conditional_expression): Likewise.
2236 (c_pretty_printer::assignment_expression): Likewise.
2237 (c_pretty_printer::expression): Likewise.
2238 (pp_unary_expression): Adjust.
2239 (pp_multiplicative_expression): Likewise.
2240 (pp_assignment_expression): Likewise.
2241 (pp_conditional_expression): Likewise.
2242 (pp_expression): Likewise.
2243 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2244 from pp_c_unary_expression. Adjust.
2245 (c_pretty_printer::multiplicative_expression): Rename from
2246 pp_c_multiplicative_expression. Adjust.
2247 (c_pretty_printer::conditional_expression): Rename from
2248 pp_c_conditional_expression. Adjust.
2249 (c_pretty_printer::assignment_expression): Rename from
2250 pp_c_assignment_expression. Adjust.
2251 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2252 (c_pretty_printer::c_pretty_printer): Do not assign to
2253 unary_expression, multiplicative_expression,
2254 conditional_expression, expression.
2256 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2258 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2259 virtual member function.
2260 (pp_postfix_expression): Adjust.
2261 (pp_c_postfix_expression): Remove.
2262 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2263 from pp_c_postfix_expression. Adjust.
2264 (c_pretty_printer::c_pretty_printer): Do not assign to
2267 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2269 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2270 virtua member function.
2271 (pp_primary_expression): Adjust.
2272 (pp_c_primary_expression): Remove.
2273 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2274 from pp_c_primary_expression. Adjust.
2275 (pp_c_initializer_list): Use pp_primary_expression.
2276 (c_pretty_printer::c_pretty_printer): Do not assign to
2279 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2281 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2282 * c-pretty-print.c (M_): Remove.
2283 (c_pretty_printer::translate_string): Define.
2284 (pp_c_type_specifier): Use it.
2285 (pp_c_primary_expression): Likewise.
2286 (pp_c_expression): Likewise.
2288 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2290 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2292 (pp_c_id_expression): Remove.
2293 (pp_id_expression): Adjust.
2294 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2295 pp_c_id_expression. Adjust.
2296 (pp_c_postfix_expression): Use pp_id_expression.
2297 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2299 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2301 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2303 (pp_constant): Adjust.
2304 (pp_c_constant): Remove.
2305 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2306 pp_c_constant. Adjust.
2308 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2309 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2311 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2313 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2314 (c_pretty_printer::c_pretty_printer): Declare.
2315 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2316 c_pretty_printer_init. Adjust.
2317 (print_c_tree): Do not call c_pretty_printer_init.
2318 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2320 2013-08-09 Arnaud Charlet <charlet@adacore.com>
2322 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2324 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2327 * c-common.c (pointer_int_sum): Add bool parameter.
2328 * c-common.h (pointer_int_sum): Adjust declaration.
2330 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2332 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2333 c_pretty_printer variable.
2335 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2337 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2339 (pp_c_base): Likewise. Adjust users.
2340 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2341 (pp_c_whitespace): Do not call pp_base.
2342 (pp_c_left_paren): Likewise.
2343 (pp_c_right_paren): Likewise.
2344 (pp_c_left_brace): Likewise.
2345 (pp_c_right_brace): Likewise.
2346 (pp_c_left_bracket): Likewise.
2347 (pp_c_right_bracket): Likewise.
2348 (pp_c_dot): Likewise.
2349 (pp_c_ampersand): Likewise.
2350 (pp_c_star): Likewise.
2351 (pp_c_arrow): Likewise.
2352 (pp_c_semicolon): Likewise.
2353 (pp_c_complement): Likewise.
2354 (pp_c_exclamation): Likewise.
2355 (pp_c_direct_declarator): Likewise.
2356 (pp_c_ws_string): Likewise.
2357 (pp_c_identifier): Likewise.
2358 (pp_c_statement): Likewise.
2359 (print_c_tree): Likewise.
2361 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2364 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2365 provide useful error strings.
2367 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2369 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2370 printer functions instead of pp_string or operators and punctuators.
2371 (dump_generic_ada_node): Likewise.
2372 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2373 (pp_c_relational_expression): Likewise.
2374 (pp_c_logical_or_expression): Likewise.
2376 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2378 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2379 functions instead of pp_character.
2380 (pp_ada_tree_identifier): Likewise.
2381 (dump_ada_double_name): Likewise.
2382 (dump_ada_function_declaration): Likewise.
2383 (dump_ada_array_domains): Likewise.
2384 (dump_template_types): Likewise.
2385 (dump_generic_ada_node): Likewise.
2386 (print_ada_declaration): Likewise.
2387 (print_ada_struct_decl): Likewise.
2388 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2390 2013-07-23 Tom Tromey <tromey@redhat.com>
2392 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2393 * c-common.c (c_common_reswords): Add _Generic.
2395 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
2397 * c-common.c: Fix typos.
2398 * c-common.h: Likewise.
2400 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
2403 * c-common.c (c_common_attribute_table): Add warn_unused.
2404 (handle_warn_unused_attribute): New.
2406 2013-07-10 Jakub Jelinek <jakub@redhat.com>
2408 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2409 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2411 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2414 * c.opt: Add Wconditionally-supported.
2416 2013-07-08 Graham Stott <graham.stott@btinternet.com>
2418 * array-notation-common.c (length_mismatch_in_expr_p): Delete
2419 unused variables l_length and l_node.
2421 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
2424 * c-common.c (complete_array_type): Delay folding first index
2425 like other indices. When folding, check for index overflow.
2427 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
2430 * c-common.h (c_build_vec_perm_expr): New complain argument.
2431 * c-common.c (c_build_vec_perm_expr): Likewise.
2432 Use save_expr also in C++.
2434 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2436 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2437 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2438 * c-opts.c (c_common_post_options): Likewise.
2440 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2442 * array-notation-common.c (length_mismatch_in_expr): Changed the
2443 parameter type's from a dynamic array to a vec_tree. Also removed
2444 the size parameters.
2445 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2448 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2450 * c-common.h (struct cilkplus_an_parts): New structure.
2451 (struct cilkplus_an_loop_parts): Likewise.
2452 (cilkplus_extract_an_triplets): New prototype.
2453 (fix_sec_implicit_args): Likewise.
2454 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2455 (fix_sec_implicit_args): Likewise.
2457 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2459 * array-notation-common.c (find_inv_trees): Removed an unwanted
2461 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2462 enum rid to enum tree_code.
2464 2013-06-11 Jan Hubicka <jh@suse.cz>
2466 * c-common.c (handle_alias_ifunc_attribute): Do not set
2467 DECL_EXTERNAL for weakref variables.
2468 * c-pragma.c (handle_pragma_weak): Make sure aliases
2469 are not declared as external.
2471 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2473 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2474 function from c/c-array-notation.c.
2475 (is_cilkplus_reduce_builtin): Likewise.
2476 (find_rank): Likewise.
2477 (extract_array_notation_exprs): Likewise.
2478 (replace_array_notations): Likewise.
2479 (find_inv_trees): Likewise.
2480 (replace_inv_trees): Likewise.
2481 (contains_array_notation_expr): Likewise.
2482 (find_correct_array_notation_type): Likewise.
2483 * c-common.h (struct inv_list): Moved this struct from the file
2484 c/c-array-notation.c and added a new field called additional tcodes.
2485 (length_mismatch_in_expr_p): New prototype.
2486 (is_cilkplus_reduce_builtin): Likewise.
2487 (find_rank): Likewise.
2488 (extract_array_notation_exprs): Likewise.
2489 (replace_array_notation): Likewise.
2490 (find_inv_trees): Likewise.
2491 (replace_inv_trees): Likewise.
2492 (find_correct_array_notation_type): Likewise.
2494 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2496 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2497 function array_notation_init_builtins is called.
2498 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2499 * c-common.def (ARRAY_NOTATION_REF): New tree.
2500 * c-common.h (build_array_notation_expr): New function declaration.
2501 (build_array_notation_ref): Likewise.
2502 (extract_sec_implicit_index_arg): New extern declaration.
2503 (is_sec_implicit_index_fn): Likewise.
2504 (ARRAY_NOTATION_CHECK): New define.
2505 (ARRAY_NOTATION_ARRAY): Likewise.
2506 (ARRAY_NOTATION_START): Likewise.
2507 (ARRAY_NOTATION_LENGTH): Likewise.
2508 (ARRAY_NOTATION_STRIDE): Likewise.
2509 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2511 (pp_c_expression): Likewise.
2512 * c.opt (flag_enable_cilkplus): New flag.
2513 * array-notation-common.c: New file.
2515 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2518 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2520 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2522 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2525 2013-05-07 Han Shen <shenhan@google.com>
2527 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2529 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2531 * c-common.c (check_user_alignment): Emit error for negative values.
2533 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2535 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2537 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2539 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2540 __GXX_EXPERIMENTAL_CXX1Y__.
2542 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2543 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2545 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2546 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2547 to simply use OPT_Wpointer_arith.
2548 (c_sizeof_or_alignof_type): Likewise.
2550 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2552 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2554 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2556 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2557 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2560 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2562 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2564 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2566 * c-common.c (pointer_int_sum): Remove dead code.
2568 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2571 * c-common.c (handle_optimize_attribute): Don't call
2572 save_optabs_if_changed.
2574 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2577 * c-pch.c (pch_init): Free target_validity at the end.
2579 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2581 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2583 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2584 Jakub Jelinek <jakub@redhat.com>
2587 * c-common.c (handle_no_sanitize_address_attribute): New function.
2588 (c_common_attribute_table): Add no_sanitize_address attribute.
2589 (handle_no_address_safety_analysis_attribute): Add
2590 no_sanitize_address attribute, not no_address_safety_analysis
2593 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2596 * c-common.c (handle_optimize_attribute): Call
2597 save_optabs_if_changed.
2599 2013-02-18 Jakub Jelinek <jakub@redhat.com>
2600 Steven Bosscher <steven@gcc.gnu.org>
2603 * c-opts.c (c_common_post_options): If debug info is enabled
2604 and non-dwarf*, refuse to load PCH files and when writing PCH
2607 2013-02-05 Jakub Jelinek <jakub@redhat.com>
2610 * c-common.c (handle_error_attribute): Fix condition.
2612 2013-01-30 Jakub Jelinek <jakub@redhat.com>
2615 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2617 2013-01-18 Jason Merrill <jason@redhat.com>
2620 * c.opt (-fextern-tls-init): New.
2621 * c-opts.c (c_common_post_options): Handle it.
2623 2013-01-09 Jakub Jelinek <jakub@redhat.com>
2626 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2627 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2628 and is either negative or bigger or equal to type precision
2629 of the first operand.
2631 2012-12-03 Marek Polacek <polacek@redhat.com>
2634 * c-common.c (check_user_alignment): Swap order of tests,
2635 check TREE_CODE first.
2637 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2640 * c-common.h (overflow_type): New enum.
2641 (build_userdef_literal): Add overflow_type argument.
2642 (tree_userdef_literal): Add overflow_type.
2643 (USERDEF_LITERAL_OVERFLOW): New access macro.
2644 * c-common.c (build_userdef_literal): Add overflow_type
2646 * c-lex.c (c_lex_with_flags): Add overflow_type to
2647 build_userdef_literal calls.
2648 (interpret_integer, interpret_float): Add overflow_type argument.
2650 2012-11-28 Richard Biener <rguenther@suse.de>
2653 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2654 here and use a type with proper overflow behavior for types that would
2655 need to be promoted for the arithmetic.
2657 2012-11-23 Jakub Jelinek <jakub@redhat.com>
2660 * c-common.c (handle_no_address_safety_analysis_attribute): New
2662 (c_common_attribute_table): Add no_address_safety_analysis.
2664 2012-11-16 Simon Baldwin <simonb@google.com>
2666 * c.opt: Add f[no-]canonical-system-headers.
2667 * c-opts.c (c_common_handle_option): Handle
2668 OPT_fcanonical_system_headers.
2670 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2673 * c-opts.c (c_common_handle_option): Set new flags.
2674 * c.opt: Describe new flags.
2676 2012-11-09 Jason Merrill <jason@redhat.com>
2678 * c.opt (Wabi-tag): New.
2680 2012-11-09 Andi Kleen <ak@linux.intel.com>
2683 * c-common.c (get_atomic_generic_size): Mask with
2686 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2689 * c.opt (Wformat): Make it Alias Wformat=1.
2690 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2691 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2693 (Wformat=): RejectNegative. Use LangEnabledBy.
2694 (Wnonnull): Use LangEnabledBy.
2695 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2696 * c-format.c (set_Wformat): Delete.
2697 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2698 (maybe_read_dollar_number): Likewise.
2699 (avoid_dollar_number): Likewise.
2700 (finish_dollar_format_checking): Likewise.
2701 (check_format_info): Likewise.
2702 (check_format_info_main): Likewise.
2703 (check_format_types): Likewise.
2704 (format_type_warning): Likewise.
2705 * c-common.c (int): Likewise.
2706 (check_function_sentinel): Likewise.
2707 * c-common.h (warn_format,set_Wformat): Do not declare here.
2709 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2712 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2713 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2715 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2717 (Wvariadic-macros): Init(1).
2718 * c-opts.c (c_common_handle_option): Do not handle them
2720 (c_common_post_options): Likewise.
2721 (sanitize_cpp_opts): warn_unused_macros is now
2722 cpp_warn_unused_macros.
2723 (push_command_line_include): Likewise.
2724 * c-common.c (warn_unknown_pragmas): Do not define.
2725 * c-common.h (warn_unknown_pragmas): Do not declare.
2727 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2730 * c-common.c (conversion_warning): Handle conditional expressions.
2732 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2735 * c.opt (Wreturn_local_addr): Define new option.
2737 2012-10-25 Jason Merrill <jason@redhat.com>
2739 * c.opt (Wvirtual-move-assign): New.
2741 * c.opt (Winherited-variadic-ctor): New.
2743 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
2746 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2748 2012-10-23 Joseph Myers <joseph@codesourcery.com>
2750 * c-common.h (pch_cpp_save_state): Declare.
2751 * c-target.def (c_preinclude): New hook.
2752 * c-opts.c (done_preinclude): New.
2753 (push_command_line_include): Handle default preincluded header.
2754 (cb_file_change): Call pch_cpp_save_state when calling
2755 push_command_line_include.
2756 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2757 (pch_cpp_save_state): New.
2758 (pch_init): Call pch_cpp_save_state conditionally, instead of
2759 calling cpp_save_state.
2761 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2765 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2766 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2767 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2768 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2769 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2770 * c-opts.c (c_common_handle_option): Remove explicit handling from
2772 (c_common_post_options): Likewise.
2774 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2776 * c-ada-spec.c (LOCATION_COL): Delete.
2777 (compare_location): New function.
2778 (compare_node): Use it.
2779 (compare_comment): Likewise.
2781 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2785 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2786 * c-opts.c (c_common_handle_option): Do not set them here. Add
2788 (c_common_post_options): Likewise.
2790 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2792 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2793 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2794 Remove POINTER_TYPE handling, add large unsigned handling and use
2795 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2797 2012-10-12 Jakub Jelinek <jakub@redhat.com>
2800 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2801 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2802 locs and array of 3 trees instead of just single loc and single
2803 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2804 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2805 For *cmp* builtins that take two sources strings report warnings
2806 about first and second source, not about destination and source.
2808 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
2811 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2813 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2815 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2816 declaring something coming from another file.
2818 2012-10-10 Arnaud Charlet <charlet@adacore.com>
2821 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2823 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2826 * c-common.c (warn_about_parentheses): Add location_t parameter;
2827 use EXPR_LOC_OR_LOC.
2828 * c-common.h: Update declaration.
2830 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
2833 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2834 more operations. Make error messages optional.
2835 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2836 (scalar_to_vector): Declare.
2838 2012-10-08 Jason Merrill <jason@redhat.com>
2840 * c-common.c (c_common_reswords): Add thread_local.
2842 2012-10-08 Dodji Seketeli <dodji@redhat.com>
2844 PR c++/53528 C++11 attribute support
2845 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2847 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2849 (handle_aligned_attribute): In choose strictest alignment
2850 among many. Use new check_cxx_fundamental_alignment_constraints.
2851 (handle_transparent_union_attribute): In c++11 attribute syntax,
2852 don't look through typedefs.
2854 2012-10-04 Arnaud Charlet <charlet@adacore.com>
2856 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2857 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2860 2012-09-25 Dehao Chen <dehao@google.com>
2863 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2864 map when read in the pch.
2866 2012-09-18 Arnaud Charlet <charlet@adacore.com>
2868 * c-ada-spec.c: Style fixes.
2870 2012-09-18 Thomas Quinot <quinot@adacore.com>
2872 * c.opt (-fada-spec-parent): Define new command line switch.
2873 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2874 is specified, generate binding spec as a child of the specified unit.
2876 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2877 Manuel López-Ibáñez <manu@gcc.gnu.org>
2880 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2882 2012-08-23 Arnaud Charlet <charlet@adacore.com>
2884 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2885 for pointers, and add missing Convention C pragma.
2886 (print_ada_struct_decl): Add missing aliased keyword.
2887 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2889 2012-08-17 Jakub Jelinek <jakub@redhat.com>
2891 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2892 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2893 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2894 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2895 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2897 2012-08-10 Richard Guenther <rguenther@suse.de>
2899 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2901 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2903 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2904 instead of separate pp_newline and pp_flush.
2905 (print_c_tree): Likewise.
2907 2012-07-26 Richard Henderson <rth@redhat.com>
2909 * c-common.c (handle_hot_attribute): Allow labels.
2910 (handle_cold_attribute): Likewise.
2912 2012-07-20 Jakub Jelinek <jakub@redhat.com>
2915 * c-common.c (check_function_nonnull): Handle multiple nonnull
2916 attributes properly.
2918 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2920 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2921 * c-ada-spec.c: Likewise.
2922 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2924 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2926 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2927 Remove code conditional on it.
2929 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2931 * c-gimplify.c: Do not include basic-block.h.
2932 * c-common.c: Do not include linfuncs.h.
2934 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2936 * c-common.h: Include tree.h.
2938 2012-07-02 Jason Merrill <jason@redhat.com>
2941 * c-common.c (get_priority): Call default_conversion.
2943 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
2945 * c-pch.c (c_common_write_pch): Remove unused variables.
2947 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2949 * cppspec.c: Moved from gcc/ to here.
2951 2012-06-27 Kai Tietz <ktietz@redhat.com>
2953 PR preprocessor/37215
2954 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2956 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2958 * c-common.h (c_common_print_pch_checksum): Remove.
2959 * c-pch.c: Do not include output.h.
2960 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2961 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2962 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2963 (struct c_pch_header): Remove.
2964 (get_ident): Update gpch version.
2965 (pch_init): Do not print executable_checksum to asm_out_file.
2966 Do not fail if there is no asm_out_file to read back from. Set
2967 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2968 (c_common_write_pch): Verify that nothing was written to asm_out_file
2969 since pch_init was called. Do not write a c_pch_header, and do not
2970 copy from asm_out_file to the PCH.
2971 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2972 the content of asm_out_file from the PCH.
2973 (c_common_print_pch_checksum): Remove.
2974 * c-opts.c (c_common_init): Print out executable_checksum directly.
2976 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2978 * c-target.def (objc_declare_unresolved_class_reference,
2979 objc_declare_class_definition): Add new hooks.
2981 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2983 * c-lex.c: Do not include output.h.
2984 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2985 Remove uses of ASM_OUTPUT_IDENT.
2987 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
2990 * c-common.h (c_build_vec_perm_expr): Move decl here.
2991 * c-common.c (c_build_vec_perm_expr): Move definition
2994 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2996 * c.opt (fconserve-space): Turn into a no-op.
2998 2012-06-04 Sterling Augustine <saugustine@google.com>
3000 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3001 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3002 both the start and end of the function.
3004 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3006 * c-common.c: Do not include output.h.
3007 * c-pragma.c: Likewise.
3009 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3011 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3012 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3013 (lang_decl_name): Handle namespace decls.
3015 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3017 * c-ada-spec.c: Do not include output.h.
3018 * c-semantics.c: Likewise.
3020 2012-05-29 Joseph Myers <joseph@codesourcery.com>
3022 * c-common.c: Fix typo.
3024 2012-05-29 Michael Matz <matz@suse.de>
3026 * c-common.h (c_expand_decl): Remove prototype.
3028 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3030 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3031 * c-opts.c (c_common_handle_option): Remove code handling
3032 warn_missing_braces.
3034 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3037 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3040 2012-05-22 Dodji Seketeli <dodji@redhat.com>
3043 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3045 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3047 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3048 * c-opts.c (c_common_handle_option): Do not handle explicitly
3049 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3051 2012-05-16 Dodji Seketeli <dodji@redhat.com>
3053 PR preprocessor/7263
3054 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3055 to cpp_classify_number. For diagnostics, use the precise location
3056 instead of the global input_location.
3058 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3061 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3063 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3065 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3067 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3070 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3071 Wreorder): Use LangEnabledBy.
3072 * c-opts.c (c_common_handle_option): Do not enable them
3073 explicitly. Call lang-specific generated functions.
3074 (c_common_post_options): Do not set them here.
3076 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3078 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3079 Wmissing-field-initializers,Wmissing-parameter-type,
3080 Wold-style-declaration,Woverride-init): Use EnabledBy.
3081 * c-opts.c (c_common_post_options): Do not set here explicitly.
3083 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3086 * c-opts.c (c_common_handle_option): Use handle_generated_option
3087 to enable sub-options.
3089 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3092 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3094 2012-05-10 Richard Guenther <rguenther@suse.de>
3096 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3097 adjust commentary about TYPE_IS_SIZETYPE types.
3099 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3102 * c-common.c (warn_logical_operator): Check that argument of
3103 integer_zerop is not NULL.
3105 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3108 * c-common.c (warn_logical_operator): Do not warn if either side
3109 is already true or false.
3111 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3114 * c-common.c (expr_original_type): New.
3115 (shorten_compare): Do not warn for enumeration types.
3117 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3119 * c.opt (fpermissive): Add Var(flag_permissive).
3121 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
3124 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3125 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3127 2012-04-30 Dodji Seketeli <dodji@redhat.com>
3129 Add -Wvarargs option
3130 * c.opt (Wvarargs): Define new option.
3132 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3134 * c-common.c (check_function_arguments): Replace
3135 Wmissing-format-attribute with Wsuggest-attribute=format.
3137 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3139 * c.opt (Wsuggest-attribute=format): New. Alias of
3140 Wmissing-format-attribute.
3141 * c-format.c (decode_format_type): Replace
3142 Wmissing-format-attribute with Wsuggest-attribute=format.
3143 (check_function_format): Likewise.
3145 2012-04-27 Ollie Wild <aaw@google.com>
3147 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3148 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3149 * c.opt: Add Wliteral-suffix.
3151 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3154 * c.opt (Wpedantic): New.
3155 (pedantic): Alias Wpedantic.
3156 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3157 (c_common_post_options): Likewise.
3158 (sanitize_cpp_opts): Likewise.
3159 * c-lex.c (interpret_float): Likewise.
3160 * c-format.c (check_format_types): Likewise.
3161 * c-common.c (pointer_int_sum): Likewise.
3162 (c_sizeof_or_alignof_type): Likewise.
3163 (c_add_case_label): Likewise.
3164 (c_do_switch_warnings): Likewise.
3165 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3167 2012-04-15 Jason Merrill <jason@redhat.com>
3170 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3171 (C_STD_NAME): Distinguish between C++98 and C++11.
3173 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3176 * c-common.h (uint16_type_node): Rename into...
3177 (c_uint16_type_node): ...this.
3178 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3179 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3181 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3183 * c-common.c (warn_if_unused_value): Move definition to here.
3184 * c-common.h (warn_if_unused_value): Move declaration to here.
3186 2012-03-23 William Bader <williambader@hotmail.com>
3188 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3190 2012-03-20 Jason Merrill <jason@redhat.com>
3192 * c-common.h (enum cxx_dialect): Add cxx1y.
3193 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3195 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3196 * c-opts.c (c_common_post_options): Likewise.
3197 (set_std_cxx1y): New.
3198 (c_common_handle_option): Call it.
3199 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3201 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3204 * c.opt ([Wuseless-cast]): Add.
3206 2012-03-16 Richard Guenther <rguenther@suse.de>
3208 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3210 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3213 * c.opt (ftemplate-backtrace-limit) Add.
3215 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3217 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3219 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3220 (init_pragma): Don't register extern_prefix.
3222 2012-03-12 Richard Guenther <rguenther@suse.de>
3224 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3225 (builtin_type_for_size): Likewise.
3227 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3230 * c-common.c (sync_resolve_params): Don't decide whether to convert
3231 or not based on TYPE_SIZE comparison, convert whenever arg_type
3232 is unsigned INTEGER_TYPE.
3234 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3237 * c.opt ([Wunused-local-typedefs]): Fix description.
3239 2012-01-24 Mike Stump <mikestump@comcast.net>
3241 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3244 2012-01-18 Richard Guenther <rguenther@suse.de>
3246 * c-opts.c (c_common_post_options): Reset LTO flags if
3247 we are about to generate a PCH.
3249 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3252 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3253 use pp_unsigned_wide_integer.
3255 2012-01-10 Richard Guenther <rguenther@suse.de>
3258 * c-opts.c (c_common_handle_option): Move -Werror handling
3259 to language independent code.
3261 2012-01-05 Richard Guenther <rguenther@suse.de>
3264 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3267 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3270 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3271 of array types with an unknown bound.
3273 2011-12-20 Joseph Myers <joseph@codesourcery.com>
3275 * c-common.c (flag_isoc99): Update comment to refer to C11.
3276 (flag_isoc1x): Change to flag_isoc11.
3277 * c-common.h (flag_isoc99): Update comment to refer to C11.
3278 (flag_isoc1x): Change to flag_isoc11.
3279 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3281 * c-opts.c (set_std_c1x): Change to set_std_c11.
3282 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3284 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3285 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3286 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3288 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3289 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3290 (std=gnu1x): Make alias of std=gnu11.
3292 2011-12-19 Jason Merrill <jason@redhat.com>
3295 * c-common.c (handle_transparent_union_attribute): Check the first
3296 field if the type is complete.
3298 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3301 * c-common.c (RID_IS_FINAL): Add.
3302 * c-common.h (RID_IS_FINAL): Add.
3304 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3306 * c.opt (fgnu-runtime): Provide full description.
3307 (fnext-runtime): Likewise.
3308 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3310 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
3312 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3313 predefines in one place. Add LOCK_FREE predefines.
3314 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3317 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
3320 * c-common.c (get_atomic_generic_size): Check for various error
3322 (resolve_overloaded_atomic_exchange,
3323 resolve_overloaded_atomic_compare_exchange,
3324 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3325 error_mark_node for error conditions.
3327 2011-11-08 Richard Guenther <rguenther@suse.de>
3332 2011-11-07 Richard Henderson <rth@redhat.com>
3333 Aldy Hernandez <aldyh@redhat.com>
3334 Torvald Riegel <triegel@redhat.com>
3336 Merged from transactional-memory.
3338 * c-common.c (handle_tm_wrap_attribute,
3339 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3340 (struct c_common_reswords): Added __transaction* keywords.
3341 (struct c_common_attribute_table): Added transaction* and tm_regparm
3343 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3345 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3346 find_tm_attribute): Declare.
3348 2011-11-07 Jason Merrill <jason@redhat.com>
3351 * c-common.c, c-common.h: Revert yesterday's changes.
3353 2011-11-06 Jason Merrill <jason@redhat.com>
3356 * c-common.c (decl_has_visibility_attr): Split out from...
3357 (c_determine_visibility): ...here.
3358 * c-common.h: Declare it.
3360 2011-11-06 Joseph Myers <joseph@codesourcery.com>
3362 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3363 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3365 (check_user_alignment): New. Split out of
3366 handle_aligned_attribute. Disallow integer constants with
3367 noninteger types. Conditionally allow zero.
3368 (handle_aligned_attribute): Use check_user_alignment.
3369 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3371 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
3372 Richard Henderson <rth@redhat.com>
3374 Merged from cxx-mem-model.
3376 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3377 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3378 parameters that are the same type size.
3379 (get_atomic_generic_size): New. Find size of generic
3380 atomic function parameters and do typechecking.
3381 (add_atomic_size_parameter): New. Insert size into parameter list.
3382 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3383 either __atomic_exchange_n or external library call.
3384 (resolve_overloaded_atomic_compare_exchange): Restructure
3385 __atomic_compare_exchange to either _n variant or external library call.
3386 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3387 __atomic_load_n or an external library call.
3388 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3389 __atomic_store_n or an external library call.
3390 (resolve_overloaded_builtin): Handle new __atomic builtins.
3392 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3395 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3396 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3397 <INDIRECT_REF>: Return the argument.
3398 <ARRAY_REF>: Remove special code for negative offset.
3399 Call fold_build_pointer_plus instead of size_binop.
3400 (fold_offsetof): Remove STOP_REF argument and adjust.
3401 * c-common.h (fold_offsetof_1): Declare.
3402 (fold_offsetof): Remove STOP_REF argument.
3404 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3407 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3408 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3409 Wnarrowing for C++0x and C++98.
3410 * c.opt ([Wnarrowing]): Update.
3412 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3415 * c.opt: Add Wzero-as-null-pointer-constant.
3417 2011-10-31 Jason Merrill <jason@redhat.com>
3419 * c.opt (-fdeduce-init-list): Off by default.
3422 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3423 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3425 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3427 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3430 * c.opt (fvisibility-inlines-hidden): Description change.
3432 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3434 Implement C++11 user-defined literals.
3435 * c-common.c (build_userdef_literal): New.
3436 * c-common.def: New tree code.
3437 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3438 * c-lex.c (interpret_float): Add suffix parm.
3439 (c_lex_with_flags): Build literal tokens.
3441 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3445 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3448 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3449 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3450 Wnarrowing for C++0x and C++98.
3451 * c.opt ([Wnarrowing]): Update.
3453 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3456 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3457 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3458 Wnarrowing for C++0x and C++98.
3459 * c.opt ([Wnarrowing]): Update.
3461 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3464 * c-common.c (conversion_warning): Remove code looking for
3465 artificial operands.
3467 2011-10-18 Dodji Seketeli <dodji@redhat.com>
3470 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3471 !NO_IMPLICIT_EXTERN_C.
3473 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
3475 * c-common.c (c_common_reswords): Add __bases,
3477 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3479 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3482 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3484 2011-10-15 Tom Tromey <tromey@redhat.com>
3485 Dodji Seketeli <dodji@redhat.com>
3487 * c.opt (fdebug-cpp): New option.
3488 * c-opts.c (c_common_handle_option): Handle the option.
3489 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3490 output stream in parameter. Factorized from ...
3491 (maybe_print_line): ... this. Dump location debug information when
3492 -fdebug-cpp is in effect.
3493 (print_line_1): New static function. Takes an output stream in
3494 parameter. Factorized from ...
3495 (print_line): ... here. Dump location information when -fdebug-cpp
3497 (scan_translation_unit): Dump location information when
3498 -fdebug-cpp is in effect.
3500 2011-10-15 Tom Tromey <tromey@redhat.com>
3501 Dodji Seketeli <dodji@redhat.com>
3503 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3505 * c-opts.c (c_common_handle_option)<case
3506 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3507 cases. Handle -ftrack-macro-expansion with and without argument.
3509 2011-10-15 Tom Tromey <tromey@redhat.com>
3510 Dodji Seketeli <dodji@redhat.com>
3512 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3513 (print_line, cb_define, do_line_change): Adjust to avoid touching
3514 the internals of struct line_map. Use the public API instead.
3515 * c-pch.c (c_common_read_pch): Likewise.
3516 * c-lex.c (fe_file_change): Likewise.
3518 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3521 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3523 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3526 * c-pretty-print.c (pp_c_floating_constant): Output
3527 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3529 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3531 * c-common.c (def_builtin_1): Delete old interface with two
3532 parallel arrays to hold standard builtin declarations, and replace
3533 it with a function based interface that can support creating
3534 builtins on the fly in the future. Change all uses, and poison
3535 the old names. Make sure 0 is not a legitimate builtin index.
3536 * c-omp.c (c_finish_omp_barrier): Ditto.
3537 (c_finish_omp_taskwait): Ditto.
3538 (c_finish_omp_flush): Ditto.
3540 2011-10-11 Tristan Gingold <gingold@adacore.com>
3542 * c.opt: (fallow-parameterless-variadic-functions): New.
3544 2011-09-08 Dodji Seketeli <dodji@redhat.com>
3546 PR c++/33255 - Support -Wunused-local-typedefs warning
3547 * c-common.h (struct c_language_function::local_typedefs): New
3549 (record_locally_defined_typedef, maybe_record_typedef_use)
3550 (maybe_warn_unused_local_typedefs): Declare new functions.
3551 * c-common.c (record_locally_defined_typedef)
3552 (maybe_record_typedef_use)
3553 (maybe_warn_unused_local_typedefs): Define new functions.
3554 * c.opt: Declare new -Wunused-local-typedefs flag.
3556 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3559 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3562 2011-09-05 Richard Guenther <rguenther@suse.de>
3564 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3565 of integer_minus_one_node for empty array upper bounds.
3567 2011-08-28 Dodji Seketeli <dodji@redhat.com>
3569 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3570 it's the first time it's being called on this main TU.
3572 2011-08-24 Richard Guenther <rguenther@suse.de>
3575 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3577 2011-08-22 Gabriel Charette <gchare@google.com>
3579 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3580 defined in cpp_init_builtins and c_cpp_builtins.
3582 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3584 * c-common.c (c_common_reswords): Add __builtin_complex.
3585 * c-common.h (RID_BUILTIN_COMPLEX): New.
3587 2011-08-18 Joseph Myers <joseph@codesourcery.com>
3589 * c-common.c (c_common_reswords): Add _Noreturn.
3590 (keyword_is_function_specifier): Handle RID_NORETURN.
3591 * c-common.h (RID_NORETURN): New.
3593 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3595 * c-common.c (unsafe_conversion_p): New function. Check if it is
3596 unsafe to convert an expression to the type.
3597 (conversion_warning): Adjust, use unsafe_conversion_p.
3598 * c-common.h (unsafe_conversion_p): New function declaration.
3600 2011-08-02 Jakub Jelinek <jakub@redhat.com>
3602 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3603 (c_finish_omp_taskyield): New prototype.
3604 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3605 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3606 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3607 or RHS1 have side-effects, evaluate those too in the right spot,
3608 if it is a decl and LHS is also a decl, error out if they
3610 (c_finish_omp_taskyield): New function.
3611 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3612 * c-pragma.c (omp_pragmas): Add taskyield.
3613 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3614 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3615 PRAGMA_OMP_CLAUSE_MERGEABLE.
3617 2011-07-25 Dodji Seketeli <dodji@redhat.com>
3619 * c-common.h (set_underlying_type): Remove parm name from
3622 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
3624 * c-pretty-print.h: Search c-common.h in c-family.
3626 2011-07-22 Jason Merrill <jason@redhat.com>
3629 * c.opt (Wnarrowing): New.
3632 * c-common.h: Declare c_linkage_bindings.
3633 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3636 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3637 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3638 as flag_isoc99 for 'restrict'.
3639 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3641 2011-07-21 Ian Lance Taylor <iant@google.com>
3644 * c-common.c (c_disable_warnings): New static function.
3645 (c_enable_warnings): New static function.
3646 (c_fully_fold_internal): Change local unused_p to bool. Call
3647 c_disable_warnings and c_enable_warnings rather than change
3648 c_inhibit_evaluation_warnings.
3650 2011-07-20 Jason Merrill <jason@redhat.com>
3652 PR c++/6709 (DR 743)
3653 PR c++/42603 (DR 950)
3654 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3655 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3656 (CPP_DECLTYPE): New.
3657 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3659 2011-07-19 Richard Guenther <rguenther@suse.de>
3661 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3662 * c-omp.c (c_finish_omp_for): Likewise.
3664 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3666 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3667 body on the next line.
3669 2011-07-08 Jason Merrill <jason@redhat.com>
3672 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3675 * c-common.c (c_apply_type_quals_to_decl): Don't check
3676 TYPE_NEEDS_CONSTRUCTING.
3678 2011-07-06 Richard Guenther <rguenther@suse.de>
3680 * c-common.c (c_common_nodes_and_builtins):
3681 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3683 2011-07-05 Richard Guenther <rguenther@suse.de>
3685 * c-common.c (c_common_nodes_and_builtins): Build all common
3688 2011-06-27 Jakub Jelinek <jakub@redhat.com>
3690 * c-common.h (c_tree_chain_next): New static inline function.
3692 * c-common.c (check_builtin_function_arguments): Handle
3693 BUILT_IN_ASSUME_ALIGNED.
3695 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
3697 * c-common.c: Add sync_ or SYNC__ to builtin names.
3698 * c-omp.c: Add sync_ or SYNC__ to builtin names.
3700 2011-06-20 Pierre Vittet <piervit@pvittet.com>
3702 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3704 (gen_pragma_handler): New union.
3705 (internal_pragma_handler): New type.
3706 (c_register_pragma_with_data)
3707 (c_register_pragma_with_expansion_and_data): New functions.
3709 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3710 (c_register_pragma, c_register_pragma_with_expansion)
3711 (c_invoke_pragma_handler): Changed to work with
3712 internal_pragma_handler.
3713 (c_register_pragma_with_data)
3714 (c_register_pragma_with_expansion_and_data): New functions.
3716 2011-06-14 Joseph Myers <joseph@codesourcery.com>
3718 * c-common.c: Include common/common-target.h.
3719 (handle_section_attribute): Use
3720 targetm_common.have_named_sections.
3721 * c-cppbuiltin.c: Include common/common-target.h.
3722 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3724 2011-06-10 Richard Guenther <rguenther@suse.de>
3726 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3727 to print a IDENTIFIER_NODE.
3729 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3730 Joseph Myers <joseph@codesourcery.com>
3732 * c.opt (fbuilding-libgcc): New option.
3733 * c-cppbuiltin.c (c_cpp_builtins): Define
3734 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3736 2011-06-07 Jason Merrill <jason@redhat.com>
3738 * c-common.c (max_tinst_depth): Lower default to 900.
3740 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3742 2011-06-07 Richard Guenther <rguenther@suse.de>
3744 * c-common.c (c_common_nodes_and_builtins): Do not set
3745 size_type_node or call set_sizetype.
3747 2011-06-07 Dodji Seketeli <dodji@redhat.com>
3750 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3751 type when using pointer comparison to compare types.
3753 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3755 * c.opt: Add -Wdelete-non-virtual-dtor.
3756 * c-opts.c (c_common_handle_option): Include it in -Wall.
3758 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3763 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3765 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3768 2011-05-27 Jakub Jelinek <jakub@redhat.com>
3771 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3772 C++ don't call c_common_truthvalue_conversion on void type arms.
3774 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3776 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3777 (stmt_list_stack): Define.
3778 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3779 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3781 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3783 * c-common.c (warning_candidate_p): Check for BLOCKs.
3785 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3787 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3790 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3792 * c-common.c (def_fn_type): Remove extra va_end.
3794 2011-05-23 Jason Merrill <jason@redhat.com>
3797 * c-common.c (c_common_get_narrower): New.
3798 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3800 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3802 * c-common.h (check_function_arguments): Tweak prototype of
3803 check_function_arguments.
3804 * c-common.c (check_function_arguments): Likewise. Adjust
3805 calls to check_function_nonnull, check_function_format, and
3806 check_function_sentinel.
3807 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3808 separate attributes and typelist arguments. Use
3809 FOREACH_FUNCTION_ARGS to iterate over argument types.
3811 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3813 * c-common.c (c_common_reswords): Reorder.
3814 * c-common.h (rid): Likewise.
3816 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3818 * c-common.c (def_fn_type): Don't call build_function_type, call
3819 build_function_type_array or build_varargs_function_type_array
3821 (c_common_nodes_and_builtins): Likewise.
3823 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3825 * c-common.c (c_add_case_label): Omit the loc argument to
3827 * c-common.h (build_case_label): Remove.
3828 * c-semantics.c (build_case_label): Remove.
3830 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3832 * c-objc.h (objc_start_method_definition): Update prototype.
3833 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3835 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3837 * c-common.c (check_main_parameter_types): Reindent. Don't use
3838 TYPE_ARG_TYPES directly.
3839 (handle_nonnull_attribute): Likewise.
3840 (sync_resolve_params): Likewise.
3841 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3842 to check_format_string.
3843 (handle_format_attribute): Likewise.
3844 (check_format_string): Take a function type to examine instead of
3845 a type list. Use a function_arg_iterator to step through argument
3848 2011-05-04 Richard Guenther <rguenther@suse.de>
3850 * c-common.c (fix_string_type): Use size_int for index type bounds.
3851 (start_fname_decls): Do not pass NULL to build_int_cst.
3852 (c_init_attributes): Likewise.
3853 * c-lex.c (c_lex_with_flags): Likewise.
3855 2011-04-27 Jason Merrill <jason@redhat.com>
3857 * c-common.c (make_tree_vector_from_list): New.
3858 * c-common.h: Declare it.
3860 2011-04-26 Richard Guenther <rguenther@suse.de>
3862 PR preprocessor/48248
3863 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3864 for output size with -P.
3866 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3868 * c-common.c (struct c_common_resword): Add __underlying_type.
3869 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3871 2011-04-20 Jim Meyering <meyering@redhat.com>
3873 * c-format.c (init_dollar_format_checking): Remove useless
3876 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3878 * c-objc.h (objc_get_interface_ivars): Removed.
3879 (objc_detect_field_duplicates): New.
3880 * stub-objc.c: Likewise.
3882 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3884 * stub-objc.c (objc_declare_protocols): Renamed to
3885 objc_declare_protocol.
3886 * c-objc.h: Likewise.
3888 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3890 * stub-objc.c (objc_declare_class): Updated argument name.
3892 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3894 * c-common.h (c_common_init_ts): Declare.
3895 * c-common.c (c_common_init_ts): Define.
3897 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3899 * c-objc.h (objc_build_message_expr): Updated prototype.
3900 * stub-objc.c (objc_build_message_expr): Likewise.
3902 2011-04-12 Martin Jambor <mjambor@suse.cz>
3904 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3907 2011-04-11 Richard Guenther <rguenther@suse.de>
3909 * c-common.c (complete_array_type): Build a range type of
3912 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3914 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3915 (handle_type_generic_attribute): Likewise.
3917 2011-04-07 Jason Merrill <jason@redhat.com>
3920 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3921 conversion from C++0x scoped enum.
3923 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3925 * c-target-def.h: New file.
3926 * c-target.def: New file.
3927 * c-target.h: New file.
3928 * c-common.c (targetcm): Don't define here.
3929 * c-common.h (default_handle_c_option): Declare.
3930 * c-format.c: Include c-target.h instead of target.h.
3931 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3933 (default_handle_c_option): Move from targhooks.c.
3935 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3937 PR preprocessor/48248
3938 * c-ppoutput.c (print): Add src_file field.
3939 (init_pp_output): Initialize it.
3940 (maybe_print_line): Don't optimize by adding up to 8 newlines
3941 if map->to_file and print.src_file are different file.
3942 (print_line): Update print.src_file.
3944 2011-03-25 Kai Tietz <ktietz@redhat.com>
3946 * c-ada-spec.c (compare_comment): Use filename_cmp
3947 instead of strcmp for filename.
3949 2011-03-25 Jeff Law <law@redhat.com>
3951 * c-common.c (def_fn_type): Add missing va_end.
3953 2011-03-25 Jason Merrill <jason@redhat.com>
3955 * c.opt: Add -std=c++03.
3957 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3959 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3961 2011-03-17 Kai Tietz
3964 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3965 Display allowed attributes for function pointer types.
3966 (pp_c_attributes_display): New function to display
3967 attributes having affects_type_identity flag set to true.
3968 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3970 * c-common.c (c_common_attribute_table):
3972 (c_common_format_attribute_table): Likewise.
3974 2011-03-18 Jason Merrill <jason@redhat.com>
3976 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3977 * c-common.h: Don't declare it here.
3978 * c-common.c: Or define it here.
3979 * c-opts.c (c_common_handle_option): Or set it here.
3982 * c-common.c (handle_transparent_union_attribute): Don't
3983 make a duplicate type in C++.
3985 2011-03-15 Jason Merrill <jason@redhat.com>
3987 * c-common.c (max_constexpr_depth): New.
3988 * c-common.h: Declare it.
3989 * c-opts.c (c_common_handle_option): Set it.
3990 * c.opt (fconstexpr-depth): New option.
3992 2011-03-11 Jason Merrill <jason@redhat.com>
3994 * c-common.c (attribute_takes_identifier_p): Add missing const.
3997 * c-common.c (attribute_takes_identifier_p): Assume that an
3998 unknown attribute takes an identifier.
4000 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4003 * c-common.c (c_type_hash): Call list_length instead of iterating
4004 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4006 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4009 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4011 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4013 * c.opt (fobjc-abi-version=) New.
4014 (fobjc-nilcheck): New.
4016 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4019 * c-common.h (keyword_is_decl_specifier): Declare.
4020 * c-common.c (keyword_is_decl_specifier): Define.
4021 (keyword_is_function_specifier): New function.
4023 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4026 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4027 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4030 2011-01-26 Arnaud Charlet <charlet@adacore.com>
4032 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4034 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4037 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4038 after init_c_lex if pch_file is set.
4040 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4043 * c.opt (-fkeep-inline-dllexport): New switch.
4045 2011-01-12 Richard Guenther <rguenther@suse.de>
4048 * c-common.c (handle_weak_attribute): Warn instead of error
4049 on declaring an inline function weak.
4051 2011-01-05 Tom Tromey <tromey@redhat.com>
4053 * c-common.h (lvalue_error): Update.
4054 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4057 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
4060 * c-objc.h (objc_finish_message_expr): Added argument to
4063 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4065 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4068 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4070 * c-objc.h (objc_maybe_warn_exceptions): New.
4071 * stub-objc.c (objc_maybe_warn_exceptions): New.
4073 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4075 * c-common.h (readonly_error): Declare.
4076 * c-common.c (readonly_error): Define.
4078 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4080 * c-common.h (invalid_indirection_error): Declare.
4081 * c-common.c (invalid_indirection_error): Define.
4083 2010-12-03 Richard Guenther <rguenther@suse.de>
4086 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4087 (pp_c_unary_expression): Likewise.
4088 (pp_c_expression): Likewise.
4090 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4092 * c-common.h (objc_finish_function): New.
4093 (objc_non_volatilized_type): Removed.
4094 (objc_type_quals_match): Removed.
4095 * stub-objc.c (objc_finish_function): New.
4096 (objc_non_volatilized_type): Removed.
4097 (objc_type_quals_match): Removed.
4099 2010-11-30 Joseph Myers <joseph@codesourcery.com>
4101 * c-common.h (parse_optimize_options): Declare.
4102 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4103 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4105 2010-11-29 Joseph Myers <joseph@codesourcery.com>
4107 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4109 * c-pch.c (O_BINARY): Don't define here.
4110 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4112 2010-11-25 Joseph Myers <joseph@codesourcery.com>
4114 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4115 targetm.except_unwind_info.
4117 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4119 * c-opts.c (c_common_handle_option): Pass location to
4120 set_struct_debug_option.
4122 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4124 * c-common.c (visibility_options): Move from ../opts.c.
4125 * c-common.h (struct visibility_flags, visibility_options):
4127 * c-opts.c (finish_options): Rename to c_finish_options.
4128 (c_common_init): Update call to finish_options.
4130 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4133 * c-lex.c (lex_string): Check that each string in an Objective-C
4134 string concat sequence starts with either one or zero '@', and
4135 that there are no spurious '@' signs at the end.
4137 2010-11-20 Joseph Myers <joseph@codesourcery.com>
4139 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4140 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4141 HANDLE_PRAGMA_VISIBILITY.
4142 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4143 HANDLE_PRAGMA_VISIBILITY): Don't define.
4144 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4146 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4151 * c-common.h (keyword_begins_type_specifier): Declare.
4152 (keyword_is_storage_class_specifier): Declare.
4153 (keyword_is_type_qualifier): Declare.
4154 * c-common.c (keyword_begins_type_specifier): New function.
4155 (keyword_is_storage_class_specifier): New function.
4156 (keyword_is_type_qualifier): Declare.
4158 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4161 * c-common.c (in_late_binary_op): Define.
4162 (c_common_truthvalue_conversion): Check in_late_binary_op before
4163 calling c_save_expr.
4164 * c-common.h (in_late_binary_op): Declare.
4166 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4168 * c-opts.c (c_common_handle_option): Update calls to
4169 set_struct_debug_option.
4171 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4173 * c-common.h (objc_declare_protocols): Added additional argument.
4174 * stub-objc.c (objc_declare_protocol): Same change.
4176 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4179 * c-common.h (build_real_imag_expr): Declare.
4180 * c-semantics.c (build_real_imag_expr): Define.
4182 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4184 * c-opts.c (c_common_parse_file): Take no arguments.
4185 * c-common.h (c_common_parse_file): Update prototype.
4187 2010-11-16 Jakub Jelinek <jakub@redhat.com>
4190 * c-common.c (warning_candidate_p): Don't track non-const calls
4193 2010-11-15 Ian Lance Taylor <iant@google.com>
4195 * c-lex.c (init_c_lex): Set macro debug callbacks if
4196 flag_dump_go_spec is set.
4198 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4200 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4201 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4203 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4205 PR preprocessor/45038
4206 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4209 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4211 * c-common.h (c_family_lang_mask): Declare.
4212 * c-opts.c (c_family_lang_mask): Make extern.
4213 * c-pragma.c (handle_pragma_diagnostic): Use
4214 control_warning_option.
4216 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4218 * c-common.c (parse_optimize_options): Update call to
4220 * c-common.h (c_common_handle_option): Update prototype.
4221 * c-opts.c (c_common_handle_option): Take location_t parameter and
4222 pass it to other functions.
4224 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4226 * c-opts.c (warning_as_error_callback): Remove.
4227 (c_common_initialize_diagnostics): Don't call
4228 register_warning_as_error_callback.
4229 (c_common_handle_option): Handle -Werror=normalized= here.
4231 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4233 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4235 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4237 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4238 Remove trailing '.' from diagnostics.
4239 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4241 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4243 * c-common.c (parse_optimize_options): Pass global_dc to
4245 * c-opts.c (c_common_handle_option): Pass &global_options to
4246 set_Wstrict_aliasing.
4247 * c.opt (v): Don't mark Common or document here.
4249 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4252 * c-format.c (format_type): New type gcc_objc_string_format_type.
4253 (valid_stringptr_type_p): New.
4254 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4255 (check_format_string): Pass expected type, use
4256 valid_stringptr_type_p (), check that the format string types are
4257 consistent with the format specification.
4258 (decode_format_attr): Warn if NSString is used outside objective-c.
4259 (format_types_orig): Add NSString.
4261 (format_flags): New.
4262 (check_format_arg): Handle format strings requiring an external parser.
4263 first_target_format_type: New variable.
4264 (handle_format_attribute): Set up first_target_format_type, pass the
4265 expected format arg string type to check_format_string().
4266 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4267 * stub-objc.c (objc_string_ref_type_p): New.
4268 (objc_check_format_arg): New.
4270 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4272 Fixed using the Objective-C 2.0 dot-syntax with class names.
4273 * c-common.h (objc_build_class_component_ref): New.
4274 * stub-objc.c (objc_build_class_component_ref): New.
4276 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4278 * c.opt (Wproperty-assign-default): New option.
4280 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4282 Implemented -fobjc-std=objc1 flag.
4283 * c.opt (fobjc-std=objc1): New option.
4285 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4287 Implemented format and noreturn attributes for Objective-C methods.
4288 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4289 attribute for Objective-C methods.
4291 2010-10-31 Jason Merrill <jason@redhat.com>
4293 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4296 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4298 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4299 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4300 (objc_add_property_declaration): Removed arguments for copies and
4302 (objc_build_getter_call): Renamed to
4303 objc_maybe_build_component_ref.
4304 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4305 (objc_is_property_ref): New.
4306 * c-common.c (c_common_reswords): Removed copies and ivar.
4307 * stub-objc.c (objc_add_property_declaration): Removed arguments
4308 for copies and ivar.
4309 (objc_build_getter_call): Renamed to
4310 objc_maybe_build_component_ref.
4311 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4312 (objc_is_property_ref): New.
4314 2010-10-29 Arnaud Charlet <charlet@adacore.com>
4315 Matthew Gingell <gingell@adacore.com>
4317 * c-ada-spec.c (separate_class_package): New function.
4318 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4319 name of their enclosing package.
4320 (print_ada_declaration): Use separate_class_package.
4322 2010-10-27 Jason Merrill <jason@redhat.com>
4324 * c-common.c (c_common_reswords): Add __is_literal_type.
4325 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4327 * c-common.c (check_case_value): Remove special C++ code.
4329 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4331 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4332 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4334 (objc_add_property_declaration): Added additional arguments.
4335 (objc_property_attribute_kind): Removed.
4336 (objc_set_property_attr): Removed.
4337 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4339 * stub-objc.c (objc_add_property_declaration): Added additional
4341 (objc_set_property_attr): Removed.
4343 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4345 * c-common.h (objc_add_property_variable): Renamed to
4346 objc_add_property_declaration. Added location argument.
4347 * stub-objc.c (objc_add_property_variable): Same change.
4349 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4351 * c-common.h (objc_maybe_printable_name): New.
4352 * stub-objc.c (objc_maybe_printable_name): New.
4354 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4355 Andrew Pinski <pinskia@gmail.com>
4357 * c-common.h (c_common_mark_addressable_vec): Declare.
4358 * c-common.c (c_common_mark_addressable_vec): New function.
4360 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4362 * c-common.h (objc_set_method_type): Removed.
4363 (objc_add_method_declaration): Added boolean argument.
4364 (objc_start_method_definition): Same change.
4365 (objc_build_method_signature): Same change.
4366 * stub-objc.c (objc_set_method_type): Removed.
4367 (objc_add_method_declaration): Added boolean argument.
4368 (objc_start_method_definition): Same change.
4369 (objc_build_method_signature): Same change.
4371 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4373 * c-common.h (finish_file): Removed.
4374 (objc_write_global_declarations): New.
4375 * c-opts.c (c_common_parse_file): Do not call finish_file.
4376 * stub-objc.c (objc_write_global_declarations): New.
4378 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4380 Implemented parsing @synthesize and @dynamic for
4381 Objective-C/Objective-C++.
4382 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4383 (objc_add_synthesize_declaration): New.
4384 (objc_add_dynamic_declaration): New.
4385 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4386 * stub-objc.c (objc_add_synthesize_declaration): New.
4387 (objc_add_dynamic_declaration): New.
4389 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4392 * c-cppbuiltin.c (mode_has_fma): Move function here from
4393 builtins.c. Don't use the fma optab, instead just use the
4394 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4397 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4399 Merge from 'apple/trunk' branch on FSF servers.
4401 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4404 * c-common.h (objc_non_volatilized_type): New declaration
4405 * stub-objc.c (objc_non_volatilized_type): New stub.
4407 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4409 Merge from 'apple/trunk' branch on FSF servers.
4411 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4414 * c-common.h (objc_diagnose_private_ivar): New decl.
4415 * stub-objc.c (objc_diagnose_private_ivar): New stub.
4417 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4419 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4420 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4421 (objc_ivar_visibility_kind): New enum.
4422 (objc_set_visibility): Adjust prototype to use visibility enum.
4423 * stub-objc.c (objc_set_visibility): Adjust stub to use
4426 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4428 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4429 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4430 has the appropriate fma builtins.
4431 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4433 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4435 merge from FSF apple 'trunk' branch.
4436 2006 Fariborz Jahanian <fjahanian@apple.com>
4438 Radars 4436866, 4505126, 4506903, 4517826
4439 * c-common.c (c_common_resword): Define @property and its attributes.
4440 * c-common.h: Define property attribute enum entries.
4441 (OBJC_IS_PATTR_KEYWORD): New.
4442 (objc_property_attribute_kind): New enum.
4443 Declare objc_set_property_attr (), objc_add_property_variable (),
4444 objc_build_getter_call () and objc_build_setter_call ().
4445 * stub-objc.c (objc_set_property_attr): New stub.
4446 (objc_add_property_variable): Likewise.
4447 (objc_build_getter_call): Likewise.
4448 (objc_build_setter_call) Likewise.
4450 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4452 merge from FSF apple 'trunk' branch.
4453 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4455 Radar 3803157 (method attributes)
4456 * c-common.c (handle_deprecated_attribute): Recognize
4457 objc methods as valid declarations.
4458 * c-common.h: Declare objc_method_decl ().
4459 * stub-objc.c (objc_method_decl): New stub.
4461 2010-10-08 Joseph Myers <joseph@codesourcery.com>
4463 * c-common.c (parse_optimize_options): Call
4464 decode_cmdline_options_to_array_default_mask before
4465 decode_options. Update arguments to decode_options.
4466 * c-common.h (c_common_init_options_struct): Declare.
4467 * c-opts.c (c_common_init_options_struct): New. Split out from
4468 c_common_init_options.
4470 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4472 Implemented fast enumeration for Objective-C.
4473 * c-common.h (objc_finish_foreach_loop): New.
4474 * stub-objc.c (objc_finish_foreach_loop): New.
4476 2010-10-05 Joseph Myers <joseph@codesourcery.com>
4478 * c-common.h (struct diagnostic_context): Don't declare here.
4479 (c_common_initialize_diagnostics): Declare using
4480 diagnostic_context typedef.
4481 * c-opts.c (c_common_handle_option): Pass global_dc to
4482 handle_generated_option.
4484 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4486 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4487 handle_generated_option.
4489 2010-10-03 Ian Lance Taylor <iant@google.com>
4491 * c.opt (-fplan9-extensions): New option.
4493 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4495 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4497 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4498 of duplicating code.
4500 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4502 * c-common.c: Add two new entries for @optional
4503 and @required keywords.
4505 merge from FSF 'apple/trunk' branch.
4506 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4509 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4510 objective-c keywords.
4511 (objc_set_method_opt): New declaration.
4512 * stub-objc.c (objc_set_method_opt): New stub.
4514 2010-09-30 Joseph Myers <joseph@codesourcery.com>
4516 * c-common.c (handle_optimize_attribute): Pass &global_options to
4517 cl_optimization_save and cl_optimization_restore.
4518 * c-opts.c (c_common_handle_option): Pass &global_options to
4519 handle_generated_option.
4520 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4521 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4522 &global_options to cl_optimization_restore.
4524 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4526 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4527 Objective-C/Objective-C++ keywords.
4529 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4531 Merge from 'apple/trunk' branch on FSF servers.
4533 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4536 * c-common.h (objc_check_global_decl): New declaration.
4537 * stub-objc.c (objc_check_global_decl): New stub.
4539 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4541 * c.opt: Don't use VarExists.
4543 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4545 * c-common.c (c_cpp_error): Update names of diagnostic_context
4547 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4548 cl_optimization members.
4549 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4550 sanitize_cpp_opts, finish_options): Update names of cpp_options
4553 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4555 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4556 (objc_is_reserved_word): Removed.
4557 * c-common.c: Updated comments.
4558 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4559 objc_is_reserved_word.
4560 * stub-objc.c (objc_is_reserved_word): Removed.
4562 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4564 * c-common.h (objc_add_method_declaration): Adjust prototype to
4566 (objc_start_method_definition): Likewise.
4567 (objc_build_keyword_decl): Likewise.
4568 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4569 (objc_start_method_definition): Likewise.
4570 (objc_build_keyword_decl): Likewise.
4572 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4574 * c-common.h (objc_start_class_interface): Adjust prototype.
4575 (objc_start_category_interface): Likewise.
4576 (objc_start_protocol): Likewise.
4577 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4578 (objc_start_class_interface): Likewise.
4579 (objc_start_category_interface): Likewise.
4581 2010-09-27 Ian Lance Taylor <iant@google.com>
4583 * c-common.c (c_common_attribute_table): Add no_split_stack.
4584 (handle_no_split_stack_attribute): New static function.
4586 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4588 Merge from 'apple/trunk' branch on FSF servers.
4590 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4593 * c-common.h (objc_have_common_type): New declaration.
4594 * stub-objc.c (objc_have_common_type): New stub.
4596 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4599 * c-common.h (objc_common_type): New prototype.
4600 * stub-objc.c (objc_common_type): New stub.
4602 2010-09-24 Jan Hubicka <jh@suse.cz>
4604 * c-common.c (handle_leaf_attribute): New function.
4605 (struct attribute_spec c_common_att): Add leaf.
4607 2010-09-22 Joseph Myers <joseph@codesourcery.com>
4609 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4610 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4611 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4612 -include-barrier, -include-directory, -include-directory=,
4613 -include-directory-after, -include-directory-after=,
4614 -include-prefix, -include-prefix=, -include-with-prefix,
4615 -include-with-prefix=, -include-with-prefix-after,
4616 -include-with-prefix-after=, -include-with-prefix-before,
4617 -include-with-prefix-before=, -no-integrated-cpp,
4618 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4619 -output=, -pedantic, -pedantic-errors, -preprocess,
4620 -print-missing-file-dependencies, -trace-includes, -traditional,
4621 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4622 -user-dependencies, -verbose, -write-dependencies,
4623 -write-user-dependencies, no-integrated-cpp, traditional): New.
4625 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4628 * c-common.h (objc_start_method_definition): Return bool instead
4630 * stub-objc.c (objc_start_method_definition): Return bool instead
4633 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4636 * c-common.h (objc_get_interface_ivars): New declaration.
4637 * stub-objc.c (objc_get_interface_ivars): New stub.
4639 2010-09-15 Ian Lance Taylor <iant@google.com>
4641 * c-common.c (parse_optimize_options): Do not capitalize warning
4642 messages. Remove period at end of warning message.
4644 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4646 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4647 (handle_alias_attribute): ... here.
4648 (handle_ifunc_attribute): New.
4650 2010-09-06 Mark Mitchell <mark@codesourcery.com>
4652 * c-common.h (do_warn_double_promotion): Declare.
4653 * c-common.c (do_warn_double_promotion): Define.
4655 2010-09-05 Mark Mitchell <mark@codesourcery.com>
4657 * c.opt (Wdouble-promotion): New.
4659 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4661 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4662 fvtable-thunks, fxref): Mark no longer supported in help text.
4664 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4666 * c.opt (Wimport, fall-virtual, falt-external-templates,
4667 fdefault-inline, fenum-int-equiv, fexternal-templates,
4668 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4669 fname-mangling-version-, fnew-abi, fnonnull-objects,
4670 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4671 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4673 (fhandle-exceptions): Mark with Alias and Warn.
4674 * c-opts.c (c_common_handle_option): Don't handle options marked
4677 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4679 * c.opt (Wcomments, Werror-implicit-function-declaration,
4680 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4681 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4683 * c-common.c (option_codes): Use OPT_Wcomment instead of
4685 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4686 Don't handle options marked as aliases.
4688 2010-08-25 Richard Guenther <rguenther@suse.de>
4690 * c-common.c (c_common_get_alias_set): Remove special
4691 handling for pointers.
4693 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4695 * c-common.c: Use FOR_EACH_VEC_ELT.
4696 * c-gimplify.c: Likewise.
4697 * c-pragma.c: Likewise.
4699 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4701 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4703 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4705 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4706 instead of OPT_MDX and OPT_MMDX.
4708 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4710 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4712 2010-08-12 Joseph Myers <joseph@codesourcery.com>
4714 * c.opt (MD, MMD): Change to MDX and MMDX.
4715 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4717 2010-08-11 Joseph Myers <joseph@codesourcery.com>
4719 * c-opts.c (c_common_handle_option): Call handle_generated_option
4720 instead of handle_option.
4722 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4724 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4725 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4727 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4729 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4730 (pending_redefine_extname): Change type to a VEC.
4731 (add_to_renaming_pragma_list): Update for new type of
4732 pending_redefine_extname.
4733 (maybe_apply_renaming_pragma): Likewise.
4735 2010-08-04 Arnaud Charlet <charlet@adacore.com>
4737 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4739 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4740 decide whether a type has already been declared/seen.
4741 Do not go to the original type.
4742 (dump_nested_types): New parameter forward.
4743 Generate forward declaration if needed and mark type as visited.
4744 (print_ada_declaration): Call dump_nested_types if not already done.
4745 Mark types as visited.
4747 2010-08-03 Joseph Myers <joseph@codesourcery.com>
4749 * c.opt (-print-pch-checksum): Remove option.
4750 * c-opts.c (c_common_handle_option): Don't handle
4751 OPT_print_pch_checksum.
4753 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4755 * c-common.h (c_common_handle_option): Update prototype and return
4757 * c-opts.c (c_common_handle_option): Update prototype and return
4758 value type. Update calls to handle_option and
4759 enable_warning_as_error.
4761 2010-07-27 Jakub Jelinek <jakub@redhat.com>
4764 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4766 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4768 * c-common.h (c_common_missing_argument): Remove.
4769 * c-opts.c (c_common_missing_argument): Remove.
4770 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4771 idirafter, imacros, include, isysroot, isystem, iquote): Add
4773 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4775 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4777 * c-common.h (c_common_option_lang_mask,
4778 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4780 (c_common_init_options): Update prototype.
4781 * c-opts.c (c_common_option_lang_mask): New.
4782 (c_common_initialize_diagnostics): Split out of
4783 c_common_init_options.
4784 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4786 (c_common_init_options): Update prototype. Use decoded options in
4787 search for -lang-asm.
4789 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4791 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4792 * c-format.c: Likewise.
4794 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4796 * c-common.h: Include diagnostic-core.h. Error if already
4798 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4800 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4802 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4803 Do not include expr.h
4804 (vector_mode_valid_p): Move here.
4806 2010-06-21 DJ Delorie <dj@redhat.com>
4808 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4809 allow these pragmas anywhere.
4811 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4814 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4815 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4816 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4817 ggc_strdup instead of xstrdup.
4819 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4821 * c-cppbuiltin.c: Include cpp-id-data.h.
4822 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4823 (lazy_hex_fp_value): New function.
4824 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4826 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4828 * c-gimplify.c: Do not include tree-flow.h
4830 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4833 * c-common.c: Rename targetm member:
4834 targetm.enum_va_list -> targetm.enum_va_list_p
4836 2010-06-28 Anatoly Sokolov <aesok@post.ru>
4838 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4840 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4842 * c-cppbuiltin.c: Do not include except.h.
4844 2010-06-24 Andi Kleen <ak@linux.intel.com>
4846 * c-common.c (warn_for_omitted_condop): New.
4847 * c-common.h (warn_for_omitted_condop): Add prototype.
4849 2010-06-21 Joseph Myers <joseph@codesourcery.com>
4851 * c.opt (lang-objc): Remove.
4852 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4854 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4856 * c-opts.c: Include "tm_p.h".
4858 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4860 * c-common.c (parse_optimize_options): Update call to
4863 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4865 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4866 new type of types_used_by_cur_var_decl.
4868 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4871 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4872 for C++ standard compliance.
4874 2010-06-16 Jason Merrill <jason@redhat.com>
4876 * c.opt: Add -Wnoexcept.
4878 2010-06-16 Richard Guenther <rguenther@suse.de>
4881 * c-common.c (c_common_truthvalue_conversion): Remove
4882 premature and wrong optimization concering ADDR_EXPRs.
4884 2010-06-15 Arnaud Charlet <charlet@adacore.com>
4886 * c-ada-spec.c (dump_sloc): Remove column info.
4887 (is_simple_enum): New function.
4888 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4889 enum types when relevant.
4891 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4893 * c-common.c (conversion_warning): Warn at expression
4896 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4898 * c-opts.c (c_common_handle_option): Don't handle
4901 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4903 * c-pragma.c (push_alignment): Use typed GC allocation.
4904 (handle_pragma_push_options): Likewise.
4906 * c-common.c (parse_optimize_options): Likewise.
4908 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4911 2010-06-07 Joseph Myers <joseph@codesourcery.com>
4913 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4914 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4915 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4916 flag_signed_bitfields, warn_strict_null_sentinel,
4917 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4918 flag_gen_declaration, flag_no_gnu_keywords,
4919 flag_implement_inlines, flag_implicit_templates,
4920 flag_implicit_inline_templates, flag_optional_diags,
4921 flag_elide_constructors, flag_default_inline, flag_rtti,
4922 flag_conserve_space, flag_access_control, flag_check_new,
4923 flag_new_for_scope, flag_weak, flag_working_directory,
4924 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4925 flag_enforce_eh_specs, flag_threadsafe_statics,
4926 flag_pretty_templates): Remove.
4927 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4928 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4929 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4930 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4931 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4932 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4933 flag_no_gnu_keywords, flag_implement_inlines,
4934 flag_implicit_templates, flag_implicit_inline_templates,
4935 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4936 flag_rtti, flag_conserve_space, flag_access_control,
4937 flag_check_new, flag_new_for_scope, flag_weak,
4938 flag_working_directory, flag_use_cxa_atexit,
4939 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4940 flag_threadsafe_statics, flag_pretty_templates,
4941 warn_strict_null_sentinel): Remove.
4942 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4943 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4944 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4945 fimplicit-inline-templates, fimplicit-templates,
4946 flax-vector-conversions, fms-extensions, fnil-receivers,
4947 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4948 frtti, fshort-double, fshort-enums, fshort-wchar,
4949 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4950 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4951 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4952 gen-decls, undef): Use Var.
4953 (fdefault-inline, foptional-diags): Document as doing nothing.
4954 * c-opts.c (c_common_handle_option): Remove cases for options now
4955 using Var. Mark ignored options as such.
4957 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4959 * c-common.c: Moved to here from parent directory.
4960 * c-common.def: Likewise.
4961 * c-common.h: Likewise.
4962 * c-cppbuiltin.c: Likewise.
4963 * c-dump.c: Likewise.
4964 * c-format.c: Likewise.
4965 * c-format.h : Likewise.
4966 * c-gimplify.c: Likewise.
4967 * c-lex.c: Likewise.
4968 * c-omp.c: Likewise.
4970 * c-opts.c: Likewise.
4971 * c-pch.c: Likewise.
4972 * c-ppoutput.c: Likewise.
4973 * c-pragma.c: Likewise.
4974 * c-pragma.h: Likewise.
4975 * c-pretty-print.c: Likewise.
4976 * c-pretty-print.h: Likewise.
4977 * c-semantics.c: Likewise.
4978 * stub-objc.c: Likewise.
4980 * c-common.c: Include gt-c-family-c-common.h.
4981 * c-pragma.c: Include gt-c-family-c-pragma.h.
4983 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4985 Copying and distribution of this file, with or without modification,
4986 are permitted in any medium without royalty provided the copyright
4987 notice and this notice are preserved.