1 2016-06-03 Release Manager
5 2016-03-30 Jakub Jelinek <jakub@redhat.com>
7 Backported from mainline
8 2016-02-19 Jakub Jelinek <jakub@redhat.com>
11 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
12 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
15 2016-02-15 Jakub Jelinek <jakub@redhat.com>
18 * c-common.c (sync_resolve_size): Diagnose too few arguments
19 even when params is non-NULL empty vector.
21 2016-02-10 Jakub Jelinek <jakub@redhat.com>
23 Backported from mainline
24 2015-12-03 Jakub Jelinek <jakub@redhat.com>
27 * c-ppoutput.c (print): Change printed field to bool.
28 Move src_file last for smaller padding.
29 (init_pp_output): Set print.printed to false instead of 0.
30 (scan_translation_unit): Fix up formatting. Set print.printed
31 to true after printing something other than newline.
32 (scan_translation_unit_trad): Set print.printed to true instead of 1.
33 (maybe_print_line_1): Set print.printed to false instead of 0.
34 (print_line_1): Likewise.
35 (do_line_change): Set print.printed to true instead of 1.
36 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
37 dump_macro): Set print.printed to false after printing newline.
39 2015-12-16 Joseph Myers <joseph@codesourcery.com>
42 * c-common.h (c_build_qualified_type): Add extra default
45 2015-12-04 Release Manager
49 2015-10-02 Joseph Myers <joseph@codesourcery.com>
51 * c.opt (std=c11): Do not describe as experimental.
52 (std=gnu11): Likewise.
53 (std=iso9899:2011): Likewise.
55 2015-09-25 Marek Polacek <polacek@redhat.com>
58 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
60 2015-08-11 Marek Polacek <polacek@redhat.com>
62 Backported from mainline
63 2015-08-03 Marek Polacek <polacek@redhat.com>
66 * c-ubsan.c: Include gimplify.h.
67 (ubsan_instrument_division): Unshare OP0 and OP1.
68 (ubsan_instrument_shift): Likewise.
70 2015-07-16 Release Manager
74 2015-07-10 Jakub Jelinek <jakub@redhat.com>
76 Backported from mainline
77 2015-07-08 Jakub Jelinek <jakub@redhat.com>
79 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
80 are to be removed, return NULL rather than original clauses list.
82 2015-07-01 Jason Merrill <jason@redhat.com>
84 * c-opts.c (c_common_post_options): Highest ABI version is 9.
86 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
87 Pierre-Marie de Rodat <derodat@adacore.com>
89 * c-ada-spec.c (in_function): Delete.
90 (dump_generic_ada_node): Do not change in_function and remove the
91 redundant code dealing with it.
92 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
93 (print_ada_methods): Output the static member functions in a nested
94 package after the regular methods as well as associated renamings.
96 2015-04-22 Release Manager
100 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
103 * c-common.c (c_default_pointer_mode): Add definition.
104 * c-common.h (c_default_pointer_mode): Add declaration.
106 2015-03-11 Jakub Jelinek <jakub@redhat.com>
108 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
109 on record_builtin_type argument.
111 2015-03-10 Jakub Jelinek <jakub@redhat.com>
114 * c-common.c (warn_logical_not_parentheses): Don't warn for
117 2015-03-07 Marek Polacek <polacek@redhat.com>
120 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
121 before trying to figure out whether we have a flexible array member.
123 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
124 Jonathan Wakely <jwakely.gcc@gmail.com>
126 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
128 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
131 * c-ada-spec.c (print_destructor): Remove obsolete code.
133 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
135 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
136 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
137 DECL_TEMPLATE_RESULT emulations.
138 (dump_ada_template)): Add guard for TYPE_METHODS.
140 2015-02-27 Marek Polacek <polacek@redhat.com>
143 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
145 2015-02-27 Kai Tietz <ktietz@redhat.com>
148 * c-pragma.c (handle_pragma_weak): Do not try to create
149 weak/alias of declarations not being function, or variable
152 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
155 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
157 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
159 2015-02-16 Marek Polacek <polacek@redhat.com>
162 * c-format.c (check_format_types): Handle null param.
164 2015-02-13 Marek Polacek <polacek@redhat.com>
167 * c-format.c (check_format_types): Don't warn about different
168 signedness if the original value is in the range of WANTED_TYPE.
170 2015-02-12 Jason Merrill <jason@redhat.com>
173 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
174 to the current highest version.
175 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
177 2015-02-04 Jakub Jelinek <jakub@redhat.com>
181 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
182 instead of RDIV_EXPR. Use build_binary_op instead of
185 2015-01-30 Joseph Myers <joseph@codesourcery.com>
187 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
188 to pass input_location as first argument.
190 2015-01-23 Tom de Vries <tom@codesourcery.com>
193 * c.opt (fopenacc): Mark as LTO option.
195 2015-01-23 Tom de Vries <tom@codesourcery.com>
198 * c.opt (fopenmp): Mark as LTO option.
200 2015-01-21 Jakub Jelinek <jakub@redhat.com>
203 * cilk.c (fill_decls_vec): Only put decls into vector v.
204 (compare_decls): Fix up formatting.
206 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
209 * cilk.c: Include vec.h.
210 (struct cilk_decls): New structure.
211 (wrapper_parm_cb): Split this function to...
212 (fill_decls_vec): ...this...
213 (create_parm_list): ...and this.
214 (compare_decls): New function.
215 (for_local_cb): Remove.
216 (wrapper_local_cb): Ditto.
217 (build_wrapper_type): For now first traverse and fill vector of
218 declarations then sort it and then deal with sorted vector.
219 (cilk_outline): Ditto.
220 (declare_one_free_variable): Ditto.
222 2015-01-21 Jason Merrill <jason@redhat.com>
225 * c-format.c (check_format_arg): Call decl_constant_value.
227 2015-01-19 Martin Liska <mliska@suse.cz>
229 * c-common.c (handle_noicf_attribute): New function.
231 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
232 Bernd Schmidt <bernds@codesourcery.com>
233 James Norris <jnorris@codesourcery.com>
234 Cesar Philippidis <cesar@codesourcery.com>
235 Ilmir Usmanov <i.usmanov@samsung.com>
236 Jakub Jelinek <jakub@redhat.com>
238 * c.opt (fopenacc): New option.
239 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
240 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
242 * c-common.h (c_finish_oacc_wait): New prototype.
243 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
244 (c_finish_oacc_wait): New function.
245 * c-pragma.c (oacc_pragmas): New variable.
246 (c_pp_lookup_pragma, init_pragma): Handle it.
247 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
248 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
249 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
250 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
251 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
252 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
253 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
254 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
255 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
256 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
257 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
258 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
259 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
260 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
261 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
262 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
263 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
264 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
265 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
266 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
267 PRAGMA_OACC_CLAUSE_WORKER.
269 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
271 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
272 for the new option fstack-protector_explicit.
273 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
274 (handle_stack_protect_attribute): New function.
276 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
278 * c.opt: New option -Warray-bounds=.
280 2015-01-09 Michael Collison <michael.collison@linaro.org>
282 * array-notation-common.c: Include hash-set.h, machmode.h,
283 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
284 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
285 * c-ada-spec.c: Ditto.
286 * c-cilkplus.c: Ditto.
287 * c-common.c: Include input.h due to flattening of tree.h.
288 Define macro GCC_C_COMMON_C.
289 * c-common.h: Flatten tree.h header files into c-common.h.
290 Remove include of tree-core.h.
291 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
292 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
293 fold-const.h, wide-int.h, and inchash.h due to
294 flattening of tree.h.
296 * c-format.c: Flatten tree.h header files into c-common.h.
297 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
298 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
299 fold-const.h, wide-int.h, and inchash.h due to
300 flattening of tree.h.
301 * c-dump.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
304 flattening of tree.h.
305 * c-format.c: Include hash-set.h, machmode.h,
306 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
307 fold-const.h, wide-int.h, inchash.h and real.h due to
308 flattening of tree.h.
309 * c-gimplify.c: Include hash-set.h, machmode.h,
310 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
311 fold-const.h, wide-int.h, and inchash.h due to
312 flattening of tree.h.
318 * c-ppoutput.c: Ditto.
320 * c-pretty-print.c: Ditto.
321 * c-semantics.c: Ditto.
323 * stub-objc.c: Ditto.
325 2015-01-08 Jason Merrill <jason@redhat.com>
327 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
328 do_ubsan_in_current_function.
329 (ubsan_maybe_instrument_reference_or_call): Likewise.
330 * c-ubsan.h: Declare it.
332 2015-01-08 Mike Stump <mikestump@comcast.net>
334 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
336 2015-01-07 Marek Polacek <polacek@redhat.com>
339 * c-common.c (c_fully_fold_internal): Warn for division and modulo
340 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
342 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
345 * c.opt (Wsuggest-override): New option.
347 2015-01-05 Jakub Jelinek <jakub@redhat.com>
349 Update copyright years.
351 2015-01-05 Marek Polacek <polacek@redhat.com>
354 * c-common.c (warn_array_subscript_with_type_char): Add location_t
356 * c-common.h (warn_array_subscript_with_type_char): Update
359 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
361 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
362 Control macro with flag_sized_deallocation.
364 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
366 * c.opt (Wdiscarded-array-qualifiers): New option.
368 2014-12-19 Jakub Jelinek <jakub@redhat.com>
370 PR preprocessor/63831
371 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
372 and __has_cpp_attribute here.
373 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
374 c_common_has_attribute.
375 * c-common.h (c_common_has_attribute): New prototype.
376 * c-lex.c (init_c_lex): Set cb->has_attribute to
377 c_common_has_attribute instead of cb_has_attribute.
378 (get_token_no_padding): New function.
379 (cb_has_attribute): Renamed to ...
380 (c_common_has_attribute): ... this. No longer static. Use
381 get_token_no_padding, require ()s, don't build TREE_LIST
382 unnecessarily, fix up formatting, adjust diagnostics, call
385 2014-12-15 Jason Merrill <jason@redhat.com>
387 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
388 (-Wsized-deallocation): New.
389 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
390 to on in C++14 and up.
392 2014-12-11 Jason Merrill <jason@redhat.com>
394 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
396 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
397 we aren't complaining about VLAs.
399 2014-12-06 Marek Polacek <polacek@redhat.com>
401 PR tree-optimization/64183
402 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
403 shift-expression if it is integer_type_node. Use types_compatible_p.
405 2014-11-29 Jakub Jelinek <jakub@redhat.com>
407 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
408 last argument from create_tmp_var_raw and create_tmp_var calls.
409 * cilk.c (gimplify_cilk_spawn): Likewise.
410 * c-omp.c (c_finish_omp_atomic): Likewise.
412 2014-11-28 Marek Polacek <polacek@redhat.com>
414 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
415 instead of unsigned_type_node.
417 2014-11-28 Marek Polacek <polacek@redhat.com>
420 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
422 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
423 expression to unsigned_type_node.
425 2014-11-20 Mark Wielaard <mjw@redhat.com>
428 * c-opts.c (set_std_c89): Set lang_hooks.name.
429 (set_std_c99): Likewise.
430 (set_std_c11): Likewise.
431 (set_std_cxx98): Likewise.
432 (set_std_cxx11): Likewise.
433 (set_std_cxx14): Likewise.
434 (set_std_cxx1z): Likewise.
436 2014-11-21 Jakub Jelinek <jakub@redhat.com>
439 * c-common.h (convert_vector_to_pointer_for_subscript): Change
441 * c-common.c: Include gimple-expr.h.
442 (convert_vector_to_pointer_for_subscript): Change return type to
443 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
444 and copy it into a TARGET_EXPR and use that instead of *vecp
447 2014-11-19 David Malcolm <dmalcolm@redhat.com>
449 Merger of git branch "gimple-classes-v2-option-3".
450 * ChangeLog.gimple-classes: New.
451 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
452 from being just a vec<gimple> to a vec<gbind *>.
454 2014-11-18 Jakub Jelinek <jakub@redhat.com>
457 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
458 argument to ptype, set type to TREE_TYPE (ptype). Don't call
459 get_pointer_alignment for non-pointers. Use ptype, or if it is
460 reference type, corresponding pointer type, as type of kind
462 (ubsan_maybe_instrument_reference,
463 ubsan_maybe_instrument_member_call): Adjust callers.
465 2014-11-15 Marek Polacek <polacek@redhat.com>
468 * array-notation-common.c (is_sec_implicit_index_fn): Return false
470 (extract_array_notation_exprs): Return for NULL node.
472 2014-11-12 Joseph Myers <joseph@codesourcery.com>
474 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
475 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
477 2014-11-12 Jakub Jelinek <jakub@redhat.com>
480 * c-common.c (check_builtin_function_arguments): Handle
481 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
483 2014-11-10 Andi Kleen <ak@linux.intel.com>
486 * c-common.h (check_no_cilk): Declare.
487 * cilk.c (get_error_location): New function.
488 (check_no_cilk): Dito.
490 2014-11-10 Andi Kleen <ak@linux.intel.com>
492 * cilk.c (recognize_spawn): Use expression location
495 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
497 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
499 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
501 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
502 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
503 (__cpp_range_based_for, __cpp_initializer_lists,
504 __cpp_delegating_constructors, __cpp_nsdmi,
505 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
506 for C++11; (__cpp_attribute_deprecated): Remove in favor of
508 * c-lex.c (cb_has_attribute): New callback CPP function;
509 (init_c_lex): Set has_attribute callback.
511 2014-11-04 Richard Biener <rguenther@suse.de>
513 * c-common.c (shorten_compare): Do not shorten mixed
514 DFP and non-DFP compares.
516 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
518 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
519 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
520 Commentary and rearrangement of tests.
521 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
522 Commentary and rearrangement of tests.
523 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
524 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
526 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
528 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
529 enum from machine_mode.
531 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
533 * c-common.c: Adjust include files.
534 * c-gimplify.c: Ditto.
539 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
541 * c-gimplify.c: Adjust include files.
543 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
546 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
547 c_common_initialize_diagnostics.
548 * c-common.h: Likewise.
550 2014-10-24 Marek Polacek <polacek@redhat.com>
553 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
554 print "struct"/"union"/"enum" for typedefed names.
556 2014-10-23 Marek Polacek <polacek@redhat.com>
558 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
561 2014-10-22 Jakub Jelinek <jakub@redhat.com>
562 Yury Gribov <y.gribov@samsung.com>
564 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
565 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
566 instead of flag_sanitize_recover as bool flag.
568 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
570 * cilk.c: Revert previous change.
572 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
575 * cilk.c: Include vec.h.
576 (struct cilk_decls): New structure.
577 (wrapper_parm_cb): Split this function to...
578 (fill_decls_vec): ...this...
579 (create_parm_list): ...and this.
580 (compare_decls): New function.
581 (for_local_cb): Remove.
582 (wrapper_local_cb): Ditto.
583 (build_wrapper_type): For now first traverse and fill vector of
584 declarations then sort it and then deal with sorted vector.
585 (cilk_outline): Ditto.
586 (declare_one_free_variable): Ditto.
588 2014-10-17 Marek Polacek <polacek@redhat.com>
590 * c-opts.c (c_common_post_options): Set warn_implicit_int.
591 * c.opt (Wimplicit-int): Initialize to -1.
593 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
595 * c-pragma.c: Adjust include files.
596 * c-semantics.c: Likewise.
598 2014-10-16 DJ Delorie <dj@redhat.com>
600 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
603 2014-10-14 Jason Merrill <jason@redhat.com>
606 * c-common.h (CPP_PREPARSED_EXPR): New.
607 (N_CP_TTYPES): Adjust.
609 2014-10-15 Marek Polacek <polacek@redhat.com>
611 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
613 2014-10-14 DJ Delorie <dj@redhat.com>
615 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
616 types, not just __int128.
617 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
618 types, not just __int128.
619 (cpp_atomic_builtins): Round pointer sizes up.
620 (type_suffix): Use type precision, not specific types.
621 * c-common.c (c_common_reswords): Remove __int128 special case.
622 (c_common_type_for_size): Check for all __intN types, not just
624 (c_common_type_for_mode): Likewise.
625 (c_common_signed_or_unsigned_type): Likewise.
626 (c_build_bitfield_integer_type): Likewise.
627 (c_common_nodes_and_builtins): Likewise.
628 (keyword_begins_type_specifier): Likewise.
629 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
632 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
634 * c-common.c: Use hash_table instead of hashtab.
636 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
638 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
641 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
646 * c-common.c (warn_logical_operator): Punt for vectors.
648 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
650 Implement SD-6: SG10 Feature Test Recommendations
651 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
652 macros and the __has_header macro.
654 2014-09-30 Jason Merrill <jason@redhat.com>
656 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
657 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
658 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
660 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
661 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
663 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
664 * c-common.c (c_common_reswords): Remove __is_convertible_to.
666 2014-09-24 Marek Polacek <polacek@redhat.com>
670 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
672 2014-09-23 Andi Kleen <ak@linux.intel.com>
674 * c-common.c (handle_no_reorder_attribute): New function.
675 (c_common_attribute_table): Add no_reorder attribute.
677 2014-09-22 Joseph Myers <joseph@codesourcery.com>
679 * c-cppbuiltin.c (c_cpp_builtins): Define
680 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
683 2014-09-18 Joseph Myers <joseph@codesourcery.com>
685 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
686 for supported floating-point modes.
688 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
690 * c.opt (Wpsabi): Use LangEnabledBy.
691 * c-opts.c (c_common_handle_option): Do not handle here.
693 2014-09-12 Joseph Myers <joseph@codesourcery.com>
695 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
696 macros for floating-point modes.
698 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
701 * c-cppbuiltin.c (builtin_define_float_constants): Correct
702 __*_DENORM_MIN__ without denormals.
704 2014-09-10 Jakub Jelinek <jakub@redhat.com>
706 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
707 ubsan_instrument_vla, ubsan_instrument_return): Adjust
708 ubsan_create_data callers.
709 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
710 index is constant or BIT_AND_EXPR with constant mask and is
711 small enough for the bound.
712 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
713 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
715 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
717 * c.opt: Add CppReason to various flags.
718 (Wdate-time): Re-sort.
719 * c-common.c: Include c-common.h earlier.
720 (struct reason_option_codes_t): Delete.
721 (c_option_controlling_cpp_error): Prefix global type and struct
724 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
726 * c.opt (Wnormalized): New.
727 (Wnormalized=): Use Enum and Reject Negative.
728 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
730 2014-09-08 Joseph Myers <joseph@codesourcery.com>
732 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
733 digits of floating-point modes if -fbuilding-libgcc.
735 2014-09-05 Joseph Myers <joseph@codesourcery.com>
737 * c-cppbuiltin.c (c_cpp_builtins): Also define
738 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
739 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
740 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
741 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
742 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
743 __LIBGCC_STACK_GROWS_DOWNWARD__,
744 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
745 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
746 __LIBGCC_DWARF_FRAME_REGISTERS__,
747 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
748 __LIBGCC_STACK_POINTER_REGNUM__ and
749 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
750 (builtin_define_with_value): Handle backslash-escaping in string
753 2014-09-05 Richard Biener <rguenther@suse.de>
756 * c-format.c (check_format_arg): Properly handle
757 effectively signed POINTER_PLUS_EXPR offset.
759 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
761 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
762 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
763 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
765 * c-opts.c (c_common_handle_option): Do not handle here.
766 (sanitize_cpp_opts): Likewise.
767 * c-common.c (struct reason_option_codes_t): Handle
768 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
770 2014-09-03 Marek Polacek <polacek@redhat.com>
772 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
774 2014-09-02 Jakub Jelinek <jakub@redhat.com>
775 Balaji V. Iyer <balaji.v.iyer@intel.com>
776 Igor Zamyatin <igor.zamyatin@intel.com>
778 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
779 * c-common.c (c_common_reswords): Added _Cilk_for.
780 * c-common.h (enum rid): Added RID_CILK_FOR.
781 (cilk_for_number_of_iterations): Add declaration.
782 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
784 * c-pragma.c (init_pragma): Register "grainsize" pragma.
785 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
787 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
789 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
790 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
791 Wundef): Use CPP, Var and Init.
792 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
794 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
796 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
797 * c-opts.c (c_common_handle_option): Do not handle here.
799 2014-08-25 Jason Merrill <jason@redhat.com>
801 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
802 -std=c++14 and -std=gnu++14, rather than the reverse.
803 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
804 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
805 * c-common.h (cxx_dialect): Remove cxx1y.
807 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
809 * c-common.h (enum cxx_dialect): Add cxx14.
810 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
811 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
812 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
814 2014-08-22 Jason Merrill <jason@redhat.com>
816 * c.opt (std=gnu++17): Fix alias.
818 2014-08-22 Marek Polacek <polacek@redhat.com>
821 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
822 check for vector types. Drop LHS argument.
823 * c-common.h (warn_logical_not_parentheses): Adjust.
825 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
827 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
828 (Wmultichar): Likewise.
829 (Wdate-time): Use C-family languages instead of Common. Use CPP
831 * c-opts.c (c_common_handle_option): Do not handle the above
833 (sanitize_cpp_opts): Likewise.
835 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
838 * c-opts.c: Include tree-diagnostics.h.
839 (c_diagnostic_finalizer): New.
840 (c_common_initialize_diagnostics): Use it.
842 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
844 PR preprocessor/51303
845 * c-common.c (struct reason_option_codes_t option_codes):
846 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
848 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
852 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
853 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
854 (c_common_post_options): Call init_global_opts_from_cpp.
855 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
857 2014-08-19 Marek Polacek <polacek@redhat.com>
860 * c-common.c (maybe_warn_bool_compare): New function.
861 * c-common.h (maybe_warn_bool_compare): Declare.
862 * c.opt (Wbool-compare): New option.
864 2014-08-19 Marek Polacek <polacek@redhat.com>
866 * c.opt (Wc99-c11-compat): New option.
868 2014-08-19 Marek Polacek <polacek@redhat.com>
870 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
871 to warn_c90_c99_compat.
872 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
875 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
876 Steven Bosscher <steven@gcc.gnu.org>
879 * c-format.c: Add extra_arg_loc and format_string_loc to struct
880 format_check_results.
881 (check_function_format): Use true and add comment for boolean
883 (finish_dollar_format_checking): Use explicit location when warning.
884 (check_format_info): Likewise.
885 (check_format_arg): Set extra_arg_loc and format_string_loc.
886 (check_format_info_main): Use explicit location when warning.
887 (check_format_types): Pass explicit location.
888 (format_type_warning): Likewise.
890 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
893 * c-format.c: Handle Fortran flags.
895 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
898 * array-notation-common.c (find_rank): Added handling for other
901 2014-08-10 Marek Polacek <polacek@redhat.com>
904 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
905 * c.opt (Wc90-c99-compat): Add option.
907 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
909 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
911 2014-08-03 Marek Polacek <polacek@redhat.com>
913 * c-common.c (check_case_value): Add location_t parameter. Use it.
914 (c_add_case_label): Pass loc to check_case_value.
916 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
918 * cilk.c: Use hash_map instead of pointer_map.
920 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
922 * c-gimplify.c: Use hash_set instead of pointer_set.
924 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
927 * array-notation-common.c (extract_array_notation_exprs): Handling
930 2014-08-01 Jakub Jelinek <jakub@redhat.com>
932 * c-common.h (min_align_of_type): Removed prototype.
933 * c-common.c (min_align_of_type): Removed.
934 * c-ubsan.h (ubsan_maybe_instrument_reference,
935 ubsan_maybe_instrument_member_call): New prototypes.
936 * c-ubsan.c: Include stor-layout.h and builtins.h.
937 (ubsan_maybe_instrument_reference_or_call,
938 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
941 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
944 * c.opt (-Wreturn-local-addr): Move to common.opt.
946 2014-07-30 Jason Merrill <jason@redhat.com>
951 * c.opt (-fuse-all-virtuals): New.
953 2014-07-30 Tom Tromey <tromey@redhat.com>
956 * c.opt (Wdesignated-init): New option.
957 * c-common.c (c_common_attribute_table): Add "designated_init".
958 (handle_designated_init): New function.
960 2014-07-24 Marek Polacek <polacek@redhat.com>
963 * c-opts.c (c_finish_options): If -imacros is in effect, return.
965 2014-07-16 Dodji Seketeli <dodji@redhat.com>
967 PR preprocessor/60723 - missing system-ness marks for macro tokens
968 * c-ppoutput.c (struct print::prev_was_system_token): New data
970 (init_pp_output): Initialize it.
971 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
972 (do_line_change): Return a flag saying if a line marker was
974 (scan_translation_unit): Detect if the system-ness of the token we
975 are about to emit is different from the one of the previously
976 emitted token. If so, emit a line marker. Avoid emitting useless
977 adjacent line markers. Avoid emitting line markers for tokens
978 originating from the expansion of built-in macros.
979 (scan_translation_unit_directives_only): Adjust.
981 2014-07-15 Marek Polacek <polacek@redhat.com>
983 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
984 TYPE_MAX_VALUE is NULL.
986 2014-07-14 Jakub Jelinek <jakub@redhat.com>
989 * c.opt (Wmemset-transposed-args): New warning.
991 2014-07-10 Jason Merrill <jason@redhat.com>
995 * c.opt (-fuse-all-virtuals): New.
997 2014-07-09 Richard Biener <rguenther@suse.de>
1000 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1001 using unsigned arithmetic if overflow does not wrap instead of
1002 if overflow is undefined.
1004 2014-07-06 Marek Polacek <polacek@redhat.com>
1007 * c.opt (Wsizeof-array-argument): New option.
1009 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1011 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1012 comments->count <= 1, as comments->entries might be NULL.
1014 2014-07-01 Marek Polacek <polacek@redhat.com>
1016 * c.opt (Wint-conversion): New option.
1018 2014-07-01 Marek Polacek <polacek@redhat.com>
1021 * c.opt (Wincompatible-pointer-types): New option.
1023 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1026 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1027 Do not discard TYPE_QUALS of type.
1029 2014-06-26 Jason Merrill <jason@redhat.com>
1031 * c-common.h (enum cxx_dialect): Add cxx1z.
1032 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1033 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1035 2014-06-26 Teresa Johnson <tejohnson@google.com>
1037 * c-common.h (get_dump_info): Declare.
1038 * c-gimplify.c (c_genericize): Use saved dump files.
1039 * c-opts.c (c_common_parse_file): Begin and end dumps
1040 once around parsing invocation.
1041 (get_dump_info): New function.
1043 2014-06-23 Marek Polacek <polacek@redhat.com>
1044 Andrew MacLeod <amacleod@redhat.com>
1047 * c-common.c (get_atomic_generic_size): Don't segfault if the
1048 type doesn't have a size.
1050 2014-06-20 Marek Polacek <polacek@redhat.com>
1052 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1053 (ubsan_walk_array_refs_r): New function.
1054 (c_genericize): Instrument array bounds.
1055 * c-ubsan.c: Include "internal-fn.h".
1056 (ubsan_instrument_division): Mark instrumented arrays as having
1057 side effects. Adjust ubsan_type_descriptor call.
1058 (ubsan_instrument_shift): Likewise.
1059 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1060 (ubsan_instrument_bounds): New function.
1061 (ubsan_array_ref_instrumented_p): New function.
1062 (ubsan_maybe_instrument_array_ref): New function.
1063 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1064 (ubsan_array_ref_instrumented_p): Declare.
1065 (ubsan_maybe_instrument_array_ref): Declare.
1067 2014-06-20 Hale Wang <hale.wang@arm.com>
1070 * c.opt (fshort-enums): Add to LTO.
1071 * c.opt (fshort-wchar): Likewise.
1073 2014-06-16 Marek Polacek <polacek@redhat.com>
1076 * c.opt (Wswitch-bool): Add Var.
1078 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1081 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1082 #pragma omp target teams or
1083 #pragma omp {,target }teams distribute simd.
1085 2014-06-12 Jason Merrill <jason@redhat.com>
1087 * c.opt (Wabi=, fabi-compat-version): New.
1088 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1089 (c_common_post_options): Handle flag_abi_compat_version default.
1090 Disallow -fabi-compat-version=1.
1091 * c-common.h (abi_version_crosses): New.
1093 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1095 * c-common.c (handle_section_attribute): Update handling for
1096 section names that are no longer trees.
1098 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1101 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1102 (omp_pragmas): ... back here.
1104 2014-06-05 Marek Polacek <polacek@redhat.com>
1107 * c-common.c (warn_logical_not_parentheses): New function.
1108 * c-common.h (warn_logical_not_parentheses): Declare.
1109 * c.opt (Wlogical-not-parentheses): New option.
1111 2014-06-04 Marek Polacek <polacek@redhat.com>
1114 * c-common.c (check_case_bounds): Add location parameter.
1116 (c_add_case_label): Pass loc to check_case_bounds.
1118 2014-06-03 Marek Polacek <polacek@redhat.com>
1121 * c.opt (Wswitch-bool): New option.
1123 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1125 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
1127 (record_types_used_by_current_var_decl): Move prototype to where
1130 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
1131 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
1132 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
1134 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1136 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
1137 * c-common.c (c_common_nodes_and_builtins): Don't initialize
1139 * c-pretty-print.c (pp_c_void_constant): New function.
1140 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
1141 (c_pretty_printer::expression): Handle VOID_CST.
1142 * cilk.c (extract_free_variables): Likewise.
1143 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
1144 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
1146 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
1148 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
1149 * c-pragma.c (push_alignment): Adjust.
1150 (handle_pragma_push_options): Likewise.
1152 2014-05-09 Marek Polacek <polacek@redhat.com>
1155 * c-common.c (check_user_alignment): Return -1 if alignment is error
1157 (handle_aligned_attribute): Don't call default_conversion on
1159 (handle_vector_size_attribute): Likewise.
1160 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
1161 (handle_sentinel_attribute): Call default_conversion and allow even
1162 integral types as an argument.
1164 2014-05-08 Marek Polacek <polacek@redhat.com>
1167 * c-common.c (min_align_of_type): New function factored out from...
1168 (c_sizeof_or_alignof_type): ...here.
1169 * c-common.h (min_align_of_type): Declare.
1171 2014-05-08 Marek Polacek <polacek@redhat.com>
1174 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
1175 parameter type of main.
1177 2014-05-07 DJ Delorie <dj@redhat.com>
1179 * c-cppbuiltin.c (print_bits_of_hex): New.
1180 (builtin_define_type_minmax): Print values using hex so as not to
1181 require a pre-computed list of string values.
1183 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
1184 Mike Stump <mikestump@comcast.net>
1185 Richard Sandiford <rdsandiford@googlemail.com>
1187 * c-ada-spec.c: Include wide-int.h.
1188 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
1189 (dump_generic_ada_node): Use wide-int interfaces.
1190 * c-common.c: Include wide-int-print.h.
1191 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
1192 (pointer_int_sum): Use wide-int interfaces.
1193 (c_common_nodes_and_builtins): Use make_int_cst.
1194 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
1195 (handle_alloc_size_attribute): Use wide-int interfaces.
1196 (get_nonnull_operand): Likewise.
1197 * c-format.c (get_constant): Use tree_fits_uhwi_p.
1198 * c-lex.c: Include wide-int.h.
1199 (narrowest_unsigned_type): Take a widest_int rather than two
1201 (narrowest_signed_type): Likewise.
1202 (interpret_integer): Update accordingly. Use wide-int interfaces.
1203 (lex_charconst): Use wide-int interfaces.
1204 * c-pretty-print.c: Include wide-int.h.
1205 (pp_c_integer_constant): Use wide-int interfaces.
1206 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
1207 INT_CST_LT_UNSIGNED.
1209 2014-05-06 Richard Biener <rguenther@suse.de>
1211 * c-opts.c (c_common_post_options): For -freestanding,
1212 -fno-hosted and -fno-builtin disable pattern recognition
1213 if not enabled explicitely.
1215 2014-05-02 Marek Polacek <polacek@redhat.com>
1217 * c.opt (Wsizeof-pointer-memaccess): Describe option.
1219 2014-05-01 Marek Polacek <polacek@redhat.com>
1222 * c.opt (Wdiscarded-qualifiers): Add.
1224 2014-04-30 Marek Polacek <polacek@redhat.com>
1226 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
1227 INT_MIN / -1 sanitization only for integer types.
1229 2014-04-25 Marek Polacek <polacek@redhat.com>
1232 * c-common.c (handle_noinline_attribute): Warn if the attribute
1233 conflicts with always_inline attribute.
1234 (handle_always_inline_attribute): Warn if the attribute conflicts
1235 with noinline attribute.
1237 2014-04-25 Marek Polacek <polacek@redhat.com>
1240 * c-common.c (check_main_parameter_types): Warn about variadic main.
1242 2014-04-24 Mike Stump <mikestump@comcast.net>
1244 * c.opt (Wshadow-ivar): Default to on.
1246 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
1248 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
1250 2014-04-23 Marek Polacek <polacek@redhat.com>
1252 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
1254 2014-04-22 Jakub Jelinek <jakub@redhat.com>
1257 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
1258 if flag_sanitize_undefined_trap_on_error.
1259 (ubsan_instrument_division, ubsan_instrument_shift,
1260 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
1261 if !flag_sanitize_recover.
1263 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
1266 * c-common.c (registered_builtin_types): Make non-static.
1267 * c-common.h (registered_builtin_types): Declare.
1269 2014-04-14 Richard Biener <rguenther@suse.de>
1270 Marc Glisse <marc.glisse@inria.fr>
1273 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
1274 apply may-alias the scalar pointer type when applicable.
1276 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
1279 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
1280 as possible argument for Cilk_spawn.
1282 2014-04-11 Tobias Burnus <burnus@net-b.de>
1285 * c.opt (Wformat-signedness): Add
1286 * c-format.c(check_format_types): Use it.
1288 2014-04-11 Jason Merrill <jason@redhat.com>
1291 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
1292 default_conversion for an array argument.
1294 2014-04-08 Marek Polacek <polacek@redhat.com>
1297 * c-ubsan.c: Include asan.h.
1298 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
1300 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
1302 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
1304 2014-04-02 Marek Polacek <polacek@redhat.com>
1306 * c-common.h (c_expand_expr): Remove declaration.
1308 2014-03-28 Jakub Jelinek <jakub@redhat.com>
1311 * c-common.c (add_atomic_size_parameter): When creating new
1312 params vector, push the size argument first.
1314 2014-03-26 Jakub Jelinek <jakub@redhat.com>
1316 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1317 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1318 ubsan_create_data callers.
1320 2014-03-22 Jakub Jelinek <jakub@redhat.com>
1323 * c-opts.c (c_finish_options): Restore cb_file_change call to
1326 2014-03-13 Jakub Jelinek <jakub@redhat.com>
1329 * c-pragma.c (apply_pragma_weak): Only look at
1330 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
1331 DECL_ASSEMBLER_NAME_SET_P (decl).
1332 (maybe_apply_pending_pragma_weaks): Exit early if
1333 vec_safe_is_empty (pending_weaks) rather than only when
1335 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
1336 set assembler name back to NULL afterwards.
1338 2014-03-11 Jason Merrill <jason@redhat.com>
1340 * c.opt: Add -std=gnu++14.
1342 2014-03-11 Ian Bolton <ian.bolton@arm.com>
1344 * c-opts.c (c_common_post_options): Don't override
1345 -ffp-contract=fast if unsafe-math-optimizations is on.
1347 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
1349 * c.opt: Enable LTO FE for fshort-double.
1351 2014-03-07 Jason Merrill <jason@redhat.com>
1353 * c.opt: Add -std=c++14.
1355 2014-03-06 Marek Polacek <polacek@redhat.com>
1358 * cilk.c (contains_cilk_spawn_stmt): New function.
1359 (contains_cilk_spawn_stmt_walker): Likewise.
1360 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
1361 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
1363 2014-03-03 Jakub Jelinek <jakub@redhat.com>
1365 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
1366 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
1367 even when flag_preprocess_only.
1369 2014-02-26 Jason Merrill <jason@redhat.com>
1373 * c-common.c (shorten_compare): Don't check
1374 c_inhibit_evaluation_warnings.
1376 2014-02-19 Jakub Jelinek <jakub@redhat.com>
1379 * c-common.c (c_common_nodes_and_builtins): When initializing
1380 c_uint{16,32,64}_type_node, also set corresponding
1381 uint{16,32,64}_type_node to the same value.
1384 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
1385 for PRAGMA_IVDEP if flag_preprocess_only.
1387 2014-02-12 Jakub Jelinek <jakub@redhat.com>
1390 * c-common.c (merge_tlist): If copy is true, call new_tlist,
1391 if false, add ADD itself, rather than vice versa.
1392 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
1393 copy. For SAVE_EXPR, only call merge_tlist once.
1395 2014-02-08 Jakub Jelinek <jakub@redhat.com>
1398 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
1400 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
1402 (c_common_attribute_table): Add alloc_align and assume_aligned
1405 2014-02-06 Marek Polacek <polacek@redhat.com>
1408 * c-common.c (warn_for_sign_compare): Call warning_at with location
1411 2014-02-05 Marek Polacek <polacek@redhat.com>
1414 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
1417 2014-02-04 Marek Polacek <polacek@redhat.com>
1420 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
1423 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
1427 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
1428 handle_vector_size_attribute, handle_nonnull_attribute): Call
1429 default_conversion on the attribute argument.
1430 (handle_nonnull_attribute): Increment the argument number.
1432 2014-01-31 Marek Polacek <polacek@redhat.com>
1435 * c-common.c (add_atomic_size_parameter): Pass vNULL to
1436 build_function_call_vec.
1437 (resolve_overloaded_builtin): Likewise.
1438 * c-common.h (build_function_call_vec): Adjust declaration.
1440 2014-01-30 Marek Polacek <polacek@redhat.com>
1443 * c-common.h (unsafe_conversion_p): Adjust declaration.
1444 (warnings_for_convert_and_check): Likewise.
1445 (convert_and_check): Likewise.
1446 * c-common.c (unsafe_conversion_p): Add location parameter. Call
1447 expansion_point_location_if_in_system_header on it.
1448 (warnings_for_convert_and_check): Add location parameter. Call
1449 expansion_point_location_if_in_system_header on it. Use it.
1450 (convert_and_check): Add location parameter. Use it.
1451 (conversion_warning): Likewise.
1452 (c_add_case_label): Adjust convert_and_check calls.
1453 (scalar_to_vector): Adjust unsafe_conversion_p calls.
1455 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
1457 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
1459 * c-pragma.c (init_pragma): Likewise.
1462 2014-01-23 Marek Polacek <polacek@redhat.com>
1465 * c-common.c (shorten_compare): Add location_t parameter.
1466 * c-common.h (shorten_binary_op): Adjust declaration.
1468 2014-01-23 Marek Polacek <polacek@redhat.com>
1471 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
1472 * c-common.h: Declare it.
1474 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
1476 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
1477 * c-ada-spec.c (dump_ads): Likewise.
1478 (cpp_check): Likewise.
1479 (dump_ada_specs): Likewise.
1481 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
1484 * c-common.c (handle_no_instrument_function_attribute): Allow
1485 no_instrument_function attribute in class member
1486 definition/declaration.
1488 2014-01-15 Jakub Jelinek <jakub@redhat.com>
1491 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
1492 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
1493 being COMPOUND_EXPR.
1494 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
1495 operand a SAVE_EXPR and second MODIFY_EXPR.
1497 2014-01-09 Jakub Jelinek <jakub@redhat.com>
1500 * c-pch.c (c_common_write_pch): Call
1501 prepare_target_option_nodes_for_pch.
1503 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1505 Update copyright years
1507 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
1509 * array-notation-common.c, c-cilkplus.c: Use the standard form for
1510 the copyright notice.
1512 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
1514 * c-ada-spec.c (print_constructor): New function.
1515 (print_destructor): Retrieve the origin of the destructor.
1516 (print_ada_declaration): Revamp handling of constructors/destructors.
1518 2013-12-23 Stuart Hastings <stuart@apple.com>
1519 Bill Maddox <maddox@google.com>
1520 Jason Merrill <jason@redhat.com>
1522 * c.opt: Add -fdeclone-ctor-dtor.
1523 * c-opts.c (c_common_post_options): Default to on iff -Os.
1525 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
1527 * c-common.c (c_common_attribute_table): Added "cilk simd function"
1529 * c-pragma.h (enum pragma_cilk_clause): Remove.
1530 (enum pragma_omp_clause): Added the following fields:
1531 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
1532 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
1533 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
1534 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
1535 PRAGMA_CILK_CLAUSE_UNIFORM.
1538 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
1540 * cilk.c (cilk_outline): Made this function non-static.
1541 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
1542 (create_cilk_wrapper): Added a new parameter: a function pointer.
1543 (c_install_body_w_frame_cleanup): Remove
1544 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
1545 * c-common.h (cilk_outline): New prototype.
1546 (gimplify_cilk_spawn): Removed two parameters.
1547 (cilk_install_body_with_frame_cleanup): New prototype.
1548 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
1549 CILK_SPAWN_STMT case.
1551 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
1553 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
1555 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
1556 (int_array_type_node): Remove.
1557 * c-common.c (c_common_nodes_and_builtins): Don't build it.
1559 2013-12-05 Marek Polacek <polacek@redhat.com>
1562 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
1563 [ADJUST_FIELD_ALIGN].
1565 2013-12-04 Joseph Myers <joseph@codesourcery.com>
1568 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
1569 and check field alignment if set.
1570 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
1571 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
1573 2013-12-04 Jakub Jelinek <jakub@redhat.com>
1574 Marek Polacek <polacek@redhat.com>
1576 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
1577 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
1579 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
1582 * cilk.c (gimplify_cilk_spawn): Properly handle function without
1585 2013-11-29 Jakub Jelinek <jakub@redhat.com>
1588 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
1589 goto invalid. If it is error_mark_node, don't issue further
1592 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
1594 * c.opt (Wopenmp-simd): New.
1596 2013-11-22 Jakub Jelinek <jakub@redhat.com>
1598 * c-ubsan.h (ubsan_instrument_return): New prototype.
1599 * c-ubsan.c (ubsan_instrument_return): New function.
1601 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
1603 * c-common.c: Add required include files from gimple.h.
1604 * c-gimplify.c: Likewise
1607 2013-11-22 David Malcolm <dmalcolm@redhat.com>
1609 * c-common.c (unsafe_conversion_p): Remove use of
1610 EXPR_LOC_OR_HERE macro.
1611 (conversion_warning): Likewise.
1612 (warnings_for_convert_and_check): Likewise.
1613 (warn_for_collisions_1): Likewise.
1614 (shorten_compare): Likewise, and remove use of in_system_header
1615 macro, using the location from the former.
1616 * c-lex.c (dump_one_header): Remove use of input_filename macro.
1617 (cb_def_pragma): Remove use of in_system_header macro.
1618 (lex_string): Likewise.
1619 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1621 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1622 Mike Stump <mikestump@comcast.net>
1623 Richard Sandiford <rdsandiford@googlemail.com>
1625 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
1626 instead of TREE_INT_CST_LOW, in cases where there is a protecting
1627 tree_fits_shwi_p or tree_fits_uhwi_p.
1628 (dump_generic_ada_node): Likewise.
1629 * c-format.c (check_format_arg): Likewise.
1630 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1632 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
1634 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
1636 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
1639 * c-common.c (unsafe_conversion_p): Make this function
1640 return an enumeration with more detail.
1641 (conversion_warning): Use the new return type of
1642 unsafe_conversion_p to separately warn either about conversions
1643 that lower floating point number precision or about the other
1644 kinds of conversions.
1645 * c-common.h (enum conversion_safety): New enumeration.
1646 (unsafe_conversion_p): switching return type to
1647 conversion_safety enumeration.
1648 * c.opt: Adding new warning -Wfloat-conversion and
1649 enabling it with -Wconversion.
1651 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
1653 * c-opts.c: Include plugin.h.
1654 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
1656 2013-11-19 Marek Polacek <polacek@redhat.com>
1658 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
1660 (ubsan_instrument_shift): Likewise.
1661 (ubsan_instrument_vla): Likewise.
1663 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1665 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
1666 cast to unsigned type.
1668 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1670 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
1672 (complete_array_type): Update comment to refer to tree_to_[su]hwi
1673 rather than tree_low_cst.
1675 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1677 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
1678 tree_to_uhwi throughout.
1680 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1682 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
1683 tree_low_cst (..., 0) with tree_to_shwi throughout.
1685 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1687 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
1688 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
1690 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
1692 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
1693 host_integerp (..., 0) with tree_fits_shwi_p throughout.
1695 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
1697 * c-cilkplus.c: New file.
1698 * c-common.c (readonly_error): Add location argument.
1699 * c-common.h (readonly_error): Same.
1700 (c_finish_cilk_clauses): Protoize.
1701 (c_check_cilk_loop): Same.
1702 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
1703 Do not fail on error_mark_node.
1704 Abstract increment canonicalization to here...
1705 (c_omp_for_incr_canonicalize_ptr): New.
1706 c-pragma.c (init_pragma): Register "simd" pragma.
1707 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
1708 (enum pragma_cilk_clause): New.
1710 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
1712 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
1713 wchar_type and host_integerp checks.
1715 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
1717 * c-common.c: Likewise.
1718 * c-gimplify.c: Likewise.
1721 2013-11-14 Diego Novillo <dnovillo@google.com>
1723 * c-common.c: Include fold-const.h.
1724 Include stor-layout.h.
1726 Include stringpool.h.
1729 Include trans-mem.h.
1730 * c-cppbuiltin.c: Include stor-layout.h.
1731 Include stringpool.h.
1732 * c-format.c: Include stringpool.h.
1733 * c-lex.c: Include stringpool.h.
1734 Include stor-layout.h.
1735 * c-pragma.c: Include stringpool.h.
1738 Include gcc-symtab.h.
1739 * c-pretty-print.c: Include stor-layout.h.
1741 * cilk.c: Include stringpool.h.
1744 2013-11-13 Joseph Myers <joseph@codesourcery.com>
1746 * c-common.h (enum rid): Add RID_AUTO_TYPE.
1747 * c-common.c (c_common_reswords): Add __auto_type.
1748 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
1750 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
1752 * c-common.c: Include gimplify.h.
1753 * c-gimplify.c: Likewise.
1755 * c-omp.c: Include gimple-expr.h instead of gimple.h.
1756 * c-ubsan.c: Don't include gimple.h.
1758 2013-11-12 Joseph Myers <joseph@codesourcery.com>
1760 * c-common.c (c_common_reswords): Add _Thread_local.
1762 2013-11-09 Joseph Myers <joseph@codesourcery.com>
1764 * c-common.c (atomic_size_supported_p): New function.
1765 (resolve_overloaded_atomic_exchange)
1766 (resolve_overloaded_atomic_compare_exchange)
1767 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
1768 Use it instead of comparing size with a local list of sizes.
1770 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
1771 Joseph Myers <joseph@codesourcery.com>
1773 * c-common.h (enum rid): Add RID_ATOMIC.
1774 * c-common.c (c_common_reswords): Add _Atomic.
1775 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
1776 (keyword_is_type_qualifier): Accept RID_ATOMIC.
1777 * c-format.c (check_format_types): Check for extra _Atomic
1778 qualifiers in format argument.
1779 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
1780 (pp_c_type_qualifier_list): Mention _Atomic in comment.
1782 2013-11-06 Tobias Burnus <burnus@net-b.de>
1784 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
1786 2013-11-06 Joseph Myers <joseph@codesourcery.com>
1788 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
1790 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
1791 to mean lack of IEEE 754 support.
1793 2013-11-05 Tobias Burnus <burnus@net-b.de>
1795 * c.opt (-Wdate-time): New option
1796 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
1798 2013-11-05 Joseph Myers <joseph@codesourcery.com>
1800 * c-cppbuiltin.c (cpp_iec_559_value): Test
1801 flag_excess_precision_cmdline not flag_excess_precision.
1803 2013-11-05 Tobias Burnus <burnus@net-b.de>
1805 * c.opt (fopenmp-simd): New option.
1806 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
1807 (omp_pragmas): ... this new struct.
1808 (c_pp_lookup_pragma): Also walk omp_pragmas.
1809 (init_pragma): Init pragmas for -fopenmp-simd.
1811 2013-11-04 Marek Polacek <polacek@redhat.com>
1814 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
1816 2013-11-04 Joseph Myers <joseph@codesourcery.com>
1818 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
1820 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
1822 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
1824 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
1825 (dump_ada_specs): Adjust prototype of second callback.
1826 * c-ada-spec.c (cpp_check): New global variable.
1827 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
1828 (print_generic_ada_decl): Likewise.
1829 (has_static_fields): Change return type to bool and add guard.
1830 (has_nontrivial_methods): New predicate.
1831 (is_tagged_type): Change return type to bool.
1832 (separate_class_package): Call has_nontrivial_methods.
1833 (pp_ada_tree_identifier): Minor tweaks.
1834 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
1835 (dump_ada_array_domains): Likewise.
1836 (dump_ada_array_type): Likewise.
1837 (dump_template_types): Remove cpp_check parameter and do not pass it to
1838 dump_generic_ada_node.
1839 (dump_ada_template): Likewise.
1840 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
1842 (print_ada_methods): Change return type to integer. Remove cpp_check
1843 parameter and do not pass it down.
1844 (dump_nested_types): Remove cpp_check parameter and do not pass it to
1845 dump_generic_ada_node.
1846 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
1848 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
1849 down. Use has_nontrivial_methods to recognize C++ classes. Use return
1850 value of print_ada_methods.
1851 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
1852 Set cpp_check to it before invoking dump_ada_nodes.
1853 (dump_ada_specs): Likewise.
1855 2013-11-03 Marek Polacek <polacek@redhat.com>
1857 * c-ubsan.c: Don't include hash-table.h.
1858 (ubsan_instrument_vla): New function.
1859 * c-ubsan.h: Declare it.
1861 2013-10-31 David Malcolm <dmalcolm@redhat.com>
1863 Automated part of renaming of symtab_node_base to symtab_node.
1865 Patch autogenerated by rename_symtab.py from
1866 https://github.com/davidmalcolm/gcc-refactoring-scripts
1867 revision 58bb219cc090b2f4516a9297d868c245495ee622
1869 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
1870 symtab_node_base to symtab_node.
1872 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
1874 Implement C++14 digit separators.
1875 * c-lex.c (interpret_float): Remove digit separators from scratch string
1876 before building real literal.
1878 2013-10-30 Jakub Jelinek <jakub@redhat.com>
1880 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
1882 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
1884 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
1886 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
1888 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
1889 (insert_cilk_frame): New prototype.
1890 (cilk_init_builtins): Likewise.
1891 (gimplify_cilk_spawn): Likewise.
1892 (c_cilk_install_body_w_frame_cleanup): Likewise.
1893 (cilk_detect_spawn_and_unwrap): Likewise.
1894 (cilk_set_spawn_marker): Likewise.
1895 (build_cilk_sync): Likewise.
1896 (build_cilk_spawn): Likewise.
1899 2013-10-29 David Malcolm <dmalcolm@redhat.com>
1901 Patch autogenerated by refactor_symtab.py from
1902 https://github.com/davidmalcolm/gcc-refactoring-scripts
1903 revision 58bb219cc090b2f4516a9297d868c245495ee622
1905 * c-gimplify.c (c_genericize): Update for conversion of symtab types
1906 to a true class hierarchy.
1907 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
1909 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
1911 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
1913 2013-10-26 Jeff Law <law@redhat.com>
1915 * c-common.c (c_define_builtins): Remove mudflap support.
1916 * c.opt: Ignore and warn for mudflap options.
1918 2013-10-24 Tobias Burnus <burnus@net-b.de>
1921 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
1922 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
1924 2013-10-23 Jason Merrill <jason@redhat.com>
1926 * c-format.c (gcc_cxxdiag_char_table): Add %X.
1928 2013-10-11 Jakub Jelinek <jakub@redhat.com>
1930 * c-common.h (omp_clause_mask::operator !=): New method.
1931 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
1932 instead of if (mask & something) tests everywhere.
1934 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
1935 201307 instead of 201107.
1936 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
1937 (c_common_attribute_table): Add "omp declare target" and
1938 "omp declare simd" attributes.
1939 (handle_omp_declare_target_attribute,
1940 handle_omp_declare_simd_attribute): New functions.
1941 * c-omp.c: Include c-pragma.h.
1942 (c_finish_omp_taskgroup): New function.
1943 (c_finish_omp_atomic): Add swapped argument, if true,
1944 build the operation first with rhs, lhs arguments and use NOP_EXPR
1946 (c_finish_omp_for): Add code argument, pass it down to make_code.
1947 (c_omp_split_clauses): New function.
1948 (c_split_parallel_clauses): Removed.
1949 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
1950 c_omp_declare_simd_clauses_to_decls): New functions.
1951 * c-common.h (omp_clause_mask): New type.
1952 (OMP_CLAUSE_MASK_1): Define.
1953 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
1954 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
1955 omp_clause_mask::operator |, omp_clause_mask::operator &,
1956 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
1957 omp_clause_mask::operator ==): New methods.
1958 (enum c_omp_clause_split): New.
1959 (c_finish_omp_taskgroup): New prototype.
1960 (c_finish_omp_atomic): Add swapped argument.
1961 (c_finish_omp_for): Add code argument.
1962 (c_omp_split_clauses): New prototype.
1963 (c_split_parallel_clauses): Removed.
1964 (c_omp_declare_simd_clauses_to_numbers,
1965 c_omp_declare_simd_clauses_to_decls): New prototypes.
1966 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
1967 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
1968 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
1969 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
1970 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
1971 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
1972 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
1973 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
1974 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
1975 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
1976 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
1977 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
1978 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
1979 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
1980 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
1981 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
1982 PRAGMA_OMP_CLAUSE_UNIFORM.
1984 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
1986 PR tree-optimization/20318
1987 * c-common.c (handle_returns_nonnull_attribute): New function.
1988 (c_common_attribute_table): Add returns_nonnull.
1990 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
1993 * c.opt (fcheck-new): Move to common.opt.
1995 2013-09-25 Marek Polacek <polacek@redhat.com>
1996 Jakub Jelinek <jakub@redhat.com>
1999 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2000 an expression if we can prove it is correct.
2001 (ubsan_instrument_division): Likewise. Remove unnecessary
2004 2013-09-18 Marek Polacek <polacek@redhat.com>
2007 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2009 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2011 2013-09-14 Iain Sandoe <iain@codesourcery.com>
2014 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2015 fobjc-gc, freplace-objc-classes): Accept for LTO.
2017 2013-09-13 Jacek Caban <jacek@codeweavers.com>
2019 * c-target.def: New hook
2021 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2024 * c.opt (Wdelete-incomplete): Add.
2026 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2028 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2029 (vector_types_compatible_elements_p): New function.
2030 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2032 (vector_types_compatible_elements_p): Declare.
2034 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2036 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2037 a virtual member function.
2038 (pp_simple_type_specifier): Remove.
2039 (pp_c_type_specifier): Likewise.
2040 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2041 Rename from pp_c_type_specifier. Adjust.
2042 (c_pretty_printer::c_pretty_printer): Do not assign to
2043 simple_type_specifier.
2045 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2047 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2049 (c_pretty_printer::storage_class_specifier): Likewise.
2050 (c_pretty_printer::initializer): Likewise.
2051 (pp_declaration): Remove.
2052 (pp_declaration_specifiers): Likewise.
2053 (pp_abstract_declarator): Likewise.
2054 (pp_declarator): Likewise.
2055 (pp_type_id): Likewise.
2056 (pp_statement): Likewise.
2057 (pp_constant): Likewise.
2058 (pp_id_expression): Likewise.
2059 (pp_primary_expression): Likewise.
2060 (pp_unary_expression): Likewise.
2061 (pp_multiplicative_expression): Likewise.
2062 (pp_conditional_expression): Likewise.
2063 (pp_assignment_expression): Likewise.
2064 (pp_expression): Likewise.
2065 (pp_c_type_id): Likewise.
2066 (pp_c_storage_class_specifier): Likewise.
2067 * c-pretty-print.c (pp_c_type_cast): Tidy.
2068 (pp_c_pointer): Likewise.
2069 (pp_c_type_specifier): Likewise.
2070 (pp_c_parameter_type_list): Likewise.
2071 (pp_c_function_definition): Likewise.
2072 (pp_c_init_declarator): Likewise.
2073 (pp_c_initializer_list): Likewise.
2074 (pp_c_constructor_elts): Likewise.
2075 (c_pretty_printer::direct_abstract_declarator): Likewise.
2076 (c_pretty_printer::declaration_specifiers): Likewise.
2077 (c_pretty_printer::primary_expression): Likewise.
2078 (c_pretty_printer::postfix_expression): Likewise.
2079 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2080 (c_pretty_printer::storage_class_specifier): Rename from
2081 pp_c_storage_class_specifier.
2082 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2083 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2084 storage_class_specifier, initializer, offset_list, flags.
2086 2013-08-30 Marek Polacek <polacek@redhat.com>
2088 * c-ubsan.c: New file.
2089 * c-ubsan.h: New file.
2091 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2093 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2095 (c_pretty_printer::declaration_specifiers): Likewise.
2096 (c_pretty_printer::declarator): Likewise.
2097 (c_pretty_printer::abstract_declarator): Likewise.
2098 (c_pretty_printer::direct_abstract_declarator): Likewise.
2099 (c_pretty_printer::direct_declarator): Likewise.
2100 (c_pretty_printer::function_specifier): Likewise.
2101 (pp_declaration): Adjust.
2102 (pp_declaration_specifiers): Likewise.
2103 (pp_abstract_declarator): Likewise.
2104 (pp_direct_declarator): Likewise.
2105 (pp_function_specifier): Likewise.
2106 (pp_direct_abstract_declarator): Remove as unused.
2107 (pp_c_declaration): Remove.
2108 (pp_c_declaration_specifiers): Likewise.
2109 (pp_c_declarator): Likewise.
2110 (pp_c_direct_declarator): Likewise.
2111 (pp_c_function_specifier): Likewise.
2112 (pp_c_direct_abstract_declarator): Likewise.
2113 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
2114 from pp_c_abstract_declarator. Adjust.
2115 (c_pretty_printer::direct_abstract_declarator): Rename from
2116 pp_c_direct_abstract_declarator. Adjust.
2117 (c_pretty_printer::function_specifier): Rename from
2118 pp_c_function_specifier. Adjust.
2119 (c_pretty_printer::declaration_specifiers): Rename from
2120 pp_c_declaration_specifiers. Adjust.
2121 (c_pretty_printer::direct_declarator): Rename from
2122 pp_c_direct_declarator. Adjust.
2123 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
2124 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
2125 (c_pretty_printer::c_pretty_printer): Do not assign to
2126 declaration, declaration_specifiers, declarator,
2127 direct_declarator, direct_abstract_declarator, function_specifier.
2129 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2131 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
2132 virtual member function.
2133 (c_pretty_printer::multiplicative_expression): Likewise.
2134 (c_pretty_printer::conditional_expression): Likewise.
2135 (c_pretty_printer::assignment_expression): Likewise.
2136 (c_pretty_printer::expression): Likewise.
2137 (pp_unary_expression): Adjust.
2138 (pp_multiplicative_expression): Likewise.
2139 (pp_assignment_expression): Likewise.
2140 (pp_conditional_expression): Likewise.
2141 (pp_expression): Likewise.
2142 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
2143 from pp_c_unary_expression. Adjust.
2144 (c_pretty_printer::multiplicative_expression): Rename from
2145 pp_c_multiplicative_expression. Adjust.
2146 (c_pretty_printer::conditional_expression): Rename from
2147 pp_c_conditional_expression. Adjust.
2148 (c_pretty_printer::assignment_expression): Rename from
2149 pp_c_assignment_expression. Adjust.
2150 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
2151 (c_pretty_printer::c_pretty_printer): Do not assign to
2152 unary_expression, multiplicative_expression,
2153 conditional_expression, expression.
2155 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2157 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
2158 virtual member function.
2159 (pp_postfix_expression): Adjust.
2160 (pp_c_postfix_expression): Remove.
2161 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
2162 from pp_c_postfix_expression. Adjust.
2163 (c_pretty_printer::c_pretty_printer): Do not assign to
2166 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2168 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
2169 virtua member function.
2170 (pp_primary_expression): Adjust.
2171 (pp_c_primary_expression): Remove.
2172 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
2173 from pp_c_primary_expression. Adjust.
2174 (pp_c_initializer_list): Use pp_primary_expression.
2175 (c_pretty_printer::c_pretty_printer): Do not assign to
2178 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
2180 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
2181 * c-pretty-print.c (M_): Remove.
2182 (c_pretty_printer::translate_string): Define.
2183 (pp_c_type_specifier): Use it.
2184 (pp_c_primary_expression): Likewise.
2185 (pp_c_expression): Likewise.
2187 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2189 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
2191 (pp_c_id_expression): Remove.
2192 (pp_id_expression): Adjust.
2193 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
2194 pp_c_id_expression. Adjust.
2195 (pp_c_postfix_expression): Use pp_id_expression.
2196 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
2198 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
2200 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
2202 (pp_constant): Adjust.
2203 (pp_c_constant): Remove.
2204 * c-pretty-print.c (c_pretty_printer::constant): Rename from
2205 pp_c_constant. Adjust.
2207 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
2208 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
2210 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2212 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
2213 (c_pretty_printer::c_pretty_printer): Declare.
2214 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
2215 c_pretty_printer_init. Adjust.
2216 (print_c_tree): Do not call c_pretty_printer_init.
2217 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
2219 2013-08-09 Arnaud Charlet <charlet@adacore.com>
2221 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
2223 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
2226 * c-common.c (pointer_int_sum): Add bool parameter.
2227 * c-common.h (pointer_int_sum): Adjust declaration.
2229 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2231 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
2232 c_pretty_printer variable.
2234 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2236 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
2238 (pp_c_base): Likewise. Adjust users.
2239 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
2240 (pp_c_whitespace): Do not call pp_base.
2241 (pp_c_left_paren): Likewise.
2242 (pp_c_right_paren): Likewise.
2243 (pp_c_left_brace): Likewise.
2244 (pp_c_right_brace): Likewise.
2245 (pp_c_left_bracket): Likewise.
2246 (pp_c_right_bracket): Likewise.
2247 (pp_c_dot): Likewise.
2248 (pp_c_ampersand): Likewise.
2249 (pp_c_star): Likewise.
2250 (pp_c_arrow): Likewise.
2251 (pp_c_semicolon): Likewise.
2252 (pp_c_complement): Likewise.
2253 (pp_c_exclamation): Likewise.
2254 (pp_c_direct_declarator): Likewise.
2255 (pp_c_ws_string): Likewise.
2256 (pp_c_identifier): Likewise.
2257 (pp_c_statement): Likewise.
2258 (print_c_tree): Likewise.
2260 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
2263 * c-common.c (c_parse_error): Catch user-defined literal tokens and
2264 provide useful error strings.
2266 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2268 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
2269 printer functions instead of pp_string or operators and punctuators.
2270 (dump_generic_ada_node): Likewise.
2271 * c-pretty-print.c (pp_c_type_specifier): Likewise.
2272 (pp_c_relational_expression): Likewise.
2273 (pp_c_logical_or_expression): Likewise.
2275 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2277 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
2278 functions instead of pp_character.
2279 (pp_ada_tree_identifier): Likewise.
2280 (dump_ada_double_name): Likewise.
2281 (dump_ada_function_declaration): Likewise.
2282 (dump_ada_array_domains): Likewise.
2283 (dump_template_types): Likewise.
2284 (dump_generic_ada_node): Likewise.
2285 (print_ada_declaration): Likewise.
2286 (print_ada_struct_decl): Likewise.
2287 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2289 2013-07-23 Tom Tromey <tromey@redhat.com>
2291 * c-common.h (enum rid) <RID_GENERIC>: New constant.
2292 * c-common.c (c_common_reswords): Add _Generic.
2294 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
2296 * c-common.c: Fix typos.
2297 * c-common.h: Likewise.
2299 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
2302 * c-common.c (c_common_attribute_table): Add warn_unused.
2303 (handle_warn_unused_attribute): New.
2305 2013-07-10 Jakub Jelinek <jakub@redhat.com>
2307 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
2308 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
2310 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
2313 * c.opt: Add Wconditionally-supported.
2315 2013-07-08 Graham Stott <graham.stott@btinternet.com>
2317 * array-notation-common.c (length_mismatch_in_expr_p): Delete
2318 unused variables l_length and l_node.
2320 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
2323 * c-common.c (complete_array_type): Delay folding first index
2324 like other indices. When folding, check for index overflow.
2326 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
2329 * c-common.h (c_build_vec_perm_expr): New complain argument.
2330 * c-common.c (c_build_vec_perm_expr): Likewise.
2331 Use save_expr also in C++.
2333 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2335 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
2336 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
2337 * c-opts.c (c_common_post_options): Likewise.
2339 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2341 * array-notation-common.c (length_mismatch_in_expr): Changed the
2342 parameter type's from a dynamic array to a vec_tree. Also removed
2343 the size parameters.
2344 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
2347 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
2349 * c-common.h (struct cilkplus_an_parts): New structure.
2350 (struct cilkplus_an_loop_parts): Likewise.
2351 (cilkplus_extract_an_triplets): New prototype.
2352 (fix_sec_implicit_args): Likewise.
2353 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
2354 (fix_sec_implicit_args): Likewise.
2356 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
2358 * array-notation-common.c (find_inv_trees): Removed an unwanted
2360 * c-common.h (struct inv_list::additional_tcodes): Changed type from
2361 enum rid to enum tree_code.
2363 2013-06-11 Jan Hubicka <jh@suse.cz>
2365 * c-common.c (handle_alias_ifunc_attribute): Do not set
2366 DECL_EXTERNAL for weakref variables.
2367 * c-pragma.c (handle_pragma_weak): Make sure aliases
2368 are not declared as external.
2370 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
2372 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
2373 function from c/c-array-notation.c.
2374 (is_cilkplus_reduce_builtin): Likewise.
2375 (find_rank): Likewise.
2376 (extract_array_notation_exprs): Likewise.
2377 (replace_array_notations): Likewise.
2378 (find_inv_trees): Likewise.
2379 (replace_inv_trees): Likewise.
2380 (contains_array_notation_expr): Likewise.
2381 (find_correct_array_notation_type): Likewise.
2382 * c-common.h (struct inv_list): Moved this struct from the file
2383 c/c-array-notation.c and added a new field called additional tcodes.
2384 (length_mismatch_in_expr_p): New prototype.
2385 (is_cilkplus_reduce_builtin): Likewise.
2386 (find_rank): Likewise.
2387 (extract_array_notation_exprs): Likewise.
2388 (replace_array_notation): Likewise.
2389 (find_inv_trees): Likewise.
2390 (replace_inv_trees): Likewise.
2391 (find_correct_array_notation_type): Likewise.
2393 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2395 * c-common.c (c_define_builtins): When cilkplus is enabled, the
2396 function array_notation_init_builtins is called.
2397 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
2398 * c-common.def (ARRAY_NOTATION_REF): New tree.
2399 * c-common.h (build_array_notation_expr): New function declaration.
2400 (build_array_notation_ref): Likewise.
2401 (extract_sec_implicit_index_arg): New extern declaration.
2402 (is_sec_implicit_index_fn): Likewise.
2403 (ARRAY_NOTATION_CHECK): New define.
2404 (ARRAY_NOTATION_ARRAY): Likewise.
2405 (ARRAY_NOTATION_START): Likewise.
2406 (ARRAY_NOTATION_LENGTH): Likewise.
2407 (ARRAY_NOTATION_STRIDE): Likewise.
2408 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
2410 (pp_c_expression): Likewise.
2411 * c.opt (flag_enable_cilkplus): New flag.
2412 * array-notation-common.c: New file.
2414 2013-05-14 Jakub Jelinek <jakub@redhat.com>
2417 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
2419 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
2421 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
2424 2013-05-07 Han Shen <shenhan@google.com>
2426 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
2428 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2430 * c-common.c (check_user_alignment): Emit error for negative values.
2432 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2434 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
2436 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2438 * c-cppbuiltin.c (c_cpp_builtins): Do not define
2439 __GXX_EXPERIMENTAL_CXX1Y__.
2441 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2442 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2444 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
2445 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
2446 to simply use OPT_Wpointer_arith.
2447 (c_sizeof_or_alignof_type): Likewise.
2449 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2451 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
2453 2013-04-12 Jakub Jelinek <jakub@redhat.com>
2455 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
2456 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
2459 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
2461 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
2463 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
2465 * c-common.c (pointer_int_sum): Remove dead code.
2467 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
2470 * c-common.c (handle_optimize_attribute): Don't call
2471 save_optabs_if_changed.
2473 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2476 * c-pch.c (pch_init): Free target_validity at the end.
2478 2013-03-04 Jakub Jelinek <jakub@redhat.com>
2480 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
2482 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2483 Jakub Jelinek <jakub@redhat.com>
2486 * c-common.c (handle_no_sanitize_address_attribute): New function.
2487 (c_common_attribute_table): Add no_sanitize_address attribute.
2488 (handle_no_address_safety_analysis_attribute): Add
2489 no_sanitize_address attribute, not no_address_safety_analysis
2492 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2495 * c-common.c (handle_optimize_attribute): Call
2496 save_optabs_if_changed.
2498 2013-02-18 Jakub Jelinek <jakub@redhat.com>
2499 Steven Bosscher <steven@gcc.gnu.org>
2502 * c-opts.c (c_common_post_options): If debug info is enabled
2503 and non-dwarf*, refuse to load PCH files and when writing PCH
2506 2013-02-05 Jakub Jelinek <jakub@redhat.com>
2509 * c-common.c (handle_error_attribute): Fix condition.
2511 2013-01-30 Jakub Jelinek <jakub@redhat.com>
2514 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
2516 2013-01-18 Jason Merrill <jason@redhat.com>
2519 * c.opt (-fextern-tls-init): New.
2520 * c-opts.c (c_common_post_options): Handle it.
2522 2013-01-09 Jakub Jelinek <jakub@redhat.com>
2525 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
2526 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
2527 and is either negative or bigger or equal to type precision
2528 of the first operand.
2530 2012-12-03 Marek Polacek <polacek@redhat.com>
2533 * c-common.c (check_user_alignment): Swap order of tests,
2534 check TREE_CODE first.
2536 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
2539 * c-common.h (overflow_type): New enum.
2540 (build_userdef_literal): Add overflow_type argument.
2541 (tree_userdef_literal): Add overflow_type.
2542 (USERDEF_LITERAL_OVERFLOW): New access macro.
2543 * c-common.c (build_userdef_literal): Add overflow_type
2545 * c-lex.c (c_lex_with_flags): Add overflow_type to
2546 build_userdef_literal calls.
2547 (interpret_integer, interpret_float): Add overflow_type argument.
2549 2012-11-28 Richard Biener <rguenther@suse.de>
2552 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2553 here and use a type with proper overflow behavior for types that would
2554 need to be promoted for the arithmetic.
2556 2012-11-23 Jakub Jelinek <jakub@redhat.com>
2559 * c-common.c (handle_no_address_safety_analysis_attribute): New
2561 (c_common_attribute_table): Add no_address_safety_analysis.
2563 2012-11-16 Simon Baldwin <simonb@google.com>
2565 * c.opt: Add f[no-]canonical-system-headers.
2566 * c-opts.c (c_common_handle_option): Handle
2567 OPT_fcanonical_system_headers.
2569 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
2572 * c-opts.c (c_common_handle_option): Set new flags.
2573 * c.opt: Describe new flags.
2575 2012-11-09 Jason Merrill <jason@redhat.com>
2577 * c.opt (Wabi-tag): New.
2579 2012-11-09 Andi Kleen <ak@linux.intel.com>
2582 * c-common.c (get_atomic_generic_size): Mask with
2585 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2588 * c.opt (Wformat): Make it Alias Wformat=1.
2589 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
2590 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
2592 (Wformat=): RejectNegative. Use LangEnabledBy.
2593 (Wnonnull): Use LangEnabledBy.
2594 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
2595 * c-format.c (set_Wformat): Delete.
2596 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
2597 (maybe_read_dollar_number): Likewise.
2598 (avoid_dollar_number): Likewise.
2599 (finish_dollar_format_checking): Likewise.
2600 (check_format_info): Likewise.
2601 (check_format_info_main): Likewise.
2602 (check_format_types): Likewise.
2603 (format_type_warning): Likewise.
2604 * c-common.c (int): Likewise.
2605 (check_function_sentinel): Likewise.
2606 * c-common.h (warn_format,set_Wformat): Do not declare here.
2608 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2611 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
2612 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
2614 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
2616 (Wvariadic-macros): Init(1).
2617 * c-opts.c (c_common_handle_option): Do not handle them
2619 (c_common_post_options): Likewise.
2620 (sanitize_cpp_opts): warn_unused_macros is now
2621 cpp_warn_unused_macros.
2622 (push_command_line_include): Likewise.
2623 * c-common.c (warn_unknown_pragmas): Do not define.
2624 * c-common.h (warn_unknown_pragmas): Do not declare.
2626 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2629 * c-common.c (conversion_warning): Handle conditional expressions.
2631 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
2634 * c.opt (Wreturn_local_addr): Define new option.
2636 2012-10-25 Jason Merrill <jason@redhat.com>
2638 * c.opt (Wvirtual-move-assign): New.
2640 * c.opt (Winherited-variadic-ctor): New.
2642 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
2645 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
2647 2012-10-23 Joseph Myers <joseph@codesourcery.com>
2649 * c-common.h (pch_cpp_save_state): Declare.
2650 * c-target.def (c_preinclude): New hook.
2651 * c-opts.c (done_preinclude): New.
2652 (push_command_line_include): Handle default preincluded header.
2653 (cb_file_change): Call pch_cpp_save_state when calling
2654 push_command_line_include.
2655 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
2656 (pch_cpp_save_state): New.
2657 (pch_init): Call pch_cpp_save_state conditionally, instead of
2658 calling cpp_save_state.
2660 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2664 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
2665 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
2666 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
2667 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
2668 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
2669 * c-opts.c (c_common_handle_option): Remove explicit handling from
2671 (c_common_post_options): Likewise.
2673 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
2675 * c-ada-spec.c (LOCATION_COL): Delete.
2676 (compare_location): New function.
2677 (compare_node): Use it.
2678 (compare_comment): Likewise.
2680 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
2684 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
2685 * c-opts.c (c_common_handle_option): Do not set them here. Add
2687 (c_common_post_options): Likewise.
2689 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
2691 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
2692 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
2693 Remove POINTER_TYPE handling, add large unsigned handling and use
2694 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
2696 2012-10-12 Jakub Jelinek <jakub@redhat.com>
2699 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
2700 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
2701 locs and array of 3 trees instead of just single loc and single
2702 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
2703 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
2704 For *cmp* builtins that take two sources strings report warnings
2705 about first and second source, not about destination and source.
2707 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
2710 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
2712 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
2714 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
2715 declaring something coming from another file.
2717 2012-10-10 Arnaud Charlet <charlet@adacore.com>
2720 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
2722 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
2725 * c-common.c (warn_about_parentheses): Add location_t parameter;
2726 use EXPR_LOC_OR_LOC.
2727 * c-common.h: Update declaration.
2729 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
2732 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
2733 more operations. Make error messages optional.
2734 * c-common.h (enum stv_conv): Moved from c-typeck.c.
2735 (scalar_to_vector): Declare.
2737 2012-10-08 Jason Merrill <jason@redhat.com>
2739 * c-common.c (c_common_reswords): Add thread_local.
2741 2012-10-08 Dodji Seketeli <dodji@redhat.com>
2743 PR c++/53528 C++11 attribute support
2744 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
2746 * c-common.c (check_cxx_fundamental_alignment_constraints): New
2748 (handle_aligned_attribute): In choose strictest alignment
2749 among many. Use new check_cxx_fundamental_alignment_constraints.
2750 (handle_transparent_union_attribute): In c++11 attribute syntax,
2751 don't look through typedefs.
2753 2012-10-04 Arnaud Charlet <charlet@adacore.com>
2755 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
2756 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
2759 2012-09-25 Dehao Chen <dehao@google.com>
2762 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
2763 map when read in the pch.
2765 2012-09-18 Arnaud Charlet <charlet@adacore.com>
2767 * c-ada-spec.c: Style fixes.
2769 2012-09-18 Thomas Quinot <quinot@adacore.com>
2771 * c.opt (-fada-spec-parent): Define new command line switch.
2772 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
2773 is specified, generate binding spec as a child of the specified unit.
2775 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
2776 Manuel López-Ibáñez <manu@gcc.gnu.org>
2779 * c.opt ([Winit-self]): Enabled by -Wall in C++.
2781 2012-08-23 Arnaud Charlet <charlet@adacore.com>
2783 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
2784 for pointers, and add missing Convention C pragma.
2785 (print_ada_struct_decl): Add missing aliased keyword.
2786 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
2788 2012-08-17 Jakub Jelinek <jakub@redhat.com>
2790 * c-common.c (sizeof_pointer_memaccess_warning): New function.
2791 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
2792 * c-opts.c (c_common_handle_option): Enable it for -Wall.
2793 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
2794 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
2796 2012-08-10 Richard Guenther <rguenther@suse.de>
2798 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
2800 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
2802 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
2803 instead of separate pp_newline and pp_flush.
2804 (print_c_tree): Likewise.
2806 2012-07-26 Richard Henderson <rth@redhat.com>
2808 * c-common.c (handle_hot_attribute): Allow labels.
2809 (handle_cold_attribute): Likewise.
2811 2012-07-20 Jakub Jelinek <jakub@redhat.com>
2814 * c-common.c (check_function_nonnull): Handle multiple nonnull
2815 attributes properly.
2817 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
2819 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
2820 * c-ada-spec.c: Likewise.
2821 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
2823 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
2825 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
2826 Remove code conditional on it.
2828 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
2830 * c-gimplify.c: Do not include basic-block.h.
2831 * c-common.c: Do not include linfuncs.h.
2833 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
2835 * c-common.h: Include tree.h.
2837 2012-07-02 Jason Merrill <jason@redhat.com>
2840 * c-common.c (get_priority): Call default_conversion.
2842 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
2844 * c-pch.c (c_common_write_pch): Remove unused variables.
2846 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
2848 * cppspec.c: Moved from gcc/ to here.
2850 2012-06-27 Kai Tietz <ktietz@redhat.com>
2852 PR preprocessor/37215
2853 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
2855 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
2857 * c-common.h (c_common_print_pch_checksum): Remove.
2858 * c-pch.c: Do not include output.h.
2859 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
2860 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
2861 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
2862 (struct c_pch_header): Remove.
2863 (get_ident): Update gpch version.
2864 (pch_init): Do not print executable_checksum to asm_out_file.
2865 Do not fail if there is no asm_out_file to read back from. Set
2866 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
2867 (c_common_write_pch): Verify that nothing was written to asm_out_file
2868 since pch_init was called. Do not write a c_pch_header, and do not
2869 copy from asm_out_file to the PCH.
2870 (c_common_read_pch): Do not read a c_pch_header, and do not restore
2871 the content of asm_out_file from the PCH.
2872 (c_common_print_pch_checksum): Remove.
2873 * c-opts.c (c_common_init): Print out executable_checksum directly.
2875 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2877 * c-target.def (objc_declare_unresolved_class_reference,
2878 objc_declare_class_definition): Add new hooks.
2880 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
2882 * c-lex.c: Do not include output.h.
2883 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
2884 Remove uses of ASM_OUTPUT_IDENT.
2886 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
2889 * c-common.h (c_build_vec_perm_expr): Move decl here.
2890 * c-common.c (c_build_vec_perm_expr): Move definition
2893 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
2895 * c.opt (fconserve-space): Turn into a no-op.
2897 2012-06-04 Sterling Augustine <saugustine@google.com>
2899 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
2900 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
2901 both the start and end of the function.
2903 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2905 * c-common.c: Do not include output.h.
2906 * c-pragma.c: Likewise.
2908 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
2910 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
2911 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
2912 (lang_decl_name): Handle namespace decls.
2914 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
2916 * c-ada-spec.c: Do not include output.h.
2917 * c-semantics.c: Likewise.
2919 2012-05-29 Joseph Myers <joseph@codesourcery.com>
2921 * c-common.c: Fix typo.
2923 2012-05-29 Michael Matz <matz@suse.de>
2925 * c-common.h (c_expand_decl): Remove prototype.
2927 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2929 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
2930 * c-opts.c (c_common_handle_option): Remove code handling
2931 warn_missing_braces.
2933 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
2936 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
2939 2012-05-22 Dodji Seketeli <dodji@redhat.com>
2942 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
2944 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
2946 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
2947 * c-opts.c (c_common_handle_option): Do not handle explicitly
2948 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
2950 2012-05-16 Dodji Seketeli <dodji@redhat.com>
2952 PR preprocessor/7263
2953 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
2954 to cpp_classify_number. For diagnostics, use the precise location
2955 instead of the global input_location.
2957 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2960 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
2962 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
2964 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
2966 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
2969 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
2970 Wreorder): Use LangEnabledBy.
2971 * c-opts.c (c_common_handle_option): Do not enable them
2972 explicitly. Call lang-specific generated functions.
2973 (c_common_post_options): Do not set them here.
2975 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
2977 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
2978 Wmissing-field-initializers,Wmissing-parameter-type,
2979 Wold-style-declaration,Woverride-init): Use EnabledBy.
2980 * c-opts.c (c_common_post_options): Do not set here explicitly.
2982 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2985 * c-opts.c (c_common_handle_option): Use handle_generated_option
2986 to enable sub-options.
2988 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
2991 * c-common.c (warnings_for_convert_and_check): Use warning_at.
2993 2012-05-10 Richard Guenther <rguenther@suse.de>
2995 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
2996 adjust commentary about TYPE_IS_SIZETYPE types.
2998 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3001 * c-common.c (warn_logical_operator): Check that argument of
3002 integer_zerop is not NULL.
3004 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3007 * c-common.c (warn_logical_operator): Do not warn if either side
3008 is already true or false.
3010 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3013 * c-common.c (expr_original_type): New.
3014 (shorten_compare): Do not warn for enumeration types.
3016 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3018 * c.opt (fpermissive): Add Var(flag_permissive).
3020 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
3023 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3024 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3026 2012-04-30 Dodji Seketeli <dodji@redhat.com>
3028 Add -Wvarargs option
3029 * c.opt (Wvarargs): Define new option.
3031 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3033 * c-common.c (check_function_arguments): Replace
3034 Wmissing-format-attribute with Wsuggest-attribute=format.
3036 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3038 * c.opt (Wsuggest-attribute=format): New. Alias of
3039 Wmissing-format-attribute.
3040 * c-format.c (decode_format_type): Replace
3041 Wmissing-format-attribute with Wsuggest-attribute=format.
3042 (check_function_format): Likewise.
3044 2012-04-27 Ollie Wild <aaw@google.com>
3046 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3047 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3048 * c.opt: Add Wliteral-suffix.
3050 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3053 * c.opt (Wpedantic): New.
3054 (pedantic): Alias Wpedantic.
3055 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3056 (c_common_post_options): Likewise.
3057 (sanitize_cpp_opts): Likewise.
3058 * c-lex.c (interpret_float): Likewise.
3059 * c-format.c (check_format_types): Likewise.
3060 * c-common.c (pointer_int_sum): Likewise.
3061 (c_sizeof_or_alignof_type): Likewise.
3062 (c_add_case_label): Likewise.
3063 (c_do_switch_warnings): Likewise.
3064 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3066 2012-04-15 Jason Merrill <jason@redhat.com>
3069 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3070 (C_STD_NAME): Distinguish between C++98 and C++11.
3072 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3075 * c-common.h (uint16_type_node): Rename into...
3076 (c_uint16_type_node): ...this.
3077 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3078 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3080 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3082 * c-common.c (warn_if_unused_value): Move definition to here.
3083 * c-common.h (warn_if_unused_value): Move declaration to here.
3085 2012-03-23 William Bader <williambader@hotmail.com>
3087 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3089 2012-03-20 Jason Merrill <jason@redhat.com>
3091 * c-common.h (enum cxx_dialect): Add cxx1y.
3092 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3094 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3095 * c-opts.c (c_common_post_options): Likewise.
3096 (set_std_cxx1y): New.
3097 (c_common_handle_option): Call it.
3098 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3100 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3103 * c.opt ([Wuseless-cast]): Add.
3105 2012-03-16 Richard Guenther <rguenther@suse.de>
3107 * c-pretty-print.c (pp_c_initializer_list): Adjust.
3109 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
3112 * c.opt (ftemplate-backtrace-limit) Add.
3114 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3116 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
3118 * c-pragma.c (handle_pragma_extern_prefix): Remove.
3119 (init_pragma): Don't register extern_prefix.
3121 2012-03-12 Richard Guenther <rguenther@suse.de>
3123 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
3124 (builtin_type_for_size): Likewise.
3126 2012-02-13 Jakub Jelinek <jakub@redhat.com>
3129 * c-common.c (sync_resolve_params): Don't decide whether to convert
3130 or not based on TYPE_SIZE comparison, convert whenever arg_type
3131 is unsigned INTEGER_TYPE.
3133 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
3136 * c.opt ([Wunused-local-typedefs]): Fix description.
3138 2012-01-24 Mike Stump <mikestump@comcast.net>
3140 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
3143 2012-01-18 Richard Guenther <rguenther@suse.de>
3145 * c-opts.c (c_common_post_options): Reset LTO flags if
3146 we are about to generate a PCH.
3148 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
3151 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
3152 use pp_unsigned_wide_integer.
3154 2012-01-10 Richard Guenther <rguenther@suse.de>
3157 * c-opts.c (c_common_handle_option): Move -Werror handling
3158 to language independent code.
3160 2012-01-05 Richard Guenther <rguenther@suse.de>
3163 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
3166 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
3169 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
3170 of array types with an unknown bound.
3172 2011-12-20 Joseph Myers <joseph@codesourcery.com>
3174 * c-common.c (flag_isoc99): Update comment to refer to C11.
3175 (flag_isoc1x): Change to flag_isoc11.
3176 * c-common.h (flag_isoc99): Update comment to refer to C11.
3177 (flag_isoc1x): Change to flag_isoc11.
3178 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
3180 * c-opts.c (set_std_c1x): Change to set_std_c11.
3181 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
3183 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
3184 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
3185 * c.opt (std=c1x): Change to std=c11. Document as non-draft
3187 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
3188 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
3189 (std=gnu1x): Make alias of std=gnu11.
3191 2011-12-19 Jason Merrill <jason@redhat.com>
3194 * c-common.c (handle_transparent_union_attribute): Check the first
3195 field if the type is complete.
3197 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
3200 * c-common.c (RID_IS_FINAL): Add.
3201 * c-common.h (RID_IS_FINAL): Add.
3203 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
3205 * c.opt (fgnu-runtime): Provide full description.
3206 (fnext-runtime): Likewise.
3207 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
3209 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
3211 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
3212 predefines in one place. Add LOCK_FREE predefines.
3213 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
3216 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
3219 * c-common.c (get_atomic_generic_size): Check for various error
3221 (resolve_overloaded_atomic_exchange,
3222 resolve_overloaded_atomic_compare_exchange,
3223 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
3224 error_mark_node for error conditions.
3226 2011-11-08 Richard Guenther <rguenther@suse.de>
3231 2011-11-07 Richard Henderson <rth@redhat.com>
3232 Aldy Hernandez <aldyh@redhat.com>
3233 Torvald Riegel <triegel@redhat.com>
3235 Merged from transactional-memory.
3237 * c-common.c (handle_tm_wrap_attribute,
3238 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
3239 (struct c_common_reswords): Added __transaction* keywords.
3240 (struct c_common_attribute_table): Added transaction* and tm_regparm
3242 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
3244 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
3245 find_tm_attribute): Declare.
3247 2011-11-07 Jason Merrill <jason@redhat.com>
3250 * c-common.c, c-common.h: Revert yesterday's changes.
3252 2011-11-06 Jason Merrill <jason@redhat.com>
3255 * c-common.c (decl_has_visibility_attr): Split out from...
3256 (c_determine_visibility): ...here.
3257 * c-common.h: Declare it.
3259 2011-11-06 Joseph Myers <joseph@codesourcery.com>
3261 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
3262 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
3264 (check_user_alignment): New. Split out of
3265 handle_aligned_attribute. Disallow integer constants with
3266 noninteger types. Conditionally allow zero.
3267 (handle_aligned_attribute): Use check_user_alignment.
3268 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
3270 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
3271 Richard Henderson <rth@redhat.com>
3273 Merged from cxx-mem-model.
3275 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
3276 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
3277 parameters that are the same type size.
3278 (get_atomic_generic_size): New. Find size of generic
3279 atomic function parameters and do typechecking.
3280 (add_atomic_size_parameter): New. Insert size into parameter list.
3281 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
3282 either __atomic_exchange_n or external library call.
3283 (resolve_overloaded_atomic_compare_exchange): Restructure
3284 __atomic_compare_exchange to either _n variant or external library call.
3285 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
3286 __atomic_load_n or an external library call.
3287 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
3288 __atomic_store_n or an external library call.
3289 (resolve_overloaded_builtin): Handle new __atomic builtins.
3291 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
3294 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
3295 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
3296 <INDIRECT_REF>: Return the argument.
3297 <ARRAY_REF>: Remove special code for negative offset.
3298 Call fold_build_pointer_plus instead of size_binop.
3299 (fold_offsetof): Remove STOP_REF argument and adjust.
3300 * c-common.h (fold_offsetof_1): Declare.
3301 (fold_offsetof): Remove STOP_REF argument.
3303 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
3306 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3307 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3308 Wnarrowing for C++0x and C++98.
3309 * c.opt ([Wnarrowing]): Update.
3311 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
3314 * c.opt: Add Wzero-as-null-pointer-constant.
3316 2011-10-31 Jason Merrill <jason@redhat.com>
3318 * c.opt (-fdeduce-init-list): Off by default.
3321 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
3322 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
3324 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
3326 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
3329 * c.opt (fvisibility-inlines-hidden): Description change.
3331 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
3333 Implement C++11 user-defined literals.
3334 * c-common.c (build_userdef_literal): New.
3335 * c-common.def: New tree code.
3336 * c-common.h (tree_userdef_literal): New tree struct and accessors.
3337 * c-lex.c (interpret_float): Add suffix parm.
3338 (c_lex_with_flags): Build literal tokens.
3340 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3344 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3347 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3348 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3349 Wnarrowing for C++0x and C++98.
3350 * c.opt ([Wnarrowing]): Update.
3352 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
3355 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
3356 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
3357 Wnarrowing for C++0x and C++98.
3358 * c.opt ([Wnarrowing]): Update.
3360 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
3363 * c-common.c (conversion_warning): Remove code looking for
3364 artificial operands.
3366 2011-10-18 Dodji Seketeli <dodji@redhat.com>
3369 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
3370 !NO_IMPLICIT_EXTERN_C.
3372 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
3374 * c-common.c (c_common_reswords): Add __bases,
3376 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
3378 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
3381 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
3383 2011-10-15 Tom Tromey <tromey@redhat.com>
3384 Dodji Seketeli <dodji@redhat.com>
3386 * c.opt (fdebug-cpp): New option.
3387 * c-opts.c (c_common_handle_option): Handle the option.
3388 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
3389 output stream in parameter. Factorized from ...
3390 (maybe_print_line): ... this. Dump location debug information when
3391 -fdebug-cpp is in effect.
3392 (print_line_1): New static function. Takes an output stream in
3393 parameter. Factorized from ...
3394 (print_line): ... here. Dump location information when -fdebug-cpp
3396 (scan_translation_unit): Dump location information when
3397 -fdebug-cpp is in effect.
3399 2011-10-15 Tom Tromey <tromey@redhat.com>
3400 Dodji Seketeli <dodji@redhat.com>
3402 * c.opt (ftrack-macro-expansion): New option. Handle it with and
3404 * c-opts.c (c_common_handle_option)<case
3405 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
3406 cases. Handle -ftrack-macro-expansion with and without argument.
3408 2011-10-15 Tom Tromey <tromey@redhat.com>
3409 Dodji Seketeli <dodji@redhat.com>
3411 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
3412 (print_line, cb_define, do_line_change): Adjust to avoid touching
3413 the internals of struct line_map. Use the public API instead.
3414 * c-pch.c (c_common_read_pch): Likewise.
3415 * c-lex.c (fe_file_change): Likewise.
3417 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
3420 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
3422 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
3425 * c-pretty-print.c (pp_c_floating_constant): Output
3426 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
3428 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3430 * c-common.c (def_builtin_1): Delete old interface with two
3431 parallel arrays to hold standard builtin declarations, and replace
3432 it with a function based interface that can support creating
3433 builtins on the fly in the future. Change all uses, and poison
3434 the old names. Make sure 0 is not a legitimate builtin index.
3435 * c-omp.c (c_finish_omp_barrier): Ditto.
3436 (c_finish_omp_taskwait): Ditto.
3437 (c_finish_omp_flush): Ditto.
3439 2011-10-11 Tristan Gingold <gingold@adacore.com>
3441 * c.opt: (fallow-parameterless-variadic-functions): New.
3443 2011-09-08 Dodji Seketeli <dodji@redhat.com>
3445 PR c++/33255 - Support -Wunused-local-typedefs warning
3446 * c-common.h (struct c_language_function::local_typedefs): New
3448 (record_locally_defined_typedef, maybe_record_typedef_use)
3449 (maybe_warn_unused_local_typedefs): Declare new functions.
3450 * c-common.c (record_locally_defined_typedef)
3451 (maybe_record_typedef_use)
3452 (maybe_warn_unused_local_typedefs): Define new functions.
3453 * c.opt: Declare new -Wunused-local-typedefs flag.
3455 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
3458 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
3461 2011-09-05 Richard Guenther <rguenther@suse.de>
3463 * c-common.c (complete_array_type): Use ssize_int (-1) instead
3464 of integer_minus_one_node for empty array upper bounds.
3466 2011-08-28 Dodji Seketeli <dodji@redhat.com>
3468 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
3469 it's the first time it's being called on this main TU.
3471 2011-08-24 Richard Guenther <rguenther@suse.de>
3474 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
3476 2011-08-22 Gabriel Charette <gchare@google.com>
3478 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
3479 defined in cpp_init_builtins and c_cpp_builtins.
3481 2011-08-19 Joseph Myers <joseph@codesourcery.com>
3483 * c-common.c (c_common_reswords): Add __builtin_complex.
3484 * c-common.h (RID_BUILTIN_COMPLEX): New.
3486 2011-08-18 Joseph Myers <joseph@codesourcery.com>
3488 * c-common.c (c_common_reswords): Add _Noreturn.
3489 (keyword_is_function_specifier): Handle RID_NORETURN.
3490 * c-common.h (RID_NORETURN): New.
3492 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3494 * c-common.c (unsafe_conversion_p): New function. Check if it is
3495 unsafe to convert an expression to the type.
3496 (conversion_warning): Adjust, use unsafe_conversion_p.
3497 * c-common.h (unsafe_conversion_p): New function declaration.
3499 2011-08-02 Jakub Jelinek <jakub@redhat.com>
3501 * c-common.h (c_finish_omp_atomic): Adjust prototype.
3502 (c_finish_omp_taskyield): New prototype.
3503 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
3504 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
3505 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
3506 or RHS1 have side-effects, evaluate those too in the right spot,
3507 if it is a decl and LHS is also a decl, error out if they
3509 (c_finish_omp_taskyield): New function.
3510 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
3511 * c-pragma.c (omp_pragmas): Add taskyield.
3512 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
3513 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
3514 PRAGMA_OMP_CLAUSE_MERGEABLE.
3516 2011-07-25 Dodji Seketeli <dodji@redhat.com>
3518 * c-common.h (set_underlying_type): Remove parm name from
3521 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
3523 * c-pretty-print.h: Search c-common.h in c-family.
3525 2011-07-22 Jason Merrill <jason@redhat.com>
3528 * c.opt (Wnarrowing): New.
3531 * c-common.h: Declare c_linkage_bindings.
3532 * c-pragma.c (handle_pragma_redefine_extname): Use it.
3535 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
3536 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
3537 as flag_isoc99 for 'restrict'.
3538 (pp_c_specifier_qualifier_list): Likewise for _Complex.
3540 2011-07-21 Ian Lance Taylor <iant@google.com>
3543 * c-common.c (c_disable_warnings): New static function.
3544 (c_enable_warnings): New static function.
3545 (c_fully_fold_internal): Change local unused_p to bool. Call
3546 c_disable_warnings and c_enable_warnings rather than change
3547 c_inhibit_evaluation_warnings.
3549 2011-07-20 Jason Merrill <jason@redhat.com>
3551 PR c++/6709 (DR 743)
3552 PR c++/42603 (DR 950)
3553 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
3554 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
3555 (CPP_DECLTYPE): New.
3556 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
3558 2011-07-19 Richard Guenther <rguenther@suse.de>
3560 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
3561 * c-omp.c (c_finish_omp_for): Likewise.
3563 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
3565 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
3566 body on the next line.
3568 2011-07-08 Jason Merrill <jason@redhat.com>
3571 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
3574 * c-common.c (c_apply_type_quals_to_decl): Don't check
3575 TYPE_NEEDS_CONSTRUCTING.
3577 2011-07-06 Richard Guenther <rguenther@suse.de>
3579 * c-common.c (c_common_nodes_and_builtins):
3580 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
3582 2011-07-05 Richard Guenther <rguenther@suse.de>
3584 * c-common.c (c_common_nodes_and_builtins): Build all common
3587 2011-06-27 Jakub Jelinek <jakub@redhat.com>
3589 * c-common.h (c_tree_chain_next): New static inline function.
3591 * c-common.c (check_builtin_function_arguments): Handle
3592 BUILT_IN_ASSUME_ALIGNED.
3594 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
3596 * c-common.c: Add sync_ or SYNC__ to builtin names.
3597 * c-omp.c: Add sync_ or SYNC__ to builtin names.
3599 2011-06-20 Pierre Vittet <piervit@pvittet.com>
3601 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
3603 (gen_pragma_handler): New union.
3604 (internal_pragma_handler): New type.
3605 (c_register_pragma_with_data)
3606 (c_register_pragma_with_expansion_and_data): New functions.
3608 * c-pragma.c (registered_pragmas, c_register_pragma_1)
3609 (c_register_pragma, c_register_pragma_with_expansion)
3610 (c_invoke_pragma_handler): Changed to work with
3611 internal_pragma_handler.
3612 (c_register_pragma_with_data)
3613 (c_register_pragma_with_expansion_and_data): New functions.
3615 2011-06-14 Joseph Myers <joseph@codesourcery.com>
3617 * c-common.c: Include common/common-target.h.
3618 (handle_section_attribute): Use
3619 targetm_common.have_named_sections.
3620 * c-cppbuiltin.c: Include common/common-target.h.
3621 (c_cpp_builtins): Use targetm_common.except_unwind_info.
3623 2011-06-10 Richard Guenther <rguenther@suse.de>
3625 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
3626 to print a IDENTIFIER_NODE.
3628 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3629 Joseph Myers <joseph@codesourcery.com>
3631 * c.opt (fbuilding-libgcc): New option.
3632 * c-cppbuiltin.c (c_cpp_builtins): Define
3633 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
3635 2011-06-07 Jason Merrill <jason@redhat.com>
3637 * c-common.c (max_tinst_depth): Lower default to 900.
3639 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
3641 2011-06-07 Richard Guenther <rguenther@suse.de>
3643 * c-common.c (c_common_nodes_and_builtins): Do not set
3644 size_type_node or call set_sizetype.
3646 2011-06-07 Dodji Seketeli <dodji@redhat.com>
3649 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
3650 type when using pointer comparison to compare types.
3652 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
3654 * c.opt: Add -Wdelete-non-virtual-dtor.
3655 * c-opts.c (c_common_handle_option): Include it in -Wall.
3657 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
3662 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3664 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3667 2011-05-27 Jakub Jelinek <jakub@redhat.com>
3670 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
3671 C++ don't call c_common_truthvalue_conversion on void type arms.
3673 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
3675 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
3676 (stmt_list_stack): Define.
3677 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
3678 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
3680 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3682 * c-common.c (warning_candidate_p): Check for BLOCKs.
3684 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
3686 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
3689 2011-05-25 Jakub Jelinek <jakub@redhat.com>
3691 * c-common.c (def_fn_type): Remove extra va_end.
3693 2011-05-23 Jason Merrill <jason@redhat.com>
3696 * c-common.c (c_common_get_narrower): New.
3697 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
3699 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
3701 * c-common.h (check_function_arguments): Tweak prototype of
3702 check_function_arguments.
3703 * c-common.c (check_function_arguments): Likewise. Adjust
3704 calls to check_function_nonnull, check_function_format, and
3705 check_function_sentinel.
3706 (check_function_sentinel): Take a FUNCTION_TYPE rather than
3707 separate attributes and typelist arguments. Use
3708 FOREACH_FUNCTION_ARGS to iterate over argument types.
3710 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3712 * c-common.c (c_common_reswords): Reorder.
3713 * c-common.h (rid): Likewise.
3715 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3717 * c-common.c (def_fn_type): Don't call build_function_type, call
3718 build_function_type_array or build_varargs_function_type_array
3720 (c_common_nodes_and_builtins): Likewise.
3722 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3724 * c-common.c (c_add_case_label): Omit the loc argument to
3726 * c-common.h (build_case_label): Remove.
3727 * c-semantics.c (build_case_label): Remove.
3729 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3731 * c-objc.h (objc_start_method_definition): Update prototype.
3732 * stub-objc.c (objc_start_method_definition): Add extra parameter.
3734 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3736 * c-common.c (check_main_parameter_types): Reindent. Don't use
3737 TYPE_ARG_TYPES directly.
3738 (handle_nonnull_attribute): Likewise.
3739 (sync_resolve_params): Likewise.
3740 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
3741 to check_format_string.
3742 (handle_format_attribute): Likewise.
3743 (check_format_string): Take a function type to examine instead of
3744 a type list. Use a function_arg_iterator to step through argument
3747 2011-05-04 Richard Guenther <rguenther@suse.de>
3749 * c-common.c (fix_string_type): Use size_int for index type bounds.
3750 (start_fname_decls): Do not pass NULL to build_int_cst.
3751 (c_init_attributes): Likewise.
3752 * c-lex.c (c_lex_with_flags): Likewise.
3754 2011-04-27 Jason Merrill <jason@redhat.com>
3756 * c-common.c (make_tree_vector_from_list): New.
3757 * c-common.h: Declare it.
3759 2011-04-26 Richard Guenther <rguenther@suse.de>
3761 PR preprocessor/48248
3762 * c-ppoutput.c (maybe_print_line): Always optimize newlines
3763 for output size with -P.
3765 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3767 * c-common.c (struct c_common_resword): Add __underlying_type.
3768 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
3770 2011-04-20 Jim Meyering <meyering@redhat.com>
3772 * c-format.c (init_dollar_format_checking): Remove useless
3775 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3777 * c-objc.h (objc_get_interface_ivars): Removed.
3778 (objc_detect_field_duplicates): New.
3779 * stub-objc.c: Likewise.
3781 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3783 * stub-objc.c (objc_declare_protocols): Renamed to
3784 objc_declare_protocol.
3785 * c-objc.h: Likewise.
3787 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3789 * stub-objc.c (objc_declare_class): Updated argument name.
3791 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
3793 * c-common.h (c_common_init_ts): Declare.
3794 * c-common.c (c_common_init_ts): Define.
3796 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
3798 * c-objc.h (objc_build_message_expr): Updated prototype.
3799 * stub-objc.c (objc_build_message_expr): Likewise.
3801 2011-04-12 Martin Jambor <mjambor@suse.cz>
3803 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
3806 2011-04-11 Richard Guenther <rguenther@suse.de>
3808 * c-common.c (complete_array_type): Build a range type of
3811 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
3813 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
3814 (handle_type_generic_attribute): Likewise.
3816 2011-04-07 Jason Merrill <jason@redhat.com>
3819 * c-common.c (c_common_truthvalue_conversion): Don't ignore
3820 conversion from C++0x scoped enum.
3822 2011-04-06 Joseph Myers <joseph@codesourcery.com>
3824 * c-target-def.h: New file.
3825 * c-target.def: New file.
3826 * c-target.h: New file.
3827 * c-common.c (targetcm): Don't define here.
3828 * c-common.h (default_handle_c_option): Declare.
3829 * c-format.c: Include c-target.h instead of target.h.
3830 * c-opts.c: Include c-target.h instead of target.h. Explicitly
3832 (default_handle_c_option): Move from targhooks.c.
3834 2011-03-29 Jakub Jelinek <jakub@redhat.com>
3836 PR preprocessor/48248
3837 * c-ppoutput.c (print): Add src_file field.
3838 (init_pp_output): Initialize it.
3839 (maybe_print_line): Don't optimize by adding up to 8 newlines
3840 if map->to_file and print.src_file are different file.
3841 (print_line): Update print.src_file.
3843 2011-03-25 Kai Tietz <ktietz@redhat.com>
3845 * c-ada-spec.c (compare_comment): Use filename_cmp
3846 instead of strcmp for filename.
3848 2011-03-25 Jeff Law <law@redhat.com>
3850 * c-common.c (def_fn_type): Add missing va_end.
3852 2011-03-25 Jason Merrill <jason@redhat.com>
3854 * c.opt: Add -std=c++03.
3856 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
3858 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
3860 2011-03-17 Kai Tietz
3863 * c-pretty-print.c (pp_c_specifier_qualifier_list):
3864 Display allowed attributes for function pointer types.
3865 (pp_c_attributes_display): New function to display
3866 attributes having affects_type_identity flag set to true.
3867 * c-pretty-print.h (pp_c_attributes_display): New prototype.
3869 * c-common.c (c_common_attribute_table):
3871 (c_common_format_attribute_table): Likewise.
3873 2011-03-18 Jason Merrill <jason@redhat.com>
3875 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
3876 * c-common.h: Don't declare it here.
3877 * c-common.c: Or define it here.
3878 * c-opts.c (c_common_handle_option): Or set it here.
3881 * c-common.c (handle_transparent_union_attribute): Don't
3882 make a duplicate type in C++.
3884 2011-03-15 Jason Merrill <jason@redhat.com>
3886 * c-common.c (max_constexpr_depth): New.
3887 * c-common.h: Declare it.
3888 * c-opts.c (c_common_handle_option): Set it.
3889 * c.opt (fconstexpr-depth): New option.
3891 2011-03-11 Jason Merrill <jason@redhat.com>
3893 * c-common.c (attribute_takes_identifier_p): Add missing const.
3896 * c-common.c (attribute_takes_identifier_p): Assume that an
3897 unknown attribute takes an identifier.
3899 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
3902 * c-common.c (c_type_hash): Call list_length instead of iterating
3903 through DECL_CHAIN. Rename 'i' to 'n_elements'.
3905 2011-02-19 Jakub Jelinek <jakub@redhat.com>
3908 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
3910 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
3912 * c.opt (fobjc-abi-version=) New.
3913 (fobjc-nilcheck): New.
3915 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
3918 * c-common.h (keyword_is_decl_specifier): Declare.
3919 * c-common.c (keyword_is_decl_specifier): Define.
3920 (keyword_is_function_specifier): New function.
3922 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3925 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
3926 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
3929 2011-01-26 Arnaud Charlet <charlet@adacore.com>
3931 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
3933 2011-01-26 Jakub Jelinek <jakub@redhat.com>
3936 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
3937 after init_c_lex if pch_file is set.
3939 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
3942 * c.opt (-fkeep-inline-dllexport): New switch.
3944 2011-01-12 Richard Guenther <rguenther@suse.de>
3947 * c-common.c (handle_weak_attribute): Warn instead of error
3948 on declaring an inline function weak.
3950 2011-01-05 Tom Tromey <tromey@redhat.com>
3952 * c-common.h (lvalue_error): Update.
3953 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
3956 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
3959 * c-objc.h (objc_finish_message_expr): Added argument to
3962 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
3964 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
3967 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
3969 * c-objc.h (objc_maybe_warn_exceptions): New.
3970 * stub-objc.c (objc_maybe_warn_exceptions): New.
3972 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
3974 * c-common.h (readonly_error): Declare.
3975 * c-common.c (readonly_error): Define.
3977 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
3979 * c-common.h (invalid_indirection_error): Declare.
3980 * c-common.c (invalid_indirection_error): Define.
3982 2010-12-03 Richard Guenther <rguenther@suse.de>
3985 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
3986 (pp_c_unary_expression): Likewise.
3987 (pp_c_expression): Likewise.
3989 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
3991 * c-common.h (objc_finish_function): New.
3992 (objc_non_volatilized_type): Removed.
3993 (objc_type_quals_match): Removed.
3994 * stub-objc.c (objc_finish_function): New.
3995 (objc_non_volatilized_type): Removed.
3996 (objc_type_quals_match): Removed.
3998 2010-11-30 Joseph Myers <joseph@codesourcery.com>
4000 * c-common.h (parse_optimize_options): Declare.
4001 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4002 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4004 2010-11-29 Joseph Myers <joseph@codesourcery.com>
4006 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4008 * c-pch.c (O_BINARY): Don't define here.
4009 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4011 2010-11-25 Joseph Myers <joseph@codesourcery.com>
4013 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4014 targetm.except_unwind_info.
4016 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4018 * c-opts.c (c_common_handle_option): Pass location to
4019 set_struct_debug_option.
4021 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4023 * c-common.c (visibility_options): Move from ../opts.c.
4024 * c-common.h (struct visibility_flags, visibility_options):
4026 * c-opts.c (finish_options): Rename to c_finish_options.
4027 (c_common_init): Update call to finish_options.
4029 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4032 * c-lex.c (lex_string): Check that each string in an Objective-C
4033 string concat sequence starts with either one or zero '@', and
4034 that there are no spurious '@' signs at the end.
4036 2010-11-20 Joseph Myers <joseph@codesourcery.com>
4038 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4039 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4040 HANDLE_PRAGMA_VISIBILITY.
4041 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4042 HANDLE_PRAGMA_VISIBILITY): Don't define.
4043 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4045 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4050 * c-common.h (keyword_begins_type_specifier): Declare.
4051 (keyword_is_storage_class_specifier): Declare.
4052 (keyword_is_type_qualifier): Declare.
4053 * c-common.c (keyword_begins_type_specifier): New function.
4054 (keyword_is_storage_class_specifier): New function.
4055 (keyword_is_type_qualifier): Declare.
4057 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4060 * c-common.c (in_late_binary_op): Define.
4061 (c_common_truthvalue_conversion): Check in_late_binary_op before
4062 calling c_save_expr.
4063 * c-common.h (in_late_binary_op): Declare.
4065 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4067 * c-opts.c (c_common_handle_option): Update calls to
4068 set_struct_debug_option.
4070 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4072 * c-common.h (objc_declare_protocols): Added additional argument.
4073 * stub-objc.c (objc_declare_protocol): Same change.
4075 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4078 * c-common.h (build_real_imag_expr): Declare.
4079 * c-semantics.c (build_real_imag_expr): Define.
4081 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4083 * c-opts.c (c_common_parse_file): Take no arguments.
4084 * c-common.h (c_common_parse_file): Update prototype.
4086 2010-11-16 Jakub Jelinek <jakub@redhat.com>
4089 * c-common.c (warning_candidate_p): Don't track non-const calls
4092 2010-11-15 Ian Lance Taylor <iant@google.com>
4094 * c-lex.c (init_c_lex): Set macro debug callbacks if
4095 flag_dump_go_spec is set.
4097 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4099 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4100 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4102 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4104 PR preprocessor/45038
4105 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
4108 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4110 * c-common.h (c_family_lang_mask): Declare.
4111 * c-opts.c (c_family_lang_mask): Make extern.
4112 * c-pragma.c (handle_pragma_diagnostic): Use
4113 control_warning_option.
4115 2010-11-12 Joseph Myers <joseph@codesourcery.com>
4117 * c-common.c (parse_optimize_options): Update call to
4119 * c-common.h (c_common_handle_option): Update prototype.
4120 * c-opts.c (c_common_handle_option): Take location_t parameter and
4121 pass it to other functions.
4123 2010-11-11 Joseph Myers <joseph@codesourcery.com>
4125 * c-opts.c (warning_as_error_callback): Remove.
4126 (c_common_initialize_diagnostics): Don't call
4127 register_warning_as_error_callback.
4128 (c_common_handle_option): Handle -Werror=normalized= here.
4130 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4132 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
4134 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
4136 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
4137 Remove trailing '.' from diagnostics.
4138 * c.opt (Wwrite-strings_: Avoid '`' in help text.
4140 2010-11-10 Joseph Myers <joseph@codesourcery.com>
4142 * c-common.c (parse_optimize_options): Pass global_dc to
4144 * c-opts.c (c_common_handle_option): Pass &global_options to
4145 set_Wstrict_aliasing.
4146 * c.opt (v): Don't mark Common or document here.
4148 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
4151 * c-format.c (format_type): New type gcc_objc_string_format_type.
4152 (valid_stringptr_type_p): New.
4153 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
4154 (check_format_string): Pass expected type, use
4155 valid_stringptr_type_p (), check that the format string types are
4156 consistent with the format specification.
4157 (decode_format_attr): Warn if NSString is used outside objective-c.
4158 (format_types_orig): Add NSString.
4160 (format_flags): New.
4161 (check_format_arg): Handle format strings requiring an external parser.
4162 first_target_format_type: New variable.
4163 (handle_format_attribute): Set up first_target_format_type, pass the
4164 expected format arg string type to check_format_string().
4165 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
4166 * stub-objc.c (objc_string_ref_type_p): New.
4167 (objc_check_format_arg): New.
4169 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
4171 Fixed using the Objective-C 2.0 dot-syntax with class names.
4172 * c-common.h (objc_build_class_component_ref): New.
4173 * stub-objc.c (objc_build_class_component_ref): New.
4175 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4177 * c.opt (Wproperty-assign-default): New option.
4179 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
4181 Implemented -fobjc-std=objc1 flag.
4182 * c.opt (fobjc-std=objc1): New option.
4184 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
4186 Implemented format and noreturn attributes for Objective-C methods.
4187 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
4188 attribute for Objective-C methods.
4190 2010-10-31 Jason Merrill <jason@redhat.com>
4192 * c-common.c (conversion_warning, warn_for_collisions_1): Use
4195 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4197 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4198 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
4199 (objc_add_property_declaration): Removed arguments for copies and
4201 (objc_build_getter_call): Renamed to
4202 objc_maybe_build_component_ref.
4203 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4204 (objc_is_property_ref): New.
4205 * c-common.c (c_common_reswords): Removed copies and ivar.
4206 * stub-objc.c (objc_add_property_declaration): Removed arguments
4207 for copies and ivar.
4208 (objc_build_getter_call): Renamed to
4209 objc_maybe_build_component_ref.
4210 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
4211 (objc_is_property_ref): New.
4213 2010-10-29 Arnaud Charlet <charlet@adacore.com>
4214 Matthew Gingell <gingell@adacore.com>
4216 * c-ada-spec.c (separate_class_package): New function.
4217 (pp_ada_tree_identifier): Prefix references to C++ classes with the
4218 name of their enclosing package.
4219 (print_ada_declaration): Use separate_class_package.
4221 2010-10-27 Jason Merrill <jason@redhat.com>
4223 * c-common.c (c_common_reswords): Add __is_literal_type.
4224 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
4226 * c-common.c (check_case_value): Remove special C++ code.
4228 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4230 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
4231 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
4233 (objc_add_property_declaration): Added additional arguments.
4234 (objc_property_attribute_kind): Removed.
4235 (objc_set_property_attr): Removed.
4236 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
4238 * stub-objc.c (objc_add_property_declaration): Added additional
4240 (objc_set_property_attr): Removed.
4242 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
4244 * c-common.h (objc_add_property_variable): Renamed to
4245 objc_add_property_declaration. Added location argument.
4246 * stub-objc.c (objc_add_property_variable): Same change.
4248 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
4250 * c-common.h (objc_maybe_printable_name): New.
4251 * stub-objc.c (objc_maybe_printable_name): New.
4253 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4254 Andrew Pinski <pinskia@gmail.com>
4256 * c-common.h (c_common_mark_addressable_vec): Declare.
4257 * c-common.c (c_common_mark_addressable_vec): New function.
4259 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4261 * c-common.h (objc_set_method_type): Removed.
4262 (objc_add_method_declaration): Added boolean argument.
4263 (objc_start_method_definition): Same change.
4264 (objc_build_method_signature): Same change.
4265 * stub-objc.c (objc_set_method_type): Removed.
4266 (objc_add_method_declaration): Added boolean argument.
4267 (objc_start_method_definition): Same change.
4268 (objc_build_method_signature): Same change.
4270 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
4272 * c-common.h (finish_file): Removed.
4273 (objc_write_global_declarations): New.
4274 * c-opts.c (c_common_parse_file): Do not call finish_file.
4275 * stub-objc.c (objc_write_global_declarations): New.
4277 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4279 Implemented parsing @synthesize and @dynamic for
4280 Objective-C/Objective-C++.
4281 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
4282 (objc_add_synthesize_declaration): New.
4283 (objc_add_dynamic_declaration): New.
4284 * c-common.c (c_common_reswords): Add synthesize and dynamic.
4285 * stub-objc.c (objc_add_synthesize_declaration): New.
4286 (objc_add_dynamic_declaration): New.
4288 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
4291 * c-cppbuiltin.c (mode_has_fma): Move function here from
4292 builtins.c. Don't use the fma optab, instead just use the
4293 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
4296 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
4298 Merge from 'apple/trunk' branch on FSF servers.
4300 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
4303 * c-common.h (objc_non_volatilized_type): New declaration
4304 * stub-objc.c (objc_non_volatilized_type): New stub.
4306 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
4308 Merge from 'apple/trunk' branch on FSF servers.
4310 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
4313 * c-common.h (objc_diagnose_private_ivar): New decl.
4314 * stub-objc.c (objc_diagnose_private_ivar): New stub.
4316 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
4318 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
4319 * c-common.h (enum rid): Add RID_AT_PACKAGE.
4320 (objc_ivar_visibility_kind): New enum.
4321 (objc_set_visibility): Adjust prototype to use visibility enum.
4322 * stub-objc.c (objc_set_visibility): Adjust stub to use
4325 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4327 * c-cppbuiltin.c (builtin_define_float_constants): Emit
4328 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
4329 has the appropriate fma builtins.
4330 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
4332 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
4334 merge from FSF apple 'trunk' branch.
4335 2006 Fariborz Jahanian <fjahanian@apple.com>
4337 Radars 4436866, 4505126, 4506903, 4517826
4338 * c-common.c (c_common_resword): Define @property and its attributes.
4339 * c-common.h: Define property attribute enum entries.
4340 (OBJC_IS_PATTR_KEYWORD): New.
4341 (objc_property_attribute_kind): New enum.
4342 Declare objc_set_property_attr (), objc_add_property_variable (),
4343 objc_build_getter_call () and objc_build_setter_call ().
4344 * stub-objc.c (objc_set_property_attr): New stub.
4345 (objc_add_property_variable): Likewise.
4346 (objc_build_getter_call): Likewise.
4347 (objc_build_setter_call) Likewise.
4349 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
4351 merge from FSF apple 'trunk' branch.
4352 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
4354 Radar 3803157 (method attributes)
4355 * c-common.c (handle_deprecated_attribute): Recognize
4356 objc methods as valid declarations.
4357 * c-common.h: Declare objc_method_decl ().
4358 * stub-objc.c (objc_method_decl): New stub.
4360 2010-10-08 Joseph Myers <joseph@codesourcery.com>
4362 * c-common.c (parse_optimize_options): Call
4363 decode_cmdline_options_to_array_default_mask before
4364 decode_options. Update arguments to decode_options.
4365 * c-common.h (c_common_init_options_struct): Declare.
4366 * c-opts.c (c_common_init_options_struct): New. Split out from
4367 c_common_init_options.
4369 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4371 Implemented fast enumeration for Objective-C.
4372 * c-common.h (objc_finish_foreach_loop): New.
4373 * stub-objc.c (objc_finish_foreach_loop): New.
4375 2010-10-05 Joseph Myers <joseph@codesourcery.com>
4377 * c-common.h (struct diagnostic_context): Don't declare here.
4378 (c_common_initialize_diagnostics): Declare using
4379 diagnostic_context typedef.
4380 * c-opts.c (c_common_handle_option): Pass global_dc to
4381 handle_generated_option.
4383 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4385 * c-opts.c (c_common_handle_option): Pass &global_options_set to
4386 handle_generated_option.
4388 2010-10-03 Ian Lance Taylor <iant@google.com>
4390 * c.opt (-fplan9-extensions): New option.
4392 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4394 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
4396 (c_cpp_builtins): Call functions from cppbuiltin.c instead
4397 of duplicating code.
4399 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
4401 * c-common.c: Add two new entries for @optional
4402 and @required keywords.
4404 merge from FSF 'apple/trunk' branch.
4405 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
4408 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
4409 objective-c keywords.
4410 (objc_set_method_opt): New declaration.
4411 * stub-objc.c (objc_set_method_opt): New stub.
4413 2010-09-30 Joseph Myers <joseph@codesourcery.com>
4415 * c-common.c (handle_optimize_attribute): Pass &global_options to
4416 cl_optimization_save and cl_optimization_restore.
4417 * c-opts.c (c_common_handle_option): Pass &global_options to
4418 handle_generated_option.
4419 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
4420 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
4421 &global_options to cl_optimization_restore.
4423 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
4425 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
4426 Objective-C/Objective-C++ keywords.
4428 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4430 Merge from 'apple/trunk' branch on FSF servers.
4432 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
4435 * c-common.h (objc_check_global_decl): New declaration.
4436 * stub-objc.c (objc_check_global_decl): New stub.
4438 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4440 * c.opt: Don't use VarExists.
4442 2010-09-29 Joseph Myers <joseph@codesourcery.com>
4444 * c-common.c (c_cpp_error): Update names of diagnostic_context
4446 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
4447 cl_optimization members.
4448 * c-opts.c (warning_as_error_callback, c_common_handle_option,
4449 sanitize_cpp_opts, finish_options): Update names of cpp_options
4452 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
4454 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
4455 (objc_is_reserved_word): Removed.
4456 * c-common.c: Updated comments.
4457 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
4458 objc_is_reserved_word.
4459 * stub-objc.c (objc_is_reserved_word): Removed.
4461 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4463 * c-common.h (objc_add_method_declaration): Adjust prototype to
4465 (objc_start_method_definition): Likewise.
4466 (objc_build_keyword_decl): Likewise.
4467 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
4468 (objc_start_method_definition): Likewise.
4469 (objc_build_keyword_decl): Likewise.
4471 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
4473 * c-common.h (objc_start_class_interface): Adjust prototype.
4474 (objc_start_category_interface): Likewise.
4475 (objc_start_protocol): Likewise.
4476 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
4477 (objc_start_class_interface): Likewise.
4478 (objc_start_category_interface): Likewise.
4480 2010-09-27 Ian Lance Taylor <iant@google.com>
4482 * c-common.c (c_common_attribute_table): Add no_split_stack.
4483 (handle_no_split_stack_attribute): New static function.
4485 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
4487 Merge from 'apple/trunk' branch on FSF servers.
4489 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
4492 * c-common.h (objc_have_common_type): New declaration.
4493 * stub-objc.c (objc_have_common_type): New stub.
4495 2005-06-22 Ziemowit Laski <zlaski@apple.com>
4498 * c-common.h (objc_common_type): New prototype.
4499 * stub-objc.c (objc_common_type): New stub.
4501 2010-09-24 Jan Hubicka <jh@suse.cz>
4503 * c-common.c (handle_leaf_attribute): New function.
4504 (struct attribute_spec c_common_att): Add leaf.
4506 2010-09-22 Joseph Myers <joseph@codesourcery.com>
4508 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
4509 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
4510 -dump, -dump=, -imacros, -imacros=, -include, -include=,
4511 -include-barrier, -include-directory, -include-directory=,
4512 -include-directory-after, -include-directory-after=,
4513 -include-prefix, -include-prefix=, -include-with-prefix,
4514 -include-with-prefix=, -include-with-prefix-after,
4515 -include-with-prefix-after=, -include-with-prefix-before,
4516 -include-with-prefix-before=, -no-integrated-cpp,
4517 -no-line-commands, -no-standard-includes, -no-warnings, -output,
4518 -output=, -pedantic, -pedantic-errors, -preprocess,
4519 -print-missing-file-dependencies, -trace-includes, -traditional,
4520 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
4521 -user-dependencies, -verbose, -write-dependencies,
4522 -write-user-dependencies, no-integrated-cpp, traditional): New.
4524 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4527 * c-common.h (objc_start_method_definition): Return bool instead
4529 * stub-objc.c (objc_start_method_definition): Return bool instead
4532 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
4535 * c-common.h (objc_get_interface_ivars): New declaration.
4536 * stub-objc.c (objc_get_interface_ivars): New stub.
4538 2010-09-15 Ian Lance Taylor <iant@google.com>
4540 * c-common.c (parse_optimize_options): Do not capitalize warning
4541 messages. Remove period at end of warning message.
4543 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
4545 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
4546 (handle_alias_attribute): ... here.
4547 (handle_ifunc_attribute): New.
4549 2010-09-06 Mark Mitchell <mark@codesourcery.com>
4551 * c-common.h (do_warn_double_promotion): Declare.
4552 * c-common.c (do_warn_double_promotion): Define.
4554 2010-09-05 Mark Mitchell <mark@codesourcery.com>
4556 * c.opt (Wdouble-promotion): New.
4558 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4560 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
4561 fvtable-thunks, fxref): Mark no longer supported in help text.
4563 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4565 * c.opt (Wimport, fall-virtual, falt-external-templates,
4566 fdefault-inline, fenum-int-equiv, fexternal-templates,
4567 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
4568 fname-mangling-version-, fnew-abi, fnonnull-objects,
4569 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
4570 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
4572 (fhandle-exceptions): Mark with Alias and Warn.
4573 * c-opts.c (c_common_handle_option): Don't handle options marked
4576 2010-09-02 Joseph Myers <joseph@codesourcery.com>
4578 * c.opt (Wcomments, Werror-implicit-function-declaration,
4579 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
4580 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
4582 * c-common.c (option_codes): Use OPT_Wcomment instead of
4584 * c-opts.c (warning_as_error_callback, c_common_handle_option):
4585 Don't handle options marked as aliases.
4587 2010-08-25 Richard Guenther <rguenther@suse.de>
4589 * c-common.c (c_common_get_alias_set): Remove special
4590 handling for pointers.
4592 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4594 * c-common.c: Use FOR_EACH_VEC_ELT.
4595 * c-gimplify.c: Likewise.
4596 * c-pragma.c: Likewise.
4598 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4600 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
4602 (MMDX): Change back to MMD. Mark NoDriverArg instead of
4604 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
4605 instead of OPT_MDX and OPT_MMDX.
4607 2010-08-16 Joseph Myers <joseph@codesourcery.com>
4609 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
4611 2010-08-12 Joseph Myers <joseph@codesourcery.com>
4613 * c.opt (MD, MMD): Change to MDX and MMDX.
4614 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
4616 2010-08-11 Joseph Myers <joseph@codesourcery.com>
4618 * c-opts.c (c_common_handle_option): Call handle_generated_option
4619 instead of handle_option.
4621 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4623 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
4624 (maybe_apply_renaming_pragma): Delete unneeded declarations.
4626 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4628 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
4629 (pending_redefine_extname): Change type to a VEC.
4630 (add_to_renaming_pragma_list): Update for new type of
4631 pending_redefine_extname.
4632 (maybe_apply_renaming_pragma): Likewise.
4634 2010-08-04 Arnaud Charlet <charlet@adacore.com>
4636 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
4638 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
4639 decide whether a type has already been declared/seen.
4640 Do not go to the original type.
4641 (dump_nested_types): New parameter forward.
4642 Generate forward declaration if needed and mark type as visited.
4643 (print_ada_declaration): Call dump_nested_types if not already done.
4644 Mark types as visited.
4646 2010-08-03 Joseph Myers <joseph@codesourcery.com>
4648 * c.opt (-print-pch-checksum): Remove option.
4649 * c-opts.c (c_common_handle_option): Don't handle
4650 OPT_print_pch_checksum.
4652 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4654 * c-common.h (c_common_handle_option): Update prototype and return
4656 * c-opts.c (c_common_handle_option): Update prototype and return
4657 value type. Update calls to handle_option and
4658 enable_warning_as_error.
4660 2010-07-27 Jakub Jelinek <jakub@redhat.com>
4663 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
4665 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4667 * c-common.h (c_common_missing_argument): Remove.
4668 * c-opts.c (c_common_missing_argument): Remove.
4669 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
4670 idirafter, imacros, include, isysroot, isystem, iquote): Add
4672 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
4674 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4676 * c-common.h (c_common_option_lang_mask,
4677 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
4679 (c_common_init_options): Update prototype.
4680 * c-opts.c (c_common_option_lang_mask): New.
4681 (c_common_initialize_diagnostics): Split out of
4682 c_common_init_options.
4683 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
4685 (c_common_init_options): Update prototype. Use decoded options in
4686 search for -lang-asm.
4688 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4690 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4691 * c-format.c: Likewise.
4693 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4695 * c-common.h: Include diagnostic-core.h. Error if already
4697 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
4699 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4701 * c-common.c (IN_GCC_FRONTEND): Do not undef.
4702 Do not include expr.h
4703 (vector_mode_valid_p): Move here.
4705 2010-06-21 DJ Delorie <dj@redhat.com>
4707 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
4708 allow these pragmas anywhere.
4710 2010-06-14 Jakub Jelinek <jakub@redhat.com>
4713 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
4714 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
4715 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
4716 ggc_strdup instead of xstrdup.
4718 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4720 * c-cppbuiltin.c: Include cpp-id-data.h.
4721 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
4722 (lazy_hex_fp_value): New function.
4723 (builtin_define_with_hex_fp_value): Provide definitions lazily.
4725 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4727 * c-gimplify.c: Do not include tree-flow.h
4729 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
4732 * c-common.c: Rename targetm member:
4733 targetm.enum_va_list -> targetm.enum_va_list_p
4735 2010-06-28 Anatoly Sokolov <aesok@post.ru>
4737 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
4739 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4741 * c-cppbuiltin.c: Do not include except.h.
4743 2010-06-24 Andi Kleen <ak@linux.intel.com>
4745 * c-common.c (warn_for_omitted_condop): New.
4746 * c-common.h (warn_for_omitted_condop): Add prototype.
4748 2010-06-21 Joseph Myers <joseph@codesourcery.com>
4750 * c.opt (lang-objc): Remove.
4751 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
4753 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
4755 * c-opts.c: Include "tm_p.h".
4757 2010-06-20 Joseph Myers <joseph@codesourcery.com>
4759 * c-common.c (parse_optimize_options): Update call to
4762 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
4764 * c-common.c (record_types_used_by_current_var_decl): Adjust for
4765 new type of types_used_by_cur_var_decl.
4767 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
4770 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
4771 for C++ standard compliance.
4773 2010-06-16 Jason Merrill <jason@redhat.com>
4775 * c.opt: Add -Wnoexcept.
4777 2010-06-16 Richard Guenther <rguenther@suse.de>
4780 * c-common.c (c_common_truthvalue_conversion): Remove
4781 premature and wrong optimization concering ADDR_EXPRs.
4783 2010-06-15 Arnaud Charlet <charlet@adacore.com>
4785 * c-ada-spec.c (dump_sloc): Remove column info.
4786 (is_simple_enum): New function.
4787 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
4788 enum types when relevant.
4790 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4792 * c-common.c (conversion_warning): Warn at expression
4795 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4797 * c-opts.c (c_common_handle_option): Don't handle
4800 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4802 * c-pragma.c (push_alignment): Use typed GC allocation.
4803 (handle_pragma_push_options): Likewise.
4805 * c-common.c (parse_optimize_options): Likewise.
4807 * c-common.h (struct sorted_fields_type): Add variable_size GTY
4810 2010-06-07 Joseph Myers <joseph@codesourcery.com>
4812 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
4813 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4814 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4815 flag_signed_bitfields, warn_strict_null_sentinel,
4816 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
4817 flag_gen_declaration, flag_no_gnu_keywords,
4818 flag_implement_inlines, flag_implicit_templates,
4819 flag_implicit_inline_templates, flag_optional_diags,
4820 flag_elide_constructors, flag_default_inline, flag_rtti,
4821 flag_conserve_space, flag_access_control, flag_check_new,
4822 flag_new_for_scope, flag_weak, flag_working_directory,
4823 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
4824 flag_enforce_eh_specs, flag_threadsafe_statics,
4825 flag_pretty_templates): Remove.
4826 * c-common.h (flag_preprocess_only, flag_nil_receivers,
4827 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
4828 flag_replace_objc_classes, flag_undef, flag_no_builtin,
4829 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
4830 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
4831 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
4832 flag_no_gnu_keywords, flag_implement_inlines,
4833 flag_implicit_templates, flag_implicit_inline_templates,
4834 flag_optional_diags, flag_elide_constructors, flag_default_inline,
4835 flag_rtti, flag_conserve_space, flag_access_control,
4836 flag_check_new, flag_new_for_scope, flag_weak,
4837 flag_working_directory, flag_use_cxa_atexit,
4838 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
4839 flag_threadsafe_statics, flag_pretty_templates,
4840 warn_strict_null_sentinel): Remove.
4841 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
4842 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
4843 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
4844 fimplicit-inline-templates, fimplicit-templates,
4845 flax-vector-conversions, fms-extensions, fnil-receivers,
4846 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
4847 frtti, fshort-double, fshort-enums, fshort-wchar,
4848 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
4849 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
4850 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
4851 gen-decls, undef): Use Var.
4852 (fdefault-inline, foptional-diags): Document as doing nothing.
4853 * c-opts.c (c_common_handle_option): Remove cases for options now
4854 using Var. Mark ignored options as such.
4856 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4858 * c-common.c: Moved to here from parent directory.
4859 * c-common.def: Likewise.
4860 * c-common.h: Likewise.
4861 * c-cppbuiltin.c: Likewise.
4862 * c-dump.c: Likewise.
4863 * c-format.c: Likewise.
4864 * c-format.h : Likewise.
4865 * c-gimplify.c: Likewise.
4866 * c-lex.c: Likewise.
4867 * c-omp.c: Likewise.
4869 * c-opts.c: Likewise.
4870 * c-pch.c: Likewise.
4871 * c-ppoutput.c: Likewise.
4872 * c-pragma.c: Likewise.
4873 * c-pragma.h: Likewise.
4874 * c-pretty-print.c: Likewise.
4875 * c-pretty-print.h: Likewise.
4876 * c-semantics.c: Likewise.
4877 * stub-objc.c: Likewise.
4879 * c-common.c: Include gt-c-family-c-common.h.
4880 * c-pragma.c: Include gt-c-family-c-pragma.h.
4882 Copyright (C) 2010-2015 Free Software Foundation, Inc.
4884 Copying and distribution of this file, with or without modification,
4885 are permitted in any medium without royalty provided the copyright
4886 notice and this notice are preserved.