1 2015-05-14 Marek Polacek <polacek@redhat.com>
5 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
6 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
7 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
8 use it. If FOR_INT_CONST, require that all evaluated operands be
11 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13 * c-common.h (warn_for_misleading_indentation): New prototype.
14 * c-indentation.c: New file.
15 * c.opt (Wmisleading-indentation): New option.
17 2015-05-12 Tom de Vries <tom@codesourcery.com>
19 PR tree-optimization/66010
20 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
22 2015-05-09 Jason Merrill <jason@redhat.com>
24 * c-opts.c (c_common_post_options): Also clear
25 cpp_opts->cpp_warn_cxx11_compat.
27 * c-common.h (enum cxx_dialect): Add cxx_unset.
28 * c-common.c (cxx_dialect): Initialize to cxx_unset.
29 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
31 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
32 (std=gnu++0x): Mark as Undocumented.
33 (std=gnu++1y): Add deprecated message.
35 2015-05-08 Jason Merrill <jason@redhat.com>
37 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
40 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
42 2015-05-08 Marek Polacek <polacek@redhat.com>
45 * c.opt (Woverride-init-side-effects): New option.
47 2015-05-07 Marek Polacek <polacek@redhat.com>
50 * c-common.c (c_fully_fold_internal): Warn when left shifting a
52 * c.opt (Wshift-negative-value): New option.
53 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
54 when -Wextra and C99/C++11 mode.
56 2015-05-07 Marek Polacek <polacek@redhat.com>
57 Martin Uecker <uecker@eecs.berkeley.edu>
59 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
60 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
62 2015-05-05 Jason Merrill <jason@redhat.com>
64 * c.opt (Wterminate): New.
66 2015-04-30 Marek Polacek <polacek@redhat.com>
68 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
69 require that the non-constant be of a boolean type.
71 2015-04-29 Josh Triplett <josh@joshtriplett.org>
73 * c-common.c (handle_section_attribute): Refactor to reduce
74 nesting and distinguish between error cases.
76 2015-04-29 Marek Polacek <polacek@redhat.com>
79 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
82 2015-04-29 Jakub Jelinek <jakub@redhat.com>
84 * c-common.h (omp_clause_mask): Unconditionally define as a class.
85 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
86 HOST_BITS_PER_WIDE_INT.
88 2015-04-28 Tom de Vries <tom@codesourcery.com>
90 PR tree-optimization/65887
91 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
93 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
94 Pierre-Marie de Rodat <derodat@adacore.com>
96 * c-ada-spec.c (in_function): Delete.
97 (dump_generic_ada_node): Do not change in_function and remove the
98 redundant code dealing with it.
99 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
100 (print_ada_methods): Output the static member functions in a nested
101 package after the regular methods as well as associated renamings.
103 2015-04-24 Marek Polacek <polacek@redhat.com>
106 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
107 and OPT_Wshift_count_overflow.
110 * c-common.c (warn_logical_operator): Warn if the operands have the
113 2015-04-24 Marek Polacek <polacek@redhat.com>
116 * c-common.c (warn_logical_operator): Bail if either operand comes
117 from a macro expansion.
119 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
122 * c-common.c (c_default_pointer_mode): Add definition.
123 * c-common.h (c_default_pointer_mode): Add declaration.
125 2015-03-11 Jakub Jelinek <jakub@redhat.com>
127 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
128 on record_builtin_type argument.
130 2015-03-10 Jakub Jelinek <jakub@redhat.com>
133 * c-common.c (warn_logical_not_parentheses): Don't warn for
136 2015-03-07 Marek Polacek <polacek@redhat.com>
139 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
140 before trying to figure out whether we have a flexible array member.
142 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
143 Jonathan Wakely <jwakely.gcc@gmail.com>
145 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
147 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
150 * c-ada-spec.c (print_destructor): Remove obsolete code.
152 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
154 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
155 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
156 DECL_TEMPLATE_RESULT emulations.
157 (dump_ada_template)): Add guard for TYPE_METHODS.
159 2015-02-27 Marek Polacek <polacek@redhat.com>
162 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
164 2015-02-27 Kai Tietz <ktietz@redhat.com>
167 * c-pragma.c (handle_pragma_weak): Do not try to create
168 weak/alias of declarations not being function, or variable
171 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
174 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
176 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
178 2015-02-16 Marek Polacek <polacek@redhat.com>
181 * c-format.c (check_format_types): Handle null param.
183 2015-02-13 Marek Polacek <polacek@redhat.com>
186 * c-format.c (check_format_types): Don't warn about different
187 signedness if the original value is in the range of WANTED_TYPE.
189 2015-02-12 Jason Merrill <jason@redhat.com>
192 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
193 to the current highest version.
194 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
196 2015-02-04 Jakub Jelinek <jakub@redhat.com>
200 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
201 instead of RDIV_EXPR. Use build_binary_op instead of
204 2015-01-30 Joseph Myers <joseph@codesourcery.com>
206 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
207 to pass input_location as first argument.
209 2015-01-23 Tom de Vries <tom@codesourcery.com>
212 * c.opt (fopenacc): Mark as LTO option.
214 2015-01-23 Tom de Vries <tom@codesourcery.com>
217 * c.opt (fopenmp): Mark as LTO option.
219 2015-01-21 Jakub Jelinek <jakub@redhat.com>
222 * cilk.c (fill_decls_vec): Only put decls into vector v.
223 (compare_decls): Fix up formatting.
225 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
228 * cilk.c: Include vec.h.
229 (struct cilk_decls): New structure.
230 (wrapper_parm_cb): Split this function to...
231 (fill_decls_vec): ...this...
232 (create_parm_list): ...and this.
233 (compare_decls): New function.
234 (for_local_cb): Remove.
235 (wrapper_local_cb): Ditto.
236 (build_wrapper_type): For now first traverse and fill vector of
237 declarations then sort it and then deal with sorted vector.
238 (cilk_outline): Ditto.
239 (declare_one_free_variable): Ditto.
241 2015-01-21 Jason Merrill <jason@redhat.com>
244 * c-format.c (check_format_arg): Call decl_constant_value.
246 2015-01-19 Martin Liska <mliska@suse.cz>
248 * c-common.c (handle_noicf_attribute): New function.
250 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
251 Bernd Schmidt <bernds@codesourcery.com>
252 James Norris <jnorris@codesourcery.com>
253 Cesar Philippidis <cesar@codesourcery.com>
254 Ilmir Usmanov <i.usmanov@samsung.com>
255 Jakub Jelinek <jakub@redhat.com>
257 * c.opt (fopenacc): New option.
258 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
259 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
261 * c-common.h (c_finish_oacc_wait): New prototype.
262 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
263 (c_finish_oacc_wait): New function.
264 * c-pragma.c (oacc_pragmas): New variable.
265 (c_pp_lookup_pragma, init_pragma): Handle it.
266 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
267 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
268 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
269 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
270 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
271 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
272 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
273 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
274 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
275 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
276 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
277 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
278 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
279 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
280 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
281 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
282 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
283 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
284 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
285 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
286 PRAGMA_OACC_CLAUSE_WORKER.
288 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
290 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
291 for the new option fstack-protector_explicit.
292 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
293 (handle_stack_protect_attribute): New function.
295 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
297 * c.opt: New option -Warray-bounds=.
299 2015-01-09 Michael Collison <michael.collison@linaro.org>
301 * array-notation-common.c: Include hash-set.h, machmode.h,
302 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
303 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
304 * c-ada-spec.c: Ditto.
305 * c-cilkplus.c: Ditto.
306 * c-common.c: Include input.h due to flattening of tree.h.
307 Define macro GCC_C_COMMON_C.
308 * c-common.h: Flatten tree.h header files into c-common.h.
309 Remove include of tree-core.h.
310 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
311 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
312 fold-const.h, wide-int.h, and inchash.h due to
313 flattening of tree.h.
315 * c-format.c: Flatten tree.h header files into c-common.h.
316 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
317 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
318 fold-const.h, wide-int.h, and inchash.h due to
319 flattening of tree.h.
320 * c-dump.c: Include hash-set.h, machmode.h,
321 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
322 fold-const.h, wide-int.h, and inchash.h due to
323 flattening of tree.h.
324 * c-format.c: Include hash-set.h, machmode.h,
325 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
326 fold-const.h, wide-int.h, inchash.h and real.h due to
327 flattening of tree.h.
328 * c-gimplify.c: Include hash-set.h, machmode.h,
329 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
330 fold-const.h, wide-int.h, and inchash.h due to
331 flattening of tree.h.
337 * c-ppoutput.c: Ditto.
339 * c-pretty-print.c: Ditto.
340 * c-semantics.c: Ditto.
342 * stub-objc.c: Ditto.
344 2015-01-08 Jason Merrill <jason@redhat.com>
346 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
347 do_ubsan_in_current_function.
348 (ubsan_maybe_instrument_reference_or_call): Likewise.
349 * c-ubsan.h: Declare it.
351 2015-01-08 Mike Stump <mikestump@comcast.net>
353 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
355 2015-01-07 Marek Polacek <polacek@redhat.com>
358 * c-common.c (c_fully_fold_internal): Warn for division and modulo
359 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
361 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
364 * c.opt (Wsuggest-override): New option.
366 2015-01-05 Jakub Jelinek <jakub@redhat.com>
368 Update copyright years.
370 2015-01-05 Marek Polacek <polacek@redhat.com>
373 * c-common.c (warn_array_subscript_with_type_char): Add location_t
375 * c-common.h (warn_array_subscript_with_type_char): Update
378 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
380 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
381 Control macro with flag_sized_deallocation.
383 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
385 * c.opt (Wdiscarded-array-qualifiers): New option.
387 2014-12-19 Jakub Jelinek <jakub@redhat.com>
389 PR preprocessor/63831
390 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
391 and __has_cpp_attribute here.
392 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
393 c_common_has_attribute.
394 * c-common.h (c_common_has_attribute): New prototype.
395 * c-lex.c (init_c_lex): Set cb->has_attribute to
396 c_common_has_attribute instead of cb_has_attribute.
397 (get_token_no_padding): New function.
398 (cb_has_attribute): Renamed to ...
399 (c_common_has_attribute): ... this. No longer static. Use
400 get_token_no_padding, require ()s, don't build TREE_LIST
401 unnecessarily, fix up formatting, adjust diagnostics, call
404 2014-12-15 Jason Merrill <jason@redhat.com>
406 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
407 (-Wsized-deallocation): New.
408 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
409 to on in C++14 and up.
411 2014-12-11 Jason Merrill <jason@redhat.com>
413 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
415 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
416 we aren't complaining about VLAs.
418 2014-12-06 Marek Polacek <polacek@redhat.com>
420 PR tree-optimization/64183
421 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
422 shift-expression if it is integer_type_node. Use types_compatible_p.
424 2014-11-29 Jakub Jelinek <jakub@redhat.com>
426 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
427 last argument from create_tmp_var_raw and create_tmp_var calls.
428 * cilk.c (gimplify_cilk_spawn): Likewise.
429 * c-omp.c (c_finish_omp_atomic): Likewise.
431 2014-11-28 Marek Polacek <polacek@redhat.com>
433 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
434 instead of unsigned_type_node.
436 2014-11-28 Marek Polacek <polacek@redhat.com>
439 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
441 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
442 expression to unsigned_type_node.
444 2014-11-20 Mark Wielaard <mjw@redhat.com>
447 * c-opts.c (set_std_c89): Set lang_hooks.name.
448 (set_std_c99): Likewise.
449 (set_std_c11): Likewise.
450 (set_std_cxx98): Likewise.
451 (set_std_cxx11): Likewise.
452 (set_std_cxx14): Likewise.
453 (set_std_cxx1z): Likewise.
455 2014-11-21 Jakub Jelinek <jakub@redhat.com>
458 * c-common.h (convert_vector_to_pointer_for_subscript): Change
460 * c-common.c: Include gimple-expr.h.
461 (convert_vector_to_pointer_for_subscript): Change return type to
462 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
463 and copy it into a TARGET_EXPR and use that instead of *vecp
466 2014-11-19 David Malcolm <dmalcolm@redhat.com>
468 Merger of git branch "gimple-classes-v2-option-3".
469 * ChangeLog.gimple-classes: New.
470 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
471 from being just a vec<gimple> to a vec<gbind *>.
473 2014-11-18 Jakub Jelinek <jakub@redhat.com>
476 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
477 argument to ptype, set type to TREE_TYPE (ptype). Don't call
478 get_pointer_alignment for non-pointers. Use ptype, or if it is
479 reference type, corresponding pointer type, as type of kind
481 (ubsan_maybe_instrument_reference,
482 ubsan_maybe_instrument_member_call): Adjust callers.
484 2014-11-15 Marek Polacek <polacek@redhat.com>
487 * array-notation-common.c (is_sec_implicit_index_fn): Return false
489 (extract_array_notation_exprs): Return for NULL node.
491 2014-11-12 Joseph Myers <joseph@codesourcery.com>
493 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
494 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
496 2014-11-12 Jakub Jelinek <jakub@redhat.com>
499 * c-common.c (check_builtin_function_arguments): Handle
500 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
502 2014-11-10 Andi Kleen <ak@linux.intel.com>
505 * c-common.h (check_no_cilk): Declare.
506 * cilk.c (get_error_location): New function.
507 (check_no_cilk): Dito.
509 2014-11-10 Andi Kleen <ak@linux.intel.com>
511 * cilk.c (recognize_spawn): Use expression location
514 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
516 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
518 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
520 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
521 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
522 (__cpp_range_based_for, __cpp_initializer_lists,
523 __cpp_delegating_constructors, __cpp_nsdmi,
524 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
525 for C++11; (__cpp_attribute_deprecated): Remove in favor of
527 * c-lex.c (cb_has_attribute): New callback CPP function;
528 (init_c_lex): Set has_attribute callback.
530 2014-11-04 Richard Biener <rguenther@suse.de>
532 * c-common.c (shorten_compare): Do not shorten mixed
533 DFP and non-DFP compares.
535 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
537 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
538 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
539 Commentary and rearrangement of tests.
540 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
541 Commentary and rearrangement of tests.
542 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
543 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
545 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
547 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
548 enum from machine_mode.
550 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
552 * c-common.c: Adjust include files.
553 * c-gimplify.c: Ditto.
558 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
560 * c-gimplify.c: Adjust include files.
562 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
565 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
566 c_common_initialize_diagnostics.
567 * c-common.h: Likewise.
569 2014-10-24 Marek Polacek <polacek@redhat.com>
572 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
573 print "struct"/"union"/"enum" for typedefed names.
575 2014-10-23 Marek Polacek <polacek@redhat.com>
577 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
580 2014-10-22 Jakub Jelinek <jakub@redhat.com>
581 Yury Gribov <y.gribov@samsung.com>
583 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
584 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
585 instead of flag_sanitize_recover as bool flag.
587 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
589 * cilk.c: Revert previous change.
591 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
594 * cilk.c: Include vec.h.
595 (struct cilk_decls): New structure.
596 (wrapper_parm_cb): Split this function to...
597 (fill_decls_vec): ...this...
598 (create_parm_list): ...and this.
599 (compare_decls): New function.
600 (for_local_cb): Remove.
601 (wrapper_local_cb): Ditto.
602 (build_wrapper_type): For now first traverse and fill vector of
603 declarations then sort it and then deal with sorted vector.
604 (cilk_outline): Ditto.
605 (declare_one_free_variable): Ditto.
607 2014-10-17 Marek Polacek <polacek@redhat.com>
609 * c-opts.c (c_common_post_options): Set warn_implicit_int.
610 * c.opt (Wimplicit-int): Initialize to -1.
612 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
614 * c-pragma.c: Adjust include files.
615 * c-semantics.c: Likewise.
617 2014-10-16 DJ Delorie <dj@redhat.com>
619 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
622 2014-10-14 Jason Merrill <jason@redhat.com>
625 * c-common.h (CPP_PREPARSED_EXPR): New.
626 (N_CP_TTYPES): Adjust.
628 2014-10-15 Marek Polacek <polacek@redhat.com>
630 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
632 2014-10-14 DJ Delorie <dj@redhat.com>
634 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
635 types, not just __int128.
636 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
637 types, not just __int128.
638 (cpp_atomic_builtins): Round pointer sizes up.
639 (type_suffix): Use type precision, not specific types.
640 * c-common.c (c_common_reswords): Remove __int128 special case.
641 (c_common_type_for_size): Check for all __intN types, not just
643 (c_common_type_for_mode): Likewise.
644 (c_common_signed_or_unsigned_type): Likewise.
645 (c_build_bitfield_integer_type): Likewise.
646 (c_common_nodes_and_builtins): Likewise.
647 (keyword_begins_type_specifier): Likewise.
648 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
651 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
653 * c-common.c: Use hash_table instead of hashtab.
655 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
657 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
660 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
665 * c-common.c (warn_logical_operator): Punt for vectors.
667 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
669 Implement SD-6: SG10 Feature Test Recommendations
670 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
671 macros and the __has_header macro.
673 2014-09-30 Jason Merrill <jason@redhat.com>
675 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
676 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
677 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
679 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
680 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
682 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
683 * c-common.c (c_common_reswords): Remove __is_convertible_to.
685 2014-09-24 Marek Polacek <polacek@redhat.com>
689 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
691 2014-09-23 Andi Kleen <ak@linux.intel.com>
693 * c-common.c (handle_no_reorder_attribute): New function.
694 (c_common_attribute_table): Add no_reorder attribute.
696 2014-09-22 Joseph Myers <joseph@codesourcery.com>
698 * c-cppbuiltin.c (c_cpp_builtins): Define
699 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
702 2014-09-18 Joseph Myers <joseph@codesourcery.com>
704 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
705 for supported floating-point modes.
707 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
709 * c.opt (Wpsabi): Use LangEnabledBy.
710 * c-opts.c (c_common_handle_option): Do not handle here.
712 2014-09-12 Joseph Myers <joseph@codesourcery.com>
714 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
715 macros for floating-point modes.
717 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
720 * c-cppbuiltin.c (builtin_define_float_constants): Correct
721 __*_DENORM_MIN__ without denormals.
723 2014-09-10 Jakub Jelinek <jakub@redhat.com>
725 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
726 ubsan_instrument_vla, ubsan_instrument_return): Adjust
727 ubsan_create_data callers.
728 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
729 index is constant or BIT_AND_EXPR with constant mask and is
730 small enough for the bound.
731 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
732 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
734 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
736 * c.opt: Add CppReason to various flags.
737 (Wdate-time): Re-sort.
738 * c-common.c: Include c-common.h earlier.
739 (struct reason_option_codes_t): Delete.
740 (c_option_controlling_cpp_error): Prefix global type and struct
743 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
745 * c.opt (Wnormalized): New.
746 (Wnormalized=): Use Enum and Reject Negative.
747 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
749 2014-09-08 Joseph Myers <joseph@codesourcery.com>
751 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
752 digits of floating-point modes if -fbuilding-libgcc.
754 2014-09-05 Joseph Myers <joseph@codesourcery.com>
756 * c-cppbuiltin.c (c_cpp_builtins): Also define
757 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
758 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
759 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
760 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
761 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
762 __LIBGCC_STACK_GROWS_DOWNWARD__,
763 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
764 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
765 __LIBGCC_DWARF_FRAME_REGISTERS__,
766 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
767 __LIBGCC_STACK_POINTER_REGNUM__ and
768 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
769 (builtin_define_with_value): Handle backslash-escaping in string
772 2014-09-05 Richard Biener <rguenther@suse.de>
775 * c-format.c (check_format_arg): Properly handle
776 effectively signed POINTER_PLUS_EXPR offset.
778 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
780 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
781 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
782 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
784 * c-opts.c (c_common_handle_option): Do not handle here.
785 (sanitize_cpp_opts): Likewise.
786 * c-common.c (struct reason_option_codes_t): Handle
787 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
789 2014-09-03 Marek Polacek <polacek@redhat.com>
791 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
793 2014-09-02 Jakub Jelinek <jakub@redhat.com>
794 Balaji V. Iyer <balaji.v.iyer@intel.com>
795 Igor Zamyatin <igor.zamyatin@intel.com>
797 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
798 * c-common.c (c_common_reswords): Added _Cilk_for.
799 * c-common.h (enum rid): Added RID_CILK_FOR.
800 (cilk_for_number_of_iterations): Add declaration.
801 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
803 * c-pragma.c (init_pragma): Register "grainsize" pragma.
804 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
806 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
808 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
809 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
810 Wundef): Use CPP, Var and Init.
811 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
813 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
815 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
816 * c-opts.c (c_common_handle_option): Do not handle here.
818 2014-08-25 Jason Merrill <jason@redhat.com>
820 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
821 -std=c++14 and -std=gnu++14, rather than the reverse.
822 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
823 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
824 * c-common.h (cxx_dialect): Remove cxx1y.
826 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
828 * c-common.h (enum cxx_dialect): Add cxx14.
829 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
830 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
831 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
833 2014-08-22 Jason Merrill <jason@redhat.com>
835 * c.opt (std=gnu++17): Fix alias.
837 2014-08-22 Marek Polacek <polacek@redhat.com>
840 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
841 check for vector types. Drop LHS argument.
842 * c-common.h (warn_logical_not_parentheses): Adjust.
844 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
846 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
847 (Wmultichar): Likewise.
848 (Wdate-time): Use C-family languages instead of Common. Use CPP
850 * c-opts.c (c_common_handle_option): Do not handle the above
852 (sanitize_cpp_opts): Likewise.
854 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
857 * c-opts.c: Include tree-diagnostics.h.
858 (c_diagnostic_finalizer): New.
859 (c_common_initialize_diagnostics): Use it.
861 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
863 PR preprocessor/51303
864 * c-common.c (struct reason_option_codes_t option_codes):
865 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
867 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
871 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
872 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
873 (c_common_post_options): Call init_global_opts_from_cpp.
874 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
876 2014-08-19 Marek Polacek <polacek@redhat.com>
879 * c-common.c (maybe_warn_bool_compare): New function.
880 * c-common.h (maybe_warn_bool_compare): Declare.
881 * c.opt (Wbool-compare): New option.
883 2014-08-19 Marek Polacek <polacek@redhat.com>
885 * c.opt (Wc99-c11-compat): New option.
887 2014-08-19 Marek Polacek <polacek@redhat.com>
889 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
890 to warn_c90_c99_compat.
891 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
894 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
895 Steven Bosscher <steven@gcc.gnu.org>
898 * c-format.c: Add extra_arg_loc and format_string_loc to struct
899 format_check_results.
900 (check_function_format): Use true and add comment for boolean
902 (finish_dollar_format_checking): Use explicit location when warning.
903 (check_format_info): Likewise.
904 (check_format_arg): Set extra_arg_loc and format_string_loc.
905 (check_format_info_main): Use explicit location when warning.
906 (check_format_types): Pass explicit location.
907 (format_type_warning): Likewise.
909 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
912 * c-format.c: Handle Fortran flags.
914 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
917 * array-notation-common.c (find_rank): Added handling for other
920 2014-08-10 Marek Polacek <polacek@redhat.com>
923 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
924 * c.opt (Wc90-c99-compat): Add option.
926 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
928 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
930 2014-08-03 Marek Polacek <polacek@redhat.com>
932 * c-common.c (check_case_value): Add location_t parameter. Use it.
933 (c_add_case_label): Pass loc to check_case_value.
935 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
937 * cilk.c: Use hash_map instead of pointer_map.
939 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
941 * c-gimplify.c: Use hash_set instead of pointer_set.
943 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
946 * array-notation-common.c (extract_array_notation_exprs): Handling
949 2014-08-01 Jakub Jelinek <jakub@redhat.com>
951 * c-common.h (min_align_of_type): Removed prototype.
952 * c-common.c (min_align_of_type): Removed.
953 * c-ubsan.h (ubsan_maybe_instrument_reference,
954 ubsan_maybe_instrument_member_call): New prototypes.
955 * c-ubsan.c: Include stor-layout.h and builtins.h.
956 (ubsan_maybe_instrument_reference_or_call,
957 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
960 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
963 * c.opt (-Wreturn-local-addr): Move to common.opt.
965 2014-07-30 Jason Merrill <jason@redhat.com>
970 * c.opt (-fuse-all-virtuals): New.
972 2014-07-30 Tom Tromey <tromey@redhat.com>
975 * c.opt (Wdesignated-init): New option.
976 * c-common.c (c_common_attribute_table): Add "designated_init".
977 (handle_designated_init): New function.
979 2014-07-24 Marek Polacek <polacek@redhat.com>
982 * c-opts.c (c_finish_options): If -imacros is in effect, return.
984 2014-07-16 Dodji Seketeli <dodji@redhat.com>
986 PR preprocessor/60723 - missing system-ness marks for macro tokens
987 * c-ppoutput.c (struct print::prev_was_system_token): New data
989 (init_pp_output): Initialize it.
990 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
991 (do_line_change): Return a flag saying if a line marker was
993 (scan_translation_unit): Detect if the system-ness of the token we
994 are about to emit is different from the one of the previously
995 emitted token. If so, emit a line marker. Avoid emitting useless
996 adjacent line markers. Avoid emitting line markers for tokens
997 originating from the expansion of built-in macros.
998 (scan_translation_unit_directives_only): Adjust.
1000 2014-07-15 Marek Polacek <polacek@redhat.com>
1002 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1003 TYPE_MAX_VALUE is NULL.
1005 2014-07-14 Jakub Jelinek <jakub@redhat.com>
1008 * c.opt (Wmemset-transposed-args): New warning.
1010 2014-07-10 Jason Merrill <jason@redhat.com>
1014 * c.opt (-fuse-all-virtuals): New.
1016 2014-07-09 Richard Biener <rguenther@suse.de>
1019 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1020 using unsigned arithmetic if overflow does not wrap instead of
1021 if overflow is undefined.
1023 2014-07-06 Marek Polacek <polacek@redhat.com>
1026 * c.opt (Wsizeof-array-argument): New option.
1028 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1030 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1031 comments->count <= 1, as comments->entries might be NULL.
1033 2014-07-01 Marek Polacek <polacek@redhat.com>
1035 * c.opt (Wint-conversion): New option.
1037 2014-07-01 Marek Polacek <polacek@redhat.com>
1040 * c.opt (Wincompatible-pointer-types): New option.
1042 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1045 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1046 Do not discard TYPE_QUALS of type.
1048 2014-06-26 Jason Merrill <jason@redhat.com>
1050 * c-common.h (enum cxx_dialect): Add cxx1z.
1051 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1052 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1054 2014-06-26 Teresa Johnson <tejohnson@google.com>
1056 * c-common.h (get_dump_info): Declare.
1057 * c-gimplify.c (c_genericize): Use saved dump files.
1058 * c-opts.c (c_common_parse_file): Begin and end dumps
1059 once around parsing invocation.
1060 (get_dump_info): New function.
1062 2014-06-23 Marek Polacek <polacek@redhat.com>
1063 Andrew MacLeod <amacleod@redhat.com>
1066 * c-common.c (get_atomic_generic_size): Don't segfault if the
1067 type doesn't have a size.
1069 2014-06-20 Marek Polacek <polacek@redhat.com>
1071 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1072 (ubsan_walk_array_refs_r): New function.
1073 (c_genericize): Instrument array bounds.
1074 * c-ubsan.c: Include "internal-fn.h".
1075 (ubsan_instrument_division): Mark instrumented arrays as having
1076 side effects. Adjust ubsan_type_descriptor call.
1077 (ubsan_instrument_shift): Likewise.
1078 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1079 (ubsan_instrument_bounds): New function.
1080 (ubsan_array_ref_instrumented_p): New function.
1081 (ubsan_maybe_instrument_array_ref): New function.
1082 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1083 (ubsan_array_ref_instrumented_p): Declare.
1084 (ubsan_maybe_instrument_array_ref): Declare.
1086 2014-06-20 Hale Wang <hale.wang@arm.com>
1089 * c.opt (fshort-enums): Add to LTO.
1090 * c.opt (fshort-wchar): Likewise.
1092 2014-06-16 Marek Polacek <polacek@redhat.com>
1095 * c.opt (Wswitch-bool): Add Var.
1097 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1100 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1101 #pragma omp target teams or
1102 #pragma omp {,target }teams distribute simd.
1104 2014-06-12 Jason Merrill <jason@redhat.com>
1106 * c.opt (Wabi=, fabi-compat-version): New.
1107 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1108 (c_common_post_options): Handle flag_abi_compat_version default.
1109 Disallow -fabi-compat-version=1.
1110 * c-common.h (abi_version_crosses): New.
1112 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1114 * c-common.c (handle_section_attribute): Update handling for
1115 section names that are no longer trees.
1117 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1120 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1121 (omp_pragmas): ... back here.
1123 2014-06-05 Marek Polacek <polacek@redhat.com>
1126 * c-common.c (warn_logical_not_parentheses): New function.
1127 * c-common.h (warn_logical_not_parentheses): Declare.
1128 * c.opt (Wlogical-not-parentheses): New option.
1130 2014-06-04 Marek Polacek <polacek@redhat.com>
1133 * c-common.c (check_case_bounds): Add location parameter.
1135 (c_add_case_label): Pass loc to check_case_bounds.
1137 2014-06-03 Marek Polacek <polacek@redhat.com>
1140 * c.opt (Wswitch-bool): New option.
1142 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1144 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1146 (record_types_used_by_current_var_decl): Move prototype to where
1149 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1150 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1151 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1153 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1155 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1156 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1158 * c-pretty-print.c (pp_c_void_constant): New function.
1159 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1160 (c_pretty_printer::expression): Handle VOID_CST.
1161 * cilk.c (extract_free_variables): Likewise.
1162 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1163 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1165 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1167 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1168 * c-pragma.c (push_alignment): Adjust.
1169 (handle_pragma_push_options): Likewise.
1171 2014-05-09 Marek Polacek <polacek@redhat.com>
1174 * c-common.c (check_user_alignment): Return -1 if alignment is error
1176 (handle_aligned_attribute): Don't call default_conversion on
1178 (handle_vector_size_attribute): Likewise.
1179 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1180 (handle_sentinel_attribute): Call default_conversion and allow even
1181 integral types as an argument.
1183 2014-05-08 Marek Polacek <polacek@redhat.com>
1186 * c-common.c (min_align_of_type): New function factored out from...
1187 (c_sizeof_or_alignof_type): ...here.
1188 * c-common.h (min_align_of_type): Declare.
1190 2014-05-08 Marek Polacek <polacek@redhat.com>
1193 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1194 parameter type of main.
1196 2014-05-07 DJ Delorie <dj@redhat.com>
1198 * c-cppbuiltin.c (print_bits_of_hex): New.
1199 (builtin_define_type_minmax): Print values using hex so as not to
1200 require a pre-computed list of string values.
1202 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1203 Mike Stump <mikestump@comcast.net>
1204 Richard Sandiford <rdsandiford@googlemail.com>
1206 * c-ada-spec.c: Include wide-int.h.
1207 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1208 (dump_generic_ada_node): Use wide-int interfaces.
1209 * c-common.c: Include wide-int-print.h.
1210 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1211 (pointer_int_sum): Use wide-int interfaces.
1212 (c_common_nodes_and_builtins): Use make_int_cst.
1213 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1214 (handle_alloc_size_attribute): Use wide-int interfaces.
1215 (get_nonnull_operand): Likewise.
1216 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1217 * c-lex.c: Include wide-int.h.
1218 (narrowest_unsigned_type): Take a widest_int rather than two
1220 (narrowest_signed_type): Likewise.
1221 (interpret_integer): Update accordingly. Use wide-int interfaces.
1222 (lex_charconst): Use wide-int interfaces.
1223 * c-pretty-print.c: Include wide-int.h.
1224 (pp_c_integer_constant): Use wide-int interfaces.
1225 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1226 INT_CST_LT_UNSIGNED.
1228 2014-05-06 Richard Biener <rguenther@suse.de>
1230 * c-opts.c (c_common_post_options): For -freestanding,
1231 -fno-hosted and -fno-builtin disable pattern recognition
1232 if not enabled explicitely.
1234 2014-05-02 Marek Polacek <polacek@redhat.com>
1236 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1238 2014-05-01 Marek Polacek <polacek@redhat.com>
1241 * c.opt (Wdiscarded-qualifiers): Add.
1243 2014-04-30 Marek Polacek <polacek@redhat.com>
1245 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1246 INT_MIN / -1 sanitization only for integer types.
1248 2014-04-25 Marek Polacek <polacek@redhat.com>
1251 * c-common.c (handle_noinline_attribute): Warn if the attribute
1252 conflicts with always_inline attribute.
1253 (handle_always_inline_attribute): Warn if the attribute conflicts
1254 with noinline attribute.
1256 2014-04-25 Marek Polacek <polacek@redhat.com>
1259 * c-common.c (check_main_parameter_types): Warn about variadic main.
1261 2014-04-24 Mike Stump <mikestump@comcast.net>
1263 * c.opt (Wshadow-ivar): Default to on.
1265 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1267 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1269 2014-04-23 Marek Polacek <polacek@redhat.com>
1271 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1273 2014-04-22 Jakub Jelinek <jakub@redhat.com>
1276 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1277 if flag_sanitize_undefined_trap_on_error.
1278 (ubsan_instrument_division, ubsan_instrument_shift,
1279 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1280 if !flag_sanitize_recover.
1282 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
1285 * c-common.c (registered_builtin_types): Make non-static.
1286 * c-common.h (registered_builtin_types): Declare.
1288 2014-04-14 Richard Biener <rguenther@suse.de>
1289 Marc Glisse <marc.glisse@inria.fr>
1292 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1293 apply may-alias the scalar pointer type when applicable.
1295 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1298 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1299 as possible argument for Cilk_spawn.
1301 2014-04-11 Tobias Burnus <burnus@net-b.de>
1304 * c.opt (Wformat-signedness): Add
1305 * c-format.c(check_format_types): Use it.
1307 2014-04-11 Jason Merrill <jason@redhat.com>
1310 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1311 default_conversion for an array argument.
1313 2014-04-08 Marek Polacek <polacek@redhat.com>
1316 * c-ubsan.c: Include asan.h.
1317 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1319 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1321 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1323 2014-04-02 Marek Polacek <polacek@redhat.com>
1325 * c-common.h (c_expand_expr): Remove declaration.
1327 2014-03-28 Jakub Jelinek <jakub@redhat.com>
1330 * c-common.c (add_atomic_size_parameter): When creating new
1331 params vector, push the size argument first.
1333 2014-03-26 Jakub Jelinek <jakub@redhat.com>
1335 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1336 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1337 ubsan_create_data callers.
1339 2014-03-22 Jakub Jelinek <jakub@redhat.com>
1342 * c-opts.c (c_finish_options): Restore cb_file_change call to
1345 2014-03-13 Jakub Jelinek <jakub@redhat.com>
1348 * c-pragma.c (apply_pragma_weak): Only look at
1349 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1350 DECL_ASSEMBLER_NAME_SET_P (decl).
1351 (maybe_apply_pending_pragma_weaks): Exit early if
1352 vec_safe_is_empty (pending_weaks) rather than only when
1354 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1355 set assembler name back to NULL afterwards.
1357 2014-03-11 Jason Merrill <jason@redhat.com>
1359 * c.opt: Add -std=gnu++14.
1361 2014-03-11 Ian Bolton <ian.bolton@arm.com>
1363 * c-opts.c (c_common_post_options): Don't override
1364 -ffp-contract=fast if unsafe-math-optimizations is on.
1366 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
1368 * c.opt: Enable LTO FE for fshort-double.
1370 2014-03-07 Jason Merrill <jason@redhat.com>
1372 * c.opt: Add -std=c++14.
1374 2014-03-06 Marek Polacek <polacek@redhat.com>
1377 * cilk.c (contains_cilk_spawn_stmt): New function.
1378 (contains_cilk_spawn_stmt_walker): Likewise.
1379 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1380 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1382 2014-03-03 Jakub Jelinek <jakub@redhat.com>
1384 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1385 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1386 even when flag_preprocess_only.
1388 2014-02-26 Jason Merrill <jason@redhat.com>
1392 * c-common.c (shorten_compare): Don't check
1393 c_inhibit_evaluation_warnings.
1395 2014-02-19 Jakub Jelinek <jakub@redhat.com>
1398 * c-common.c (c_common_nodes_and_builtins): When initializing
1399 c_uint{16,32,64}_type_node, also set corresponding
1400 uint{16,32,64}_type_node to the same value.
1403 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1404 for PRAGMA_IVDEP if flag_preprocess_only.
1406 2014-02-12 Jakub Jelinek <jakub@redhat.com>
1409 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1410 if false, add ADD itself, rather than vice versa.
1411 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1412 copy. For SAVE_EXPR, only call merge_tlist once.
1414 2014-02-08 Jakub Jelinek <jakub@redhat.com>
1417 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1419 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1421 (c_common_attribute_table): Add alloc_align and assume_aligned
1424 2014-02-06 Marek Polacek <polacek@redhat.com>
1427 * c-common.c (warn_for_sign_compare): Call warning_at with location
1430 2014-02-05 Marek Polacek <polacek@redhat.com>
1433 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1436 2014-02-04 Marek Polacek <polacek@redhat.com>
1439 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1442 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
1446 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1447 handle_vector_size_attribute, handle_nonnull_attribute): Call
1448 default_conversion on the attribute argument.
1449 (handle_nonnull_attribute): Increment the argument number.
1451 2014-01-31 Marek Polacek <polacek@redhat.com>
1454 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1455 build_function_call_vec.
1456 (resolve_overloaded_builtin): Likewise.
1457 * c-common.h (build_function_call_vec): Adjust declaration.
1459 2014-01-30 Marek Polacek <polacek@redhat.com>
1462 * c-common.h (unsafe_conversion_p): Adjust declaration.
1463 (warnings_for_convert_and_check): Likewise.
1464 (convert_and_check): Likewise.
1465 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1466 expansion_point_location_if_in_system_header on it.
1467 (warnings_for_convert_and_check): Add location parameter. Call
1468 expansion_point_location_if_in_system_header on it. Use it.
1469 (convert_and_check): Add location parameter. Use it.
1470 (conversion_warning): Likewise.
1471 (c_add_case_label): Adjust convert_and_check calls.
1472 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1474 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1476 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1478 * c-pragma.c (init_pragma): Likewise.
1481 2014-01-23 Marek Polacek <polacek@redhat.com>
1484 * c-common.c (shorten_compare): Add location_t parameter.
1485 * c-common.h (shorten_binary_op): Adjust declaration.
1487 2014-01-23 Marek Polacek <polacek@redhat.com>
1490 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1491 * c-common.h: Declare it.
1493 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1495 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1496 * c-ada-spec.c (dump_ads): Likewise.
1497 (cpp_check): Likewise.
1498 (dump_ada_specs): Likewise.
1500 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
1503 * c-common.c (handle_no_instrument_function_attribute): Allow
1504 no_instrument_function attribute in class member
1505 definition/declaration.
1507 2014-01-15 Jakub Jelinek <jakub@redhat.com>
1510 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1511 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1512 being COMPOUND_EXPR.
1513 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1514 operand a SAVE_EXPR and second MODIFY_EXPR.
1516 2014-01-09 Jakub Jelinek <jakub@redhat.com>
1519 * c-pch.c (c_common_write_pch): Call
1520 prepare_target_option_nodes_for_pch.
1522 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1524 Update copyright years
1526 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1528 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1529 the copyright notice.
1531 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1533 * c-ada-spec.c (print_constructor): New function.
1534 (print_destructor): Retrieve the origin of the destructor.
1535 (print_ada_declaration): Revamp handling of constructors/destructors.
1537 2013-12-23 Stuart Hastings <stuart@apple.com>
1538 Bill Maddox <maddox@google.com>
1539 Jason Merrill <jason@redhat.com>
1541 * c.opt: Add -fdeclone-ctor-dtor.
1542 * c-opts.c (c_common_post_options): Default to on iff -Os.
1544 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1546 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1548 * c-pragma.h (enum pragma_cilk_clause): Remove.
1549 (enum pragma_omp_clause): Added the following fields:
1550 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1551 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1552 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1553 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1554 PRAGMA_CILK_CLAUSE_UNIFORM.
1557 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1559 * cilk.c (cilk_outline): Made this function non-static.
1560 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1561 (create_cilk_wrapper): Added a new parameter: a function pointer.
1562 (c_install_body_w_frame_cleanup): Remove
1563 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1564 * c-common.h (cilk_outline): New prototype.
1565 (gimplify_cilk_spawn): Removed two parameters.
1566 (cilk_install_body_with_frame_cleanup): New prototype.
1567 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1568 CILK_SPAWN_STMT case.
1570 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1572 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1574 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1575 (int_array_type_node): Remove.
1576 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1578 2013-12-05 Marek Polacek <polacek@redhat.com>
1581 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1582 [ADJUST_FIELD_ALIGN].
1584 2013-12-04 Joseph Myers <joseph@codesourcery.com>
1587 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1588 and check field alignment if set.
1589 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1590 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1592 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1593 Marek Polacek <polacek@redhat.com>
1595 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1596 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1598 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1601 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1604 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1607 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1608 goto invalid. If it is error_mark_node, don't issue further
1611 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1613 * c.opt (Wopenmp-simd): New.
1615 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1617 * c-ubsan.h (ubsan_instrument_return): New prototype.
1618 * c-ubsan.c (ubsan_instrument_return): New function.
1620 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1622 * c-common.c: Add required include files from gimple.h.
1623 * c-gimplify.c: Likewise
1626 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1628 * c-common.c (unsafe_conversion_p): Remove use of
1629 EXPR_LOC_OR_HERE macro.
1630 (conversion_warning): Likewise.
1631 (warnings_for_convert_and_check): Likewise.
1632 (warn_for_collisions_1): Likewise.
1633 (shorten_compare): Likewise, and remove use of in_system_header
1634 macro, using the location from the former.
1635 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1636 (cb_def_pragma): Remove use of in_system_header macro.
1637 (lex_string): Likewise.
1638 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1640 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1641 Mike Stump <mikestump@comcast.net>
1642 Richard Sandiford <rdsandiford@googlemail.com>
1644 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1645 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1646 tree_fits_shwi_p or tree_fits_uhwi_p.
1647 (dump_generic_ada_node): Likewise.
1648 * c-format.c (check_format_arg): Likewise.
1649 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1651 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1653 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1655 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1658 * c-common.c (unsafe_conversion_p): Make this function
1659 return an enumeration with more detail.
1660 (conversion_warning): Use the new return type of
1661 unsafe_conversion_p to separately warn either about conversions
1662 that lower floating point number precision or about the other
1663 kinds of conversions.
1664 * c-common.h (enum conversion_safety): New enumeration.
1665 (unsafe_conversion_p): switching return type to
1666 conversion_safety enumeration.
1667 * c.opt: Adding new warning -Wfloat-conversion and
1668 enabling it with -Wconversion.
1670 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1672 * c-opts.c: Include plugin.h.
1673 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1675 2013-11-19 Marek Polacek <polacek@redhat.com>
1677 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1679 (ubsan_instrument_shift): Likewise.
1680 (ubsan_instrument_vla): Likewise.
1682 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1684 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1685 cast to unsigned type.
1687 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1689 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1691 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1692 rather than tree_low_cst.
1694 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1696 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1697 tree_to_uhwi throughout.
1699 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1701 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1702 tree_low_cst (..., 0) with tree_to_shwi throughout.
1704 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1706 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1707 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1709 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1711 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1712 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1714 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1716 * c-cilkplus.c: New file.
1717 * c-common.c (readonly_error): Add location argument.
1718 * c-common.h (readonly_error): Same.
1719 (c_finish_cilk_clauses): Protoize.
1720 (c_check_cilk_loop): Same.
1721 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1722 Do not fail on error_mark_node.
1723 Abstract increment canonicalization to here...
1724 (c_omp_for_incr_canonicalize_ptr): New.
1725 c-pragma.c (init_pragma): Register "simd" pragma.
1726 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1727 (enum pragma_cilk_clause): New.
1729 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1731 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1732 wchar_type and host_integerp checks.
1734 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1736 * c-common.c: Likewise.
1737 * c-gimplify.c: Likewise.
1740 2013-11-14 Diego Novillo <dnovillo@google.com>
1742 * c-common.c: Include fold-const.h.
1743 Include stor-layout.h.
1745 Include stringpool.h.
1748 Include trans-mem.h.
1749 * c-cppbuiltin.c: Include stor-layout.h.
1750 Include stringpool.h.
1751 * c-format.c: Include stringpool.h.
1752 * c-lex.c: Include stringpool.h.
1753 Include stor-layout.h.
1754 * c-pragma.c: Include stringpool.h.
1757 Include gcc-symtab.h.
1758 * c-pretty-print.c: Include stor-layout.h.
1760 * cilk.c: Include stringpool.h.
1763 2013-11-13 Joseph Myers <joseph@codesourcery.com>
1765 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1766 * c-common.c (c_common_reswords): Add __auto_type.
1767 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1769 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1771 * c-common.c: Include gimplify.h.
1772 * c-gimplify.c: Likewise.
1774 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1775 * c-ubsan.c: Don't include gimple.h.
1777 2013-11-12 Joseph Myers <joseph@codesourcery.com>
1779 * c-common.c (c_common_reswords): Add _Thread_local.
1781 2013-11-09 Joseph Myers <joseph@codesourcery.com>
1783 * c-common.c (atomic_size_supported_p): New function.
1784 (resolve_overloaded_atomic_exchange)
1785 (resolve_overloaded_atomic_compare_exchange)
1786 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1787 Use it instead of comparing size with a local list of sizes.
1789 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
1790 Joseph Myers <joseph@codesourcery.com>
1792 * c-common.h (enum rid): Add RID_ATOMIC.
1793 * c-common.c (c_common_reswords): Add _Atomic.
1794 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1795 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1796 * c-format.c (check_format_types): Check for extra _Atomic
1797 qualifiers in format argument.
1798 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1799 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1801 2013-11-06 Tobias Burnus <burnus@net-b.de>
1803 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1805 2013-11-06 Joseph Myers <joseph@codesourcery.com>
1807 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1809 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1810 to mean lack of IEEE 754 support.
1812 2013-11-05 Tobias Burnus <burnus@net-b.de>
1814 * c.opt (-Wdate-time): New option
1815 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1817 2013-11-05 Joseph Myers <joseph@codesourcery.com>
1819 * c-cppbuiltin.c (cpp_iec_559_value): Test
1820 flag_excess_precision_cmdline not flag_excess_precision.
1822 2013-11-05 Tobias Burnus <burnus@net-b.de>
1824 * c.opt (fopenmp-simd): New option.
1825 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1826 (omp_pragmas): ... this new struct.
1827 (c_pp_lookup_pragma): Also walk omp_pragmas.
1828 (init_pragma): Init pragmas for -fopenmp-simd.
1830 2013-11-04 Marek Polacek <polacek@redhat.com>
1833 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1835 2013-11-04 Joseph Myers <joseph@codesourcery.com>
1837 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1839 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1841 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1843 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1844 (dump_ada_specs): Adjust prototype of second callback.
1845 * c-ada-spec.c (cpp_check): New global variable.
1846 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1847 (print_generic_ada_decl): Likewise.
1848 (has_static_fields): Change return type to bool and add guard.
1849 (has_nontrivial_methods): New predicate.
1850 (is_tagged_type): Change return type to bool.
1851 (separate_class_package): Call has_nontrivial_methods.
1852 (pp_ada_tree_identifier): Minor tweaks.
1853 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1854 (dump_ada_array_domains): Likewise.
1855 (dump_ada_array_type): Likewise.
1856 (dump_template_types): Remove cpp_check parameter and do not pass it to
1857 dump_generic_ada_node.
1858 (dump_ada_template): Likewise.
1859 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1861 (print_ada_methods): Change return type to integer. Remove cpp_check
1862 parameter and do not pass it down.
1863 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1864 dump_generic_ada_node.
1865 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1867 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1868 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1869 value of print_ada_methods.
1870 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1871 Set cpp_check to it before invoking dump_ada_nodes.
1872 (dump_ada_specs): Likewise.
1874 2013-11-03 Marek Polacek <polacek@redhat.com>
1876 * c-ubsan.c: Don't include hash-table.h.
1877 (ubsan_instrument_vla): New function.
1878 * c-ubsan.h: Declare it.
1880 2013-10-31 David Malcolm <dmalcolm@redhat.com>
1882 Automated part of renaming of symtab_node_base to symtab_node.
1884 Patch autogenerated by rename_symtab.py from
1885 https://github.com/davidmalcolm/gcc-refactoring-scripts
1886 revision 58bb219cc090b2f4516a9297d868c245495ee622
1888 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1889 symtab_node_base to symtab_node.
1891 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1893 Implement C++14 digit separators.
1894 * c-lex.c (interpret_float): Remove digit separators from scratch string
1895 before building real literal.
1897 2013-10-30 Jakub Jelinek <jakub@redhat.com>
1899 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1901 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1903 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1905 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1907 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1908 (insert_cilk_frame): New prototype.
1909 (cilk_init_builtins): Likewise.
1910 (gimplify_cilk_spawn): Likewise.
1911 (c_cilk_install_body_w_frame_cleanup): Likewise.
1912 (cilk_detect_spawn_and_unwrap): Likewise.
1913 (cilk_set_spawn_marker): Likewise.
1914 (build_cilk_sync): Likewise.
1915 (build_cilk_spawn): Likewise.
1918 2013-10-29 David Malcolm <dmalcolm@redhat.com>
1920 Patch autogenerated by refactor_symtab.py from
1921 https://github.com/davidmalcolm/gcc-refactoring-scripts
1922 revision 58bb219cc090b2f4516a9297d868c245495ee622
1924 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1925 to a true class hierarchy.
1926 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1928 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1930 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1932 2013-10-26 Jeff Law <law@redhat.com>
1934 * c-common.c (c_define_builtins): Remove mudflap support.
1935 * c.opt: Ignore and warn for mudflap options.
1937 2013-10-24 Tobias Burnus <burnus@net-b.de>
1940 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1941 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1943 2013-10-23 Jason Merrill <jason@redhat.com>
1945 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1947 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1949 * c-common.h (omp_clause_mask::operator !=): New method.
1950 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1951 instead of if (mask & something) tests everywhere.
1953 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1954 201307 instead of 201107.
1955 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1956 (c_common_attribute_table): Add "omp declare target" and
1957 "omp declare simd" attributes.
1958 (handle_omp_declare_target_attribute,
1959 handle_omp_declare_simd_attribute): New functions.
1960 * c-omp.c: Include c-pragma.h.
1961 (c_finish_omp_taskgroup): New function.
1962 (c_finish_omp_atomic): Add swapped argument, if true,
1963 build the operation first with rhs, lhs arguments and use NOP_EXPR
1965 (c_finish_omp_for): Add code argument, pass it down to make_code.
1966 (c_omp_split_clauses): New function.
1967 (c_split_parallel_clauses): Removed.
1968 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1969 c_omp_declare_simd_clauses_to_decls): New functions.
1970 * c-common.h (omp_clause_mask): New type.
1971 (OMP_CLAUSE_MASK_1): Define.
1972 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1973 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1974 omp_clause_mask::operator |, omp_clause_mask::operator &,
1975 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1976 omp_clause_mask::operator ==): New methods.
1977 (enum c_omp_clause_split): New.
1978 (c_finish_omp_taskgroup): New prototype.
1979 (c_finish_omp_atomic): Add swapped argument.
1980 (c_finish_omp_for): Add code argument.
1981 (c_omp_split_clauses): New prototype.
1982 (c_split_parallel_clauses): Removed.
1983 (c_omp_declare_simd_clauses_to_numbers,
1984 c_omp_declare_simd_clauses_to_decls): New prototypes.
1985 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1986 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1987 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1988 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1989 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1990 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1991 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1992 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1993 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1994 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1995 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1996 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1997 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1998 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1999 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2000 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2001 PRAGMA_OMP_CLAUSE_UNIFORM.
2003 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
2005 PR tree-optimization/20318
2006 * c-common.c (handle_returns_nonnull_attribute): New function.
2007 (c_common_attribute_table): Add returns_nonnull.
2009 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
2012 * c.opt (fcheck-new): Move to common.opt.
2014 2013-09-25 Marek Polacek <polacek@redhat.com>
2015 Jakub Jelinek <jakub@redhat.com>
2018 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2019 an expression if we can prove it is correct.
2020 (ubsan_instrument_division): Likewise. Remove unnecessary
2023 2013-09-18 Marek Polacek <polacek@redhat.com>
2026 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2028 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2030 2013-09-14 Iain Sandoe <iain@codesourcery.com>
2033 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2034 fobjc-gc, freplace-objc-classes): Accept for LTO.
2036 2013-09-13 Jacek Caban <jacek@codeweavers.com>
2038 * c-target.def: New hook
2040 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2043 * c.opt (Wdelete-incomplete): Add.
2045 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2047 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2048 (vector_types_compatible_elements_p): New function.
2049 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2051 (vector_types_compatible_elements_p): Declare.
2053 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2055 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2056 a virtual member function.
2057 (pp_simple_type_specifier): Remove.
2058 (pp_c_type_specifier): Likewise.
2059 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2060 Rename from pp_c_type_specifier. Adjust.
2061 (c_pretty_printer::c_pretty_printer): Do not assign to
2062 simple_type_specifier.
2064 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2066 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2068 (c_pretty_printer::storage_class_specifier): Likewise.
2069 (c_pretty_printer::initializer): Likewise.
2070 (pp_declaration): Remove.
2071 (pp_declaration_specifiers): Likewise.
2072 (pp_abstract_declarator): Likewise.
2073 (pp_declarator): Likewise.
2074 (pp_type_id): Likewise.
2075 (pp_statement): Likewise.
2076 (pp_constant): Likewise.
2077 (pp_id_expression): Likewise.
2078 (pp_primary_expression): Likewise.
2079 (pp_unary_expression): Likewise.
2080 (pp_multiplicative_expression): Likewise.
2081 (pp_conditional_expression): Likewise.
2082 (pp_assignment_expression): Likewise.
2083 (pp_expression): Likewise.
2084 (pp_c_type_id): Likewise.
2085 (pp_c_storage_class_specifier): Likewise.
2086 * c-pretty-print.c (pp_c_type_cast): Tidy.
2087 (pp_c_pointer): Likewise.
2088 (pp_c_type_specifier): Likewise.
2089 (pp_c_parameter_type_list): Likewise.
2090 (pp_c_function_definition): Likewise.
2091 (pp_c_init_declarator): Likewise.
2092 (pp_c_initializer_list): Likewise.
2093 (pp_c_constructor_elts): Likewise.
2094 (c_pretty_printer::direct_abstract_declarator): Likewise.
2095 (c_pretty_printer::declaration_specifiers): Likewise.
2096 (c_pretty_printer::primary_expression): Likewise.
2097 (c_pretty_printer::postfix_expression): Likewise.
2098 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2099 (c_pretty_printer::storage_class_specifier): Rename from
2100 pp_c_storage_class_specifier.
2101 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2102 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2103 storage_class_specifier, initializer, offset_list, flags.
2105 2013-08-30 Marek Polacek <polacek@redhat.com>
2107 * c-ubsan.c: New file.
2108 * c-ubsan.h: New file.
2110 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2112 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2114 (c_pretty_printer::declaration_specifiers): Likewise.
2115 (c_pretty_printer::declarator): Likewise.
2116 (c_pretty_printer::abstract_declarator): Likewise.
2117 (c_pretty_printer::direct_abstract_declarator): Likewise.
2118 (c_pretty_printer::direct_declarator): Likewise.
2119 (c_pretty_printer::function_specifier): Likewise.
2120 (pp_declaration): Adjust.
2121 (pp_declaration_specifiers): Likewise.
2122 (pp_abstract_declarator): Likewise.
2123 (pp_direct_declarator): Likewise.
2124 (pp_function_specifier): Likewise.
2125 (pp_direct_abstract_declarator): Remove as unused.
2126 (pp_c_declaration): Remove.
2127 (pp_c_declaration_specifiers): Likewise.
2128 (pp_c_declarator): Likewise.
2129 (pp_c_direct_declarator): Likewise.
2130 (pp_c_function_specifier): Likewise.
2131 (pp_c_direct_abstract_declarator): Likewise.
2132 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2133 from pp_c_abstract_declarator. Adjust.
2134 (c_pretty_printer::direct_abstract_declarator): Rename from
2135 pp_c_direct_abstract_declarator. Adjust.
2136 (c_pretty_printer::function_specifier): Rename from
2137 pp_c_function_specifier. Adjust.
2138 (c_pretty_printer::declaration_specifiers): Rename from
2139 pp_c_declaration_specifiers. Adjust.
2140 (c_pretty_printer::direct_declarator): Rename from
2141 pp_c_direct_declarator. Adjust.
2142 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2143 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2144 (c_pretty_printer::c_pretty_printer): Do not assign to
2145 declaration, declaration_specifiers, declarator,
2146 direct_declarator, direct_abstract_declarator, function_specifier.
2148 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2150 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2151 virtual member function.
2152 (c_pretty_printer::multiplicative_expression): Likewise.
2153 (c_pretty_printer::conditional_expression): Likewise.
2154 (c_pretty_printer::assignment_expression): Likewise.
2155 (c_pretty_printer::expression): Likewise.
2156 (pp_unary_expression): Adjust.
2157 (pp_multiplicative_expression): Likewise.
2158 (pp_assignment_expression): Likewise.
2159 (pp_conditional_expression): Likewise.
2160 (pp_expression): Likewise.
2161 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2162 from pp_c_unary_expression. Adjust.
2163 (c_pretty_printer::multiplicative_expression): Rename from
2164 pp_c_multiplicative_expression. Adjust.
2165 (c_pretty_printer::conditional_expression): Rename from
2166 pp_c_conditional_expression. Adjust.
2167 (c_pretty_printer::assignment_expression): Rename from
2168 pp_c_assignment_expression. Adjust.
2169 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2170 (c_pretty_printer::c_pretty_printer): Do not assign to
2171 unary_expression, multiplicative_expression,
2172 conditional_expression, expression.
2174 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2176 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2177 virtual member function.
2178 (pp_postfix_expression): Adjust.
2179 (pp_c_postfix_expression): Remove.
2180 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2181 from pp_c_postfix_expression. Adjust.
2182 (c_pretty_printer::c_pretty_printer): Do not assign to
2185 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2187 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2188 virtua member function.
2189 (pp_primary_expression): Adjust.
2190 (pp_c_primary_expression): Remove.
2191 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2192 from pp_c_primary_expression. Adjust.
2193 (pp_c_initializer_list): Use pp_primary_expression.
2194 (c_pretty_printer::c_pretty_printer): Do not assign to
2197 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2199 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2200 * c-pretty-print.c (M_): Remove.
2201 (c_pretty_printer::translate_string): Define.
2202 (pp_c_type_specifier): Use it.
2203 (pp_c_primary_expression): Likewise.
2204 (pp_c_expression): Likewise.
2206 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2208 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2210 (pp_c_id_expression): Remove.
2211 (pp_id_expression): Adjust.
2212 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2213 pp_c_id_expression. Adjust.
2214 (pp_c_postfix_expression): Use pp_id_expression.
2215 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2217 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2219 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2221 (pp_constant): Adjust.
2222 (pp_c_constant): Remove.
2223 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2224 pp_c_constant. Adjust.
2226 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2227 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2229 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2231 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2232 (c_pretty_printer::c_pretty_printer): Declare.
2233 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2234 c_pretty_printer_init. Adjust.
2235 (print_c_tree): Do not call c_pretty_printer_init.
2236 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2238 2013-08-09 Arnaud Charlet <charlet@adacore.com>
2240 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2242 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2245 * c-common.c (pointer_int_sum): Add bool parameter.
2246 * c-common.h (pointer_int_sum): Adjust declaration.
2248 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2250 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2251 c_pretty_printer variable.
2253 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2255 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2257 (pp_c_base): Likewise. Adjust users.
2258 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2259 (pp_c_whitespace): Do not call pp_base.
2260 (pp_c_left_paren): Likewise.
2261 (pp_c_right_paren): Likewise.
2262 (pp_c_left_brace): Likewise.
2263 (pp_c_right_brace): Likewise.
2264 (pp_c_left_bracket): Likewise.
2265 (pp_c_right_bracket): Likewise.
2266 (pp_c_dot): Likewise.
2267 (pp_c_ampersand): Likewise.
2268 (pp_c_star): Likewise.
2269 (pp_c_arrow): Likewise.
2270 (pp_c_semicolon): Likewise.
2271 (pp_c_complement): Likewise.
2272 (pp_c_exclamation): Likewise.
2273 (pp_c_direct_declarator): Likewise.
2274 (pp_c_ws_string): Likewise.
2275 (pp_c_identifier): Likewise.
2276 (pp_c_statement): Likewise.
2277 (print_c_tree): Likewise.
2279 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2282 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2283 provide useful error strings.
2285 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2287 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2288 printer functions instead of pp_string or operators and punctuators.
2289 (dump_generic_ada_node): Likewise.
2290 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2291 (pp_c_relational_expression): Likewise.
2292 (pp_c_logical_or_expression): Likewise.
2294 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2296 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2297 functions instead of pp_character.
2298 (pp_ada_tree_identifier): Likewise.
2299 (dump_ada_double_name): Likewise.
2300 (dump_ada_function_declaration): Likewise.
2301 (dump_ada_array_domains): Likewise.
2302 (dump_template_types): Likewise.
2303 (dump_generic_ada_node): Likewise.
2304 (print_ada_declaration): Likewise.
2305 (print_ada_struct_decl): Likewise.
2306 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2308 2013-07-23 Tom Tromey <tromey@redhat.com>
2310 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2311 * c-common.c (c_common_reswords): Add _Generic.
2313 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
2315 * c-common.c: Fix typos.
2316 * c-common.h: Likewise.
2318 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
2321 * c-common.c (c_common_attribute_table): Add warn_unused.
2322 (handle_warn_unused_attribute): New.
2324 2013-07-10 Jakub Jelinek <jakub@redhat.com>
2326 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2327 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2329 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2332 * c.opt: Add Wconditionally-supported.
2334 2013-07-08 Graham Stott <graham.stott@btinternet.com>
2336 * array-notation-common.c (length_mismatch_in_expr_p): Delete
2337 unused variables l_length and l_node.
2339 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
2342 * c-common.c (complete_array_type): Delay folding first index
2343 like other indices. When folding, check for index overflow.
2345 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
2348 * c-common.h (c_build_vec_perm_expr): New complain argument.
2349 * c-common.c (c_build_vec_perm_expr): Likewise.
2350 Use save_expr also in C++.
2352 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2354 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2355 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2356 * c-opts.c (c_common_post_options): Likewise.
2358 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2360 * array-notation-common.c (length_mismatch_in_expr): Changed the
2361 parameter type's from a dynamic array to a vec_tree. Also removed
2362 the size parameters.
2363 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2366 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2368 * c-common.h (struct cilkplus_an_parts): New structure.
2369 (struct cilkplus_an_loop_parts): Likewise.
2370 (cilkplus_extract_an_triplets): New prototype.
2371 (fix_sec_implicit_args): Likewise.
2372 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2373 (fix_sec_implicit_args): Likewise.
2375 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2377 * array-notation-common.c (find_inv_trees): Removed an unwanted
2379 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2380 enum rid to enum tree_code.
2382 2013-06-11 Jan Hubicka <jh@suse.cz>
2384 * c-common.c (handle_alias_ifunc_attribute): Do not set
2385 DECL_EXTERNAL for weakref variables.
2386 * c-pragma.c (handle_pragma_weak): Make sure aliases
2387 are not declared as external.
2389 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2391 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2392 function from c/c-array-notation.c.
2393 (is_cilkplus_reduce_builtin): Likewise.
2394 (find_rank): Likewise.
2395 (extract_array_notation_exprs): Likewise.
2396 (replace_array_notations): Likewise.
2397 (find_inv_trees): Likewise.
2398 (replace_inv_trees): Likewise.
2399 (contains_array_notation_expr): Likewise.
2400 (find_correct_array_notation_type): Likewise.
2401 * c-common.h (struct inv_list): Moved this struct from the file
2402 c/c-array-notation.c and added a new field called additional tcodes.
2403 (length_mismatch_in_expr_p): New prototype.
2404 (is_cilkplus_reduce_builtin): Likewise.
2405 (find_rank): Likewise.
2406 (extract_array_notation_exprs): Likewise.
2407 (replace_array_notation): Likewise.
2408 (find_inv_trees): Likewise.
2409 (replace_inv_trees): Likewise.
2410 (find_correct_array_notation_type): Likewise.
2412 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2414 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2415 function array_notation_init_builtins is called.
2416 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2417 * c-common.def (ARRAY_NOTATION_REF): New tree.
2418 * c-common.h (build_array_notation_expr): New function declaration.
2419 (build_array_notation_ref): Likewise.
2420 (extract_sec_implicit_index_arg): New extern declaration.
2421 (is_sec_implicit_index_fn): Likewise.
2422 (ARRAY_NOTATION_CHECK): New define.
2423 (ARRAY_NOTATION_ARRAY): Likewise.
2424 (ARRAY_NOTATION_START): Likewise.
2425 (ARRAY_NOTATION_LENGTH): Likewise.
2426 (ARRAY_NOTATION_STRIDE): Likewise.
2427 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2429 (pp_c_expression): Likewise.
2430 * c.opt (flag_enable_cilkplus): New flag.
2431 * array-notation-common.c: New file.
2433 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2436 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2438 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2440 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2443 2013-05-07 Han Shen <shenhan@google.com>
2445 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2447 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2449 * c-common.c (check_user_alignment): Emit error for negative values.
2451 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2453 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2455 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2457 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2458 __GXX_EXPERIMENTAL_CXX1Y__.
2460 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2461 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2463 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2464 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2465 to simply use OPT_Wpointer_arith.
2466 (c_sizeof_or_alignof_type): Likewise.
2468 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2470 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2472 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2474 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2475 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2478 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2480 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2482 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2484 * c-common.c (pointer_int_sum): Remove dead code.
2486 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2489 * c-common.c (handle_optimize_attribute): Don't call
2490 save_optabs_if_changed.
2492 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2495 * c-pch.c (pch_init): Free target_validity at the end.
2497 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2499 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2501 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2502 Jakub Jelinek <jakub@redhat.com>
2505 * c-common.c (handle_no_sanitize_address_attribute): New function.
2506 (c_common_attribute_table): Add no_sanitize_address attribute.
2507 (handle_no_address_safety_analysis_attribute): Add
2508 no_sanitize_address attribute, not no_address_safety_analysis
2511 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2514 * c-common.c (handle_optimize_attribute): Call
2515 save_optabs_if_changed.
2517 2013-02-18 Jakub Jelinek <jakub@redhat.com>
2518 Steven Bosscher <steven@gcc.gnu.org>
2521 * c-opts.c (c_common_post_options): If debug info is enabled
2522 and non-dwarf*, refuse to load PCH files and when writing PCH
2525 2013-02-05 Jakub Jelinek <jakub@redhat.com>
2528 * c-common.c (handle_error_attribute): Fix condition.
2530 2013-01-30 Jakub Jelinek <jakub@redhat.com>
2533 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2535 2013-01-18 Jason Merrill <jason@redhat.com>
2538 * c.opt (-fextern-tls-init): New.
2539 * c-opts.c (c_common_post_options): Handle it.
2541 2013-01-09 Jakub Jelinek <jakub@redhat.com>
2544 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2545 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2546 and is either negative or bigger or equal to type precision
2547 of the first operand.
2549 2012-12-03 Marek Polacek <polacek@redhat.com>
2552 * c-common.c (check_user_alignment): Swap order of tests,
2553 check TREE_CODE first.
2555 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2558 * c-common.h (overflow_type): New enum.
2559 (build_userdef_literal): Add overflow_type argument.
2560 (tree_userdef_literal): Add overflow_type.
2561 (USERDEF_LITERAL_OVERFLOW): New access macro.
2562 * c-common.c (build_userdef_literal): Add overflow_type
2564 * c-lex.c (c_lex_with_flags): Add overflow_type to
2565 build_userdef_literal calls.
2566 (interpret_integer, interpret_float): Add overflow_type argument.
2568 2012-11-28 Richard Biener <rguenther@suse.de>
2571 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2572 here and use a type with proper overflow behavior for types that would
2573 need to be promoted for the arithmetic.
2575 2012-11-23 Jakub Jelinek <jakub@redhat.com>
2578 * c-common.c (handle_no_address_safety_analysis_attribute): New
2580 (c_common_attribute_table): Add no_address_safety_analysis.
2582 2012-11-16 Simon Baldwin <simonb@google.com>
2584 * c.opt: Add f[no-]canonical-system-headers.
2585 * c-opts.c (c_common_handle_option): Handle
2586 OPT_fcanonical_system_headers.
2588 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2591 * c-opts.c (c_common_handle_option): Set new flags.
2592 * c.opt: Describe new flags.
2594 2012-11-09 Jason Merrill <jason@redhat.com>
2596 * c.opt (Wabi-tag): New.
2598 2012-11-09 Andi Kleen <ak@linux.intel.com>
2601 * c-common.c (get_atomic_generic_size): Mask with
2604 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2607 * c.opt (Wformat): Make it Alias Wformat=1.
2608 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2609 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2611 (Wformat=): RejectNegative. Use LangEnabledBy.
2612 (Wnonnull): Use LangEnabledBy.
2613 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2614 * c-format.c (set_Wformat): Delete.
2615 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2616 (maybe_read_dollar_number): Likewise.
2617 (avoid_dollar_number): Likewise.
2618 (finish_dollar_format_checking): Likewise.
2619 (check_format_info): Likewise.
2620 (check_format_info_main): Likewise.
2621 (check_format_types): Likewise.
2622 (format_type_warning): Likewise.
2623 * c-common.c (int): Likewise.
2624 (check_function_sentinel): Likewise.
2625 * c-common.h (warn_format,set_Wformat): Do not declare here.
2627 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2630 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2631 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2633 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2635 (Wvariadic-macros): Init(1).
2636 * c-opts.c (c_common_handle_option): Do not handle them
2638 (c_common_post_options): Likewise.
2639 (sanitize_cpp_opts): warn_unused_macros is now
2640 cpp_warn_unused_macros.
2641 (push_command_line_include): Likewise.
2642 * c-common.c (warn_unknown_pragmas): Do not define.
2643 * c-common.h (warn_unknown_pragmas): Do not declare.
2645 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2648 * c-common.c (conversion_warning): Handle conditional expressions.
2650 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2653 * c.opt (Wreturn_local_addr): Define new option.
2655 2012-10-25 Jason Merrill <jason@redhat.com>
2657 * c.opt (Wvirtual-move-assign): New.
2659 * c.opt (Winherited-variadic-ctor): New.
2661 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
2664 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2666 2012-10-23 Joseph Myers <joseph@codesourcery.com>
2668 * c-common.h (pch_cpp_save_state): Declare.
2669 * c-target.def (c_preinclude): New hook.
2670 * c-opts.c (done_preinclude): New.
2671 (push_command_line_include): Handle default preincluded header.
2672 (cb_file_change): Call pch_cpp_save_state when calling
2673 push_command_line_include.
2674 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2675 (pch_cpp_save_state): New.
2676 (pch_init): Call pch_cpp_save_state conditionally, instead of
2677 calling cpp_save_state.
2679 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2683 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2684 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2685 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2686 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2687 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2688 * c-opts.c (c_common_handle_option): Remove explicit handling from
2690 (c_common_post_options): Likewise.
2692 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2694 * c-ada-spec.c (LOCATION_COL): Delete.
2695 (compare_location): New function.
2696 (compare_node): Use it.
2697 (compare_comment): Likewise.
2699 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2703 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2704 * c-opts.c (c_common_handle_option): Do not set them here. Add
2706 (c_common_post_options): Likewise.
2708 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2710 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2711 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2712 Remove POINTER_TYPE handling, add large unsigned handling and use
2713 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2715 2012-10-12 Jakub Jelinek <jakub@redhat.com>
2718 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2719 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2720 locs and array of 3 trees instead of just single loc and single
2721 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2722 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2723 For *cmp* builtins that take two sources strings report warnings
2724 about first and second source, not about destination and source.
2726 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
2729 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2731 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2733 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2734 declaring something coming from another file.
2736 2012-10-10 Arnaud Charlet <charlet@adacore.com>
2739 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2741 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2744 * c-common.c (warn_about_parentheses): Add location_t parameter;
2745 use EXPR_LOC_OR_LOC.
2746 * c-common.h: Update declaration.
2748 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
2751 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2752 more operations. Make error messages optional.
2753 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2754 (scalar_to_vector): Declare.
2756 2012-10-08 Jason Merrill <jason@redhat.com>
2758 * c-common.c (c_common_reswords): Add thread_local.
2760 2012-10-08 Dodji Seketeli <dodji@redhat.com>
2762 PR c++/53528 C++11 attribute support
2763 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2765 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2767 (handle_aligned_attribute): In choose strictest alignment
2768 among many. Use new check_cxx_fundamental_alignment_constraints.
2769 (handle_transparent_union_attribute): In c++11 attribute syntax,
2770 don't look through typedefs.
2772 2012-10-04 Arnaud Charlet <charlet@adacore.com>
2774 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2775 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2778 2012-09-25 Dehao Chen <dehao@google.com>
2781 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2782 map when read in the pch.
2784 2012-09-18 Arnaud Charlet <charlet@adacore.com>
2786 * c-ada-spec.c: Style fixes.
2788 2012-09-18 Thomas Quinot <quinot@adacore.com>
2790 * c.opt (-fada-spec-parent): Define new command line switch.
2791 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2792 is specified, generate binding spec as a child of the specified unit.
2794 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2795 Manuel López-Ibáñez <manu@gcc.gnu.org>
2798 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2800 2012-08-23 Arnaud Charlet <charlet@adacore.com>
2802 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2803 for pointers, and add missing Convention C pragma.
2804 (print_ada_struct_decl): Add missing aliased keyword.
2805 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2807 2012-08-17 Jakub Jelinek <jakub@redhat.com>
2809 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2810 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2811 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2812 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2813 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2815 2012-08-10 Richard Guenther <rguenther@suse.de>
2817 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2819 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2821 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2822 instead of separate pp_newline and pp_flush.
2823 (print_c_tree): Likewise.
2825 2012-07-26 Richard Henderson <rth@redhat.com>
2827 * c-common.c (handle_hot_attribute): Allow labels.
2828 (handle_cold_attribute): Likewise.
2830 2012-07-20 Jakub Jelinek <jakub@redhat.com>
2833 * c-common.c (check_function_nonnull): Handle multiple nonnull
2834 attributes properly.
2836 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2838 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2839 * c-ada-spec.c: Likewise.
2840 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2842 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2844 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2845 Remove code conditional on it.
2847 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2849 * c-gimplify.c: Do not include basic-block.h.
2850 * c-common.c: Do not include linfuncs.h.
2852 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2854 * c-common.h: Include tree.h.
2856 2012-07-02 Jason Merrill <jason@redhat.com>
2859 * c-common.c (get_priority): Call default_conversion.
2861 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
2863 * c-pch.c (c_common_write_pch): Remove unused variables.
2865 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2867 * cppspec.c: Moved from gcc/ to here.
2869 2012-06-27 Kai Tietz <ktietz@redhat.com>
2871 PR preprocessor/37215
2872 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2874 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2876 * c-common.h (c_common_print_pch_checksum): Remove.
2877 * c-pch.c: Do not include output.h.
2878 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2879 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2880 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2881 (struct c_pch_header): Remove.
2882 (get_ident): Update gpch version.
2883 (pch_init): Do not print executable_checksum to asm_out_file.
2884 Do not fail if there is no asm_out_file to read back from. Set
2885 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2886 (c_common_write_pch): Verify that nothing was written to asm_out_file
2887 since pch_init was called. Do not write a c_pch_header, and do not
2888 copy from asm_out_file to the PCH.
2889 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2890 the content of asm_out_file from the PCH.
2891 (c_common_print_pch_checksum): Remove.
2892 * c-opts.c (c_common_init): Print out executable_checksum directly.
2894 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2896 * c-target.def (objc_declare_unresolved_class_reference,
2897 objc_declare_class_definition): Add new hooks.
2899 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2901 * c-lex.c: Do not include output.h.
2902 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2903 Remove uses of ASM_OUTPUT_IDENT.
2905 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
2908 * c-common.h (c_build_vec_perm_expr): Move decl here.
2909 * c-common.c (c_build_vec_perm_expr): Move definition
2912 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2914 * c.opt (fconserve-space): Turn into a no-op.
2916 2012-06-04 Sterling Augustine <saugustine@google.com>
2918 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2919 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2920 both the start and end of the function.
2922 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2924 * c-common.c: Do not include output.h.
2925 * c-pragma.c: Likewise.
2927 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2929 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2930 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2931 (lang_decl_name): Handle namespace decls.
2933 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2935 * c-ada-spec.c: Do not include output.h.
2936 * c-semantics.c: Likewise.
2938 2012-05-29 Joseph Myers <joseph@codesourcery.com>
2940 * c-common.c: Fix typo.
2942 2012-05-29 Michael Matz <matz@suse.de>
2944 * c-common.h (c_expand_decl): Remove prototype.
2946 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2948 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2949 * c-opts.c (c_common_handle_option): Remove code handling
2950 warn_missing_braces.
2952 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2955 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2958 2012-05-22 Dodji Seketeli <dodji@redhat.com>
2961 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2963 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2965 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2966 * c-opts.c (c_common_handle_option): Do not handle explicitly
2967 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2969 2012-05-16 Dodji Seketeli <dodji@redhat.com>
2971 PR preprocessor/7263
2972 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2973 to cpp_classify_number. For diagnostics, use the precise location
2974 instead of the global input_location.
2976 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2979 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2981 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2983 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2985 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2988 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2989 Wreorder): Use LangEnabledBy.
2990 * c-opts.c (c_common_handle_option): Do not enable them
2991 explicitly. Call lang-specific generated functions.
2992 (c_common_post_options): Do not set them here.
2994 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2996 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2997 Wmissing-field-initializers,Wmissing-parameter-type,
2998 Wold-style-declaration,Woverride-init): Use EnabledBy.
2999 * c-opts.c (c_common_post_options): Do not set here explicitly.
3001 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3004 * c-opts.c (c_common_handle_option): Use handle_generated_option
3005 to enable sub-options.
3007 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3010 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3012 2012-05-10 Richard Guenther <rguenther@suse.de>
3014 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3015 adjust commentary about TYPE_IS_SIZETYPE types.
3017 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3020 * c-common.c (warn_logical_operator): Check that argument of
3021 integer_zerop is not NULL.
3023 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3026 * c-common.c (warn_logical_operator): Do not warn if either side
3027 is already true or false.
3029 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3032 * c-common.c (expr_original_type): New.
3033 (shorten_compare): Do not warn for enumeration types.
3035 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3037 * c.opt (fpermissive): Add Var(flag_permissive).
3039 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
3042 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3043 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3045 2012-04-30 Dodji Seketeli <dodji@redhat.com>
3047 Add -Wvarargs option
3048 * c.opt (Wvarargs): Define new option.
3050 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3052 * c-common.c (check_function_arguments): Replace
3053 Wmissing-format-attribute with Wsuggest-attribute=format.
3055 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3057 * c.opt (Wsuggest-attribute=format): New. Alias of
3058 Wmissing-format-attribute.
3059 * c-format.c (decode_format_type): Replace
3060 Wmissing-format-attribute with Wsuggest-attribute=format.
3061 (check_function_format): Likewise.
3063 2012-04-27 Ollie Wild <aaw@google.com>
3065 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3066 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3067 * c.opt: Add Wliteral-suffix.
3069 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3072 * c.opt (Wpedantic): New.
3073 (pedantic): Alias Wpedantic.
3074 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3075 (c_common_post_options): Likewise.
3076 (sanitize_cpp_opts): Likewise.
3077 * c-lex.c (interpret_float): Likewise.
3078 * c-format.c (check_format_types): Likewise.
3079 * c-common.c (pointer_int_sum): Likewise.
3080 (c_sizeof_or_alignof_type): Likewise.
3081 (c_add_case_label): Likewise.
3082 (c_do_switch_warnings): Likewise.
3083 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3085 2012-04-15 Jason Merrill <jason@redhat.com>
3088 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3089 (C_STD_NAME): Distinguish between C++98 and C++11.
3091 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3094 * c-common.h (uint16_type_node): Rename into...
3095 (c_uint16_type_node): ...this.
3096 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3097 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3099 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3101 * c-common.c (warn_if_unused_value): Move definition to here.
3102 * c-common.h (warn_if_unused_value): Move declaration to here.
3104 2012-03-23 William Bader <williambader@hotmail.com>
3106 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3108 2012-03-20 Jason Merrill <jason@redhat.com>
3110 * c-common.h (enum cxx_dialect): Add cxx1y.
3111 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3113 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3114 * c-opts.c (c_common_post_options): Likewise.
3115 (set_std_cxx1y): New.
3116 (c_common_handle_option): Call it.
3117 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3119 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3122 * c.opt ([Wuseless-cast]): Add.
3124 2012-03-16 Richard Guenther <rguenther@suse.de>
3126 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3128 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3131 * c.opt (ftemplate-backtrace-limit) Add.
3133 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3135 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3137 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3138 (init_pragma): Don't register extern_prefix.
3140 2012-03-12 Richard Guenther <rguenther@suse.de>
3142 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3143 (builtin_type_for_size): Likewise.
3145 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3148 * c-common.c (sync_resolve_params): Don't decide whether to convert
3149 or not based on TYPE_SIZE comparison, convert whenever arg_type
3150 is unsigned INTEGER_TYPE.
3152 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3155 * c.opt ([Wunused-local-typedefs]): Fix description.
3157 2012-01-24 Mike Stump <mikestump@comcast.net>
3159 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3162 2012-01-18 Richard Guenther <rguenther@suse.de>
3164 * c-opts.c (c_common_post_options): Reset LTO flags if
3165 we are about to generate a PCH.
3167 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3170 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3171 use pp_unsigned_wide_integer.
3173 2012-01-10 Richard Guenther <rguenther@suse.de>
3176 * c-opts.c (c_common_handle_option): Move -Werror handling
3177 to language independent code.
3179 2012-01-05 Richard Guenther <rguenther@suse.de>
3182 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3185 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3188 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3189 of array types with an unknown bound.
3191 2011-12-20 Joseph Myers <joseph@codesourcery.com>
3193 * c-common.c (flag_isoc99): Update comment to refer to C11.
3194 (flag_isoc1x): Change to flag_isoc11.
3195 * c-common.h (flag_isoc99): Update comment to refer to C11.
3196 (flag_isoc1x): Change to flag_isoc11.
3197 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3199 * c-opts.c (set_std_c1x): Change to set_std_c11.
3200 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3202 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3203 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3204 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3206 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3207 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3208 (std=gnu1x): Make alias of std=gnu11.
3210 2011-12-19 Jason Merrill <jason@redhat.com>
3213 * c-common.c (handle_transparent_union_attribute): Check the first
3214 field if the type is complete.
3216 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3219 * c-common.c (RID_IS_FINAL): Add.
3220 * c-common.h (RID_IS_FINAL): Add.
3222 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3224 * c.opt (fgnu-runtime): Provide full description.
3225 (fnext-runtime): Likewise.
3226 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3228 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
3230 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3231 predefines in one place. Add LOCK_FREE predefines.
3232 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3235 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
3238 * c-common.c (get_atomic_generic_size): Check for various error
3240 (resolve_overloaded_atomic_exchange,
3241 resolve_overloaded_atomic_compare_exchange,
3242 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3243 error_mark_node for error conditions.
3245 2011-11-08 Richard Guenther <rguenther@suse.de>
3250 2011-11-07 Richard Henderson <rth@redhat.com>
3251 Aldy Hernandez <aldyh@redhat.com>
3252 Torvald Riegel <triegel@redhat.com>
3254 Merged from transactional-memory.
3256 * c-common.c (handle_tm_wrap_attribute,
3257 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3258 (struct c_common_reswords): Added __transaction* keywords.
3259 (struct c_common_attribute_table): Added transaction* and tm_regparm
3261 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3263 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3264 find_tm_attribute): Declare.
3266 2011-11-07 Jason Merrill <jason@redhat.com>
3269 * c-common.c, c-common.h: Revert yesterday's changes.
3271 2011-11-06 Jason Merrill <jason@redhat.com>
3274 * c-common.c (decl_has_visibility_attr): Split out from...
3275 (c_determine_visibility): ...here.
3276 * c-common.h: Declare it.
3278 2011-11-06 Joseph Myers <joseph@codesourcery.com>
3280 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3281 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3283 (check_user_alignment): New. Split out of
3284 handle_aligned_attribute. Disallow integer constants with
3285 noninteger types. Conditionally allow zero.
3286 (handle_aligned_attribute): Use check_user_alignment.
3287 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3289 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
3290 Richard Henderson <rth@redhat.com>
3292 Merged from cxx-mem-model.
3294 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3295 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3296 parameters that are the same type size.
3297 (get_atomic_generic_size): New. Find size of generic
3298 atomic function parameters and do typechecking.
3299 (add_atomic_size_parameter): New. Insert size into parameter list.
3300 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3301 either __atomic_exchange_n or external library call.
3302 (resolve_overloaded_atomic_compare_exchange): Restructure
3303 __atomic_compare_exchange to either _n variant or external library call.
3304 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3305 __atomic_load_n or an external library call.
3306 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3307 __atomic_store_n or an external library call.
3308 (resolve_overloaded_builtin): Handle new __atomic builtins.
3310 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3313 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3314 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3315 <INDIRECT_REF>: Return the argument.
3316 <ARRAY_REF>: Remove special code for negative offset.
3317 Call fold_build_pointer_plus instead of size_binop.
3318 (fold_offsetof): Remove STOP_REF argument and adjust.
3319 * c-common.h (fold_offsetof_1): Declare.
3320 (fold_offsetof): Remove STOP_REF argument.
3322 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3325 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3326 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3327 Wnarrowing for C++0x and C++98.
3328 * c.opt ([Wnarrowing]): Update.
3330 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3333 * c.opt: Add Wzero-as-null-pointer-constant.
3335 2011-10-31 Jason Merrill <jason@redhat.com>
3337 * c.opt (-fdeduce-init-list): Off by default.
3340 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3341 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3343 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3345 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3348 * c.opt (fvisibility-inlines-hidden): Description change.
3350 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3352 Implement C++11 user-defined literals.
3353 * c-common.c (build_userdef_literal): New.
3354 * c-common.def: New tree code.
3355 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3356 * c-lex.c (interpret_float): Add suffix parm.
3357 (c_lex_with_flags): Build literal tokens.
3359 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3363 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3366 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3367 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3368 Wnarrowing for C++0x and C++98.
3369 * c.opt ([Wnarrowing]): Update.
3371 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3374 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3375 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3376 Wnarrowing for C++0x and C++98.
3377 * c.opt ([Wnarrowing]): Update.
3379 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3382 * c-common.c (conversion_warning): Remove code looking for
3383 artificial operands.
3385 2011-10-18 Dodji Seketeli <dodji@redhat.com>
3388 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3389 !NO_IMPLICIT_EXTERN_C.
3391 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
3393 * c-common.c (c_common_reswords): Add __bases,
3395 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3397 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3400 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3402 2011-10-15 Tom Tromey <tromey@redhat.com>
3403 Dodji Seketeli <dodji@redhat.com>
3405 * c.opt (fdebug-cpp): New option.
3406 * c-opts.c (c_common_handle_option): Handle the option.
3407 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3408 output stream in parameter. Factorized from ...
3409 (maybe_print_line): ... this. Dump location debug information when
3410 -fdebug-cpp is in effect.
3411 (print_line_1): New static function. Takes an output stream in
3412 parameter. Factorized from ...
3413 (print_line): ... here. Dump location information when -fdebug-cpp
3415 (scan_translation_unit): Dump location information when
3416 -fdebug-cpp is in effect.
3418 2011-10-15 Tom Tromey <tromey@redhat.com>
3419 Dodji Seketeli <dodji@redhat.com>
3421 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3423 * c-opts.c (c_common_handle_option)<case
3424 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3425 cases. Handle -ftrack-macro-expansion with and without argument.
3427 2011-10-15 Tom Tromey <tromey@redhat.com>
3428 Dodji Seketeli <dodji@redhat.com>
3430 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3431 (print_line, cb_define, do_line_change): Adjust to avoid touching
3432 the internals of struct line_map. Use the public API instead.
3433 * c-pch.c (c_common_read_pch): Likewise.
3434 * c-lex.c (fe_file_change): Likewise.
3436 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3439 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3441 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3444 * c-pretty-print.c (pp_c_floating_constant): Output
3445 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3447 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3449 * c-common.c (def_builtin_1): Delete old interface with two
3450 parallel arrays to hold standard builtin declarations, and replace
3451 it with a function based interface that can support creating
3452 builtins on the fly in the future. Change all uses, and poison
3453 the old names. Make sure 0 is not a legitimate builtin index.
3454 * c-omp.c (c_finish_omp_barrier): Ditto.
3455 (c_finish_omp_taskwait): Ditto.
3456 (c_finish_omp_flush): Ditto.
3458 2011-10-11 Tristan Gingold <gingold@adacore.com>
3460 * c.opt: (fallow-parameterless-variadic-functions): New.
3462 2011-09-08 Dodji Seketeli <dodji@redhat.com>
3464 PR c++/33255 - Support -Wunused-local-typedefs warning
3465 * c-common.h (struct c_language_function::local_typedefs): New
3467 (record_locally_defined_typedef, maybe_record_typedef_use)
3468 (maybe_warn_unused_local_typedefs): Declare new functions.
3469 * c-common.c (record_locally_defined_typedef)
3470 (maybe_record_typedef_use)
3471 (maybe_warn_unused_local_typedefs): Define new functions.
3472 * c.opt: Declare new -Wunused-local-typedefs flag.
3474 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3477 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3480 2011-09-05 Richard Guenther <rguenther@suse.de>
3482 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3483 of integer_minus_one_node for empty array upper bounds.
3485 2011-08-28 Dodji Seketeli <dodji@redhat.com>
3487 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3488 it's the first time it's being called on this main TU.
3490 2011-08-24 Richard Guenther <rguenther@suse.de>
3493 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3495 2011-08-22 Gabriel Charette <gchare@google.com>
3497 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3498 defined in cpp_init_builtins and c_cpp_builtins.
3500 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3502 * c-common.c (c_common_reswords): Add __builtin_complex.
3503 * c-common.h (RID_BUILTIN_COMPLEX): New.
3505 2011-08-18 Joseph Myers <joseph@codesourcery.com>
3507 * c-common.c (c_common_reswords): Add _Noreturn.
3508 (keyword_is_function_specifier): Handle RID_NORETURN.
3509 * c-common.h (RID_NORETURN): New.
3511 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3513 * c-common.c (unsafe_conversion_p): New function. Check if it is
3514 unsafe to convert an expression to the type.
3515 (conversion_warning): Adjust, use unsafe_conversion_p.
3516 * c-common.h (unsafe_conversion_p): New function declaration.
3518 2011-08-02 Jakub Jelinek <jakub@redhat.com>
3520 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3521 (c_finish_omp_taskyield): New prototype.
3522 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3523 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3524 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3525 or RHS1 have side-effects, evaluate those too in the right spot,
3526 if it is a decl and LHS is also a decl, error out if they
3528 (c_finish_omp_taskyield): New function.
3529 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3530 * c-pragma.c (omp_pragmas): Add taskyield.
3531 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3532 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3533 PRAGMA_OMP_CLAUSE_MERGEABLE.
3535 2011-07-25 Dodji Seketeli <dodji@redhat.com>
3537 * c-common.h (set_underlying_type): Remove parm name from
3540 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
3542 * c-pretty-print.h: Search c-common.h in c-family.
3544 2011-07-22 Jason Merrill <jason@redhat.com>
3547 * c.opt (Wnarrowing): New.
3550 * c-common.h: Declare c_linkage_bindings.
3551 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3554 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3555 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3556 as flag_isoc99 for 'restrict'.
3557 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3559 2011-07-21 Ian Lance Taylor <iant@google.com>
3562 * c-common.c (c_disable_warnings): New static function.
3563 (c_enable_warnings): New static function.
3564 (c_fully_fold_internal): Change local unused_p to bool. Call
3565 c_disable_warnings and c_enable_warnings rather than change
3566 c_inhibit_evaluation_warnings.
3568 2011-07-20 Jason Merrill <jason@redhat.com>
3570 PR c++/6709 (DR 743)
3571 PR c++/42603 (DR 950)
3572 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3573 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3574 (CPP_DECLTYPE): New.
3575 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3577 2011-07-19 Richard Guenther <rguenther@suse.de>
3579 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3580 * c-omp.c (c_finish_omp_for): Likewise.
3582 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3584 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3585 body on the next line.
3587 2011-07-08 Jason Merrill <jason@redhat.com>
3590 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3593 * c-common.c (c_apply_type_quals_to_decl): Don't check
3594 TYPE_NEEDS_CONSTRUCTING.
3596 2011-07-06 Richard Guenther <rguenther@suse.de>
3598 * c-common.c (c_common_nodes_and_builtins):
3599 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3601 2011-07-05 Richard Guenther <rguenther@suse.de>
3603 * c-common.c (c_common_nodes_and_builtins): Build all common
3606 2011-06-27 Jakub Jelinek <jakub@redhat.com>
3608 * c-common.h (c_tree_chain_next): New static inline function.
3610 * c-common.c (check_builtin_function_arguments): Handle
3611 BUILT_IN_ASSUME_ALIGNED.
3613 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
3615 * c-common.c: Add sync_ or SYNC__ to builtin names.
3616 * c-omp.c: Add sync_ or SYNC__ to builtin names.
3618 2011-06-20 Pierre Vittet <piervit@pvittet.com>
3620 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3622 (gen_pragma_handler): New union.
3623 (internal_pragma_handler): New type.
3624 (c_register_pragma_with_data)
3625 (c_register_pragma_with_expansion_and_data): New functions.
3627 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3628 (c_register_pragma, c_register_pragma_with_expansion)
3629 (c_invoke_pragma_handler): Changed to work with
3630 internal_pragma_handler.
3631 (c_register_pragma_with_data)
3632 (c_register_pragma_with_expansion_and_data): New functions.
3634 2011-06-14 Joseph Myers <joseph@codesourcery.com>
3636 * c-common.c: Include common/common-target.h.
3637 (handle_section_attribute): Use
3638 targetm_common.have_named_sections.
3639 * c-cppbuiltin.c: Include common/common-target.h.
3640 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3642 2011-06-10 Richard Guenther <rguenther@suse.de>
3644 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3645 to print a IDENTIFIER_NODE.
3647 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3648 Joseph Myers <joseph@codesourcery.com>
3650 * c.opt (fbuilding-libgcc): New option.
3651 * c-cppbuiltin.c (c_cpp_builtins): Define
3652 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3654 2011-06-07 Jason Merrill <jason@redhat.com>
3656 * c-common.c (max_tinst_depth): Lower default to 900.
3658 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3660 2011-06-07 Richard Guenther <rguenther@suse.de>
3662 * c-common.c (c_common_nodes_and_builtins): Do not set
3663 size_type_node or call set_sizetype.
3665 2011-06-07 Dodji Seketeli <dodji@redhat.com>
3668 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3669 type when using pointer comparison to compare types.
3671 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3673 * c.opt: Add -Wdelete-non-virtual-dtor.
3674 * c-opts.c (c_common_handle_option): Include it in -Wall.
3676 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3681 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3683 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3686 2011-05-27 Jakub Jelinek <jakub@redhat.com>
3689 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3690 C++ don't call c_common_truthvalue_conversion on void type arms.
3692 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3694 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3695 (stmt_list_stack): Define.
3696 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3697 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3699 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3701 * c-common.c (warning_candidate_p): Check for BLOCKs.
3703 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3705 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3708 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3710 * c-common.c (def_fn_type): Remove extra va_end.
3712 2011-05-23 Jason Merrill <jason@redhat.com>
3715 * c-common.c (c_common_get_narrower): New.
3716 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3718 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3720 * c-common.h (check_function_arguments): Tweak prototype of
3721 check_function_arguments.
3722 * c-common.c (check_function_arguments): Likewise. Adjust
3723 calls to check_function_nonnull, check_function_format, and
3724 check_function_sentinel.
3725 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3726 separate attributes and typelist arguments. Use
3727 FOREACH_FUNCTION_ARGS to iterate over argument types.
3729 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3731 * c-common.c (c_common_reswords): Reorder.
3732 * c-common.h (rid): Likewise.
3734 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3736 * c-common.c (def_fn_type): Don't call build_function_type, call
3737 build_function_type_array or build_varargs_function_type_array
3739 (c_common_nodes_and_builtins): Likewise.
3741 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3743 * c-common.c (c_add_case_label): Omit the loc argument to
3745 * c-common.h (build_case_label): Remove.
3746 * c-semantics.c (build_case_label): Remove.
3748 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3750 * c-objc.h (objc_start_method_definition): Update prototype.
3751 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3753 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3755 * c-common.c (check_main_parameter_types): Reindent. Don't use
3756 TYPE_ARG_TYPES directly.
3757 (handle_nonnull_attribute): Likewise.
3758 (sync_resolve_params): Likewise.
3759 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3760 to check_format_string.
3761 (handle_format_attribute): Likewise.
3762 (check_format_string): Take a function type to examine instead of
3763 a type list. Use a function_arg_iterator to step through argument
3766 2011-05-04 Richard Guenther <rguenther@suse.de>
3768 * c-common.c (fix_string_type): Use size_int for index type bounds.
3769 (start_fname_decls): Do not pass NULL to build_int_cst.
3770 (c_init_attributes): Likewise.
3771 * c-lex.c (c_lex_with_flags): Likewise.
3773 2011-04-27 Jason Merrill <jason@redhat.com>
3775 * c-common.c (make_tree_vector_from_list): New.
3776 * c-common.h: Declare it.
3778 2011-04-26 Richard Guenther <rguenther@suse.de>
3780 PR preprocessor/48248
3781 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3782 for output size with -P.
3784 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3786 * c-common.c (struct c_common_resword): Add __underlying_type.
3787 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3789 2011-04-20 Jim Meyering <meyering@redhat.com>
3791 * c-format.c (init_dollar_format_checking): Remove useless
3794 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3796 * c-objc.h (objc_get_interface_ivars): Removed.
3797 (objc_detect_field_duplicates): New.
3798 * stub-objc.c: Likewise.
3800 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3802 * stub-objc.c (objc_declare_protocols): Renamed to
3803 objc_declare_protocol.
3804 * c-objc.h: Likewise.
3806 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3808 * stub-objc.c (objc_declare_class): Updated argument name.
3810 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3812 * c-common.h (c_common_init_ts): Declare.
3813 * c-common.c (c_common_init_ts): Define.
3815 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3817 * c-objc.h (objc_build_message_expr): Updated prototype.
3818 * stub-objc.c (objc_build_message_expr): Likewise.
3820 2011-04-12 Martin Jambor <mjambor@suse.cz>
3822 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3825 2011-04-11 Richard Guenther <rguenther@suse.de>
3827 * c-common.c (complete_array_type): Build a range type of
3830 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3832 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3833 (handle_type_generic_attribute): Likewise.
3835 2011-04-07 Jason Merrill <jason@redhat.com>
3838 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3839 conversion from C++0x scoped enum.
3841 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3843 * c-target-def.h: New file.
3844 * c-target.def: New file.
3845 * c-target.h: New file.
3846 * c-common.c (targetcm): Don't define here.
3847 * c-common.h (default_handle_c_option): Declare.
3848 * c-format.c: Include c-target.h instead of target.h.
3849 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3851 (default_handle_c_option): Move from targhooks.c.
3853 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3855 PR preprocessor/48248
3856 * c-ppoutput.c (print): Add src_file field.
3857 (init_pp_output): Initialize it.
3858 (maybe_print_line): Don't optimize by adding up to 8 newlines
3859 if map->to_file and print.src_file are different file.
3860 (print_line): Update print.src_file.
3862 2011-03-25 Kai Tietz <ktietz@redhat.com>
3864 * c-ada-spec.c (compare_comment): Use filename_cmp
3865 instead of strcmp for filename.
3867 2011-03-25 Jeff Law <law@redhat.com>
3869 * c-common.c (def_fn_type): Add missing va_end.
3871 2011-03-25 Jason Merrill <jason@redhat.com>
3873 * c.opt: Add -std=c++03.
3875 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3877 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3879 2011-03-17 Kai Tietz
3882 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3883 Display allowed attributes for function pointer types.
3884 (pp_c_attributes_display): New function to display
3885 attributes having affects_type_identity flag set to true.
3886 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3888 * c-common.c (c_common_attribute_table):
3890 (c_common_format_attribute_table): Likewise.
3892 2011-03-18 Jason Merrill <jason@redhat.com>
3894 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3895 * c-common.h: Don't declare it here.
3896 * c-common.c: Or define it here.
3897 * c-opts.c (c_common_handle_option): Or set it here.
3900 * c-common.c (handle_transparent_union_attribute): Don't
3901 make a duplicate type in C++.
3903 2011-03-15 Jason Merrill <jason@redhat.com>
3905 * c-common.c (max_constexpr_depth): New.
3906 * c-common.h: Declare it.
3907 * c-opts.c (c_common_handle_option): Set it.
3908 * c.opt (fconstexpr-depth): New option.
3910 2011-03-11 Jason Merrill <jason@redhat.com>
3912 * c-common.c (attribute_takes_identifier_p): Add missing const.
3915 * c-common.c (attribute_takes_identifier_p): Assume that an
3916 unknown attribute takes an identifier.
3918 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3921 * c-common.c (c_type_hash): Call list_length instead of iterating
3922 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3924 2011-02-19 Jakub Jelinek <jakub@redhat.com>
3927 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3929 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3931 * c.opt (fobjc-abi-version=) New.
3932 (fobjc-nilcheck): New.
3934 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3937 * c-common.h (keyword_is_decl_specifier): Declare.
3938 * c-common.c (keyword_is_decl_specifier): Define.
3939 (keyword_is_function_specifier): New function.
3941 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3944 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3945 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3948 2011-01-26 Arnaud Charlet <charlet@adacore.com>
3950 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3952 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3955 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3956 after init_c_lex if pch_file is set.
3958 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3961 * c.opt (-fkeep-inline-dllexport): New switch.
3963 2011-01-12 Richard Guenther <rguenther@suse.de>
3966 * c-common.c (handle_weak_attribute): Warn instead of error
3967 on declaring an inline function weak.
3969 2011-01-05 Tom Tromey <tromey@redhat.com>
3971 * c-common.h (lvalue_error): Update.
3972 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3975 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
3978 * c-objc.h (objc_finish_message_expr): Added argument to
3981 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3983 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3986 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3988 * c-objc.h (objc_maybe_warn_exceptions): New.
3989 * stub-objc.c (objc_maybe_warn_exceptions): New.
3991 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3993 * c-common.h (readonly_error): Declare.
3994 * c-common.c (readonly_error): Define.
3996 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3998 * c-common.h (invalid_indirection_error): Declare.
3999 * c-common.c (invalid_indirection_error): Define.
4001 2010-12-03 Richard Guenther <rguenther@suse.de>
4004 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4005 (pp_c_unary_expression): Likewise.
4006 (pp_c_expression): Likewise.
4008 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4010 * c-common.h (objc_finish_function): New.
4011 (objc_non_volatilized_type): Removed.
4012 (objc_type_quals_match): Removed.
4013 * stub-objc.c (objc_finish_function): New.
4014 (objc_non_volatilized_type): Removed.
4015 (objc_type_quals_match): Removed.
4017 2010-11-30 Joseph Myers <joseph@codesourcery.com>
4019 * c-common.h (parse_optimize_options): Declare.
4020 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4021 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4023 2010-11-29 Joseph Myers <joseph@codesourcery.com>
4025 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4027 * c-pch.c (O_BINARY): Don't define here.
4028 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4030 2010-11-25 Joseph Myers <joseph@codesourcery.com>
4032 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4033 targetm.except_unwind_info.
4035 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4037 * c-opts.c (c_common_handle_option): Pass location to
4038 set_struct_debug_option.
4040 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4042 * c-common.c (visibility_options): Move from ../opts.c.
4043 * c-common.h (struct visibility_flags, visibility_options):
4045 * c-opts.c (finish_options): Rename to c_finish_options.
4046 (c_common_init): Update call to finish_options.
4048 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4051 * c-lex.c (lex_string): Check that each string in an Objective-C
4052 string concat sequence starts with either one or zero '@', and
4053 that there are no spurious '@' signs at the end.
4055 2010-11-20 Joseph Myers <joseph@codesourcery.com>
4057 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4058 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4059 HANDLE_PRAGMA_VISIBILITY.
4060 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4061 HANDLE_PRAGMA_VISIBILITY): Don't define.
4062 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4064 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4069 * c-common.h (keyword_begins_type_specifier): Declare.
4070 (keyword_is_storage_class_specifier): Declare.
4071 (keyword_is_type_qualifier): Declare.
4072 * c-common.c (keyword_begins_type_specifier): New function.
4073 (keyword_is_storage_class_specifier): New function.
4074 (keyword_is_type_qualifier): Declare.
4076 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4079 * c-common.c (in_late_binary_op): Define.
4080 (c_common_truthvalue_conversion): Check in_late_binary_op before
4081 calling c_save_expr.
4082 * c-common.h (in_late_binary_op): Declare.
4084 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4086 * c-opts.c (c_common_handle_option): Update calls to
4087 set_struct_debug_option.
4089 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4091 * c-common.h (objc_declare_protocols): Added additional argument.
4092 * stub-objc.c (objc_declare_protocol): Same change.
4094 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4097 * c-common.h (build_real_imag_expr): Declare.
4098 * c-semantics.c (build_real_imag_expr): Define.
4100 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4102 * c-opts.c (c_common_parse_file): Take no arguments.
4103 * c-common.h (c_common_parse_file): Update prototype.
4105 2010-11-16 Jakub Jelinek <jakub@redhat.com>
4108 * c-common.c (warning_candidate_p): Don't track non-const calls
4111 2010-11-15 Ian Lance Taylor <iant@google.com>
4113 * c-lex.c (init_c_lex): Set macro debug callbacks if
4114 flag_dump_go_spec is set.
4116 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4118 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4119 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4121 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4123 PR preprocessor/45038
4124 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4127 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4129 * c-common.h (c_family_lang_mask): Declare.
4130 * c-opts.c (c_family_lang_mask): Make extern.
4131 * c-pragma.c (handle_pragma_diagnostic): Use
4132 control_warning_option.
4134 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4136 * c-common.c (parse_optimize_options): Update call to
4138 * c-common.h (c_common_handle_option): Update prototype.
4139 * c-opts.c (c_common_handle_option): Take location_t parameter and
4140 pass it to other functions.
4142 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4144 * c-opts.c (warning_as_error_callback): Remove.
4145 (c_common_initialize_diagnostics): Don't call
4146 register_warning_as_error_callback.
4147 (c_common_handle_option): Handle -Werror=normalized= here.
4149 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4151 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4153 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4155 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4156 Remove trailing '.' from diagnostics.
4157 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4159 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4161 * c-common.c (parse_optimize_options): Pass global_dc to
4163 * c-opts.c (c_common_handle_option): Pass &global_options to
4164 set_Wstrict_aliasing.
4165 * c.opt (v): Don't mark Common or document here.
4167 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4170 * c-format.c (format_type): New type gcc_objc_string_format_type.
4171 (valid_stringptr_type_p): New.
4172 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4173 (check_format_string): Pass expected type, use
4174 valid_stringptr_type_p (), check that the format string types are
4175 consistent with the format specification.
4176 (decode_format_attr): Warn if NSString is used outside objective-c.
4177 (format_types_orig): Add NSString.
4179 (format_flags): New.
4180 (check_format_arg): Handle format strings requiring an external parser.
4181 first_target_format_type: New variable.
4182 (handle_format_attribute): Set up first_target_format_type, pass the
4183 expected format arg string type to check_format_string().
4184 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4185 * stub-objc.c (objc_string_ref_type_p): New.
4186 (objc_check_format_arg): New.
4188 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4190 Fixed using the Objective-C 2.0 dot-syntax with class names.
4191 * c-common.h (objc_build_class_component_ref): New.
4192 * stub-objc.c (objc_build_class_component_ref): New.
4194 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4196 * c.opt (Wproperty-assign-default): New option.
4198 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4200 Implemented -fobjc-std=objc1 flag.
4201 * c.opt (fobjc-std=objc1): New option.
4203 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4205 Implemented format and noreturn attributes for Objective-C methods.
4206 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4207 attribute for Objective-C methods.
4209 2010-10-31 Jason Merrill <jason@redhat.com>
4211 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4214 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4216 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4217 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4218 (objc_add_property_declaration): Removed arguments for copies and
4220 (objc_build_getter_call): Renamed to
4221 objc_maybe_build_component_ref.
4222 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4223 (objc_is_property_ref): New.
4224 * c-common.c (c_common_reswords): Removed copies and ivar.
4225 * stub-objc.c (objc_add_property_declaration): Removed arguments
4226 for copies and ivar.
4227 (objc_build_getter_call): Renamed to
4228 objc_maybe_build_component_ref.
4229 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4230 (objc_is_property_ref): New.
4232 2010-10-29 Arnaud Charlet <charlet@adacore.com>
4233 Matthew Gingell <gingell@adacore.com>
4235 * c-ada-spec.c (separate_class_package): New function.
4236 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4237 name of their enclosing package.
4238 (print_ada_declaration): Use separate_class_package.
4240 2010-10-27 Jason Merrill <jason@redhat.com>
4242 * c-common.c (c_common_reswords): Add __is_literal_type.
4243 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4245 * c-common.c (check_case_value): Remove special C++ code.
4247 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4249 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4250 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4252 (objc_add_property_declaration): Added additional arguments.
4253 (objc_property_attribute_kind): Removed.
4254 (objc_set_property_attr): Removed.
4255 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4257 * stub-objc.c (objc_add_property_declaration): Added additional
4259 (objc_set_property_attr): Removed.
4261 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4263 * c-common.h (objc_add_property_variable): Renamed to
4264 objc_add_property_declaration. Added location argument.
4265 * stub-objc.c (objc_add_property_variable): Same change.
4267 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4269 * c-common.h (objc_maybe_printable_name): New.
4270 * stub-objc.c (objc_maybe_printable_name): New.
4272 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4273 Andrew Pinski <pinskia@gmail.com>
4275 * c-common.h (c_common_mark_addressable_vec): Declare.
4276 * c-common.c (c_common_mark_addressable_vec): New function.
4278 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4280 * c-common.h (objc_set_method_type): Removed.
4281 (objc_add_method_declaration): Added boolean argument.
4282 (objc_start_method_definition): Same change.
4283 (objc_build_method_signature): Same change.
4284 * stub-objc.c (objc_set_method_type): Removed.
4285 (objc_add_method_declaration): Added boolean argument.
4286 (objc_start_method_definition): Same change.
4287 (objc_build_method_signature): Same change.
4289 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4291 * c-common.h (finish_file): Removed.
4292 (objc_write_global_declarations): New.
4293 * c-opts.c (c_common_parse_file): Do not call finish_file.
4294 * stub-objc.c (objc_write_global_declarations): New.
4296 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4298 Implemented parsing @synthesize and @dynamic for
4299 Objective-C/Objective-C++.
4300 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4301 (objc_add_synthesize_declaration): New.
4302 (objc_add_dynamic_declaration): New.
4303 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4304 * stub-objc.c (objc_add_synthesize_declaration): New.
4305 (objc_add_dynamic_declaration): New.
4307 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4310 * c-cppbuiltin.c (mode_has_fma): Move function here from
4311 builtins.c. Don't use the fma optab, instead just use the
4312 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4315 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4317 Merge from 'apple/trunk' branch on FSF servers.
4319 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4322 * c-common.h (objc_non_volatilized_type): New declaration
4323 * stub-objc.c (objc_non_volatilized_type): New stub.
4325 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4327 Merge from 'apple/trunk' branch on FSF servers.
4329 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4332 * c-common.h (objc_diagnose_private_ivar): New decl.
4333 * stub-objc.c (objc_diagnose_private_ivar): New stub.
4335 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4337 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4338 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4339 (objc_ivar_visibility_kind): New enum.
4340 (objc_set_visibility): Adjust prototype to use visibility enum.
4341 * stub-objc.c (objc_set_visibility): Adjust stub to use
4344 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4346 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4347 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4348 has the appropriate fma builtins.
4349 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4351 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4353 merge from FSF apple 'trunk' branch.
4354 2006 Fariborz Jahanian <fjahanian@apple.com>
4356 Radars 4436866, 4505126, 4506903, 4517826
4357 * c-common.c (c_common_resword): Define @property and its attributes.
4358 * c-common.h: Define property attribute enum entries.
4359 (OBJC_IS_PATTR_KEYWORD): New.
4360 (objc_property_attribute_kind): New enum.
4361 Declare objc_set_property_attr (), objc_add_property_variable (),
4362 objc_build_getter_call () and objc_build_setter_call ().
4363 * stub-objc.c (objc_set_property_attr): New stub.
4364 (objc_add_property_variable): Likewise.
4365 (objc_build_getter_call): Likewise.
4366 (objc_build_setter_call) Likewise.
4368 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4370 merge from FSF apple 'trunk' branch.
4371 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4373 Radar 3803157 (method attributes)
4374 * c-common.c (handle_deprecated_attribute): Recognize
4375 objc methods as valid declarations.
4376 * c-common.h: Declare objc_method_decl ().
4377 * stub-objc.c (objc_method_decl): New stub.
4379 2010-10-08 Joseph Myers <joseph@codesourcery.com>
4381 * c-common.c (parse_optimize_options): Call
4382 decode_cmdline_options_to_array_default_mask before
4383 decode_options. Update arguments to decode_options.
4384 * c-common.h (c_common_init_options_struct): Declare.
4385 * c-opts.c (c_common_init_options_struct): New. Split out from
4386 c_common_init_options.
4388 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4390 Implemented fast enumeration for Objective-C.
4391 * c-common.h (objc_finish_foreach_loop): New.
4392 * stub-objc.c (objc_finish_foreach_loop): New.
4394 2010-10-05 Joseph Myers <joseph@codesourcery.com>
4396 * c-common.h (struct diagnostic_context): Don't declare here.
4397 (c_common_initialize_diagnostics): Declare using
4398 diagnostic_context typedef.
4399 * c-opts.c (c_common_handle_option): Pass global_dc to
4400 handle_generated_option.
4402 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4404 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4405 handle_generated_option.
4407 2010-10-03 Ian Lance Taylor <iant@google.com>
4409 * c.opt (-fplan9-extensions): New option.
4411 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4413 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4415 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4416 of duplicating code.
4418 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4420 * c-common.c: Add two new entries for @optional
4421 and @required keywords.
4423 merge from FSF 'apple/trunk' branch.
4424 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4427 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4428 objective-c keywords.
4429 (objc_set_method_opt): New declaration.
4430 * stub-objc.c (objc_set_method_opt): New stub.
4432 2010-09-30 Joseph Myers <joseph@codesourcery.com>
4434 * c-common.c (handle_optimize_attribute): Pass &global_options to
4435 cl_optimization_save and cl_optimization_restore.
4436 * c-opts.c (c_common_handle_option): Pass &global_options to
4437 handle_generated_option.
4438 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4439 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4440 &global_options to cl_optimization_restore.
4442 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4444 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4445 Objective-C/Objective-C++ keywords.
4447 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4449 Merge from 'apple/trunk' branch on FSF servers.
4451 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4454 * c-common.h (objc_check_global_decl): New declaration.
4455 * stub-objc.c (objc_check_global_decl): New stub.
4457 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4459 * c.opt: Don't use VarExists.
4461 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4463 * c-common.c (c_cpp_error): Update names of diagnostic_context
4465 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4466 cl_optimization members.
4467 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4468 sanitize_cpp_opts, finish_options): Update names of cpp_options
4471 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4473 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4474 (objc_is_reserved_word): Removed.
4475 * c-common.c: Updated comments.
4476 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4477 objc_is_reserved_word.
4478 * stub-objc.c (objc_is_reserved_word): Removed.
4480 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4482 * c-common.h (objc_add_method_declaration): Adjust prototype to
4484 (objc_start_method_definition): Likewise.
4485 (objc_build_keyword_decl): Likewise.
4486 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4487 (objc_start_method_definition): Likewise.
4488 (objc_build_keyword_decl): Likewise.
4490 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4492 * c-common.h (objc_start_class_interface): Adjust prototype.
4493 (objc_start_category_interface): Likewise.
4494 (objc_start_protocol): Likewise.
4495 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4496 (objc_start_class_interface): Likewise.
4497 (objc_start_category_interface): Likewise.
4499 2010-09-27 Ian Lance Taylor <iant@google.com>
4501 * c-common.c (c_common_attribute_table): Add no_split_stack.
4502 (handle_no_split_stack_attribute): New static function.
4504 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4506 Merge from 'apple/trunk' branch on FSF servers.
4508 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4511 * c-common.h (objc_have_common_type): New declaration.
4512 * stub-objc.c (objc_have_common_type): New stub.
4514 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4517 * c-common.h (objc_common_type): New prototype.
4518 * stub-objc.c (objc_common_type): New stub.
4520 2010-09-24 Jan Hubicka <jh@suse.cz>
4522 * c-common.c (handle_leaf_attribute): New function.
4523 (struct attribute_spec c_common_att): Add leaf.
4525 2010-09-22 Joseph Myers <joseph@codesourcery.com>
4527 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4528 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4529 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4530 -include-barrier, -include-directory, -include-directory=,
4531 -include-directory-after, -include-directory-after=,
4532 -include-prefix, -include-prefix=, -include-with-prefix,
4533 -include-with-prefix=, -include-with-prefix-after,
4534 -include-with-prefix-after=, -include-with-prefix-before,
4535 -include-with-prefix-before=, -no-integrated-cpp,
4536 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4537 -output=, -pedantic, -pedantic-errors, -preprocess,
4538 -print-missing-file-dependencies, -trace-includes, -traditional,
4539 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4540 -user-dependencies, -verbose, -write-dependencies,
4541 -write-user-dependencies, no-integrated-cpp, traditional): New.
4543 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4546 * c-common.h (objc_start_method_definition): Return bool instead
4548 * stub-objc.c (objc_start_method_definition): Return bool instead
4551 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4554 * c-common.h (objc_get_interface_ivars): New declaration.
4555 * stub-objc.c (objc_get_interface_ivars): New stub.
4557 2010-09-15 Ian Lance Taylor <iant@google.com>
4559 * c-common.c (parse_optimize_options): Do not capitalize warning
4560 messages. Remove period at end of warning message.
4562 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4564 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4565 (handle_alias_attribute): ... here.
4566 (handle_ifunc_attribute): New.
4568 2010-09-06 Mark Mitchell <mark@codesourcery.com>
4570 * c-common.h (do_warn_double_promotion): Declare.
4571 * c-common.c (do_warn_double_promotion): Define.
4573 2010-09-05 Mark Mitchell <mark@codesourcery.com>
4575 * c.opt (Wdouble-promotion): New.
4577 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4579 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4580 fvtable-thunks, fxref): Mark no longer supported in help text.
4582 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4584 * c.opt (Wimport, fall-virtual, falt-external-templates,
4585 fdefault-inline, fenum-int-equiv, fexternal-templates,
4586 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4587 fname-mangling-version-, fnew-abi, fnonnull-objects,
4588 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4589 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4591 (fhandle-exceptions): Mark with Alias and Warn.
4592 * c-opts.c (c_common_handle_option): Don't handle options marked
4595 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4597 * c.opt (Wcomments, Werror-implicit-function-declaration,
4598 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4599 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4601 * c-common.c (option_codes): Use OPT_Wcomment instead of
4603 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4604 Don't handle options marked as aliases.
4606 2010-08-25 Richard Guenther <rguenther@suse.de>
4608 * c-common.c (c_common_get_alias_set): Remove special
4609 handling for pointers.
4611 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4613 * c-common.c: Use FOR_EACH_VEC_ELT.
4614 * c-gimplify.c: Likewise.
4615 * c-pragma.c: Likewise.
4617 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4619 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4621 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4623 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4624 instead of OPT_MDX and OPT_MMDX.
4626 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4628 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4630 2010-08-12 Joseph Myers <joseph@codesourcery.com>
4632 * c.opt (MD, MMD): Change to MDX and MMDX.
4633 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4635 2010-08-11 Joseph Myers <joseph@codesourcery.com>
4637 * c-opts.c (c_common_handle_option): Call handle_generated_option
4638 instead of handle_option.
4640 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4642 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4643 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4645 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4647 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4648 (pending_redefine_extname): Change type to a VEC.
4649 (add_to_renaming_pragma_list): Update for new type of
4650 pending_redefine_extname.
4651 (maybe_apply_renaming_pragma): Likewise.
4653 2010-08-04 Arnaud Charlet <charlet@adacore.com>
4655 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4657 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4658 decide whether a type has already been declared/seen.
4659 Do not go to the original type.
4660 (dump_nested_types): New parameter forward.
4661 Generate forward declaration if needed and mark type as visited.
4662 (print_ada_declaration): Call dump_nested_types if not already done.
4663 Mark types as visited.
4665 2010-08-03 Joseph Myers <joseph@codesourcery.com>
4667 * c.opt (-print-pch-checksum): Remove option.
4668 * c-opts.c (c_common_handle_option): Don't handle
4669 OPT_print_pch_checksum.
4671 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4673 * c-common.h (c_common_handle_option): Update prototype and return
4675 * c-opts.c (c_common_handle_option): Update prototype and return
4676 value type. Update calls to handle_option and
4677 enable_warning_as_error.
4679 2010-07-27 Jakub Jelinek <jakub@redhat.com>
4682 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4684 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4686 * c-common.h (c_common_missing_argument): Remove.
4687 * c-opts.c (c_common_missing_argument): Remove.
4688 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4689 idirafter, imacros, include, isysroot, isystem, iquote): Add
4691 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4693 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4695 * c-common.h (c_common_option_lang_mask,
4696 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4698 (c_common_init_options): Update prototype.
4699 * c-opts.c (c_common_option_lang_mask): New.
4700 (c_common_initialize_diagnostics): Split out of
4701 c_common_init_options.
4702 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4704 (c_common_init_options): Update prototype. Use decoded options in
4705 search for -lang-asm.
4707 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4709 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4710 * c-format.c: Likewise.
4712 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4714 * c-common.h: Include diagnostic-core.h. Error if already
4716 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4718 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4720 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4721 Do not include expr.h
4722 (vector_mode_valid_p): Move here.
4724 2010-06-21 DJ Delorie <dj@redhat.com>
4726 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4727 allow these pragmas anywhere.
4729 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4732 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4733 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4734 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4735 ggc_strdup instead of xstrdup.
4737 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4739 * c-cppbuiltin.c: Include cpp-id-data.h.
4740 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4741 (lazy_hex_fp_value): New function.
4742 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4744 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4746 * c-gimplify.c: Do not include tree-flow.h
4748 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4751 * c-common.c: Rename targetm member:
4752 targetm.enum_va_list -> targetm.enum_va_list_p
4754 2010-06-28 Anatoly Sokolov <aesok@post.ru>
4756 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4758 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4760 * c-cppbuiltin.c: Do not include except.h.
4762 2010-06-24 Andi Kleen <ak@linux.intel.com>
4764 * c-common.c (warn_for_omitted_condop): New.
4765 * c-common.h (warn_for_omitted_condop): Add prototype.
4767 2010-06-21 Joseph Myers <joseph@codesourcery.com>
4769 * c.opt (lang-objc): Remove.
4770 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4772 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4774 * c-opts.c: Include "tm_p.h".
4776 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4778 * c-common.c (parse_optimize_options): Update call to
4781 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4783 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4784 new type of types_used_by_cur_var_decl.
4786 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4789 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4790 for C++ standard compliance.
4792 2010-06-16 Jason Merrill <jason@redhat.com>
4794 * c.opt: Add -Wnoexcept.
4796 2010-06-16 Richard Guenther <rguenther@suse.de>
4799 * c-common.c (c_common_truthvalue_conversion): Remove
4800 premature and wrong optimization concering ADDR_EXPRs.
4802 2010-06-15 Arnaud Charlet <charlet@adacore.com>
4804 * c-ada-spec.c (dump_sloc): Remove column info.
4805 (is_simple_enum): New function.
4806 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4807 enum types when relevant.
4809 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4811 * c-common.c (conversion_warning): Warn at expression
4814 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4816 * c-opts.c (c_common_handle_option): Don't handle
4819 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4821 * c-pragma.c (push_alignment): Use typed GC allocation.
4822 (handle_pragma_push_options): Likewise.
4824 * c-common.c (parse_optimize_options): Likewise.
4826 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4829 2010-06-07 Joseph Myers <joseph@codesourcery.com>
4831 * c-common.c (flag_preprocess_only, 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_signed_bitfields, warn_strict_null_sentinel,
4835 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4836 flag_gen_declaration, flag_no_gnu_keywords,
4837 flag_implement_inlines, flag_implicit_templates,
4838 flag_implicit_inline_templates, flag_optional_diags,
4839 flag_elide_constructors, flag_default_inline, flag_rtti,
4840 flag_conserve_space, flag_access_control, flag_check_new,
4841 flag_new_for_scope, flag_weak, flag_working_directory,
4842 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4843 flag_enforce_eh_specs, flag_threadsafe_statics,
4844 flag_pretty_templates): Remove.
4845 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4846 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4847 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4848 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4849 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4850 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4851 flag_no_gnu_keywords, flag_implement_inlines,
4852 flag_implicit_templates, flag_implicit_inline_templates,
4853 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4854 flag_rtti, flag_conserve_space, flag_access_control,
4855 flag_check_new, flag_new_for_scope, flag_weak,
4856 flag_working_directory, flag_use_cxa_atexit,
4857 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4858 flag_threadsafe_statics, flag_pretty_templates,
4859 warn_strict_null_sentinel): Remove.
4860 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4861 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4862 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4863 fimplicit-inline-templates, fimplicit-templates,
4864 flax-vector-conversions, fms-extensions, fnil-receivers,
4865 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4866 frtti, fshort-double, fshort-enums, fshort-wchar,
4867 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4868 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4869 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4870 gen-decls, undef): Use Var.
4871 (fdefault-inline, foptional-diags): Document as doing nothing.
4872 * c-opts.c (c_common_handle_option): Remove cases for options now
4873 using Var. Mark ignored options as such.
4875 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4877 * c-common.c: Moved to here from parent directory.
4878 * c-common.def: Likewise.
4879 * c-common.h: Likewise.
4880 * c-cppbuiltin.c: Likewise.
4881 * c-dump.c: Likewise.
4882 * c-format.c: Likewise.
4883 * c-format.h : Likewise.
4884 * c-gimplify.c: Likewise.
4885 * c-lex.c: Likewise.
4886 * c-omp.c: Likewise.
4888 * c-opts.c: Likewise.
4889 * c-pch.c: Likewise.
4890 * c-ppoutput.c: Likewise.
4891 * c-pragma.c: Likewise.
4892 * c-pragma.h: Likewise.
4893 * c-pretty-print.c: Likewise.
4894 * c-pretty-print.h: Likewise.
4895 * c-semantics.c: Likewise.
4896 * stub-objc.c: Likewise.
4898 * c-common.c: Include gt-c-family-c-common.h.
4899 * c-pragma.c: Include gt-c-family-c-pragma.h.
4901 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4903 Copying and distribution of this file, with or without modification,
4904 are permitted in any medium without royalty provided the copyright
4905 notice and this notice are preserved.