1 2015-05-12 Tom de Vries <tom@codesourcery.com>
3 PR tree-optimization/66010
4 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
6 2015-05-09 Jason Merrill <jason@redhat.com>
8 * c-opts.c (c_common_post_options): Also clear
9 cpp_opts->cpp_warn_cxx11_compat.
11 * c-common.h (enum cxx_dialect): Add cxx_unset.
12 * c-common.c (cxx_dialect): Initialize to cxx_unset.
13 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
15 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
16 (std=gnu++0x): Mark as Undocumented.
17 (std=gnu++1y): Add deprecated message.
19 2015-05-08 Jason Merrill <jason@redhat.com>
21 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
24 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
26 2015-05-08 Marek Polacek <polacek@redhat.com>
29 * c.opt (Woverride-init-side-effects): New option.
31 2015-05-07 Marek Polacek <polacek@redhat.com>
34 * c-common.c (c_fully_fold_internal): Warn when left shifting a
36 * c.opt (Wshift-negative-value): New option.
37 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
38 when -Wextra and C99/C++11 mode.
40 2015-05-07 Marek Polacek <polacek@redhat.com>
41 Martin Uecker <uecker@eecs.berkeley.edu>
43 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
44 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
46 2015-05-05 Jason Merrill <jason@redhat.com>
48 * c.opt (Wterminate): New.
50 2015-04-30 Marek Polacek <polacek@redhat.com>
52 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
53 require that the non-constant be of a boolean type.
55 2015-04-29 Josh Triplett <josh@joshtriplett.org>
57 * c-common.c (handle_section_attribute): Refactor to reduce
58 nesting and distinguish between error cases.
60 2015-04-29 Marek Polacek <polacek@redhat.com>
63 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
66 2015-04-29 Jakub Jelinek <jakub@redhat.com>
68 * c-common.h (omp_clause_mask): Unconditionally define as a class.
69 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
70 HOST_BITS_PER_WIDE_INT.
72 2015-04-28 Tom de Vries <tom@codesourcery.com>
74 PR tree-optimization/65887
75 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
77 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
78 Pierre-Marie de Rodat <derodat@adacore.com>
80 * c-ada-spec.c (in_function): Delete.
81 (dump_generic_ada_node): Do not change in_function and remove the
82 redundant code dealing with it.
83 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
84 (print_ada_methods): Output the static member functions in a nested
85 package after the regular methods as well as associated renamings.
87 2015-04-24 Marek Polacek <polacek@redhat.com>
90 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
91 and OPT_Wshift_count_overflow.
94 * c-common.c (warn_logical_operator): Warn if the operands have the
97 2015-04-24 Marek Polacek <polacek@redhat.com>
100 * c-common.c (warn_logical_operator): Bail if either operand comes
101 from a macro expansion.
103 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
106 * c-common.c (c_default_pointer_mode): Add definition.
107 * c-common.h (c_default_pointer_mode): Add declaration.
109 2015-03-11 Jakub Jelinek <jakub@redhat.com>
111 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
112 on record_builtin_type argument.
114 2015-03-10 Jakub Jelinek <jakub@redhat.com>
117 * c-common.c (warn_logical_not_parentheses): Don't warn for
120 2015-03-07 Marek Polacek <polacek@redhat.com>
123 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
124 before trying to figure out whether we have a flexible array member.
126 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
127 Jonathan Wakely <jwakely.gcc@gmail.com>
129 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
131 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
134 * c-ada-spec.c (print_destructor): Remove obsolete code.
136 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
138 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
139 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
140 DECL_TEMPLATE_RESULT emulations.
141 (dump_ada_template)): Add guard for TYPE_METHODS.
143 2015-02-27 Marek Polacek <polacek@redhat.com>
146 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
148 2015-02-27 Kai Tietz <ktietz@redhat.com>
151 * c-pragma.c (handle_pragma_weak): Do not try to create
152 weak/alias of declarations not being function, or variable
155 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
158 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
160 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
162 2015-02-16 Marek Polacek <polacek@redhat.com>
165 * c-format.c (check_format_types): Handle null param.
167 2015-02-13 Marek Polacek <polacek@redhat.com>
170 * c-format.c (check_format_types): Don't warn about different
171 signedness if the original value is in the range of WANTED_TYPE.
173 2015-02-12 Jason Merrill <jason@redhat.com>
176 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
177 to the current highest version.
178 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
180 2015-02-04 Jakub Jelinek <jakub@redhat.com>
184 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
185 instead of RDIV_EXPR. Use build_binary_op instead of
188 2015-01-30 Joseph Myers <joseph@codesourcery.com>
190 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
191 to pass input_location as first argument.
193 2015-01-23 Tom de Vries <tom@codesourcery.com>
196 * c.opt (fopenacc): Mark as LTO option.
198 2015-01-23 Tom de Vries <tom@codesourcery.com>
201 * c.opt (fopenmp): Mark as LTO option.
203 2015-01-21 Jakub Jelinek <jakub@redhat.com>
206 * cilk.c (fill_decls_vec): Only put decls into vector v.
207 (compare_decls): Fix up formatting.
209 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
212 * cilk.c: Include vec.h.
213 (struct cilk_decls): New structure.
214 (wrapper_parm_cb): Split this function to...
215 (fill_decls_vec): ...this...
216 (create_parm_list): ...and this.
217 (compare_decls): New function.
218 (for_local_cb): Remove.
219 (wrapper_local_cb): Ditto.
220 (build_wrapper_type): For now first traverse and fill vector of
221 declarations then sort it and then deal with sorted vector.
222 (cilk_outline): Ditto.
223 (declare_one_free_variable): Ditto.
225 2015-01-21 Jason Merrill <jason@redhat.com>
228 * c-format.c (check_format_arg): Call decl_constant_value.
230 2015-01-19 Martin Liska <mliska@suse.cz>
232 * c-common.c (handle_noicf_attribute): New function.
234 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
235 Bernd Schmidt <bernds@codesourcery.com>
236 James Norris <jnorris@codesourcery.com>
237 Cesar Philippidis <cesar@codesourcery.com>
238 Ilmir Usmanov <i.usmanov@samsung.com>
239 Jakub Jelinek <jakub@redhat.com>
241 * c.opt (fopenacc): New option.
242 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
243 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
245 * c-common.h (c_finish_oacc_wait): New prototype.
246 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
247 (c_finish_oacc_wait): New function.
248 * c-pragma.c (oacc_pragmas): New variable.
249 (c_pp_lookup_pragma, init_pragma): Handle it.
250 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
251 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
252 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
253 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
254 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
255 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
256 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
257 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
258 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
259 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
260 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
261 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
262 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
263 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
264 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
265 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
266 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
267 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
268 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
269 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
270 PRAGMA_OACC_CLAUSE_WORKER.
272 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
274 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
275 for the new option fstack-protector_explicit.
276 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
277 (handle_stack_protect_attribute): New function.
279 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
281 * c.opt: New option -Warray-bounds=.
283 2015-01-09 Michael Collison <michael.collison@linaro.org>
285 * array-notation-common.c: Include hash-set.h, machmode.h,
286 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
287 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
288 * c-ada-spec.c: Ditto.
289 * c-cilkplus.c: Ditto.
290 * c-common.c: Include input.h due to flattening of tree.h.
291 Define macro GCC_C_COMMON_C.
292 * c-common.h: Flatten tree.h header files into c-common.h.
293 Remove include of tree-core.h.
294 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
295 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
296 fold-const.h, wide-int.h, and inchash.h due to
297 flattening of tree.h.
299 * c-format.c: Flatten tree.h header files into c-common.h.
300 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
301 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
302 fold-const.h, wide-int.h, and inchash.h due to
303 flattening of tree.h.
304 * c-dump.c: Include hash-set.h, machmode.h,
305 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
306 fold-const.h, wide-int.h, and inchash.h due to
307 flattening of tree.h.
308 * c-format.c: Include hash-set.h, machmode.h,
309 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
310 fold-const.h, wide-int.h, inchash.h and real.h due to
311 flattening of tree.h.
312 * c-gimplify.c: Include hash-set.h, machmode.h,
313 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
314 fold-const.h, wide-int.h, and inchash.h due to
315 flattening of tree.h.
321 * c-ppoutput.c: Ditto.
323 * c-pretty-print.c: Ditto.
324 * c-semantics.c: Ditto.
326 * stub-objc.c: Ditto.
328 2015-01-08 Jason Merrill <jason@redhat.com>
330 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
331 do_ubsan_in_current_function.
332 (ubsan_maybe_instrument_reference_or_call): Likewise.
333 * c-ubsan.h: Declare it.
335 2015-01-08 Mike Stump <mikestump@comcast.net>
337 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
339 2015-01-07 Marek Polacek <polacek@redhat.com>
342 * c-common.c (c_fully_fold_internal): Warn for division and modulo
343 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
345 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
348 * c.opt (Wsuggest-override): New option.
350 2015-01-05 Jakub Jelinek <jakub@redhat.com>
352 Update copyright years.
354 2015-01-05 Marek Polacek <polacek@redhat.com>
357 * c-common.c (warn_array_subscript_with_type_char): Add location_t
359 * c-common.h (warn_array_subscript_with_type_char): Update
362 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
364 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
365 Control macro with flag_sized_deallocation.
367 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
369 * c.opt (Wdiscarded-array-qualifiers): New option.
371 2014-12-19 Jakub Jelinek <jakub@redhat.com>
373 PR preprocessor/63831
374 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
375 and __has_cpp_attribute here.
376 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
377 c_common_has_attribute.
378 * c-common.h (c_common_has_attribute): New prototype.
379 * c-lex.c (init_c_lex): Set cb->has_attribute to
380 c_common_has_attribute instead of cb_has_attribute.
381 (get_token_no_padding): New function.
382 (cb_has_attribute): Renamed to ...
383 (c_common_has_attribute): ... this. No longer static. Use
384 get_token_no_padding, require ()s, don't build TREE_LIST
385 unnecessarily, fix up formatting, adjust diagnostics, call
388 2014-12-15 Jason Merrill <jason@redhat.com>
390 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
391 (-Wsized-deallocation): New.
392 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
393 to on in C++14 and up.
395 2014-12-11 Jason Merrill <jason@redhat.com>
397 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
399 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
400 we aren't complaining about VLAs.
402 2014-12-06 Marek Polacek <polacek@redhat.com>
404 PR tree-optimization/64183
405 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
406 shift-expression if it is integer_type_node. Use types_compatible_p.
408 2014-11-29 Jakub Jelinek <jakub@redhat.com>
410 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
411 last argument from create_tmp_var_raw and create_tmp_var calls.
412 * cilk.c (gimplify_cilk_spawn): Likewise.
413 * c-omp.c (c_finish_omp_atomic): Likewise.
415 2014-11-28 Marek Polacek <polacek@redhat.com>
417 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
418 instead of unsigned_type_node.
420 2014-11-28 Marek Polacek <polacek@redhat.com>
423 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
425 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
426 expression to unsigned_type_node.
428 2014-11-20 Mark Wielaard <mjw@redhat.com>
431 * c-opts.c (set_std_c89): Set lang_hooks.name.
432 (set_std_c99): Likewise.
433 (set_std_c11): Likewise.
434 (set_std_cxx98): Likewise.
435 (set_std_cxx11): Likewise.
436 (set_std_cxx14): Likewise.
437 (set_std_cxx1z): Likewise.
439 2014-11-21 Jakub Jelinek <jakub@redhat.com>
442 * c-common.h (convert_vector_to_pointer_for_subscript): Change
444 * c-common.c: Include gimple-expr.h.
445 (convert_vector_to_pointer_for_subscript): Change return type to
446 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
447 and copy it into a TARGET_EXPR and use that instead of *vecp
450 2014-11-19 David Malcolm <dmalcolm@redhat.com>
452 Merger of git branch "gimple-classes-v2-option-3".
453 * ChangeLog.gimple-classes: New.
454 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
455 from being just a vec<gimple> to a vec<gbind *>.
457 2014-11-18 Jakub Jelinek <jakub@redhat.com>
460 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
461 argument to ptype, set type to TREE_TYPE (ptype). Don't call
462 get_pointer_alignment for non-pointers. Use ptype, or if it is
463 reference type, corresponding pointer type, as type of kind
465 (ubsan_maybe_instrument_reference,
466 ubsan_maybe_instrument_member_call): Adjust callers.
468 2014-11-15 Marek Polacek <polacek@redhat.com>
471 * array-notation-common.c (is_sec_implicit_index_fn): Return false
473 (extract_array_notation_exprs): Return for NULL node.
475 2014-11-12 Joseph Myers <joseph@codesourcery.com>
477 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
478 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
480 2014-11-12 Jakub Jelinek <jakub@redhat.com>
483 * c-common.c (check_builtin_function_arguments): Handle
484 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
486 2014-11-10 Andi Kleen <ak@linux.intel.com>
489 * c-common.h (check_no_cilk): Declare.
490 * cilk.c (get_error_location): New function.
491 (check_no_cilk): Dito.
493 2014-11-10 Andi Kleen <ak@linux.intel.com>
495 * cilk.c (recognize_spawn): Use expression location
498 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
500 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
502 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
504 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
505 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
506 (__cpp_range_based_for, __cpp_initializer_lists,
507 __cpp_delegating_constructors, __cpp_nsdmi,
508 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
509 for C++11; (__cpp_attribute_deprecated): Remove in favor of
511 * c-lex.c (cb_has_attribute): New callback CPP function;
512 (init_c_lex): Set has_attribute callback.
514 2014-11-04 Richard Biener <rguenther@suse.de>
516 * c-common.c (shorten_compare): Do not shorten mixed
517 DFP and non-DFP compares.
519 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
521 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
522 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
523 Commentary and rearrangement of tests.
524 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
525 Commentary and rearrangement of tests.
526 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
527 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
529 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
531 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
532 enum from machine_mode.
534 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
536 * c-common.c: Adjust include files.
537 * c-gimplify.c: Ditto.
542 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
544 * c-gimplify.c: Adjust include files.
546 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
549 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
550 c_common_initialize_diagnostics.
551 * c-common.h: Likewise.
553 2014-10-24 Marek Polacek <polacek@redhat.com>
556 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
557 print "struct"/"union"/"enum" for typedefed names.
559 2014-10-23 Marek Polacek <polacek@redhat.com>
561 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
564 2014-10-22 Jakub Jelinek <jakub@redhat.com>
565 Yury Gribov <y.gribov@samsung.com>
567 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
568 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
569 instead of flag_sanitize_recover as bool flag.
571 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
573 * cilk.c: Revert previous change.
575 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
578 * cilk.c: Include vec.h.
579 (struct cilk_decls): New structure.
580 (wrapper_parm_cb): Split this function to...
581 (fill_decls_vec): ...this...
582 (create_parm_list): ...and this.
583 (compare_decls): New function.
584 (for_local_cb): Remove.
585 (wrapper_local_cb): Ditto.
586 (build_wrapper_type): For now first traverse and fill vector of
587 declarations then sort it and then deal with sorted vector.
588 (cilk_outline): Ditto.
589 (declare_one_free_variable): Ditto.
591 2014-10-17 Marek Polacek <polacek@redhat.com>
593 * c-opts.c (c_common_post_options): Set warn_implicit_int.
594 * c.opt (Wimplicit-int): Initialize to -1.
596 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
598 * c-pragma.c: Adjust include files.
599 * c-semantics.c: Likewise.
601 2014-10-16 DJ Delorie <dj@redhat.com>
603 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
606 2014-10-14 Jason Merrill <jason@redhat.com>
609 * c-common.h (CPP_PREPARSED_EXPR): New.
610 (N_CP_TTYPES): Adjust.
612 2014-10-15 Marek Polacek <polacek@redhat.com>
614 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
616 2014-10-14 DJ Delorie <dj@redhat.com>
618 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
619 types, not just __int128.
620 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
621 types, not just __int128.
622 (cpp_atomic_builtins): Round pointer sizes up.
623 (type_suffix): Use type precision, not specific types.
624 * c-common.c (c_common_reswords): Remove __int128 special case.
625 (c_common_type_for_size): Check for all __intN types, not just
627 (c_common_type_for_mode): Likewise.
628 (c_common_signed_or_unsigned_type): Likewise.
629 (c_build_bitfield_integer_type): Likewise.
630 (c_common_nodes_and_builtins): Likewise.
631 (keyword_begins_type_specifier): Likewise.
632 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
635 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
637 * c-common.c: Use hash_table instead of hashtab.
639 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
641 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
644 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
649 * c-common.c (warn_logical_operator): Punt for vectors.
651 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
653 Implement SD-6: SG10 Feature Test Recommendations
654 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
655 macros and the __has_header macro.
657 2014-09-30 Jason Merrill <jason@redhat.com>
659 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
660 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
661 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
663 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
664 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
666 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
667 * c-common.c (c_common_reswords): Remove __is_convertible_to.
669 2014-09-24 Marek Polacek <polacek@redhat.com>
673 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
675 2014-09-23 Andi Kleen <ak@linux.intel.com>
677 * c-common.c (handle_no_reorder_attribute): New function.
678 (c_common_attribute_table): Add no_reorder attribute.
680 2014-09-22 Joseph Myers <joseph@codesourcery.com>
682 * c-cppbuiltin.c (c_cpp_builtins): Define
683 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
686 2014-09-18 Joseph Myers <joseph@codesourcery.com>
688 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
689 for supported floating-point modes.
691 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
693 * c.opt (Wpsabi): Use LangEnabledBy.
694 * c-opts.c (c_common_handle_option): Do not handle here.
696 2014-09-12 Joseph Myers <joseph@codesourcery.com>
698 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
699 macros for floating-point modes.
701 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
704 * c-cppbuiltin.c (builtin_define_float_constants): Correct
705 __*_DENORM_MIN__ without denormals.
707 2014-09-10 Jakub Jelinek <jakub@redhat.com>
709 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
710 ubsan_instrument_vla, ubsan_instrument_return): Adjust
711 ubsan_create_data callers.
712 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
713 index is constant or BIT_AND_EXPR with constant mask and is
714 small enough for the bound.
715 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
716 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
718 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
720 * c.opt: Add CppReason to various flags.
721 (Wdate-time): Re-sort.
722 * c-common.c: Include c-common.h earlier.
723 (struct reason_option_codes_t): Delete.
724 (c_option_controlling_cpp_error): Prefix global type and struct
727 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
729 * c.opt (Wnormalized): New.
730 (Wnormalized=): Use Enum and Reject Negative.
731 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
733 2014-09-08 Joseph Myers <joseph@codesourcery.com>
735 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
736 digits of floating-point modes if -fbuilding-libgcc.
738 2014-09-05 Joseph Myers <joseph@codesourcery.com>
740 * c-cppbuiltin.c (c_cpp_builtins): Also define
741 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
742 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
743 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
744 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
745 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
746 __LIBGCC_STACK_GROWS_DOWNWARD__,
747 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
748 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
749 __LIBGCC_DWARF_FRAME_REGISTERS__,
750 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
751 __LIBGCC_STACK_POINTER_REGNUM__ and
752 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
753 (builtin_define_with_value): Handle backslash-escaping in string
756 2014-09-05 Richard Biener <rguenther@suse.de>
759 * c-format.c (check_format_arg): Properly handle
760 effectively signed POINTER_PLUS_EXPR offset.
762 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
764 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
765 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
766 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
768 * c-opts.c (c_common_handle_option): Do not handle here.
769 (sanitize_cpp_opts): Likewise.
770 * c-common.c (struct reason_option_codes_t): Handle
771 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
773 2014-09-03 Marek Polacek <polacek@redhat.com>
775 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
777 2014-09-02 Jakub Jelinek <jakub@redhat.com>
778 Balaji V. Iyer <balaji.v.iyer@intel.com>
779 Igor Zamyatin <igor.zamyatin@intel.com>
781 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
782 * c-common.c (c_common_reswords): Added _Cilk_for.
783 * c-common.h (enum rid): Added RID_CILK_FOR.
784 (cilk_for_number_of_iterations): Add declaration.
785 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
787 * c-pragma.c (init_pragma): Register "grainsize" pragma.
788 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
790 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
792 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
793 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
794 Wundef): Use CPP, Var and Init.
795 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
797 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
799 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
800 * c-opts.c (c_common_handle_option): Do not handle here.
802 2014-08-25 Jason Merrill <jason@redhat.com>
804 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
805 -std=c++14 and -std=gnu++14, rather than the reverse.
806 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
807 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
808 * c-common.h (cxx_dialect): Remove cxx1y.
810 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
812 * c-common.h (enum cxx_dialect): Add cxx14.
813 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
814 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
815 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
817 2014-08-22 Jason Merrill <jason@redhat.com>
819 * c.opt (std=gnu++17): Fix alias.
821 2014-08-22 Marek Polacek <polacek@redhat.com>
824 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
825 check for vector types. Drop LHS argument.
826 * c-common.h (warn_logical_not_parentheses): Adjust.
828 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
830 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
831 (Wmultichar): Likewise.
832 (Wdate-time): Use C-family languages instead of Common. Use CPP
834 * c-opts.c (c_common_handle_option): Do not handle the above
836 (sanitize_cpp_opts): Likewise.
838 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
841 * c-opts.c: Include tree-diagnostics.h.
842 (c_diagnostic_finalizer): New.
843 (c_common_initialize_diagnostics): Use it.
845 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
847 PR preprocessor/51303
848 * c-common.c (struct reason_option_codes_t option_codes):
849 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
851 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
855 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
856 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
857 (c_common_post_options): Call init_global_opts_from_cpp.
858 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
860 2014-08-19 Marek Polacek <polacek@redhat.com>
863 * c-common.c (maybe_warn_bool_compare): New function.
864 * c-common.h (maybe_warn_bool_compare): Declare.
865 * c.opt (Wbool-compare): New option.
867 2014-08-19 Marek Polacek <polacek@redhat.com>
869 * c.opt (Wc99-c11-compat): New option.
871 2014-08-19 Marek Polacek <polacek@redhat.com>
873 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
874 to warn_c90_c99_compat.
875 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
878 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
879 Steven Bosscher <steven@gcc.gnu.org>
882 * c-format.c: Add extra_arg_loc and format_string_loc to struct
883 format_check_results.
884 (check_function_format): Use true and add comment for boolean
886 (finish_dollar_format_checking): Use explicit location when warning.
887 (check_format_info): Likewise.
888 (check_format_arg): Set extra_arg_loc and format_string_loc.
889 (check_format_info_main): Use explicit location when warning.
890 (check_format_types): Pass explicit location.
891 (format_type_warning): Likewise.
893 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
896 * c-format.c: Handle Fortran flags.
898 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
901 * array-notation-common.c (find_rank): Added handling for other
904 2014-08-10 Marek Polacek <polacek@redhat.com>
907 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
908 * c.opt (Wc90-c99-compat): Add option.
910 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
912 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
914 2014-08-03 Marek Polacek <polacek@redhat.com>
916 * c-common.c (check_case_value): Add location_t parameter. Use it.
917 (c_add_case_label): Pass loc to check_case_value.
919 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
921 * cilk.c: Use hash_map instead of pointer_map.
923 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
925 * c-gimplify.c: Use hash_set instead of pointer_set.
927 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
930 * array-notation-common.c (extract_array_notation_exprs): Handling
933 2014-08-01 Jakub Jelinek <jakub@redhat.com>
935 * c-common.h (min_align_of_type): Removed prototype.
936 * c-common.c (min_align_of_type): Removed.
937 * c-ubsan.h (ubsan_maybe_instrument_reference,
938 ubsan_maybe_instrument_member_call): New prototypes.
939 * c-ubsan.c: Include stor-layout.h and builtins.h.
940 (ubsan_maybe_instrument_reference_or_call,
941 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
944 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
947 * c.opt (-Wreturn-local-addr): Move to common.opt.
949 2014-07-30 Jason Merrill <jason@redhat.com>
954 * c.opt (-fuse-all-virtuals): New.
956 2014-07-30 Tom Tromey <tromey@redhat.com>
959 * c.opt (Wdesignated-init): New option.
960 * c-common.c (c_common_attribute_table): Add "designated_init".
961 (handle_designated_init): New function.
963 2014-07-24 Marek Polacek <polacek@redhat.com>
966 * c-opts.c (c_finish_options): If -imacros is in effect, return.
968 2014-07-16 Dodji Seketeli <dodji@redhat.com>
970 PR preprocessor/60723 - missing system-ness marks for macro tokens
971 * c-ppoutput.c (struct print::prev_was_system_token): New data
973 (init_pp_output): Initialize it.
974 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
975 (do_line_change): Return a flag saying if a line marker was
977 (scan_translation_unit): Detect if the system-ness of the token we
978 are about to emit is different from the one of the previously
979 emitted token. If so, emit a line marker. Avoid emitting useless
980 adjacent line markers. Avoid emitting line markers for tokens
981 originating from the expansion of built-in macros.
982 (scan_translation_unit_directives_only): Adjust.
984 2014-07-15 Marek Polacek <polacek@redhat.com>
986 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
987 TYPE_MAX_VALUE is NULL.
989 2014-07-14 Jakub Jelinek <jakub@redhat.com>
992 * c.opt (Wmemset-transposed-args): New warning.
994 2014-07-10 Jason Merrill <jason@redhat.com>
998 * c.opt (-fuse-all-virtuals): New.
1000 2014-07-09 Richard Biener <rguenther@suse.de>
1003 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1004 using unsigned arithmetic if overflow does not wrap instead of
1005 if overflow is undefined.
1007 2014-07-06 Marek Polacek <polacek@redhat.com>
1010 * c.opt (Wsizeof-array-argument): New option.
1012 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1014 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1015 comments->count <= 1, as comments->entries might be NULL.
1017 2014-07-01 Marek Polacek <polacek@redhat.com>
1019 * c.opt (Wint-conversion): New option.
1021 2014-07-01 Marek Polacek <polacek@redhat.com>
1024 * c.opt (Wincompatible-pointer-types): New option.
1026 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1029 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1030 Do not discard TYPE_QUALS of type.
1032 2014-06-26 Jason Merrill <jason@redhat.com>
1034 * c-common.h (enum cxx_dialect): Add cxx1z.
1035 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1036 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1038 2014-06-26 Teresa Johnson <tejohnson@google.com>
1040 * c-common.h (get_dump_info): Declare.
1041 * c-gimplify.c (c_genericize): Use saved dump files.
1042 * c-opts.c (c_common_parse_file): Begin and end dumps
1043 once around parsing invocation.
1044 (get_dump_info): New function.
1046 2014-06-23 Marek Polacek <polacek@redhat.com>
1047 Andrew MacLeod <amacleod@redhat.com>
1050 * c-common.c (get_atomic_generic_size): Don't segfault if the
1051 type doesn't have a size.
1053 2014-06-20 Marek Polacek <polacek@redhat.com>
1055 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1056 (ubsan_walk_array_refs_r): New function.
1057 (c_genericize): Instrument array bounds.
1058 * c-ubsan.c: Include "internal-fn.h".
1059 (ubsan_instrument_division): Mark instrumented arrays as having
1060 side effects. Adjust ubsan_type_descriptor call.
1061 (ubsan_instrument_shift): Likewise.
1062 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1063 (ubsan_instrument_bounds): New function.
1064 (ubsan_array_ref_instrumented_p): New function.
1065 (ubsan_maybe_instrument_array_ref): New function.
1066 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1067 (ubsan_array_ref_instrumented_p): Declare.
1068 (ubsan_maybe_instrument_array_ref): Declare.
1070 2014-06-20 Hale Wang <hale.wang@arm.com>
1073 * c.opt (fshort-enums): Add to LTO.
1074 * c.opt (fshort-wchar): Likewise.
1076 2014-06-16 Marek Polacek <polacek@redhat.com>
1079 * c.opt (Wswitch-bool): Add Var.
1081 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1084 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1085 #pragma omp target teams or
1086 #pragma omp {,target }teams distribute simd.
1088 2014-06-12 Jason Merrill <jason@redhat.com>
1090 * c.opt (Wabi=, fabi-compat-version): New.
1091 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1092 (c_common_post_options): Handle flag_abi_compat_version default.
1093 Disallow -fabi-compat-version=1.
1094 * c-common.h (abi_version_crosses): New.
1096 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1098 * c-common.c (handle_section_attribute): Update handling for
1099 section names that are no longer trees.
1101 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1104 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1105 (omp_pragmas): ... back here.
1107 2014-06-05 Marek Polacek <polacek@redhat.com>
1110 * c-common.c (warn_logical_not_parentheses): New function.
1111 * c-common.h (warn_logical_not_parentheses): Declare.
1112 * c.opt (Wlogical-not-parentheses): New option.
1114 2014-06-04 Marek Polacek <polacek@redhat.com>
1117 * c-common.c (check_case_bounds): Add location parameter.
1119 (c_add_case_label): Pass loc to check_case_bounds.
1121 2014-06-03 Marek Polacek <polacek@redhat.com>
1124 * c.opt (Wswitch-bool): New option.
1126 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1128 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1130 (record_types_used_by_current_var_decl): Move prototype to where
1133 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1134 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1135 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1137 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1139 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1140 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1142 * c-pretty-print.c (pp_c_void_constant): New function.
1143 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1144 (c_pretty_printer::expression): Handle VOID_CST.
1145 * cilk.c (extract_free_variables): Likewise.
1146 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1147 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1149 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1151 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1152 * c-pragma.c (push_alignment): Adjust.
1153 (handle_pragma_push_options): Likewise.
1155 2014-05-09 Marek Polacek <polacek@redhat.com>
1158 * c-common.c (check_user_alignment): Return -1 if alignment is error
1160 (handle_aligned_attribute): Don't call default_conversion on
1162 (handle_vector_size_attribute): Likewise.
1163 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1164 (handle_sentinel_attribute): Call default_conversion and allow even
1165 integral types as an argument.
1167 2014-05-08 Marek Polacek <polacek@redhat.com>
1170 * c-common.c (min_align_of_type): New function factored out from...
1171 (c_sizeof_or_alignof_type): ...here.
1172 * c-common.h (min_align_of_type): Declare.
1174 2014-05-08 Marek Polacek <polacek@redhat.com>
1177 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1178 parameter type of main.
1180 2014-05-07 DJ Delorie <dj@redhat.com>
1182 * c-cppbuiltin.c (print_bits_of_hex): New.
1183 (builtin_define_type_minmax): Print values using hex so as not to
1184 require a pre-computed list of string values.
1186 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1187 Mike Stump <mikestump@comcast.net>
1188 Richard Sandiford <rdsandiford@googlemail.com>
1190 * c-ada-spec.c: Include wide-int.h.
1191 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1192 (dump_generic_ada_node): Use wide-int interfaces.
1193 * c-common.c: Include wide-int-print.h.
1194 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1195 (pointer_int_sum): Use wide-int interfaces.
1196 (c_common_nodes_and_builtins): Use make_int_cst.
1197 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1198 (handle_alloc_size_attribute): Use wide-int interfaces.
1199 (get_nonnull_operand): Likewise.
1200 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1201 * c-lex.c: Include wide-int.h.
1202 (narrowest_unsigned_type): Take a widest_int rather than two
1204 (narrowest_signed_type): Likewise.
1205 (interpret_integer): Update accordingly. Use wide-int interfaces.
1206 (lex_charconst): Use wide-int interfaces.
1207 * c-pretty-print.c: Include wide-int.h.
1208 (pp_c_integer_constant): Use wide-int interfaces.
1209 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1210 INT_CST_LT_UNSIGNED.
1212 2014-05-06 Richard Biener <rguenther@suse.de>
1214 * c-opts.c (c_common_post_options): For -freestanding,
1215 -fno-hosted and -fno-builtin disable pattern recognition
1216 if not enabled explicitely.
1218 2014-05-02 Marek Polacek <polacek@redhat.com>
1220 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1222 2014-05-01 Marek Polacek <polacek@redhat.com>
1225 * c.opt (Wdiscarded-qualifiers): Add.
1227 2014-04-30 Marek Polacek <polacek@redhat.com>
1229 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1230 INT_MIN / -1 sanitization only for integer types.
1232 2014-04-25 Marek Polacek <polacek@redhat.com>
1235 * c-common.c (handle_noinline_attribute): Warn if the attribute
1236 conflicts with always_inline attribute.
1237 (handle_always_inline_attribute): Warn if the attribute conflicts
1238 with noinline attribute.
1240 2014-04-25 Marek Polacek <polacek@redhat.com>
1243 * c-common.c (check_main_parameter_types): Warn about variadic main.
1245 2014-04-24 Mike Stump <mikestump@comcast.net>
1247 * c.opt (Wshadow-ivar): Default to on.
1249 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1251 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1253 2014-04-23 Marek Polacek <polacek@redhat.com>
1255 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1257 2014-04-22 Jakub Jelinek <jakub@redhat.com>
1260 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1261 if flag_sanitize_undefined_trap_on_error.
1262 (ubsan_instrument_division, ubsan_instrument_shift,
1263 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1264 if !flag_sanitize_recover.
1266 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
1269 * c-common.c (registered_builtin_types): Make non-static.
1270 * c-common.h (registered_builtin_types): Declare.
1272 2014-04-14 Richard Biener <rguenther@suse.de>
1273 Marc Glisse <marc.glisse@inria.fr>
1276 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1277 apply may-alias the scalar pointer type when applicable.
1279 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1282 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1283 as possible argument for Cilk_spawn.
1285 2014-04-11 Tobias Burnus <burnus@net-b.de>
1288 * c.opt (Wformat-signedness): Add
1289 * c-format.c(check_format_types): Use it.
1291 2014-04-11 Jason Merrill <jason@redhat.com>
1294 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1295 default_conversion for an array argument.
1297 2014-04-08 Marek Polacek <polacek@redhat.com>
1300 * c-ubsan.c: Include asan.h.
1301 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1303 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1305 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1307 2014-04-02 Marek Polacek <polacek@redhat.com>
1309 * c-common.h (c_expand_expr): Remove declaration.
1311 2014-03-28 Jakub Jelinek <jakub@redhat.com>
1314 * c-common.c (add_atomic_size_parameter): When creating new
1315 params vector, push the size argument first.
1317 2014-03-26 Jakub Jelinek <jakub@redhat.com>
1319 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1320 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1321 ubsan_create_data callers.
1323 2014-03-22 Jakub Jelinek <jakub@redhat.com>
1326 * c-opts.c (c_finish_options): Restore cb_file_change call to
1329 2014-03-13 Jakub Jelinek <jakub@redhat.com>
1332 * c-pragma.c (apply_pragma_weak): Only look at
1333 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1334 DECL_ASSEMBLER_NAME_SET_P (decl).
1335 (maybe_apply_pending_pragma_weaks): Exit early if
1336 vec_safe_is_empty (pending_weaks) rather than only when
1338 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1339 set assembler name back to NULL afterwards.
1341 2014-03-11 Jason Merrill <jason@redhat.com>
1343 * c.opt: Add -std=gnu++14.
1345 2014-03-11 Ian Bolton <ian.bolton@arm.com>
1347 * c-opts.c (c_common_post_options): Don't override
1348 -ffp-contract=fast if unsafe-math-optimizations is on.
1350 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
1352 * c.opt: Enable LTO FE for fshort-double.
1354 2014-03-07 Jason Merrill <jason@redhat.com>
1356 * c.opt: Add -std=c++14.
1358 2014-03-06 Marek Polacek <polacek@redhat.com>
1361 * cilk.c (contains_cilk_spawn_stmt): New function.
1362 (contains_cilk_spawn_stmt_walker): Likewise.
1363 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1364 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1366 2014-03-03 Jakub Jelinek <jakub@redhat.com>
1368 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1369 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1370 even when flag_preprocess_only.
1372 2014-02-26 Jason Merrill <jason@redhat.com>
1376 * c-common.c (shorten_compare): Don't check
1377 c_inhibit_evaluation_warnings.
1379 2014-02-19 Jakub Jelinek <jakub@redhat.com>
1382 * c-common.c (c_common_nodes_and_builtins): When initializing
1383 c_uint{16,32,64}_type_node, also set corresponding
1384 uint{16,32,64}_type_node to the same value.
1387 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1388 for PRAGMA_IVDEP if flag_preprocess_only.
1390 2014-02-12 Jakub Jelinek <jakub@redhat.com>
1393 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1394 if false, add ADD itself, rather than vice versa.
1395 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1396 copy. For SAVE_EXPR, only call merge_tlist once.
1398 2014-02-08 Jakub Jelinek <jakub@redhat.com>
1401 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1403 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1405 (c_common_attribute_table): Add alloc_align and assume_aligned
1408 2014-02-06 Marek Polacek <polacek@redhat.com>
1411 * c-common.c (warn_for_sign_compare): Call warning_at with location
1414 2014-02-05 Marek Polacek <polacek@redhat.com>
1417 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1420 2014-02-04 Marek Polacek <polacek@redhat.com>
1423 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1426 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
1430 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1431 handle_vector_size_attribute, handle_nonnull_attribute): Call
1432 default_conversion on the attribute argument.
1433 (handle_nonnull_attribute): Increment the argument number.
1435 2014-01-31 Marek Polacek <polacek@redhat.com>
1438 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1439 build_function_call_vec.
1440 (resolve_overloaded_builtin): Likewise.
1441 * c-common.h (build_function_call_vec): Adjust declaration.
1443 2014-01-30 Marek Polacek <polacek@redhat.com>
1446 * c-common.h (unsafe_conversion_p): Adjust declaration.
1447 (warnings_for_convert_and_check): Likewise.
1448 (convert_and_check): Likewise.
1449 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1450 expansion_point_location_if_in_system_header on it.
1451 (warnings_for_convert_and_check): Add location parameter. Call
1452 expansion_point_location_if_in_system_header on it. Use it.
1453 (convert_and_check): Add location parameter. Use it.
1454 (conversion_warning): Likewise.
1455 (c_add_case_label): Adjust convert_and_check calls.
1456 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1458 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1460 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1462 * c-pragma.c (init_pragma): Likewise.
1465 2014-01-23 Marek Polacek <polacek@redhat.com>
1468 * c-common.c (shorten_compare): Add location_t parameter.
1469 * c-common.h (shorten_binary_op): Adjust declaration.
1471 2014-01-23 Marek Polacek <polacek@redhat.com>
1474 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1475 * c-common.h: Declare it.
1477 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1479 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1480 * c-ada-spec.c (dump_ads): Likewise.
1481 (cpp_check): Likewise.
1482 (dump_ada_specs): Likewise.
1484 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
1487 * c-common.c (handle_no_instrument_function_attribute): Allow
1488 no_instrument_function attribute in class member
1489 definition/declaration.
1491 2014-01-15 Jakub Jelinek <jakub@redhat.com>
1494 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1495 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1496 being COMPOUND_EXPR.
1497 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1498 operand a SAVE_EXPR and second MODIFY_EXPR.
1500 2014-01-09 Jakub Jelinek <jakub@redhat.com>
1503 * c-pch.c (c_common_write_pch): Call
1504 prepare_target_option_nodes_for_pch.
1506 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1508 Update copyright years
1510 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1512 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1513 the copyright notice.
1515 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1517 * c-ada-spec.c (print_constructor): New function.
1518 (print_destructor): Retrieve the origin of the destructor.
1519 (print_ada_declaration): Revamp handling of constructors/destructors.
1521 2013-12-23 Stuart Hastings <stuart@apple.com>
1522 Bill Maddox <maddox@google.com>
1523 Jason Merrill <jason@redhat.com>
1525 * c.opt: Add -fdeclone-ctor-dtor.
1526 * c-opts.c (c_common_post_options): Default to on iff -Os.
1528 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1530 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1532 * c-pragma.h (enum pragma_cilk_clause): Remove.
1533 (enum pragma_omp_clause): Added the following fields:
1534 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1535 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1536 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1537 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1538 PRAGMA_CILK_CLAUSE_UNIFORM.
1541 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1543 * cilk.c (cilk_outline): Made this function non-static.
1544 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1545 (create_cilk_wrapper): Added a new parameter: a function pointer.
1546 (c_install_body_w_frame_cleanup): Remove
1547 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1548 * c-common.h (cilk_outline): New prototype.
1549 (gimplify_cilk_spawn): Removed two parameters.
1550 (cilk_install_body_with_frame_cleanup): New prototype.
1551 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1552 CILK_SPAWN_STMT case.
1554 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1556 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1558 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1559 (int_array_type_node): Remove.
1560 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1562 2013-12-05 Marek Polacek <polacek@redhat.com>
1565 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1566 [ADJUST_FIELD_ALIGN].
1568 2013-12-04 Joseph Myers <joseph@codesourcery.com>
1571 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1572 and check field alignment if set.
1573 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1574 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1576 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1577 Marek Polacek <polacek@redhat.com>
1579 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1580 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1582 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1585 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1588 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1591 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1592 goto invalid. If it is error_mark_node, don't issue further
1595 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1597 * c.opt (Wopenmp-simd): New.
1599 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1601 * c-ubsan.h (ubsan_instrument_return): New prototype.
1602 * c-ubsan.c (ubsan_instrument_return): New function.
1604 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1606 * c-common.c: Add required include files from gimple.h.
1607 * c-gimplify.c: Likewise
1610 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1612 * c-common.c (unsafe_conversion_p): Remove use of
1613 EXPR_LOC_OR_HERE macro.
1614 (conversion_warning): Likewise.
1615 (warnings_for_convert_and_check): Likewise.
1616 (warn_for_collisions_1): Likewise.
1617 (shorten_compare): Likewise, and remove use of in_system_header
1618 macro, using the location from the former.
1619 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1620 (cb_def_pragma): Remove use of in_system_header macro.
1621 (lex_string): Likewise.
1622 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1624 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1625 Mike Stump <mikestump@comcast.net>
1626 Richard Sandiford <rdsandiford@googlemail.com>
1628 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1629 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1630 tree_fits_shwi_p or tree_fits_uhwi_p.
1631 (dump_generic_ada_node): Likewise.
1632 * c-format.c (check_format_arg): Likewise.
1633 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1635 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1637 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1639 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1642 * c-common.c (unsafe_conversion_p): Make this function
1643 return an enumeration with more detail.
1644 (conversion_warning): Use the new return type of
1645 unsafe_conversion_p to separately warn either about conversions
1646 that lower floating point number precision or about the other
1647 kinds of conversions.
1648 * c-common.h (enum conversion_safety): New enumeration.
1649 (unsafe_conversion_p): switching return type to
1650 conversion_safety enumeration.
1651 * c.opt: Adding new warning -Wfloat-conversion and
1652 enabling it with -Wconversion.
1654 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1656 * c-opts.c: Include plugin.h.
1657 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1659 2013-11-19 Marek Polacek <polacek@redhat.com>
1661 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1663 (ubsan_instrument_shift): Likewise.
1664 (ubsan_instrument_vla): Likewise.
1666 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1668 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1669 cast to unsigned type.
1671 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1673 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1675 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1676 rather than tree_low_cst.
1678 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1680 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1681 tree_to_uhwi throughout.
1683 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1685 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1686 tree_low_cst (..., 0) with tree_to_shwi throughout.
1688 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1690 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1691 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1693 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1695 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1696 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1698 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1700 * c-cilkplus.c: New file.
1701 * c-common.c (readonly_error): Add location argument.
1702 * c-common.h (readonly_error): Same.
1703 (c_finish_cilk_clauses): Protoize.
1704 (c_check_cilk_loop): Same.
1705 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1706 Do not fail on error_mark_node.
1707 Abstract increment canonicalization to here...
1708 (c_omp_for_incr_canonicalize_ptr): New.
1709 c-pragma.c (init_pragma): Register "simd" pragma.
1710 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1711 (enum pragma_cilk_clause): New.
1713 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1715 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1716 wchar_type and host_integerp checks.
1718 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1720 * c-common.c: Likewise.
1721 * c-gimplify.c: Likewise.
1724 2013-11-14 Diego Novillo <dnovillo@google.com>
1726 * c-common.c: Include fold-const.h.
1727 Include stor-layout.h.
1729 Include stringpool.h.
1732 Include trans-mem.h.
1733 * c-cppbuiltin.c: Include stor-layout.h.
1734 Include stringpool.h.
1735 * c-format.c: Include stringpool.h.
1736 * c-lex.c: Include stringpool.h.
1737 Include stor-layout.h.
1738 * c-pragma.c: Include stringpool.h.
1741 Include gcc-symtab.h.
1742 * c-pretty-print.c: Include stor-layout.h.
1744 * cilk.c: Include stringpool.h.
1747 2013-11-13 Joseph Myers <joseph@codesourcery.com>
1749 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1750 * c-common.c (c_common_reswords): Add __auto_type.
1751 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1753 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1755 * c-common.c: Include gimplify.h.
1756 * c-gimplify.c: Likewise.
1758 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1759 * c-ubsan.c: Don't include gimple.h.
1761 2013-11-12 Joseph Myers <joseph@codesourcery.com>
1763 * c-common.c (c_common_reswords): Add _Thread_local.
1765 2013-11-09 Joseph Myers <joseph@codesourcery.com>
1767 * c-common.c (atomic_size_supported_p): New function.
1768 (resolve_overloaded_atomic_exchange)
1769 (resolve_overloaded_atomic_compare_exchange)
1770 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1771 Use it instead of comparing size with a local list of sizes.
1773 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
1774 Joseph Myers <joseph@codesourcery.com>
1776 * c-common.h (enum rid): Add RID_ATOMIC.
1777 * c-common.c (c_common_reswords): Add _Atomic.
1778 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1779 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1780 * c-format.c (check_format_types): Check for extra _Atomic
1781 qualifiers in format argument.
1782 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1783 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1785 2013-11-06 Tobias Burnus <burnus@net-b.de>
1787 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1789 2013-11-06 Joseph Myers <joseph@codesourcery.com>
1791 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1793 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1794 to mean lack of IEEE 754 support.
1796 2013-11-05 Tobias Burnus <burnus@net-b.de>
1798 * c.opt (-Wdate-time): New option
1799 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1801 2013-11-05 Joseph Myers <joseph@codesourcery.com>
1803 * c-cppbuiltin.c (cpp_iec_559_value): Test
1804 flag_excess_precision_cmdline not flag_excess_precision.
1806 2013-11-05 Tobias Burnus <burnus@net-b.de>
1808 * c.opt (fopenmp-simd): New option.
1809 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1810 (omp_pragmas): ... this new struct.
1811 (c_pp_lookup_pragma): Also walk omp_pragmas.
1812 (init_pragma): Init pragmas for -fopenmp-simd.
1814 2013-11-04 Marek Polacek <polacek@redhat.com>
1817 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1819 2013-11-04 Joseph Myers <joseph@codesourcery.com>
1821 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1823 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1825 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1827 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1828 (dump_ada_specs): Adjust prototype of second callback.
1829 * c-ada-spec.c (cpp_check): New global variable.
1830 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1831 (print_generic_ada_decl): Likewise.
1832 (has_static_fields): Change return type to bool and add guard.
1833 (has_nontrivial_methods): New predicate.
1834 (is_tagged_type): Change return type to bool.
1835 (separate_class_package): Call has_nontrivial_methods.
1836 (pp_ada_tree_identifier): Minor tweaks.
1837 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1838 (dump_ada_array_domains): Likewise.
1839 (dump_ada_array_type): Likewise.
1840 (dump_template_types): Remove cpp_check parameter and do not pass it to
1841 dump_generic_ada_node.
1842 (dump_ada_template): Likewise.
1843 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1845 (print_ada_methods): Change return type to integer. Remove cpp_check
1846 parameter and do not pass it down.
1847 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1848 dump_generic_ada_node.
1849 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1851 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1852 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1853 value of print_ada_methods.
1854 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1855 Set cpp_check to it before invoking dump_ada_nodes.
1856 (dump_ada_specs): Likewise.
1858 2013-11-03 Marek Polacek <polacek@redhat.com>
1860 * c-ubsan.c: Don't include hash-table.h.
1861 (ubsan_instrument_vla): New function.
1862 * c-ubsan.h: Declare it.
1864 2013-10-31 David Malcolm <dmalcolm@redhat.com>
1866 Automated part of renaming of symtab_node_base to symtab_node.
1868 Patch autogenerated by rename_symtab.py from
1869 https://github.com/davidmalcolm/gcc-refactoring-scripts
1870 revision 58bb219cc090b2f4516a9297d868c245495ee622
1872 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1873 symtab_node_base to symtab_node.
1875 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1877 Implement C++14 digit separators.
1878 * c-lex.c (interpret_float): Remove digit separators from scratch string
1879 before building real literal.
1881 2013-10-30 Jakub Jelinek <jakub@redhat.com>
1883 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1885 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1887 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1889 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1891 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1892 (insert_cilk_frame): New prototype.
1893 (cilk_init_builtins): Likewise.
1894 (gimplify_cilk_spawn): Likewise.
1895 (c_cilk_install_body_w_frame_cleanup): Likewise.
1896 (cilk_detect_spawn_and_unwrap): Likewise.
1897 (cilk_set_spawn_marker): Likewise.
1898 (build_cilk_sync): Likewise.
1899 (build_cilk_spawn): Likewise.
1902 2013-10-29 David Malcolm <dmalcolm@redhat.com>
1904 Patch autogenerated by refactor_symtab.py from
1905 https://github.com/davidmalcolm/gcc-refactoring-scripts
1906 revision 58bb219cc090b2f4516a9297d868c245495ee622
1908 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1909 to a true class hierarchy.
1910 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1912 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1914 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1916 2013-10-26 Jeff Law <law@redhat.com>
1918 * c-common.c (c_define_builtins): Remove mudflap support.
1919 * c.opt: Ignore and warn for mudflap options.
1921 2013-10-24 Tobias Burnus <burnus@net-b.de>
1924 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1925 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1927 2013-10-23 Jason Merrill <jason@redhat.com>
1929 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1931 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1933 * c-common.h (omp_clause_mask::operator !=): New method.
1934 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1935 instead of if (mask & something) tests everywhere.
1937 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1938 201307 instead of 201107.
1939 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1940 (c_common_attribute_table): Add "omp declare target" and
1941 "omp declare simd" attributes.
1942 (handle_omp_declare_target_attribute,
1943 handle_omp_declare_simd_attribute): New functions.
1944 * c-omp.c: Include c-pragma.h.
1945 (c_finish_omp_taskgroup): New function.
1946 (c_finish_omp_atomic): Add swapped argument, if true,
1947 build the operation first with rhs, lhs arguments and use NOP_EXPR
1949 (c_finish_omp_for): Add code argument, pass it down to make_code.
1950 (c_omp_split_clauses): New function.
1951 (c_split_parallel_clauses): Removed.
1952 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1953 c_omp_declare_simd_clauses_to_decls): New functions.
1954 * c-common.h (omp_clause_mask): New type.
1955 (OMP_CLAUSE_MASK_1): Define.
1956 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1957 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1958 omp_clause_mask::operator |, omp_clause_mask::operator &,
1959 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1960 omp_clause_mask::operator ==): New methods.
1961 (enum c_omp_clause_split): New.
1962 (c_finish_omp_taskgroup): New prototype.
1963 (c_finish_omp_atomic): Add swapped argument.
1964 (c_finish_omp_for): Add code argument.
1965 (c_omp_split_clauses): New prototype.
1966 (c_split_parallel_clauses): Removed.
1967 (c_omp_declare_simd_clauses_to_numbers,
1968 c_omp_declare_simd_clauses_to_decls): New prototypes.
1969 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1970 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1971 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1972 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1973 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1974 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1975 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1976 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1977 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1978 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1979 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1980 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1981 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1982 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1983 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1984 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1985 PRAGMA_OMP_CLAUSE_UNIFORM.
1987 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
1989 PR tree-optimization/20318
1990 * c-common.c (handle_returns_nonnull_attribute): New function.
1991 (c_common_attribute_table): Add returns_nonnull.
1993 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
1996 * c.opt (fcheck-new): Move to common.opt.
1998 2013-09-25 Marek Polacek <polacek@redhat.com>
1999 Jakub Jelinek <jakub@redhat.com>
2002 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2003 an expression if we can prove it is correct.
2004 (ubsan_instrument_division): Likewise. Remove unnecessary
2007 2013-09-18 Marek Polacek <polacek@redhat.com>
2010 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2012 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2014 2013-09-14 Iain Sandoe <iain@codesourcery.com>
2017 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2018 fobjc-gc, freplace-objc-classes): Accept for LTO.
2020 2013-09-13 Jacek Caban <jacek@codeweavers.com>
2022 * c-target.def: New hook
2024 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2027 * c.opt (Wdelete-incomplete): Add.
2029 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2031 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2032 (vector_types_compatible_elements_p): New function.
2033 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2035 (vector_types_compatible_elements_p): Declare.
2037 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2039 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2040 a virtual member function.
2041 (pp_simple_type_specifier): Remove.
2042 (pp_c_type_specifier): Likewise.
2043 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2044 Rename from pp_c_type_specifier. Adjust.
2045 (c_pretty_printer::c_pretty_printer): Do not assign to
2046 simple_type_specifier.
2048 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2050 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2052 (c_pretty_printer::storage_class_specifier): Likewise.
2053 (c_pretty_printer::initializer): Likewise.
2054 (pp_declaration): Remove.
2055 (pp_declaration_specifiers): Likewise.
2056 (pp_abstract_declarator): Likewise.
2057 (pp_declarator): Likewise.
2058 (pp_type_id): Likewise.
2059 (pp_statement): Likewise.
2060 (pp_constant): Likewise.
2061 (pp_id_expression): Likewise.
2062 (pp_primary_expression): Likewise.
2063 (pp_unary_expression): Likewise.
2064 (pp_multiplicative_expression): Likewise.
2065 (pp_conditional_expression): Likewise.
2066 (pp_assignment_expression): Likewise.
2067 (pp_expression): Likewise.
2068 (pp_c_type_id): Likewise.
2069 (pp_c_storage_class_specifier): Likewise.
2070 * c-pretty-print.c (pp_c_type_cast): Tidy.
2071 (pp_c_pointer): Likewise.
2072 (pp_c_type_specifier): Likewise.
2073 (pp_c_parameter_type_list): Likewise.
2074 (pp_c_function_definition): Likewise.
2075 (pp_c_init_declarator): Likewise.
2076 (pp_c_initializer_list): Likewise.
2077 (pp_c_constructor_elts): Likewise.
2078 (c_pretty_printer::direct_abstract_declarator): Likewise.
2079 (c_pretty_printer::declaration_specifiers): Likewise.
2080 (c_pretty_printer::primary_expression): Likewise.
2081 (c_pretty_printer::postfix_expression): Likewise.
2082 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2083 (c_pretty_printer::storage_class_specifier): Rename from
2084 pp_c_storage_class_specifier.
2085 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2086 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2087 storage_class_specifier, initializer, offset_list, flags.
2089 2013-08-30 Marek Polacek <polacek@redhat.com>
2091 * c-ubsan.c: New file.
2092 * c-ubsan.h: New file.
2094 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2096 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2098 (c_pretty_printer::declaration_specifiers): Likewise.
2099 (c_pretty_printer::declarator): Likewise.
2100 (c_pretty_printer::abstract_declarator): Likewise.
2101 (c_pretty_printer::direct_abstract_declarator): Likewise.
2102 (c_pretty_printer::direct_declarator): Likewise.
2103 (c_pretty_printer::function_specifier): Likewise.
2104 (pp_declaration): Adjust.
2105 (pp_declaration_specifiers): Likewise.
2106 (pp_abstract_declarator): Likewise.
2107 (pp_direct_declarator): Likewise.
2108 (pp_function_specifier): Likewise.
2109 (pp_direct_abstract_declarator): Remove as unused.
2110 (pp_c_declaration): Remove.
2111 (pp_c_declaration_specifiers): Likewise.
2112 (pp_c_declarator): Likewise.
2113 (pp_c_direct_declarator): Likewise.
2114 (pp_c_function_specifier): Likewise.
2115 (pp_c_direct_abstract_declarator): Likewise.
2116 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2117 from pp_c_abstract_declarator. Adjust.
2118 (c_pretty_printer::direct_abstract_declarator): Rename from
2119 pp_c_direct_abstract_declarator. Adjust.
2120 (c_pretty_printer::function_specifier): Rename from
2121 pp_c_function_specifier. Adjust.
2122 (c_pretty_printer::declaration_specifiers): Rename from
2123 pp_c_declaration_specifiers. Adjust.
2124 (c_pretty_printer::direct_declarator): Rename from
2125 pp_c_direct_declarator. Adjust.
2126 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2127 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2128 (c_pretty_printer::c_pretty_printer): Do not assign to
2129 declaration, declaration_specifiers, declarator,
2130 direct_declarator, direct_abstract_declarator, function_specifier.
2132 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2134 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2135 virtual member function.
2136 (c_pretty_printer::multiplicative_expression): Likewise.
2137 (c_pretty_printer::conditional_expression): Likewise.
2138 (c_pretty_printer::assignment_expression): Likewise.
2139 (c_pretty_printer::expression): Likewise.
2140 (pp_unary_expression): Adjust.
2141 (pp_multiplicative_expression): Likewise.
2142 (pp_assignment_expression): Likewise.
2143 (pp_conditional_expression): Likewise.
2144 (pp_expression): Likewise.
2145 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2146 from pp_c_unary_expression. Adjust.
2147 (c_pretty_printer::multiplicative_expression): Rename from
2148 pp_c_multiplicative_expression. Adjust.
2149 (c_pretty_printer::conditional_expression): Rename from
2150 pp_c_conditional_expression. Adjust.
2151 (c_pretty_printer::assignment_expression): Rename from
2152 pp_c_assignment_expression. Adjust.
2153 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2154 (c_pretty_printer::c_pretty_printer): Do not assign to
2155 unary_expression, multiplicative_expression,
2156 conditional_expression, expression.
2158 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2160 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2161 virtual member function.
2162 (pp_postfix_expression): Adjust.
2163 (pp_c_postfix_expression): Remove.
2164 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2165 from pp_c_postfix_expression. Adjust.
2166 (c_pretty_printer::c_pretty_printer): Do not assign to
2169 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2171 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2172 virtua member function.
2173 (pp_primary_expression): Adjust.
2174 (pp_c_primary_expression): Remove.
2175 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2176 from pp_c_primary_expression. Adjust.
2177 (pp_c_initializer_list): Use pp_primary_expression.
2178 (c_pretty_printer::c_pretty_printer): Do not assign to
2181 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2183 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2184 * c-pretty-print.c (M_): Remove.
2185 (c_pretty_printer::translate_string): Define.
2186 (pp_c_type_specifier): Use it.
2187 (pp_c_primary_expression): Likewise.
2188 (pp_c_expression): Likewise.
2190 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2192 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2194 (pp_c_id_expression): Remove.
2195 (pp_id_expression): Adjust.
2196 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2197 pp_c_id_expression. Adjust.
2198 (pp_c_postfix_expression): Use pp_id_expression.
2199 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2201 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2203 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2205 (pp_constant): Adjust.
2206 (pp_c_constant): Remove.
2207 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2208 pp_c_constant. Adjust.
2210 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2211 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2213 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2215 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2216 (c_pretty_printer::c_pretty_printer): Declare.
2217 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2218 c_pretty_printer_init. Adjust.
2219 (print_c_tree): Do not call c_pretty_printer_init.
2220 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2222 2013-08-09 Arnaud Charlet <charlet@adacore.com>
2224 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2226 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2229 * c-common.c (pointer_int_sum): Add bool parameter.
2230 * c-common.h (pointer_int_sum): Adjust declaration.
2232 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2234 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2235 c_pretty_printer variable.
2237 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2239 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2241 (pp_c_base): Likewise. Adjust users.
2242 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2243 (pp_c_whitespace): Do not call pp_base.
2244 (pp_c_left_paren): Likewise.
2245 (pp_c_right_paren): Likewise.
2246 (pp_c_left_brace): Likewise.
2247 (pp_c_right_brace): Likewise.
2248 (pp_c_left_bracket): Likewise.
2249 (pp_c_right_bracket): Likewise.
2250 (pp_c_dot): Likewise.
2251 (pp_c_ampersand): Likewise.
2252 (pp_c_star): Likewise.
2253 (pp_c_arrow): Likewise.
2254 (pp_c_semicolon): Likewise.
2255 (pp_c_complement): Likewise.
2256 (pp_c_exclamation): Likewise.
2257 (pp_c_direct_declarator): Likewise.
2258 (pp_c_ws_string): Likewise.
2259 (pp_c_identifier): Likewise.
2260 (pp_c_statement): Likewise.
2261 (print_c_tree): Likewise.
2263 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2266 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2267 provide useful error strings.
2269 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2271 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2272 printer functions instead of pp_string or operators and punctuators.
2273 (dump_generic_ada_node): Likewise.
2274 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2275 (pp_c_relational_expression): Likewise.
2276 (pp_c_logical_or_expression): Likewise.
2278 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2280 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2281 functions instead of pp_character.
2282 (pp_ada_tree_identifier): Likewise.
2283 (dump_ada_double_name): Likewise.
2284 (dump_ada_function_declaration): Likewise.
2285 (dump_ada_array_domains): Likewise.
2286 (dump_template_types): Likewise.
2287 (dump_generic_ada_node): Likewise.
2288 (print_ada_declaration): Likewise.
2289 (print_ada_struct_decl): Likewise.
2290 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2292 2013-07-23 Tom Tromey <tromey@redhat.com>
2294 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2295 * c-common.c (c_common_reswords): Add _Generic.
2297 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
2299 * c-common.c: Fix typos.
2300 * c-common.h: Likewise.
2302 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
2305 * c-common.c (c_common_attribute_table): Add warn_unused.
2306 (handle_warn_unused_attribute): New.
2308 2013-07-10 Jakub Jelinek <jakub@redhat.com>
2310 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2311 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2313 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2316 * c.opt: Add Wconditionally-supported.
2318 2013-07-08 Graham Stott <graham.stott@btinternet.com>
2320 * array-notation-common.c (length_mismatch_in_expr_p): Delete
2321 unused variables l_length and l_node.
2323 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
2326 * c-common.c (complete_array_type): Delay folding first index
2327 like other indices. When folding, check for index overflow.
2329 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
2332 * c-common.h (c_build_vec_perm_expr): New complain argument.
2333 * c-common.c (c_build_vec_perm_expr): Likewise.
2334 Use save_expr also in C++.
2336 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2338 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2339 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2340 * c-opts.c (c_common_post_options): Likewise.
2342 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2344 * array-notation-common.c (length_mismatch_in_expr): Changed the
2345 parameter type's from a dynamic array to a vec_tree. Also removed
2346 the size parameters.
2347 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2350 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2352 * c-common.h (struct cilkplus_an_parts): New structure.
2353 (struct cilkplus_an_loop_parts): Likewise.
2354 (cilkplus_extract_an_triplets): New prototype.
2355 (fix_sec_implicit_args): Likewise.
2356 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2357 (fix_sec_implicit_args): Likewise.
2359 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2361 * array-notation-common.c (find_inv_trees): Removed an unwanted
2363 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2364 enum rid to enum tree_code.
2366 2013-06-11 Jan Hubicka <jh@suse.cz>
2368 * c-common.c (handle_alias_ifunc_attribute): Do not set
2369 DECL_EXTERNAL for weakref variables.
2370 * c-pragma.c (handle_pragma_weak): Make sure aliases
2371 are not declared as external.
2373 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2375 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2376 function from c/c-array-notation.c.
2377 (is_cilkplus_reduce_builtin): Likewise.
2378 (find_rank): Likewise.
2379 (extract_array_notation_exprs): Likewise.
2380 (replace_array_notations): Likewise.
2381 (find_inv_trees): Likewise.
2382 (replace_inv_trees): Likewise.
2383 (contains_array_notation_expr): Likewise.
2384 (find_correct_array_notation_type): Likewise.
2385 * c-common.h (struct inv_list): Moved this struct from the file
2386 c/c-array-notation.c and added a new field called additional tcodes.
2387 (length_mismatch_in_expr_p): New prototype.
2388 (is_cilkplus_reduce_builtin): Likewise.
2389 (find_rank): Likewise.
2390 (extract_array_notation_exprs): Likewise.
2391 (replace_array_notation): Likewise.
2392 (find_inv_trees): Likewise.
2393 (replace_inv_trees): Likewise.
2394 (find_correct_array_notation_type): Likewise.
2396 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2398 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2399 function array_notation_init_builtins is called.
2400 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2401 * c-common.def (ARRAY_NOTATION_REF): New tree.
2402 * c-common.h (build_array_notation_expr): New function declaration.
2403 (build_array_notation_ref): Likewise.
2404 (extract_sec_implicit_index_arg): New extern declaration.
2405 (is_sec_implicit_index_fn): Likewise.
2406 (ARRAY_NOTATION_CHECK): New define.
2407 (ARRAY_NOTATION_ARRAY): Likewise.
2408 (ARRAY_NOTATION_START): Likewise.
2409 (ARRAY_NOTATION_LENGTH): Likewise.
2410 (ARRAY_NOTATION_STRIDE): Likewise.
2411 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2413 (pp_c_expression): Likewise.
2414 * c.opt (flag_enable_cilkplus): New flag.
2415 * array-notation-common.c: New file.
2417 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2420 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2422 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2424 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2427 2013-05-07 Han Shen <shenhan@google.com>
2429 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2431 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2433 * c-common.c (check_user_alignment): Emit error for negative values.
2435 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2437 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2439 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2441 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2442 __GXX_EXPERIMENTAL_CXX1Y__.
2444 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2445 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2447 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2448 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2449 to simply use OPT_Wpointer_arith.
2450 (c_sizeof_or_alignof_type): Likewise.
2452 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2454 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2456 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2458 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2459 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2462 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2464 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2466 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2468 * c-common.c (pointer_int_sum): Remove dead code.
2470 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2473 * c-common.c (handle_optimize_attribute): Don't call
2474 save_optabs_if_changed.
2476 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2479 * c-pch.c (pch_init): Free target_validity at the end.
2481 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2483 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2485 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2486 Jakub Jelinek <jakub@redhat.com>
2489 * c-common.c (handle_no_sanitize_address_attribute): New function.
2490 (c_common_attribute_table): Add no_sanitize_address attribute.
2491 (handle_no_address_safety_analysis_attribute): Add
2492 no_sanitize_address attribute, not no_address_safety_analysis
2495 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2498 * c-common.c (handle_optimize_attribute): Call
2499 save_optabs_if_changed.
2501 2013-02-18 Jakub Jelinek <jakub@redhat.com>
2502 Steven Bosscher <steven@gcc.gnu.org>
2505 * c-opts.c (c_common_post_options): If debug info is enabled
2506 and non-dwarf*, refuse to load PCH files and when writing PCH
2509 2013-02-05 Jakub Jelinek <jakub@redhat.com>
2512 * c-common.c (handle_error_attribute): Fix condition.
2514 2013-01-30 Jakub Jelinek <jakub@redhat.com>
2517 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2519 2013-01-18 Jason Merrill <jason@redhat.com>
2522 * c.opt (-fextern-tls-init): New.
2523 * c-opts.c (c_common_post_options): Handle it.
2525 2013-01-09 Jakub Jelinek <jakub@redhat.com>
2528 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2529 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2530 and is either negative or bigger or equal to type precision
2531 of the first operand.
2533 2012-12-03 Marek Polacek <polacek@redhat.com>
2536 * c-common.c (check_user_alignment): Swap order of tests,
2537 check TREE_CODE first.
2539 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2542 * c-common.h (overflow_type): New enum.
2543 (build_userdef_literal): Add overflow_type argument.
2544 (tree_userdef_literal): Add overflow_type.
2545 (USERDEF_LITERAL_OVERFLOW): New access macro.
2546 * c-common.c (build_userdef_literal): Add overflow_type
2548 * c-lex.c (c_lex_with_flags): Add overflow_type to
2549 build_userdef_literal calls.
2550 (interpret_integer, interpret_float): Add overflow_type argument.
2552 2012-11-28 Richard Biener <rguenther@suse.de>
2555 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2556 here and use a type with proper overflow behavior for types that would
2557 need to be promoted for the arithmetic.
2559 2012-11-23 Jakub Jelinek <jakub@redhat.com>
2562 * c-common.c (handle_no_address_safety_analysis_attribute): New
2564 (c_common_attribute_table): Add no_address_safety_analysis.
2566 2012-11-16 Simon Baldwin <simonb@google.com>
2568 * c.opt: Add f[no-]canonical-system-headers.
2569 * c-opts.c (c_common_handle_option): Handle
2570 OPT_fcanonical_system_headers.
2572 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2575 * c-opts.c (c_common_handle_option): Set new flags.
2576 * c.opt: Describe new flags.
2578 2012-11-09 Jason Merrill <jason@redhat.com>
2580 * c.opt (Wabi-tag): New.
2582 2012-11-09 Andi Kleen <ak@linux.intel.com>
2585 * c-common.c (get_atomic_generic_size): Mask with
2588 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2591 * c.opt (Wformat): Make it Alias Wformat=1.
2592 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2593 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2595 (Wformat=): RejectNegative. Use LangEnabledBy.
2596 (Wnonnull): Use LangEnabledBy.
2597 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2598 * c-format.c (set_Wformat): Delete.
2599 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2600 (maybe_read_dollar_number): Likewise.
2601 (avoid_dollar_number): Likewise.
2602 (finish_dollar_format_checking): Likewise.
2603 (check_format_info): Likewise.
2604 (check_format_info_main): Likewise.
2605 (check_format_types): Likewise.
2606 (format_type_warning): Likewise.
2607 * c-common.c (int): Likewise.
2608 (check_function_sentinel): Likewise.
2609 * c-common.h (warn_format,set_Wformat): Do not declare here.
2611 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2614 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2615 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2617 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2619 (Wvariadic-macros): Init(1).
2620 * c-opts.c (c_common_handle_option): Do not handle them
2622 (c_common_post_options): Likewise.
2623 (sanitize_cpp_opts): warn_unused_macros is now
2624 cpp_warn_unused_macros.
2625 (push_command_line_include): Likewise.
2626 * c-common.c (warn_unknown_pragmas): Do not define.
2627 * c-common.h (warn_unknown_pragmas): Do not declare.
2629 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2632 * c-common.c (conversion_warning): Handle conditional expressions.
2634 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2637 * c.opt (Wreturn_local_addr): Define new option.
2639 2012-10-25 Jason Merrill <jason@redhat.com>
2641 * c.opt (Wvirtual-move-assign): New.
2643 * c.opt (Winherited-variadic-ctor): New.
2645 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
2648 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2650 2012-10-23 Joseph Myers <joseph@codesourcery.com>
2652 * c-common.h (pch_cpp_save_state): Declare.
2653 * c-target.def (c_preinclude): New hook.
2654 * c-opts.c (done_preinclude): New.
2655 (push_command_line_include): Handle default preincluded header.
2656 (cb_file_change): Call pch_cpp_save_state when calling
2657 push_command_line_include.
2658 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2659 (pch_cpp_save_state): New.
2660 (pch_init): Call pch_cpp_save_state conditionally, instead of
2661 calling cpp_save_state.
2663 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2667 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2668 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2669 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2670 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2671 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2672 * c-opts.c (c_common_handle_option): Remove explicit handling from
2674 (c_common_post_options): Likewise.
2676 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2678 * c-ada-spec.c (LOCATION_COL): Delete.
2679 (compare_location): New function.
2680 (compare_node): Use it.
2681 (compare_comment): Likewise.
2683 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2687 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2688 * c-opts.c (c_common_handle_option): Do not set them here. Add
2690 (c_common_post_options): Likewise.
2692 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2694 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2695 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2696 Remove POINTER_TYPE handling, add large unsigned handling and use
2697 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2699 2012-10-12 Jakub Jelinek <jakub@redhat.com>
2702 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2703 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2704 locs and array of 3 trees instead of just single loc and single
2705 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2706 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2707 For *cmp* builtins that take two sources strings report warnings
2708 about first and second source, not about destination and source.
2710 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
2713 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2715 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2717 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2718 declaring something coming from another file.
2720 2012-10-10 Arnaud Charlet <charlet@adacore.com>
2723 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2725 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2728 * c-common.c (warn_about_parentheses): Add location_t parameter;
2729 use EXPR_LOC_OR_LOC.
2730 * c-common.h: Update declaration.
2732 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
2735 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2736 more operations. Make error messages optional.
2737 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2738 (scalar_to_vector): Declare.
2740 2012-10-08 Jason Merrill <jason@redhat.com>
2742 * c-common.c (c_common_reswords): Add thread_local.
2744 2012-10-08 Dodji Seketeli <dodji@redhat.com>
2746 PR c++/53528 C++11 attribute support
2747 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2749 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2751 (handle_aligned_attribute): In choose strictest alignment
2752 among many. Use new check_cxx_fundamental_alignment_constraints.
2753 (handle_transparent_union_attribute): In c++11 attribute syntax,
2754 don't look through typedefs.
2756 2012-10-04 Arnaud Charlet <charlet@adacore.com>
2758 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2759 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2762 2012-09-25 Dehao Chen <dehao@google.com>
2765 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2766 map when read in the pch.
2768 2012-09-18 Arnaud Charlet <charlet@adacore.com>
2770 * c-ada-spec.c: Style fixes.
2772 2012-09-18 Thomas Quinot <quinot@adacore.com>
2774 * c.opt (-fada-spec-parent): Define new command line switch.
2775 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2776 is specified, generate binding spec as a child of the specified unit.
2778 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2779 Manuel López-Ibáñez <manu@gcc.gnu.org>
2782 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2784 2012-08-23 Arnaud Charlet <charlet@adacore.com>
2786 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2787 for pointers, and add missing Convention C pragma.
2788 (print_ada_struct_decl): Add missing aliased keyword.
2789 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2791 2012-08-17 Jakub Jelinek <jakub@redhat.com>
2793 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2794 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2795 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2796 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2797 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2799 2012-08-10 Richard Guenther <rguenther@suse.de>
2801 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2803 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2805 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2806 instead of separate pp_newline and pp_flush.
2807 (print_c_tree): Likewise.
2809 2012-07-26 Richard Henderson <rth@redhat.com>
2811 * c-common.c (handle_hot_attribute): Allow labels.
2812 (handle_cold_attribute): Likewise.
2814 2012-07-20 Jakub Jelinek <jakub@redhat.com>
2817 * c-common.c (check_function_nonnull): Handle multiple nonnull
2818 attributes properly.
2820 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2822 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2823 * c-ada-spec.c: Likewise.
2824 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2826 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2828 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2829 Remove code conditional on it.
2831 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2833 * c-gimplify.c: Do not include basic-block.h.
2834 * c-common.c: Do not include linfuncs.h.
2836 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2838 * c-common.h: Include tree.h.
2840 2012-07-02 Jason Merrill <jason@redhat.com>
2843 * c-common.c (get_priority): Call default_conversion.
2845 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
2847 * c-pch.c (c_common_write_pch): Remove unused variables.
2849 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2851 * cppspec.c: Moved from gcc/ to here.
2853 2012-06-27 Kai Tietz <ktietz@redhat.com>
2855 PR preprocessor/37215
2856 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2858 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2860 * c-common.h (c_common_print_pch_checksum): Remove.
2861 * c-pch.c: Do not include output.h.
2862 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2863 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2864 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2865 (struct c_pch_header): Remove.
2866 (get_ident): Update gpch version.
2867 (pch_init): Do not print executable_checksum to asm_out_file.
2868 Do not fail if there is no asm_out_file to read back from. Set
2869 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2870 (c_common_write_pch): Verify that nothing was written to asm_out_file
2871 since pch_init was called. Do not write a c_pch_header, and do not
2872 copy from asm_out_file to the PCH.
2873 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2874 the content of asm_out_file from the PCH.
2875 (c_common_print_pch_checksum): Remove.
2876 * c-opts.c (c_common_init): Print out executable_checksum directly.
2878 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2880 * c-target.def (objc_declare_unresolved_class_reference,
2881 objc_declare_class_definition): Add new hooks.
2883 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2885 * c-lex.c: Do not include output.h.
2886 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2887 Remove uses of ASM_OUTPUT_IDENT.
2889 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
2892 * c-common.h (c_build_vec_perm_expr): Move decl here.
2893 * c-common.c (c_build_vec_perm_expr): Move definition
2896 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2898 * c.opt (fconserve-space): Turn into a no-op.
2900 2012-06-04 Sterling Augustine <saugustine@google.com>
2902 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2903 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2904 both the start and end of the function.
2906 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2908 * c-common.c: Do not include output.h.
2909 * c-pragma.c: Likewise.
2911 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2913 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2914 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2915 (lang_decl_name): Handle namespace decls.
2917 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2919 * c-ada-spec.c: Do not include output.h.
2920 * c-semantics.c: Likewise.
2922 2012-05-29 Joseph Myers <joseph@codesourcery.com>
2924 * c-common.c: Fix typo.
2926 2012-05-29 Michael Matz <matz@suse.de>
2928 * c-common.h (c_expand_decl): Remove prototype.
2930 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2932 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2933 * c-opts.c (c_common_handle_option): Remove code handling
2934 warn_missing_braces.
2936 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2939 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2942 2012-05-22 Dodji Seketeli <dodji@redhat.com>
2945 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2947 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2949 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2950 * c-opts.c (c_common_handle_option): Do not handle explicitly
2951 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2953 2012-05-16 Dodji Seketeli <dodji@redhat.com>
2955 PR preprocessor/7263
2956 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2957 to cpp_classify_number. For diagnostics, use the precise location
2958 instead of the global input_location.
2960 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2963 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2965 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2967 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2969 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2972 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2973 Wreorder): Use LangEnabledBy.
2974 * c-opts.c (c_common_handle_option): Do not enable them
2975 explicitly. Call lang-specific generated functions.
2976 (c_common_post_options): Do not set them here.
2978 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2980 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2981 Wmissing-field-initializers,Wmissing-parameter-type,
2982 Wold-style-declaration,Woverride-init): Use EnabledBy.
2983 * c-opts.c (c_common_post_options): Do not set here explicitly.
2985 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2988 * c-opts.c (c_common_handle_option): Use handle_generated_option
2989 to enable sub-options.
2991 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2994 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2996 2012-05-10 Richard Guenther <rguenther@suse.de>
2998 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2999 adjust commentary about TYPE_IS_SIZETYPE types.
3001 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3004 * c-common.c (warn_logical_operator): Check that argument of
3005 integer_zerop is not NULL.
3007 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3010 * c-common.c (warn_logical_operator): Do not warn if either side
3011 is already true or false.
3013 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3016 * c-common.c (expr_original_type): New.
3017 (shorten_compare): Do not warn for enumeration types.
3019 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3021 * c.opt (fpermissive): Add Var(flag_permissive).
3023 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
3026 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3027 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3029 2012-04-30 Dodji Seketeli <dodji@redhat.com>
3031 Add -Wvarargs option
3032 * c.opt (Wvarargs): Define new option.
3034 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3036 * c-common.c (check_function_arguments): Replace
3037 Wmissing-format-attribute with Wsuggest-attribute=format.
3039 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3041 * c.opt (Wsuggest-attribute=format): New. Alias of
3042 Wmissing-format-attribute.
3043 * c-format.c (decode_format_type): Replace
3044 Wmissing-format-attribute with Wsuggest-attribute=format.
3045 (check_function_format): Likewise.
3047 2012-04-27 Ollie Wild <aaw@google.com>
3049 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3050 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3051 * c.opt: Add Wliteral-suffix.
3053 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3056 * c.opt (Wpedantic): New.
3057 (pedantic): Alias Wpedantic.
3058 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3059 (c_common_post_options): Likewise.
3060 (sanitize_cpp_opts): Likewise.
3061 * c-lex.c (interpret_float): Likewise.
3062 * c-format.c (check_format_types): Likewise.
3063 * c-common.c (pointer_int_sum): Likewise.
3064 (c_sizeof_or_alignof_type): Likewise.
3065 (c_add_case_label): Likewise.
3066 (c_do_switch_warnings): Likewise.
3067 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3069 2012-04-15 Jason Merrill <jason@redhat.com>
3072 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3073 (C_STD_NAME): Distinguish between C++98 and C++11.
3075 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3078 * c-common.h (uint16_type_node): Rename into...
3079 (c_uint16_type_node): ...this.
3080 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3081 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3083 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3085 * c-common.c (warn_if_unused_value): Move definition to here.
3086 * c-common.h (warn_if_unused_value): Move declaration to here.
3088 2012-03-23 William Bader <williambader@hotmail.com>
3090 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3092 2012-03-20 Jason Merrill <jason@redhat.com>
3094 * c-common.h (enum cxx_dialect): Add cxx1y.
3095 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3097 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3098 * c-opts.c (c_common_post_options): Likewise.
3099 (set_std_cxx1y): New.
3100 (c_common_handle_option): Call it.
3101 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3103 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3106 * c.opt ([Wuseless-cast]): Add.
3108 2012-03-16 Richard Guenther <rguenther@suse.de>
3110 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3112 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3115 * c.opt (ftemplate-backtrace-limit) Add.
3117 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3119 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3121 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3122 (init_pragma): Don't register extern_prefix.
3124 2012-03-12 Richard Guenther <rguenther@suse.de>
3126 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3127 (builtin_type_for_size): Likewise.
3129 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3132 * c-common.c (sync_resolve_params): Don't decide whether to convert
3133 or not based on TYPE_SIZE comparison, convert whenever arg_type
3134 is unsigned INTEGER_TYPE.
3136 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3139 * c.opt ([Wunused-local-typedefs]): Fix description.
3141 2012-01-24 Mike Stump <mikestump@comcast.net>
3143 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3146 2012-01-18 Richard Guenther <rguenther@suse.de>
3148 * c-opts.c (c_common_post_options): Reset LTO flags if
3149 we are about to generate a PCH.
3151 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3154 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3155 use pp_unsigned_wide_integer.
3157 2012-01-10 Richard Guenther <rguenther@suse.de>
3160 * c-opts.c (c_common_handle_option): Move -Werror handling
3161 to language independent code.
3163 2012-01-05 Richard Guenther <rguenther@suse.de>
3166 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3169 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3172 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3173 of array types with an unknown bound.
3175 2011-12-20 Joseph Myers <joseph@codesourcery.com>
3177 * c-common.c (flag_isoc99): Update comment to refer to C11.
3178 (flag_isoc1x): Change to flag_isoc11.
3179 * c-common.h (flag_isoc99): Update comment to refer to C11.
3180 (flag_isoc1x): Change to flag_isoc11.
3181 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3183 * c-opts.c (set_std_c1x): Change to set_std_c11.
3184 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3186 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3187 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3188 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3190 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3191 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3192 (std=gnu1x): Make alias of std=gnu11.
3194 2011-12-19 Jason Merrill <jason@redhat.com>
3197 * c-common.c (handle_transparent_union_attribute): Check the first
3198 field if the type is complete.
3200 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3203 * c-common.c (RID_IS_FINAL): Add.
3204 * c-common.h (RID_IS_FINAL): Add.
3206 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3208 * c.opt (fgnu-runtime): Provide full description.
3209 (fnext-runtime): Likewise.
3210 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3212 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
3214 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3215 predefines in one place. Add LOCK_FREE predefines.
3216 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3219 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
3222 * c-common.c (get_atomic_generic_size): Check for various error
3224 (resolve_overloaded_atomic_exchange,
3225 resolve_overloaded_atomic_compare_exchange,
3226 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3227 error_mark_node for error conditions.
3229 2011-11-08 Richard Guenther <rguenther@suse.de>
3234 2011-11-07 Richard Henderson <rth@redhat.com>
3235 Aldy Hernandez <aldyh@redhat.com>
3236 Torvald Riegel <triegel@redhat.com>
3238 Merged from transactional-memory.
3240 * c-common.c (handle_tm_wrap_attribute,
3241 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3242 (struct c_common_reswords): Added __transaction* keywords.
3243 (struct c_common_attribute_table): Added transaction* and tm_regparm
3245 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3247 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3248 find_tm_attribute): Declare.
3250 2011-11-07 Jason Merrill <jason@redhat.com>
3253 * c-common.c, c-common.h: Revert yesterday's changes.
3255 2011-11-06 Jason Merrill <jason@redhat.com>
3258 * c-common.c (decl_has_visibility_attr): Split out from...
3259 (c_determine_visibility): ...here.
3260 * c-common.h: Declare it.
3262 2011-11-06 Joseph Myers <joseph@codesourcery.com>
3264 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3265 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3267 (check_user_alignment): New. Split out of
3268 handle_aligned_attribute. Disallow integer constants with
3269 noninteger types. Conditionally allow zero.
3270 (handle_aligned_attribute): Use check_user_alignment.
3271 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3273 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
3274 Richard Henderson <rth@redhat.com>
3276 Merged from cxx-mem-model.
3278 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3279 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3280 parameters that are the same type size.
3281 (get_atomic_generic_size): New. Find size of generic
3282 atomic function parameters and do typechecking.
3283 (add_atomic_size_parameter): New. Insert size into parameter list.
3284 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3285 either __atomic_exchange_n or external library call.
3286 (resolve_overloaded_atomic_compare_exchange): Restructure
3287 __atomic_compare_exchange to either _n variant or external library call.
3288 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3289 __atomic_load_n or an external library call.
3290 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3291 __atomic_store_n or an external library call.
3292 (resolve_overloaded_builtin): Handle new __atomic builtins.
3294 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3297 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3298 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3299 <INDIRECT_REF>: Return the argument.
3300 <ARRAY_REF>: Remove special code for negative offset.
3301 Call fold_build_pointer_plus instead of size_binop.
3302 (fold_offsetof): Remove STOP_REF argument and adjust.
3303 * c-common.h (fold_offsetof_1): Declare.
3304 (fold_offsetof): Remove STOP_REF argument.
3306 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3309 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3310 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3311 Wnarrowing for C++0x and C++98.
3312 * c.opt ([Wnarrowing]): Update.
3314 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3317 * c.opt: Add Wzero-as-null-pointer-constant.
3319 2011-10-31 Jason Merrill <jason@redhat.com>
3321 * c.opt (-fdeduce-init-list): Off by default.
3324 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3325 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3327 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3329 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3332 * c.opt (fvisibility-inlines-hidden): Description change.
3334 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3336 Implement C++11 user-defined literals.
3337 * c-common.c (build_userdef_literal): New.
3338 * c-common.def: New tree code.
3339 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3340 * c-lex.c (interpret_float): Add suffix parm.
3341 (c_lex_with_flags): Build literal tokens.
3343 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3347 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3350 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3351 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3352 Wnarrowing for C++0x and C++98.
3353 * c.opt ([Wnarrowing]): Update.
3355 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3358 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3359 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3360 Wnarrowing for C++0x and C++98.
3361 * c.opt ([Wnarrowing]): Update.
3363 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3366 * c-common.c (conversion_warning): Remove code looking for
3367 artificial operands.
3369 2011-10-18 Dodji Seketeli <dodji@redhat.com>
3372 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3373 !NO_IMPLICIT_EXTERN_C.
3375 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
3377 * c-common.c (c_common_reswords): Add __bases,
3379 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3381 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3384 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3386 2011-10-15 Tom Tromey <tromey@redhat.com>
3387 Dodji Seketeli <dodji@redhat.com>
3389 * c.opt (fdebug-cpp): New option.
3390 * c-opts.c (c_common_handle_option): Handle the option.
3391 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3392 output stream in parameter. Factorized from ...
3393 (maybe_print_line): ... this. Dump location debug information when
3394 -fdebug-cpp is in effect.
3395 (print_line_1): New static function. Takes an output stream in
3396 parameter. Factorized from ...
3397 (print_line): ... here. Dump location information when -fdebug-cpp
3399 (scan_translation_unit): Dump location information when
3400 -fdebug-cpp is in effect.
3402 2011-10-15 Tom Tromey <tromey@redhat.com>
3403 Dodji Seketeli <dodji@redhat.com>
3405 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3407 * c-opts.c (c_common_handle_option)<case
3408 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3409 cases. Handle -ftrack-macro-expansion with and without argument.
3411 2011-10-15 Tom Tromey <tromey@redhat.com>
3412 Dodji Seketeli <dodji@redhat.com>
3414 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3415 (print_line, cb_define, do_line_change): Adjust to avoid touching
3416 the internals of struct line_map. Use the public API instead.
3417 * c-pch.c (c_common_read_pch): Likewise.
3418 * c-lex.c (fe_file_change): Likewise.
3420 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3423 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3425 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3428 * c-pretty-print.c (pp_c_floating_constant): Output
3429 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3431 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3433 * c-common.c (def_builtin_1): Delete old interface with two
3434 parallel arrays to hold standard builtin declarations, and replace
3435 it with a function based interface that can support creating
3436 builtins on the fly in the future. Change all uses, and poison
3437 the old names. Make sure 0 is not a legitimate builtin index.
3438 * c-omp.c (c_finish_omp_barrier): Ditto.
3439 (c_finish_omp_taskwait): Ditto.
3440 (c_finish_omp_flush): Ditto.
3442 2011-10-11 Tristan Gingold <gingold@adacore.com>
3444 * c.opt: (fallow-parameterless-variadic-functions): New.
3446 2011-09-08 Dodji Seketeli <dodji@redhat.com>
3448 PR c++/33255 - Support -Wunused-local-typedefs warning
3449 * c-common.h (struct c_language_function::local_typedefs): New
3451 (record_locally_defined_typedef, maybe_record_typedef_use)
3452 (maybe_warn_unused_local_typedefs): Declare new functions.
3453 * c-common.c (record_locally_defined_typedef)
3454 (maybe_record_typedef_use)
3455 (maybe_warn_unused_local_typedefs): Define new functions.
3456 * c.opt: Declare new -Wunused-local-typedefs flag.
3458 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3461 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3464 2011-09-05 Richard Guenther <rguenther@suse.de>
3466 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3467 of integer_minus_one_node for empty array upper bounds.
3469 2011-08-28 Dodji Seketeli <dodji@redhat.com>
3471 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3472 it's the first time it's being called on this main TU.
3474 2011-08-24 Richard Guenther <rguenther@suse.de>
3477 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3479 2011-08-22 Gabriel Charette <gchare@google.com>
3481 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3482 defined in cpp_init_builtins and c_cpp_builtins.
3484 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3486 * c-common.c (c_common_reswords): Add __builtin_complex.
3487 * c-common.h (RID_BUILTIN_COMPLEX): New.
3489 2011-08-18 Joseph Myers <joseph@codesourcery.com>
3491 * c-common.c (c_common_reswords): Add _Noreturn.
3492 (keyword_is_function_specifier): Handle RID_NORETURN.
3493 * c-common.h (RID_NORETURN): New.
3495 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3497 * c-common.c (unsafe_conversion_p): New function. Check if it is
3498 unsafe to convert an expression to the type.
3499 (conversion_warning): Adjust, use unsafe_conversion_p.
3500 * c-common.h (unsafe_conversion_p): New function declaration.
3502 2011-08-02 Jakub Jelinek <jakub@redhat.com>
3504 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3505 (c_finish_omp_taskyield): New prototype.
3506 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3507 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3508 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3509 or RHS1 have side-effects, evaluate those too in the right spot,
3510 if it is a decl and LHS is also a decl, error out if they
3512 (c_finish_omp_taskyield): New function.
3513 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3514 * c-pragma.c (omp_pragmas): Add taskyield.
3515 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3516 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3517 PRAGMA_OMP_CLAUSE_MERGEABLE.
3519 2011-07-25 Dodji Seketeli <dodji@redhat.com>
3521 * c-common.h (set_underlying_type): Remove parm name from
3524 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
3526 * c-pretty-print.h: Search c-common.h in c-family.
3528 2011-07-22 Jason Merrill <jason@redhat.com>
3531 * c.opt (Wnarrowing): New.
3534 * c-common.h: Declare c_linkage_bindings.
3535 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3538 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3539 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3540 as flag_isoc99 for 'restrict'.
3541 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3543 2011-07-21 Ian Lance Taylor <iant@google.com>
3546 * c-common.c (c_disable_warnings): New static function.
3547 (c_enable_warnings): New static function.
3548 (c_fully_fold_internal): Change local unused_p to bool. Call
3549 c_disable_warnings and c_enable_warnings rather than change
3550 c_inhibit_evaluation_warnings.
3552 2011-07-20 Jason Merrill <jason@redhat.com>
3554 PR c++/6709 (DR 743)
3555 PR c++/42603 (DR 950)
3556 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3557 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3558 (CPP_DECLTYPE): New.
3559 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3561 2011-07-19 Richard Guenther <rguenther@suse.de>
3563 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3564 * c-omp.c (c_finish_omp_for): Likewise.
3566 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3568 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3569 body on the next line.
3571 2011-07-08 Jason Merrill <jason@redhat.com>
3574 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3577 * c-common.c (c_apply_type_quals_to_decl): Don't check
3578 TYPE_NEEDS_CONSTRUCTING.
3580 2011-07-06 Richard Guenther <rguenther@suse.de>
3582 * c-common.c (c_common_nodes_and_builtins):
3583 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3585 2011-07-05 Richard Guenther <rguenther@suse.de>
3587 * c-common.c (c_common_nodes_and_builtins): Build all common
3590 2011-06-27 Jakub Jelinek <jakub@redhat.com>
3592 * c-common.h (c_tree_chain_next): New static inline function.
3594 * c-common.c (check_builtin_function_arguments): Handle
3595 BUILT_IN_ASSUME_ALIGNED.
3597 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
3599 * c-common.c: Add sync_ or SYNC__ to builtin names.
3600 * c-omp.c: Add sync_ or SYNC__ to builtin names.
3602 2011-06-20 Pierre Vittet <piervit@pvittet.com>
3604 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3606 (gen_pragma_handler): New union.
3607 (internal_pragma_handler): New type.
3608 (c_register_pragma_with_data)
3609 (c_register_pragma_with_expansion_and_data): New functions.
3611 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3612 (c_register_pragma, c_register_pragma_with_expansion)
3613 (c_invoke_pragma_handler): Changed to work with
3614 internal_pragma_handler.
3615 (c_register_pragma_with_data)
3616 (c_register_pragma_with_expansion_and_data): New functions.
3618 2011-06-14 Joseph Myers <joseph@codesourcery.com>
3620 * c-common.c: Include common/common-target.h.
3621 (handle_section_attribute): Use
3622 targetm_common.have_named_sections.
3623 * c-cppbuiltin.c: Include common/common-target.h.
3624 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3626 2011-06-10 Richard Guenther <rguenther@suse.de>
3628 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3629 to print a IDENTIFIER_NODE.
3631 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3632 Joseph Myers <joseph@codesourcery.com>
3634 * c.opt (fbuilding-libgcc): New option.
3635 * c-cppbuiltin.c (c_cpp_builtins): Define
3636 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3638 2011-06-07 Jason Merrill <jason@redhat.com>
3640 * c-common.c (max_tinst_depth): Lower default to 900.
3642 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3644 2011-06-07 Richard Guenther <rguenther@suse.de>
3646 * c-common.c (c_common_nodes_and_builtins): Do not set
3647 size_type_node or call set_sizetype.
3649 2011-06-07 Dodji Seketeli <dodji@redhat.com>
3652 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3653 type when using pointer comparison to compare types.
3655 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3657 * c.opt: Add -Wdelete-non-virtual-dtor.
3658 * c-opts.c (c_common_handle_option): Include it in -Wall.
3660 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3665 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3667 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3670 2011-05-27 Jakub Jelinek <jakub@redhat.com>
3673 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3674 C++ don't call c_common_truthvalue_conversion on void type arms.
3676 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3678 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3679 (stmt_list_stack): Define.
3680 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3681 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3683 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3685 * c-common.c (warning_candidate_p): Check for BLOCKs.
3687 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3689 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3692 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3694 * c-common.c (def_fn_type): Remove extra va_end.
3696 2011-05-23 Jason Merrill <jason@redhat.com>
3699 * c-common.c (c_common_get_narrower): New.
3700 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3702 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3704 * c-common.h (check_function_arguments): Tweak prototype of
3705 check_function_arguments.
3706 * c-common.c (check_function_arguments): Likewise. Adjust
3707 calls to check_function_nonnull, check_function_format, and
3708 check_function_sentinel.
3709 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3710 separate attributes and typelist arguments. Use
3711 FOREACH_FUNCTION_ARGS to iterate over argument types.
3713 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3715 * c-common.c (c_common_reswords): Reorder.
3716 * c-common.h (rid): Likewise.
3718 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3720 * c-common.c (def_fn_type): Don't call build_function_type, call
3721 build_function_type_array or build_varargs_function_type_array
3723 (c_common_nodes_and_builtins): Likewise.
3725 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3727 * c-common.c (c_add_case_label): Omit the loc argument to
3729 * c-common.h (build_case_label): Remove.
3730 * c-semantics.c (build_case_label): Remove.
3732 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3734 * c-objc.h (objc_start_method_definition): Update prototype.
3735 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3737 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3739 * c-common.c (check_main_parameter_types): Reindent. Don't use
3740 TYPE_ARG_TYPES directly.
3741 (handle_nonnull_attribute): Likewise.
3742 (sync_resolve_params): Likewise.
3743 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3744 to check_format_string.
3745 (handle_format_attribute): Likewise.
3746 (check_format_string): Take a function type to examine instead of
3747 a type list. Use a function_arg_iterator to step through argument
3750 2011-05-04 Richard Guenther <rguenther@suse.de>
3752 * c-common.c (fix_string_type): Use size_int for index type bounds.
3753 (start_fname_decls): Do not pass NULL to build_int_cst.
3754 (c_init_attributes): Likewise.
3755 * c-lex.c (c_lex_with_flags): Likewise.
3757 2011-04-27 Jason Merrill <jason@redhat.com>
3759 * c-common.c (make_tree_vector_from_list): New.
3760 * c-common.h: Declare it.
3762 2011-04-26 Richard Guenther <rguenther@suse.de>
3764 PR preprocessor/48248
3765 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3766 for output size with -P.
3768 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3770 * c-common.c (struct c_common_resword): Add __underlying_type.
3771 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3773 2011-04-20 Jim Meyering <meyering@redhat.com>
3775 * c-format.c (init_dollar_format_checking): Remove useless
3778 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3780 * c-objc.h (objc_get_interface_ivars): Removed.
3781 (objc_detect_field_duplicates): New.
3782 * stub-objc.c: Likewise.
3784 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3786 * stub-objc.c (objc_declare_protocols): Renamed to
3787 objc_declare_protocol.
3788 * c-objc.h: Likewise.
3790 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3792 * stub-objc.c (objc_declare_class): Updated argument name.
3794 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3796 * c-common.h (c_common_init_ts): Declare.
3797 * c-common.c (c_common_init_ts): Define.
3799 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3801 * c-objc.h (objc_build_message_expr): Updated prototype.
3802 * stub-objc.c (objc_build_message_expr): Likewise.
3804 2011-04-12 Martin Jambor <mjambor@suse.cz>
3806 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3809 2011-04-11 Richard Guenther <rguenther@suse.de>
3811 * c-common.c (complete_array_type): Build a range type of
3814 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3816 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3817 (handle_type_generic_attribute): Likewise.
3819 2011-04-07 Jason Merrill <jason@redhat.com>
3822 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3823 conversion from C++0x scoped enum.
3825 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3827 * c-target-def.h: New file.
3828 * c-target.def: New file.
3829 * c-target.h: New file.
3830 * c-common.c (targetcm): Don't define here.
3831 * c-common.h (default_handle_c_option): Declare.
3832 * c-format.c: Include c-target.h instead of target.h.
3833 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3835 (default_handle_c_option): Move from targhooks.c.
3837 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3839 PR preprocessor/48248
3840 * c-ppoutput.c (print): Add src_file field.
3841 (init_pp_output): Initialize it.
3842 (maybe_print_line): Don't optimize by adding up to 8 newlines
3843 if map->to_file and print.src_file are different file.
3844 (print_line): Update print.src_file.
3846 2011-03-25 Kai Tietz <ktietz@redhat.com>
3848 * c-ada-spec.c (compare_comment): Use filename_cmp
3849 instead of strcmp for filename.
3851 2011-03-25 Jeff Law <law@redhat.com>
3853 * c-common.c (def_fn_type): Add missing va_end.
3855 2011-03-25 Jason Merrill <jason@redhat.com>
3857 * c.opt: Add -std=c++03.
3859 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3861 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3863 2011-03-17 Kai Tietz
3866 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3867 Display allowed attributes for function pointer types.
3868 (pp_c_attributes_display): New function to display
3869 attributes having affects_type_identity flag set to true.
3870 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3872 * c-common.c (c_common_attribute_table):
3874 (c_common_format_attribute_table): Likewise.
3876 2011-03-18 Jason Merrill <jason@redhat.com>
3878 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3879 * c-common.h: Don't declare it here.
3880 * c-common.c: Or define it here.
3881 * c-opts.c (c_common_handle_option): Or set it here.
3884 * c-common.c (handle_transparent_union_attribute): Don't
3885 make a duplicate type in C++.
3887 2011-03-15 Jason Merrill <jason@redhat.com>
3889 * c-common.c (max_constexpr_depth): New.
3890 * c-common.h: Declare it.
3891 * c-opts.c (c_common_handle_option): Set it.
3892 * c.opt (fconstexpr-depth): New option.
3894 2011-03-11 Jason Merrill <jason@redhat.com>
3896 * c-common.c (attribute_takes_identifier_p): Add missing const.
3899 * c-common.c (attribute_takes_identifier_p): Assume that an
3900 unknown attribute takes an identifier.
3902 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3905 * c-common.c (c_type_hash): Call list_length instead of iterating
3906 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3908 2011-02-19 Jakub Jelinek <jakub@redhat.com>
3911 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3913 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3915 * c.opt (fobjc-abi-version=) New.
3916 (fobjc-nilcheck): New.
3918 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3921 * c-common.h (keyword_is_decl_specifier): Declare.
3922 * c-common.c (keyword_is_decl_specifier): Define.
3923 (keyword_is_function_specifier): New function.
3925 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3928 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3929 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3932 2011-01-26 Arnaud Charlet <charlet@adacore.com>
3934 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3936 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3939 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3940 after init_c_lex if pch_file is set.
3942 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3945 * c.opt (-fkeep-inline-dllexport): New switch.
3947 2011-01-12 Richard Guenther <rguenther@suse.de>
3950 * c-common.c (handle_weak_attribute): Warn instead of error
3951 on declaring an inline function weak.
3953 2011-01-05 Tom Tromey <tromey@redhat.com>
3955 * c-common.h (lvalue_error): Update.
3956 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3959 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
3962 * c-objc.h (objc_finish_message_expr): Added argument to
3965 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3967 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3970 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3972 * c-objc.h (objc_maybe_warn_exceptions): New.
3973 * stub-objc.c (objc_maybe_warn_exceptions): New.
3975 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3977 * c-common.h (readonly_error): Declare.
3978 * c-common.c (readonly_error): Define.
3980 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3982 * c-common.h (invalid_indirection_error): Declare.
3983 * c-common.c (invalid_indirection_error): Define.
3985 2010-12-03 Richard Guenther <rguenther@suse.de>
3988 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3989 (pp_c_unary_expression): Likewise.
3990 (pp_c_expression): Likewise.
3992 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3994 * c-common.h (objc_finish_function): New.
3995 (objc_non_volatilized_type): Removed.
3996 (objc_type_quals_match): Removed.
3997 * stub-objc.c (objc_finish_function): New.
3998 (objc_non_volatilized_type): Removed.
3999 (objc_type_quals_match): Removed.
4001 2010-11-30 Joseph Myers <joseph@codesourcery.com>
4003 * c-common.h (parse_optimize_options): Declare.
4004 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4005 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4007 2010-11-29 Joseph Myers <joseph@codesourcery.com>
4009 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4011 * c-pch.c (O_BINARY): Don't define here.
4012 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4014 2010-11-25 Joseph Myers <joseph@codesourcery.com>
4016 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4017 targetm.except_unwind_info.
4019 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4021 * c-opts.c (c_common_handle_option): Pass location to
4022 set_struct_debug_option.
4024 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4026 * c-common.c (visibility_options): Move from ../opts.c.
4027 * c-common.h (struct visibility_flags, visibility_options):
4029 * c-opts.c (finish_options): Rename to c_finish_options.
4030 (c_common_init): Update call to finish_options.
4032 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4035 * c-lex.c (lex_string): Check that each string in an Objective-C
4036 string concat sequence starts with either one or zero '@', and
4037 that there are no spurious '@' signs at the end.
4039 2010-11-20 Joseph Myers <joseph@codesourcery.com>
4041 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4042 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4043 HANDLE_PRAGMA_VISIBILITY.
4044 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4045 HANDLE_PRAGMA_VISIBILITY): Don't define.
4046 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4048 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4053 * c-common.h (keyword_begins_type_specifier): Declare.
4054 (keyword_is_storage_class_specifier): Declare.
4055 (keyword_is_type_qualifier): Declare.
4056 * c-common.c (keyword_begins_type_specifier): New function.
4057 (keyword_is_storage_class_specifier): New function.
4058 (keyword_is_type_qualifier): Declare.
4060 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4063 * c-common.c (in_late_binary_op): Define.
4064 (c_common_truthvalue_conversion): Check in_late_binary_op before
4065 calling c_save_expr.
4066 * c-common.h (in_late_binary_op): Declare.
4068 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4070 * c-opts.c (c_common_handle_option): Update calls to
4071 set_struct_debug_option.
4073 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4075 * c-common.h (objc_declare_protocols): Added additional argument.
4076 * stub-objc.c (objc_declare_protocol): Same change.
4078 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4081 * c-common.h (build_real_imag_expr): Declare.
4082 * c-semantics.c (build_real_imag_expr): Define.
4084 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4086 * c-opts.c (c_common_parse_file): Take no arguments.
4087 * c-common.h (c_common_parse_file): Update prototype.
4089 2010-11-16 Jakub Jelinek <jakub@redhat.com>
4092 * c-common.c (warning_candidate_p): Don't track non-const calls
4095 2010-11-15 Ian Lance Taylor <iant@google.com>
4097 * c-lex.c (init_c_lex): Set macro debug callbacks if
4098 flag_dump_go_spec is set.
4100 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4102 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4103 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4105 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4107 PR preprocessor/45038
4108 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4111 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4113 * c-common.h (c_family_lang_mask): Declare.
4114 * c-opts.c (c_family_lang_mask): Make extern.
4115 * c-pragma.c (handle_pragma_diagnostic): Use
4116 control_warning_option.
4118 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4120 * c-common.c (parse_optimize_options): Update call to
4122 * c-common.h (c_common_handle_option): Update prototype.
4123 * c-opts.c (c_common_handle_option): Take location_t parameter and
4124 pass it to other functions.
4126 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4128 * c-opts.c (warning_as_error_callback): Remove.
4129 (c_common_initialize_diagnostics): Don't call
4130 register_warning_as_error_callback.
4131 (c_common_handle_option): Handle -Werror=normalized= here.
4133 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4135 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4137 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4139 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4140 Remove trailing '.' from diagnostics.
4141 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4143 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4145 * c-common.c (parse_optimize_options): Pass global_dc to
4147 * c-opts.c (c_common_handle_option): Pass &global_options to
4148 set_Wstrict_aliasing.
4149 * c.opt (v): Don't mark Common or document here.
4151 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4154 * c-format.c (format_type): New type gcc_objc_string_format_type.
4155 (valid_stringptr_type_p): New.
4156 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4157 (check_format_string): Pass expected type, use
4158 valid_stringptr_type_p (), check that the format string types are
4159 consistent with the format specification.
4160 (decode_format_attr): Warn if NSString is used outside objective-c.
4161 (format_types_orig): Add NSString.
4163 (format_flags): New.
4164 (check_format_arg): Handle format strings requiring an external parser.
4165 first_target_format_type: New variable.
4166 (handle_format_attribute): Set up first_target_format_type, pass the
4167 expected format arg string type to check_format_string().
4168 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4169 * stub-objc.c (objc_string_ref_type_p): New.
4170 (objc_check_format_arg): New.
4172 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4174 Fixed using the Objective-C 2.0 dot-syntax with class names.
4175 * c-common.h (objc_build_class_component_ref): New.
4176 * stub-objc.c (objc_build_class_component_ref): New.
4178 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4180 * c.opt (Wproperty-assign-default): New option.
4182 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4184 Implemented -fobjc-std=objc1 flag.
4185 * c.opt (fobjc-std=objc1): New option.
4187 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4189 Implemented format and noreturn attributes for Objective-C methods.
4190 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4191 attribute for Objective-C methods.
4193 2010-10-31 Jason Merrill <jason@redhat.com>
4195 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4198 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4200 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4201 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4202 (objc_add_property_declaration): Removed arguments for copies and
4204 (objc_build_getter_call): Renamed to
4205 objc_maybe_build_component_ref.
4206 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4207 (objc_is_property_ref): New.
4208 * c-common.c (c_common_reswords): Removed copies and ivar.
4209 * stub-objc.c (objc_add_property_declaration): Removed arguments
4210 for copies and ivar.
4211 (objc_build_getter_call): Renamed to
4212 objc_maybe_build_component_ref.
4213 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4214 (objc_is_property_ref): New.
4216 2010-10-29 Arnaud Charlet <charlet@adacore.com>
4217 Matthew Gingell <gingell@adacore.com>
4219 * c-ada-spec.c (separate_class_package): New function.
4220 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4221 name of their enclosing package.
4222 (print_ada_declaration): Use separate_class_package.
4224 2010-10-27 Jason Merrill <jason@redhat.com>
4226 * c-common.c (c_common_reswords): Add __is_literal_type.
4227 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4229 * c-common.c (check_case_value): Remove special C++ code.
4231 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4233 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4234 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4236 (objc_add_property_declaration): Added additional arguments.
4237 (objc_property_attribute_kind): Removed.
4238 (objc_set_property_attr): Removed.
4239 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4241 * stub-objc.c (objc_add_property_declaration): Added additional
4243 (objc_set_property_attr): Removed.
4245 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4247 * c-common.h (objc_add_property_variable): Renamed to
4248 objc_add_property_declaration. Added location argument.
4249 * stub-objc.c (objc_add_property_variable): Same change.
4251 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4253 * c-common.h (objc_maybe_printable_name): New.
4254 * stub-objc.c (objc_maybe_printable_name): New.
4256 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4257 Andrew Pinski <pinskia@gmail.com>
4259 * c-common.h (c_common_mark_addressable_vec): Declare.
4260 * c-common.c (c_common_mark_addressable_vec): New function.
4262 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4264 * c-common.h (objc_set_method_type): Removed.
4265 (objc_add_method_declaration): Added boolean argument.
4266 (objc_start_method_definition): Same change.
4267 (objc_build_method_signature): Same change.
4268 * stub-objc.c (objc_set_method_type): Removed.
4269 (objc_add_method_declaration): Added boolean argument.
4270 (objc_start_method_definition): Same change.
4271 (objc_build_method_signature): Same change.
4273 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4275 * c-common.h (finish_file): Removed.
4276 (objc_write_global_declarations): New.
4277 * c-opts.c (c_common_parse_file): Do not call finish_file.
4278 * stub-objc.c (objc_write_global_declarations): New.
4280 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4282 Implemented parsing @synthesize and @dynamic for
4283 Objective-C/Objective-C++.
4284 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4285 (objc_add_synthesize_declaration): New.
4286 (objc_add_dynamic_declaration): New.
4287 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4288 * stub-objc.c (objc_add_synthesize_declaration): New.
4289 (objc_add_dynamic_declaration): New.
4291 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4294 * c-cppbuiltin.c (mode_has_fma): Move function here from
4295 builtins.c. Don't use the fma optab, instead just use the
4296 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4299 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4301 Merge from 'apple/trunk' branch on FSF servers.
4303 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4306 * c-common.h (objc_non_volatilized_type): New declaration
4307 * stub-objc.c (objc_non_volatilized_type): New stub.
4309 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4311 Merge from 'apple/trunk' branch on FSF servers.
4313 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4316 * c-common.h (objc_diagnose_private_ivar): New decl.
4317 * stub-objc.c (objc_diagnose_private_ivar): New stub.
4319 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4321 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4322 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4323 (objc_ivar_visibility_kind): New enum.
4324 (objc_set_visibility): Adjust prototype to use visibility enum.
4325 * stub-objc.c (objc_set_visibility): Adjust stub to use
4328 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4330 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4331 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4332 has the appropriate fma builtins.
4333 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4335 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4337 merge from FSF apple 'trunk' branch.
4338 2006 Fariborz Jahanian <fjahanian@apple.com>
4340 Radars 4436866, 4505126, 4506903, 4517826
4341 * c-common.c (c_common_resword): Define @property and its attributes.
4342 * c-common.h: Define property attribute enum entries.
4343 (OBJC_IS_PATTR_KEYWORD): New.
4344 (objc_property_attribute_kind): New enum.
4345 Declare objc_set_property_attr (), objc_add_property_variable (),
4346 objc_build_getter_call () and objc_build_setter_call ().
4347 * stub-objc.c (objc_set_property_attr): New stub.
4348 (objc_add_property_variable): Likewise.
4349 (objc_build_getter_call): Likewise.
4350 (objc_build_setter_call) Likewise.
4352 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4354 merge from FSF apple 'trunk' branch.
4355 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4357 Radar 3803157 (method attributes)
4358 * c-common.c (handle_deprecated_attribute): Recognize
4359 objc methods as valid declarations.
4360 * c-common.h: Declare objc_method_decl ().
4361 * stub-objc.c (objc_method_decl): New stub.
4363 2010-10-08 Joseph Myers <joseph@codesourcery.com>
4365 * c-common.c (parse_optimize_options): Call
4366 decode_cmdline_options_to_array_default_mask before
4367 decode_options. Update arguments to decode_options.
4368 * c-common.h (c_common_init_options_struct): Declare.
4369 * c-opts.c (c_common_init_options_struct): New. Split out from
4370 c_common_init_options.
4372 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4374 Implemented fast enumeration for Objective-C.
4375 * c-common.h (objc_finish_foreach_loop): New.
4376 * stub-objc.c (objc_finish_foreach_loop): New.
4378 2010-10-05 Joseph Myers <joseph@codesourcery.com>
4380 * c-common.h (struct diagnostic_context): Don't declare here.
4381 (c_common_initialize_diagnostics): Declare using
4382 diagnostic_context typedef.
4383 * c-opts.c (c_common_handle_option): Pass global_dc to
4384 handle_generated_option.
4386 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4388 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4389 handle_generated_option.
4391 2010-10-03 Ian Lance Taylor <iant@google.com>
4393 * c.opt (-fplan9-extensions): New option.
4395 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4397 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4399 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4400 of duplicating code.
4402 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4404 * c-common.c: Add two new entries for @optional
4405 and @required keywords.
4407 merge from FSF 'apple/trunk' branch.
4408 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4411 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4412 objective-c keywords.
4413 (objc_set_method_opt): New declaration.
4414 * stub-objc.c (objc_set_method_opt): New stub.
4416 2010-09-30 Joseph Myers <joseph@codesourcery.com>
4418 * c-common.c (handle_optimize_attribute): Pass &global_options to
4419 cl_optimization_save and cl_optimization_restore.
4420 * c-opts.c (c_common_handle_option): Pass &global_options to
4421 handle_generated_option.
4422 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4423 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4424 &global_options to cl_optimization_restore.
4426 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4428 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4429 Objective-C/Objective-C++ keywords.
4431 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4433 Merge from 'apple/trunk' branch on FSF servers.
4435 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4438 * c-common.h (objc_check_global_decl): New declaration.
4439 * stub-objc.c (objc_check_global_decl): New stub.
4441 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4443 * c.opt: Don't use VarExists.
4445 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4447 * c-common.c (c_cpp_error): Update names of diagnostic_context
4449 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4450 cl_optimization members.
4451 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4452 sanitize_cpp_opts, finish_options): Update names of cpp_options
4455 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4457 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4458 (objc_is_reserved_word): Removed.
4459 * c-common.c: Updated comments.
4460 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4461 objc_is_reserved_word.
4462 * stub-objc.c (objc_is_reserved_word): Removed.
4464 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4466 * c-common.h (objc_add_method_declaration): Adjust prototype to
4468 (objc_start_method_definition): Likewise.
4469 (objc_build_keyword_decl): Likewise.
4470 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4471 (objc_start_method_definition): Likewise.
4472 (objc_build_keyword_decl): Likewise.
4474 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4476 * c-common.h (objc_start_class_interface): Adjust prototype.
4477 (objc_start_category_interface): Likewise.
4478 (objc_start_protocol): Likewise.
4479 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4480 (objc_start_class_interface): Likewise.
4481 (objc_start_category_interface): Likewise.
4483 2010-09-27 Ian Lance Taylor <iant@google.com>
4485 * c-common.c (c_common_attribute_table): Add no_split_stack.
4486 (handle_no_split_stack_attribute): New static function.
4488 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4490 Merge from 'apple/trunk' branch on FSF servers.
4492 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4495 * c-common.h (objc_have_common_type): New declaration.
4496 * stub-objc.c (objc_have_common_type): New stub.
4498 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4501 * c-common.h (objc_common_type): New prototype.
4502 * stub-objc.c (objc_common_type): New stub.
4504 2010-09-24 Jan Hubicka <jh@suse.cz>
4506 * c-common.c (handle_leaf_attribute): New function.
4507 (struct attribute_spec c_common_att): Add leaf.
4509 2010-09-22 Joseph Myers <joseph@codesourcery.com>
4511 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4512 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4513 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4514 -include-barrier, -include-directory, -include-directory=,
4515 -include-directory-after, -include-directory-after=,
4516 -include-prefix, -include-prefix=, -include-with-prefix,
4517 -include-with-prefix=, -include-with-prefix-after,
4518 -include-with-prefix-after=, -include-with-prefix-before,
4519 -include-with-prefix-before=, -no-integrated-cpp,
4520 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4521 -output=, -pedantic, -pedantic-errors, -preprocess,
4522 -print-missing-file-dependencies, -trace-includes, -traditional,
4523 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4524 -user-dependencies, -verbose, -write-dependencies,
4525 -write-user-dependencies, no-integrated-cpp, traditional): New.
4527 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4530 * c-common.h (objc_start_method_definition): Return bool instead
4532 * stub-objc.c (objc_start_method_definition): Return bool instead
4535 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4538 * c-common.h (objc_get_interface_ivars): New declaration.
4539 * stub-objc.c (objc_get_interface_ivars): New stub.
4541 2010-09-15 Ian Lance Taylor <iant@google.com>
4543 * c-common.c (parse_optimize_options): Do not capitalize warning
4544 messages. Remove period at end of warning message.
4546 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4548 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4549 (handle_alias_attribute): ... here.
4550 (handle_ifunc_attribute): New.
4552 2010-09-06 Mark Mitchell <mark@codesourcery.com>
4554 * c-common.h (do_warn_double_promotion): Declare.
4555 * c-common.c (do_warn_double_promotion): Define.
4557 2010-09-05 Mark Mitchell <mark@codesourcery.com>
4559 * c.opt (Wdouble-promotion): New.
4561 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4563 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4564 fvtable-thunks, fxref): Mark no longer supported in help text.
4566 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4568 * c.opt (Wimport, fall-virtual, falt-external-templates,
4569 fdefault-inline, fenum-int-equiv, fexternal-templates,
4570 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4571 fname-mangling-version-, fnew-abi, fnonnull-objects,
4572 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4573 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4575 (fhandle-exceptions): Mark with Alias and Warn.
4576 * c-opts.c (c_common_handle_option): Don't handle options marked
4579 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4581 * c.opt (Wcomments, Werror-implicit-function-declaration,
4582 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4583 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4585 * c-common.c (option_codes): Use OPT_Wcomment instead of
4587 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4588 Don't handle options marked as aliases.
4590 2010-08-25 Richard Guenther <rguenther@suse.de>
4592 * c-common.c (c_common_get_alias_set): Remove special
4593 handling for pointers.
4595 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4597 * c-common.c: Use FOR_EACH_VEC_ELT.
4598 * c-gimplify.c: Likewise.
4599 * c-pragma.c: Likewise.
4601 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4603 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4605 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4607 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4608 instead of OPT_MDX and OPT_MMDX.
4610 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4612 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4614 2010-08-12 Joseph Myers <joseph@codesourcery.com>
4616 * c.opt (MD, MMD): Change to MDX and MMDX.
4617 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4619 2010-08-11 Joseph Myers <joseph@codesourcery.com>
4621 * c-opts.c (c_common_handle_option): Call handle_generated_option
4622 instead of handle_option.
4624 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4626 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4627 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4629 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4631 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4632 (pending_redefine_extname): Change type to a VEC.
4633 (add_to_renaming_pragma_list): Update for new type of
4634 pending_redefine_extname.
4635 (maybe_apply_renaming_pragma): Likewise.
4637 2010-08-04 Arnaud Charlet <charlet@adacore.com>
4639 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4641 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4642 decide whether a type has already been declared/seen.
4643 Do not go to the original type.
4644 (dump_nested_types): New parameter forward.
4645 Generate forward declaration if needed and mark type as visited.
4646 (print_ada_declaration): Call dump_nested_types if not already done.
4647 Mark types as visited.
4649 2010-08-03 Joseph Myers <joseph@codesourcery.com>
4651 * c.opt (-print-pch-checksum): Remove option.
4652 * c-opts.c (c_common_handle_option): Don't handle
4653 OPT_print_pch_checksum.
4655 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4657 * c-common.h (c_common_handle_option): Update prototype and return
4659 * c-opts.c (c_common_handle_option): Update prototype and return
4660 value type. Update calls to handle_option and
4661 enable_warning_as_error.
4663 2010-07-27 Jakub Jelinek <jakub@redhat.com>
4666 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4668 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4670 * c-common.h (c_common_missing_argument): Remove.
4671 * c-opts.c (c_common_missing_argument): Remove.
4672 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4673 idirafter, imacros, include, isysroot, isystem, iquote): Add
4675 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4677 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4679 * c-common.h (c_common_option_lang_mask,
4680 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4682 (c_common_init_options): Update prototype.
4683 * c-opts.c (c_common_option_lang_mask): New.
4684 (c_common_initialize_diagnostics): Split out of
4685 c_common_init_options.
4686 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4688 (c_common_init_options): Update prototype. Use decoded options in
4689 search for -lang-asm.
4691 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4693 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4694 * c-format.c: Likewise.
4696 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4698 * c-common.h: Include diagnostic-core.h. Error if already
4700 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4702 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4704 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4705 Do not include expr.h
4706 (vector_mode_valid_p): Move here.
4708 2010-06-21 DJ Delorie <dj@redhat.com>
4710 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4711 allow these pragmas anywhere.
4713 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4716 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4717 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4718 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4719 ggc_strdup instead of xstrdup.
4721 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4723 * c-cppbuiltin.c: Include cpp-id-data.h.
4724 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4725 (lazy_hex_fp_value): New function.
4726 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4728 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4730 * c-gimplify.c: Do not include tree-flow.h
4732 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4735 * c-common.c: Rename targetm member:
4736 targetm.enum_va_list -> targetm.enum_va_list_p
4738 2010-06-28 Anatoly Sokolov <aesok@post.ru>
4740 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4742 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4744 * c-cppbuiltin.c: Do not include except.h.
4746 2010-06-24 Andi Kleen <ak@linux.intel.com>
4748 * c-common.c (warn_for_omitted_condop): New.
4749 * c-common.h (warn_for_omitted_condop): Add prototype.
4751 2010-06-21 Joseph Myers <joseph@codesourcery.com>
4753 * c.opt (lang-objc): Remove.
4754 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4756 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4758 * c-opts.c: Include "tm_p.h".
4760 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4762 * c-common.c (parse_optimize_options): Update call to
4765 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4767 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4768 new type of types_used_by_cur_var_decl.
4770 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4773 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4774 for C++ standard compliance.
4776 2010-06-16 Jason Merrill <jason@redhat.com>
4778 * c.opt: Add -Wnoexcept.
4780 2010-06-16 Richard Guenther <rguenther@suse.de>
4783 * c-common.c (c_common_truthvalue_conversion): Remove
4784 premature and wrong optimization concering ADDR_EXPRs.
4786 2010-06-15 Arnaud Charlet <charlet@adacore.com>
4788 * c-ada-spec.c (dump_sloc): Remove column info.
4789 (is_simple_enum): New function.
4790 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4791 enum types when relevant.
4793 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4795 * c-common.c (conversion_warning): Warn at expression
4798 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4800 * c-opts.c (c_common_handle_option): Don't handle
4803 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4805 * c-pragma.c (push_alignment): Use typed GC allocation.
4806 (handle_pragma_push_options): Likewise.
4808 * c-common.c (parse_optimize_options): Likewise.
4810 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4813 2010-06-07 Joseph Myers <joseph@codesourcery.com>
4815 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4816 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4817 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4818 flag_signed_bitfields, warn_strict_null_sentinel,
4819 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4820 flag_gen_declaration, flag_no_gnu_keywords,
4821 flag_implement_inlines, flag_implicit_templates,
4822 flag_implicit_inline_templates, flag_optional_diags,
4823 flag_elide_constructors, flag_default_inline, flag_rtti,
4824 flag_conserve_space, flag_access_control, flag_check_new,
4825 flag_new_for_scope, flag_weak, flag_working_directory,
4826 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4827 flag_enforce_eh_specs, flag_threadsafe_statics,
4828 flag_pretty_templates): Remove.
4829 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4830 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4831 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4832 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4833 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4834 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4835 flag_no_gnu_keywords, flag_implement_inlines,
4836 flag_implicit_templates, flag_implicit_inline_templates,
4837 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4838 flag_rtti, flag_conserve_space, flag_access_control,
4839 flag_check_new, flag_new_for_scope, flag_weak,
4840 flag_working_directory, flag_use_cxa_atexit,
4841 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4842 flag_threadsafe_statics, flag_pretty_templates,
4843 warn_strict_null_sentinel): Remove.
4844 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4845 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4846 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4847 fimplicit-inline-templates, fimplicit-templates,
4848 flax-vector-conversions, fms-extensions, fnil-receivers,
4849 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4850 frtti, fshort-double, fshort-enums, fshort-wchar,
4851 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4852 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4853 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4854 gen-decls, undef): Use Var.
4855 (fdefault-inline, foptional-diags): Document as doing nothing.
4856 * c-opts.c (c_common_handle_option): Remove cases for options now
4857 using Var. Mark ignored options as such.
4859 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4861 * c-common.c: Moved to here from parent directory.
4862 * c-common.def: Likewise.
4863 * c-common.h: Likewise.
4864 * c-cppbuiltin.c: Likewise.
4865 * c-dump.c: Likewise.
4866 * c-format.c: Likewise.
4867 * c-format.h : Likewise.
4868 * c-gimplify.c: Likewise.
4869 * c-lex.c: Likewise.
4870 * c-omp.c: Likewise.
4872 * c-opts.c: Likewise.
4873 * c-pch.c: Likewise.
4874 * c-ppoutput.c: Likewise.
4875 * c-pragma.c: Likewise.
4876 * c-pragma.h: Likewise.
4877 * c-pretty-print.c: Likewise.
4878 * c-pretty-print.h: Likewise.
4879 * c-semantics.c: Likewise.
4880 * stub-objc.c: Likewise.
4882 * c-common.c: Include gt-c-family-c-common.h.
4883 * c-pragma.c: Include gt-c-family-c-pragma.h.
4885 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4887 Copying and distribution of this file, with or without modification,
4888 are permitted in any medium without royalty provided the copyright
4889 notice and this notice are preserved.