1 2017-07-04 Release Manager
5 2017-05-26 Martin Liska <mliska@suse.cz>
8 2017-04-10 Martin Liska <mliska@suse.cz>
11 * c-ubsan.c (ubsan_instrument_shift): Evaluate RHS before
14 2017-05-05 Jakub Jelinek <jakub@redhat.com>
16 Backported from mainline
17 2017-03-31 Jakub Jelinek <jakub@redhat.com>
20 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to
22 * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle
23 not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with
26 2017-02-21 Jakub Jelinek <jakub@redhat.com>
29 * c-common.c (handle_mode_attribute): Use build_qualified_type to
32 2017-03-22 Martin Liska <mliska@suse.cz>
34 Backport from mainline
35 2017-03-09 Martin Liska <mliska@suse.cz>
37 * c-ada-spec.c (macro_length): Increment value instead of a pointer.
39 2017-03-21 Martin Sebor <msebor@redhat.com>
42 * c-common.c (set_underlying_type): Mark type used only when
43 original del is declared unused.
45 2017-03-14 Marek Polacek <polacek@redhat.com>
49 * c-common.c (handle_nonnull_attribute): Save the result of default
50 conversion to the attribute list.
52 2017-03-14 Richard Biener <rguenther@suse.de>
54 Backport from mainline
55 2017-03-02 Richard Biener <rguenther@suse.de>
58 * c-common.c (c_common_mark_addressable_vec): Look through
61 2017-01-10 Martin Liska <mliska@suse.cz>
63 Backport from mainline
64 2017-01-05 Martin Liska <mliska@suse.cz>
67 * c-opts.c (c_common_post_options): Reject '-' filename for a precompiled
70 2016-12-21 Release Manager
74 2016-10-28 Aldy Hernandez <aldyh@redhat.com>
77 * c-pretty-print.c (simple_type_specifier): Do not dereference `t'
80 2016-09-27 Richard Biener <rguenther@suse.de>
82 Backport from mainline
83 2016-09-06 Richard Biener <rguenther@suse.de>
86 * c-common.c (c_common_mark_addressable_vec): Handle
87 COMPOUND_LITERAL_EXPR.
89 2016-09-13 Tom de Vries <tom@codesourcery.com>
92 2016-09-13 Jason Merrill <jason@redhat.com>
93 Tom de Vries <tom@codesourcery.com>
96 * c-common.c (set_underlying_type): Don't treat array as builtin type.
98 2016-08-22 Release Manager
100 * GCC 6.2.0 released.
102 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
105 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
107 2016-06-14 Jakub Jelinek <jakub@redhat.com>
109 Backported from mainline
110 2016-06-10 Jakub Jelinek <jakub@redhat.com>
113 * c.opt (Wpsabi): Add Warning flag.
115 2016-06-13 Jakub Jelinek <jakub@redhat.com>
118 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
119 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
121 2016-05-30 Jakub Jelinek <jakub@redhat.com>
124 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
125 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
126 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
127 instead of C_OMP_CLAUSE_SPLIT_FOR.
129 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
132 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
133 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
134 reduction clauses in acc parallel loops.
136 2016-04-27 Release Manager
138 * GCC 6.1.0 released.
140 2016-04-19 Jason Merrill <jason@redhat.com>
142 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
144 2016-04-15 Marek Polacek <polacek@redhat.com>
147 * c-common.c (build_va_arg): Change two asserts into errors and return
150 2016-04-13 Marek Polacek <polacek@redhat.com>
153 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
154 for switch statements, too.
156 2016-03-28 Jason Merrill <jason@redhat.com>
158 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
160 2016-03-23 Marek Polacek <polacek@redhat.com>
163 * c.opt (Wignored-attributes): New option.
165 2016-03-22 David Malcolm <dmalcolm@redhat.com>
168 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
169 diagnostic text, reversing the order of the warning and note so
170 that they appear in source order.
172 2016-03-17 Marek Polacek <polacek@redhat.com>
175 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
178 2016-03-14 Jason Merrill <jason@redhat.com>
180 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
182 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
184 2016-03-09 Richard Biener <rguenther@suse.de>
187 * c-common.c (strict_aliasing_warning): Add back
188 alias_sets_conflict_p check.
190 2016-03-08 Jason Merrill <jason@redhat.com>
192 * c-opts.c (set_std_cxx1z): Don't enable concepts.
194 2016-03-04 David Malcolm <dmalcolm@redhat.com>
197 * c-indentation.c (get_visual_column): Move code to determine next
199 (next_tab_stop): ...this new function.
200 (line_contains_hash_if): Delete function.
201 (detect_preprocessor_logic): Delete function.
202 (get_first_nws_vis_column): New function.
203 (detect_intervening_unindent): New function.
204 (should_warn_for_misleading_indentation): Replace call to
205 detect_preprocessor_logic with a call to
206 detect_intervening_unindent.
208 2016-03-04 David Malcolm <dmalcolm@redhat.com>
211 * c-indentation.c (should_warn_for_misleading_indentation): When
212 suppressing warnings about cases where the guard and body are on
213 the same column, only use the first non-whitespace column in place
214 of the guard token column when dealing with "else" clauses.
215 When rejecting aligned BODY and NEXT, loosen the requirement
216 from equality with the first non-whitespace of guard to simply
217 that they not be indented relative to it.
219 2016-03-04 Richard Biener <rguenther@suse.de>
222 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
223 instead of alias_sets_conflict_p.
225 2016-03-01 Marek Polacek <polacek@redhat.com>
228 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
231 2016-02-22 Martin Sebor <msebor@redhat.com>
234 * c-common.c (check_builtin_function_arguments): Validate and
235 reject invalid arguments to __builtin_alloca_with_align.
237 2016-02-20 Mark Wielaard <mjw@redhat.com>
240 * c.opt (Wunused-const-variable): Turn into Alias for...
241 (Wunused-const-variable=): New option.
243 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
246 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
248 (c_common_init_options): ...to here.
249 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
251 2016-02-19 Jakub Jelinek <jakub@redhat.com>
254 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
255 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
256 flag_preprocess_only.
258 2016-02-16 Jakub Jelinek <jakub@redhat.com>
261 * c.opt (Wnonnull-compare): Enable for -Wall.
263 2016-02-15 Jakub Jelinek <jakub@redhat.com>
266 * c-common.c (sync_resolve_size): Diagnose too few arguments
267 even when params is non-NULL empty vector.
269 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
272 * c.opt (fshort-double): Remove.
274 2016-02-05 Martin Sebor <msebor@redhat.com>
277 * c.opt (Warning options): Update -Wplacement-new to take
278 an optional argument.
280 2016-02-01 Jakub Jelinek <jakub@redhat.com>
282 PR preprocessor/69543
284 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
285 instead of loc to control_warning_option.
287 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
289 * c.opt (fopenacc-dim=): New option.
291 2016-01-27 Ryan Burn <contact@rnburn.com>
294 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
295 gimplify_arg. Removed superfluous post_p argument.
296 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
297 superfluous post_p argument.
298 * c-gimplify.c (c_gimplify_expr): Likewise.
300 2016-01-26 David Malcolm <dmalcolm@redhat.com>
303 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
304 pp_newline_and_flush with pp_flush.
306 2016-01-20 Martin Sebor <msebor@redhat.com>
309 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
310 an incompatible argument when the argument isn't a valid tree node.
312 2016-01-18 Jason Merrill <jason@redhat.com>
315 * c-common.c (check_function_arguments_recurse): Fold the whole
316 COND_EXPR, not just the condition.
318 2016-01-18 Tom de Vries <tom@codesourcery.com>
320 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
321 classify as loop clause.
323 2016-01-15 Jakub Jelinek <jakub@redhat.com>
326 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
327 C++ FE no longer has limit on number of pragmas.
329 2015-01-14 Ryan Burn <contact@rnburn.com>
332 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
333 to add missing cleanup point.
335 2016-01-14 David Malcolm <dmalcolm@redhat.com>
338 * c-indentation.c (get_visual_column): Add location_t param.
339 Handle the column number being zero by effectively disabling the
340 warning, with an "inform".
341 (should_warn_for_misleading_indentation): Add location_t argument
342 for all uses of get_visual_column.
344 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
347 * c-indentation.c (should_warn_for_misleading_indentation):
348 Don't warn about do-while statements.
350 2016-01-07 Martin Sebor <msebor@redhat.com>
353 * c-common.c (sync_resolve_size): Reject first argument when it's
356 2016-01-05 David Malcolm <dmalcolm@redhat.com>
359 * c-indentation.c (get_visual_column): Remove default argument.
360 (should_warn_for_misleading_indentation): For the multiline case,
361 update call to get_visual_column for next_stmt_exploc so that it
362 captures the location of the first non-whitespace character in the
363 relevant line. Don't issue warnings if there is non-whitespace
364 before the next statement.
366 2016-01-04 Jakub Jelinek <jakub@redhat.com>
368 Update copyright years.
370 2015-12-21 David Malcolm <dmalcolm@redhat.com>
372 * c-common.c (binary_op_error): Convert first param from
373 location_t to rich_location * and use it when emitting an error.
374 * c-common.h (binary_op_error): Convert first param from
375 location_t to rich_location *.
377 2015-12-16 David Malcolm <dmalcolm@redhat.com>
379 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
380 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
382 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
384 * c-common.c (c_common_attribute_table): Handle "omp declare target
387 2015-12-14 Jakub Jelinek <jakub@redhat.com>
390 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
392 2014-12-12 Tobias Burnus <burnus@net-b.de>
395 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
396 specifiers (%d, %i,%u and %c).
398 2015-12-10 David Malcolm <dmalcolm@redhat.com>
400 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
402 2015-12-08 Jakub Jelinek <jakub@redhat.com>
406 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
407 * c-pragma.c (handle_pragma_diagnostic): Adjust
408 control_warning_option caller.
410 2015-12-07 David Malcolm <dmalcolm@redhat.com>
412 * c-common.c (c_cpp_error): Update for change to
413 rich_location::set_range.
415 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
417 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
418 shifting 1 out of the sign bit.
420 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
422 * c-common.c (c_common_attribute_table[]): Update max arguments
423 count for "simd" attribute.
424 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
426 2015-12-03 Jakub Jelinek <jakub@redhat.com>
428 PR preprocessor/57580
429 * c-ppoutput.c (print): Change printed field to bool.
430 Move src_file last for smaller padding.
431 (init_pp_output): Set print.printed to false instead of 0.
432 (scan_translation_unit): Fix up formatting. Set print.printed
433 to true after printing something other than newline.
434 (scan_translation_unit_trad): Set print.printed to true instead of 1.
435 (maybe_print_line_1): Set print.printed to false instead of 0.
436 (print_line_1): Likewise.
437 (do_line_change): Set print.printed to true instead of 1.
438 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
439 dump_macro): Set print.printed to false after printing newline.
441 2015-12-02 Jason Merrill <jason@redhat.com>
443 * c-common.c (fold_for_warn): New.
444 (warn_logical_operator, warn_tautological_cmp)
445 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
447 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
448 (c_fully_fold_internal, decl_constant_value_for_optimization):
450 * c-common.h: Don't declare decl_constant_value_for_optimization.
452 2015-12-02 Joseph Myers <joseph@codesourcery.com>
455 * c-common.h (c_build_qualified_type): Add extra default
458 2015-12-01 Julian Brown <julian@codesourcery.com>
459 Cesar Philippidis <cesar@codesourcery.com>
460 James Norris <James_Norris@mentor.com>
462 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
463 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
464 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
466 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
468 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
469 (decl_sloc_common): Delete and move bulk of processing to...
470 (decl_sloc): ...here.
471 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
472 (dump_ada_double_name): Remove S parameter and compute the suffix.
473 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
474 element type and deal with an anonymous one.
475 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
476 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
477 and remove reference to QUAL_UNION_TYPE.
478 (dump_nested_types): Make 2 passes on the fields and move bulk to...
479 (dump_nested_type): ...here. New function extracted from above.
480 Generate a full declaration for anonymous element type of arrays.
481 (print_ada_declaration): Really skip anonymous declarations. Remove
482 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
483 Clean up processing of declarations of array types and objects.
484 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
485 Remove obsolete code and tidy up.
487 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
490 * c-common.c (handle_transparent_union_attribute): Update
493 2015-11-27 Martin Liska <mliska@suse.cz>
496 * array-notation-common.c (cilkplus_extract_an_triplets):
497 Release vector of vectors.
498 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
500 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
503 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
504 (print_ada_struct_decl): Likewise.
506 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
509 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
510 * cilk.c (recognize_spawn): Determine location in a more precise
513 2015-11-19 Jason Merrill <jason@redhat.com>
515 * c-common.c (shorten_compare): But look through macros from
518 2015-11-18 Jason Merrill <jason@redhat.com>
520 * c-common.c (shorten_compare): Don't -Wtype-limits if the
521 non-constant operand comes from a macro.
523 2015-11-17 Jason Merrill <jason@redhat.com>
526 * c-common.c (warn_tautological_cmp): Fold before checking for
529 2015-11-16 Marek Polacek <polacek@redhat.com>
532 * c-common.c (check_case_bounds): Fold low and high cases.
534 2015-11-16 Marek Polacek <polacek@redhat.com>
536 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
537 * c-common.c (c_common_get_alias_set): Likewise.
538 (handle_visibility_attribute): Likewise.
540 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
542 * c-common.c (handle_simd_attribute): New.
543 (struct attribute_spec): Add entry for "simd".
544 (handle_simd_attribute): New.
546 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
548 * c-lex.c (interpret_float): Use fold_convert.
550 2015-11-13 David Malcolm <dmalcolm@redhat.com>
552 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
553 and store it on the result.
554 * c-opts.c (c_common_init_options): Set
555 global_dc->colorize_source_p.
557 2015-11-12 James Norris <jnorris@codesourcery.com>
558 Joseph Myers <joseph@codesourcery.com>
560 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
561 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
562 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
563 PRAGMA_OACC_CLAUSE_LINK.
565 2015-11-11 Marek Polacek <polacek@redhat.com>
569 * c-common.c (valid_array_size_p): New function.
570 * c-common.h (valid_array_size_p): Declare.
572 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
575 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
577 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
579 * array-notation-common.c: Remove unused header files.
580 * c-ada-spec.c: Likewise.
581 * c-cilkplus.c: Likewise.
582 * c-common.c: Likewise.
583 * c-cppbuiltin.c: Likewise.
584 * c-dump.c: Likewise.
585 * c-format.c: Likewise.
586 * c-gimplify.c: Likewise.
587 * c-indentation.c: Likewise.
590 * c-opts.c: Likewise.
592 * c-ppoutput.c: Likewise.
593 * c-pragma.c: Likewise.
594 * c-pretty-print.c: Likewise.
595 * c-semantics.c: Likewise.
596 * c-ubsan.c: Likewise.
598 * stub-objc.c: Likewise.
600 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
601 Cesar Philippidis <cesar@codesourcery.com>
602 James Norris <jnorris@codesourcery.com>
603 Julian Brown <julian@codesourcery.com>
604 Nathan Sidwell <nathan@codesourcery.com>
606 * c-pragma.c (oacc_pragmas): Add "routine".
607 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
609 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
611 * c-common.c (c_common_attributes): Add scalar_storage_order.
612 (handle_scalar_storage_order_attribute): New function.
613 * c-pragma.c (global_sso): New variable.
614 (maybe_apply_pragma_scalar_storage_order): New function.
615 (handle_pragma_scalar_storage_order): Likewise.
616 (init_pragma): Register scalar_storage_order.
617 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
618 * c.opt (Wscalar-storage-order): New warning.
619 (fsso-struct=): New option.
621 2015-11-08 Martin Sebor <msebor@redhat.com>
623 * c.opt (Wplacement-new): Add a period to the end of a sentence.
625 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
627 * c-common.c: Don't undef DEF_BUILTIN.
629 2015-11-06 David Malcolm <dmalcolm@redhat.com>
631 * c-common.c (c_cpp_error): Convert parameter from location_t to
632 rich_location *. Eliminate the "column_override" parameter and
633 the call to diagnostic_override_column.
634 Update the "done_lexing" clause to set range 0
635 on the rich_location, rather than overwriting a location_t.
636 * c-common.h (c_cpp_error): Convert parameter from location_t to
637 rich_location *. Eliminate the "column_override" parameter.
639 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
640 Thomas Schwinge <thomas@codesourcery.com>
641 James Norris <jnorris@codesourcery.com>
643 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
644 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
645 clauses with parallel and kernels and loops.
646 * c-pragma.h (enum pragma_omp_clause): Add entries for
647 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
648 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
649 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
651 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
653 2015-11-05 Martin Sebor <msebor@redhat.com>
656 * c.opt (-Wplacement-new): New option.
658 2015-11-05 Jakub Jelinek <jakub@redhat.com>
660 * c-common.h (c_finish_omp_atomic): Add TEST argument.
661 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
662 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
663 save_expr or create_tmp_var* if TEST is true.
664 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
665 Don't call add_stmt here.
666 (struct c_omp_check_loop_iv_data): New type.
667 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
668 c_omp_check_loop_iv_exprs): New functions.
669 (c_omp_split_clauses): Adjust for lastprivate being allowed on
671 (c_omp_declare_simd_clauses_to_numbers): Change
672 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
673 (c_omp_declare_simd_clauses_to_decls): Similarly change those
674 from numbers to PARM_DECLs.
676 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
678 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
681 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
684 * c-common.h (fold_offsetof_1): Add argument.
685 * c-common.c (fold_offsetof_1): Diagnose more invalid
686 offsetof expressions that reference elements past the end of
689 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
690 Chung-Lin Tang <cltang@codesourcery.com>
692 * c-pragma.c (oacc_pragmas): Add "atomic".
693 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
695 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
697 * c-common.c (handle_target_clones_attribute): New.
698 (c_common_attribute_table): Add handle_target_clones_attribute.
699 (handle_always_inline_attribute): Add check on target_clones attribute.
700 (handle_target_attribute): Ditto.
702 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
704 * array-notation-common.c: Reorder #include's and remove duplicates.
705 * c-ada-spec.c: Likewise.
706 * c-cilkplus.c: Likewise.
707 * c-common.c: Likewise.
708 * c-cppbuiltin.c: Likewise.
709 * c-dump.c: Likewise.
710 * c-format.c: Likewise.
711 * c-gimplify.c: Likewise.
712 * c-indentation.c: Likewise.
715 * c-opts.c: Likewise.
717 * c-ppoutput.c: Likewise.
718 * c-pragma.c: Likewise.
719 * c-pretty-print.c: Likewise.
720 * c-semantics.c: Likewise.
721 * c-ubsan.c: Likewise.
723 * stub-objc.c: Likewise.
725 2015-10-28 Jason Merrill <jason@redhat.com>
727 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
729 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
730 James Norris <jnorris@codesourcery.com>
731 Cesar Philippidis <cesar@codesourcery.com>
735 * c-common.h (c_oacc_split_loop_clauses): Declare function.
736 * c-omp.c (c_oacc_split_loop_clauses): New function.
738 2015-10-21 Martin Sebor <msebor@redhat.com>
741 * c.opt: End each sentence that describes an option with a period.
743 2015-10-20 Marek Polacek <polacek@redhat.com>
745 * array-notation-common.c (is_cilkplus_vector_p): Define.
746 * c-common.h (is_cilkplus_vector_p): Declare.
748 2015-10-20 Marek Polacek <polacek@redhat.com>
750 * c.opt (std=gnu++11): Do not describe as experimental.
751 (std=gnu++14): Likewise.
753 2015-10-19 Jason Merrill <jason@redhat.com>
755 * c-cppbuiltin.c (c_cpp_builtins): Define
756 __cpp_nontype_template_args.
758 2015-10-19 Jason Merrill <jason@redhat.com>
760 * c-cppbuiltin.c (c_cpp_builtins): Define
761 __cpp_enumerator_attributes, __cpp_fold_expressions,
762 __cpp_unicode_characters.
764 2015-10-13 Jakub Jelinek <jakub@redhat.com>
765 Aldy Hernandez <aldyh@redhat.com>
767 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
768 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
769 (c_define_builtins): Likewise.
770 * c-common.h (enum c_omp_clause_split): Add
771 C_OMP_CLAUSE_SPLIT_TASKLOOP.
772 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
773 (c_finish_omp_for): Add ORIG_DECLV argument.
774 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
775 201511 instead of 201307.
776 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
777 OMP_CRITICAL_CLAUSES to it.
778 (c_finish_omp_ordered): Add CLAUSES argument, set
779 OMP_ORDERED_CLAUSES to it.
780 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
781 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
782 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
783 constructs and new OpenMP 4.5 clauses. Clear
784 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
786 * c-pragma.c (omp_pragmas_simd): Add taskloop.
787 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
788 (enum pragma_omp_clause): Add
789 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
790 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
792 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
794 * c-lex.c (interpret_float): Use real_equal instead of
797 2015-10-04 Jason Merrill <jason@redhat.com>
799 Implement N4514, C++ Extensions for Transactional Memory.
800 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
801 (c_common_attribute_table): Add transaction_safe_dynamic.
802 transaction_safe now affects type identity.
803 (handle_tm_attribute): Handle transaction_safe_dynamic.
804 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
805 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
806 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
808 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
809 * c-pretty-print.c (pp_c_attributes_display): Don't print
810 transaction_safe in C++.
812 2015-10-02 Marek Polacek <polacek@redhat.com>
814 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
816 2015-10-02 Marek Polacek <polacek@redhat.com>
819 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
820 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
821 * c.opt (Wduplicated-cond): New option.
823 2015-10-01 Joseph Myers <joseph@codesourcery.com>
825 * c.opt (std=c11): Do not describe as experimental.
826 (std=gnu11): Likewise.
827 (std=iso9899:2011): Likewise.
829 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
831 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
832 (DEF_FUNCTION_TYPE_VAR_11): Delete.
834 2015-09-25 Marek Polacek <polacek@redhat.com>
836 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
837 (ubsan_instrument_shift): Likewise.
839 2015-09-25 Marek Polacek <polacek@redhat.com>
842 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
844 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
846 * c-indentation.c (should_warn_for_misleading_indentation):
847 Compare next_stmt_vis_column with guard_line_first_nws instead
848 of with guard_line_vis_column.
850 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
854 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
855 options and options not valid for the current language.
857 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
859 * c-indentation.c (should_warn_for_misleading_indentation):
860 Float out and consolidate the calls to get_visual_column that
861 are passed guard_exploc as an argument. Compare
862 next_stmt_vis_column with guard_line_first_nws instead of with
865 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
867 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
868 Wnamespaces): New C++ warnings.
870 2015-09-22 Jason Merrill <jason@redhat.com>
872 * c-common.h (abi_compat_version_crosses): New.
873 (warn_abi_version): Declare.
874 * c-common.c: Define it.
875 * c-opts.c (c_common_post_options): Handle it.
876 flag_abi_compat_version defaults to 8.
878 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
880 Complete the implementation of N4230, Nested namespace definition.
881 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
882 __cpp_nested_namespace_definitions.
884 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
886 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
888 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
890 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
892 * c-pragma.h (pragma_lex): Add optional loc argument.
894 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
896 * c-format.c (check_format_arg): Adjust to use common block size in all
899 2015-09-15 David Malcolm <dmalcolm@redhat.com>
901 * c-format.c (location_from_offset): Update for change in
902 signature of location_get_source_line.
903 * c-indentation.c (get_visual_column): Likewise.
904 (line_contains_hash_if): Likewise.
906 2015-09-14 Marek Polacek <polacek@redhat.com>
908 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
909 setting various warnings.
911 2015-09-14 Marek Polacek <polacek@redhat.com>
913 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
916 2015-09-11 Mark Wielaard <mjw@redhat.com>
919 * c.opt (Wunused-variable): Option from common.opt.
920 (Wunused-const-variable): New option.
922 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
925 * c.opt ([Wsubobject-linkage]): Add.
927 2015-09-03 Martin Sebor <msebor@redhat.com>
930 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
932 * c-common.c (reject_gcc_builtin): Define.
934 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
937 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
939 * c-gimplify.c (c_gimplify_expr): Added a call to the function
940 cilk_gimplify_call_params_in_spawned_fn.
941 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
942 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
945 2015-08-25 Marek Polacek <polacek@redhat.com>
948 * c-common.c (handle_weak_attribute): Don't check whether the
949 visibility can be changed here.
951 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
953 * c-lex.c (c_lex_with_flags): Use explicit locations.
955 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
957 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
958 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
960 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
963 * c-common.c (check_builtin_function_arguments): Add check
964 for BUILT_IN_SIGNBIT argument.
966 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
969 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
972 2015-08-17 Marek Polacek <polacek@redhat.com>
974 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
975 with whitespaces before qualifier names.
977 2015-08-12 Marek Polacek <polacek@redhat.com>
980 * c-common.c (maybe_warn_shift_overflow): Properly handle
981 left-shifting 1 into the sign bit.
983 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
985 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
987 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
988 Braden Obrzut <admin@maniacsvault.net>
989 Jason Merrill <jason@redhat.com>
991 Add C++ Concepts TS support.
992 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
993 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
994 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
995 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
996 * c-opts.c (set_std_cxx1z): Set flag_concepts.
997 * c.opt (fconcepts): New.
999 2015-08-02 Martin Sebor <msebor@redhat.com>
1001 * c.opt (-Wframe-address): New warning option.
1003 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1005 * c-indentation.c (should_warn_for_misleading_indentation):
1008 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1010 * c-indentation.c (get_visual_column): Add parameter first_nws,
1011 use it. Update comment documenting the function.
1012 (is_first_nonwhitespace_on_line): Remove.
1013 (should_warn_for_misleading_indentation): Replace usage of
1014 of is_first_nonwhitespace_on_line with get_visual_column.
1016 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1018 * c-indentation.h (struct token_indent_info): Define.
1019 (get_token_indent_info): Define.
1020 (warn_for_misleading_information): Declare.
1021 * c-common.h (warn_for_misleading_information): Remove.
1022 * c-identation.c (warn_for_misleading_indentation):
1023 Change declaration to take three token_indent_infos. Adjust
1025 * c-identation.c (should_warn_for_misleading_indentation):
1026 Likewise. Bail out early if the body is a compound statement.
1027 (guard_tinfo_to_string): Define.
1029 2015-07-30 Jason Merrill <jason@redhat.com>
1031 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1032 '*' for reference decay.
1034 2015-07-30 Marek Polacek <polacek@redhat.com>
1036 * c-common.c (warn_tautological_cmp): Bail for float types.
1038 2015-07-27 Marek Polacek <polacek@redhat.com>
1041 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1043 2015-07-27 Marek Polacek <polacek@redhat.com>
1047 * c-common.c (find_array_ref_with_const_idx_r): New function.
1048 (warn_tautological_cmp): New function.
1049 * c-common.h (warn_tautological_cmp): Declare.
1050 * c.opt (Wtautological-compare): New option.
1052 2015-07-23 Marek Polacek <polacek@redhat.com>
1054 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1055 (ubsan_instrument_shift): Likewise.
1057 2015-07-23 Marek Polacek <polacek@redhat.com>
1060 * c-ubsan.c: Include gimplify.h.
1061 (ubsan_instrument_division): Unshare OP0 and OP1.
1062 (ubsan_instrument_shift): Likewise.
1064 2015-07-20 Marek Polacek <polacek@redhat.com>
1065 Richard Sandiford <richard.sandiford@arm.com>
1068 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1069 Use EXPR_LOC_OR_LOC.
1070 (maybe_warn_shift_overflow): New function.
1071 * c-common.h (maybe_warn_shift_overflow): Declare.
1072 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1073 * c.opt (Wshift-overflow): New option.
1075 2015-07-16 Martin Liska <mliska@suse.cz>
1077 * c-format.c (static void check_format_info_main): Use
1078 object_allocator instead of pool_allocator.
1079 (check_format_arg): Likewise.
1080 (check_format_info_main): Likewise.
1082 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1084 * c-opts.c: Remove multiline #include comment.
1086 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1088 * c-common.c: Fix double word typos.
1090 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1092 * c-ada-spec.h (cpp_operation): Revert latest change.
1093 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1094 constructors and destructors.
1096 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
1098 * c-common.h: Adjust includes for flags.h changes.
1099 * stub-objc.c: Likewise.
1101 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1103 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1104 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1106 2015-07-08 Jakub Jelinek <jakub@redhat.com>
1108 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1109 are to be removed, return NULL rather than original clauses list.
1111 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1113 * array-notation-common.c: Adjust includes.
1114 * c-ada-spec.c: Likewise.
1115 * c-cilkplus.c: Likewise.
1116 * c-common.h: Likewise.
1117 * c-cppbuiltin.c: Likewise.
1118 * c-dump.c: Likewise.
1119 * c-format.c: Likewise.
1120 * c-gimplify.c: Likewise.
1121 * c-indentation.c: Likewise.
1122 * c-lex.c: Likewise.
1123 * c-omp.c: Likewise.
1124 * c-opts.c: Likewise.
1125 * c-pch.c: Likewise.
1126 * c-ppoutput.c: Likewise.
1127 * c-pragma.c: Likewise.
1128 * c-pretty-print.c: Likewise.
1129 * c-semantics.c: Likewise.
1130 * c-ubsan.c: Likewise.
1132 * stub-objc.c: Likewise.
1134 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1136 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1137 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1139 2015-07-01 Jason Merrill <jason@redhat.com>
1141 * c-common.h (D_CXX11): Rename from D_CXX0X.
1142 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1143 * c-common.c: Adjust.
1145 * c-opts.c (c_common_post_options): Default to C++14.
1147 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1149 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1151 Implement N4197 - Adding u8 character literals
1152 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
1154 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
1155 CPP_UTF8CHAR_USERDEF tokens.
1156 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
1157 and CPP_UTF8CHAR tokens.
1158 (lex_charconst): Treat CPP_UTF8CHAR token.
1160 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1163 * c-common.c (do_warn_unused_parameter): Move here.
1164 * c-common.h (do_warn_unused_parameter): Declare.
1166 2015-06-29 Marek Polacek <polacek@redhat.com>
1169 * c-common.c (check_case_bounds): Add bool * parameter. Set
1171 (c_add_case_label): Add bool * parameter. Pass it down to
1173 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1175 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1178 2015-06-27 Marek Polacek <polacek@redhat.com>
1180 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1181 or VECTOR_INTEGER_TYPE_P throughout.
1182 * c-gimplify.c: Likewise.
1184 2015-06-26 Marek Polacek <polacek@redhat.com>
1186 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1187 * c-common.c (c_fully_fold_internal): Likewise.
1188 (c_alignof_expr): Likewise.
1189 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1190 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
1191 * cilk.c (create_parm_list): Likewise.
1193 2015-06-26 Marek Polacek <polacek@redhat.com>
1195 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1197 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1199 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1200 * c-gimplify.c: Likewise.
1201 * c-pragma.c: Likewise.
1202 * c-ubsan.c: Likewise.
1205 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1207 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1210 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1212 * cilk.c: Move calls.h after tm.h in the include chain.
1214 2015-06-25 Marek Polacek <polacek@redhat.com>
1216 * array-notation-common.c: Use VAR_P throughout.
1217 * c-ada-spec.c: Likewise.
1218 * c-common.c: Likewise.
1219 * c-format.c: Likewise.
1220 * c-gimplify.c: Likewise.
1221 * c-omp.c: Likewise.
1222 * c-pragma.c: Likewise.
1223 * c-pretty-print.c: Likewise.
1226 2015-06-25 Marek Polacek <polacek@redhat.com>
1228 * cilk.c (extract_free_variables): Use is_global_var.
1230 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1232 * c-common.c: Don't include target-def.h.
1234 2015-06-23 Marek Polacek <polacek@redhat.com>
1236 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1237 when comparing INTEGER_CSTs.
1239 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1241 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1242 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1243 (dump_ada_template): Skip partially specialized types.
1245 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1247 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1250 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1252 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1253 * c-ada-spec.c: Likewise.
1254 * c-cilkplus.c: Likewise.
1255 * c-common.c: Likewise.
1256 * c-common.h: Likewise.
1257 * c-cppbuiltin.c: Likewise.
1258 * c-dump.c: Likewise.
1259 * c-format.c: Likewise.
1260 * c-gimplify.c: Likewise.
1261 * c-indentation.c: Likewise.
1262 * c-lex.c: Likewise.
1263 * c-omp.c: Likewise.
1264 * c-opts.c: Likewise.
1265 * c-pch.c: Likewise.
1266 * c-ppoutput.c: Likewise.
1267 * c-pragma.c: Likewise.
1268 * c-pretty-print.c: Likewise.
1269 * c-semantics.c: Likewise.
1270 * c-ubsan.c: Likewise.
1272 * stub-objc.c: Likewise.
1274 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1277 * c-common.c (c_common_truthvalue_conversion): Warn when
1278 converting an address of a reference to a truth value.
1280 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1282 * array-notation-common.c : Adjust include files.
1283 * c-ada-spec.c : Likewise.
1284 * c-cilkplus.c : Likewise.
1285 * c-common.c : Likewise.
1286 * c-common.h : Likewise.
1287 * c-cppbuiltin.c : Likewise.
1288 * c-dump.c : Likewise.
1289 * c-format.c : Likewise.
1290 * c-gimplify.c : Likewise.
1291 * c-indentation.c : Likewise.
1292 * c-lex.c : Likewise.
1293 * c-omp.c : Likewise.
1294 * c-opts.c : Likewise.
1295 * c-pch.c : Likewise.
1296 * c-ppoutput.c : Likewise.
1297 * c-pragma.c : Likewise.
1298 * c-pretty-print.c : Likewise.
1299 * c-semantics.c : Likewise.
1300 * c-ubsan.c : Likewise.
1301 * cilk.c : Likewise.
1302 * stub-objc.c : Likewise.
1304 2015-06-08 Marek Polacek <polacek@redhat.com>
1307 * c-format.c (location_from_offset): Return LOC if LINE is null.
1309 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1311 * c-common.h (c_parse_final_cleanups): New prototype.
1312 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1314 2015-06-04 Sriraman Tallam <tmsriram@google.com>
1316 * c-common.c (noplt): New attribute.
1317 (handle_noplt_attribute): New handler.
1319 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1321 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1322 * c-ada-spec.c: Likewise.
1323 * c-cilkplus.c: Likewise.
1324 * c-common.c: Likewise.
1325 * c-common.h: Likewise.
1326 * c-cppbuiltin.c: Likewise.
1327 * c-dump.c: Likewise.
1328 * c-format.c: Likewise.
1329 * c-gimplify.c: Likewise.
1330 * c-indentation.c: Likewise.
1331 * c-lex.c: Likewise.
1332 * c-omp.c: Likewise.
1333 * c-opts.c: Likewise.
1334 * c-pch.c: Likewise.
1335 * c-ppoutput.c: Likewise.
1336 * c-pragma.c: Likewise.
1337 * c-pretty-print.c: Likewise.
1338 * c-semantics.c: Likewise.
1339 * c-ubsan.c: Likewise.
1341 * stub-objc.c: Likewise.
1343 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1346 * c-indentation.c (should_warn_for_misleading_indentation): Use
1347 expand_location rather than expand_location_to_spelling_point.
1348 Don't warn if the guarding statement is more indented than the
1351 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1353 * c-indentation.c (warn_for_misleading_indentation): Bail out
1354 immediately if -Wmisleading-indentation isn't enabled.
1356 2015-06-01 Martin Liska <mliska@suse.cz>
1358 * c-format.c (check_format_arg):Use new type-based pool allocator.
1359 (check_format_info_main) Likewise.
1361 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1363 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1364 (has_nontrivial_methods): Likewise.
1366 2015-05-25 Marek Polacek <polacek@redhat.com>
1368 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1370 2015-05-22 Marek Polacek <polacek@redhat.com>
1373 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1375 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1377 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1378 STACK_GROWS_DOWNWARD.
1380 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1382 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1383 STACK_GROWS_DOWNWARD rather than if it is defined.
1385 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1388 * c-format.c (location_column_from_byte_offset): New.
1389 (location_from_offset): New.
1390 (struct format_wanted_type): Add offset_loc field.
1391 (check_format_info): Move handling of location for extra arguments
1392 closer to the point of warning.
1393 (check_format_info_main): Pass the result of location_from_offset
1395 (format_type_warning): Pass the result of location_from_offset
1398 2015-05-20 Marek Polacek <polacek@redhat.com>
1400 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1402 2015-05-20 Marek Polacek <polacek@redhat.com>
1404 * c-ada-spec.c (dump_sloc): Use DECL_P.
1406 2015-05-20 Marek Polacek <polacek@redhat.com>
1408 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1409 * c-common.c: Likewise.
1411 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1413 * c-common.h (fe_file_change): Strengthen param from
1414 const line_map * to const line_map_ordinary *.
1415 (pp_file_change): Likewise.
1416 * c-lex.c (fe_file_change): Likewise.
1417 (cb_define): Use linemap_check_ordinary when invoking
1419 (cb_undef): Likewise.
1420 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1421 invoking cb_file_change.
1422 (c_finish_options): Likewise.
1423 (push_command_line_include): Likewise.
1424 (cb_file_change): Strengthen param "new_map" from
1425 const line_map * to const line_map_ordinary *.
1426 * c-ppoutput.c (cb_define): Likewise for local "map".
1427 (pp_file_change): Likewise for param "map" and local "from".
1429 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1431 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1433 2015-05-18 Tom de Vries <tom@codesourcery.com>
1435 * c-common.c (build_va_arg_1): New function.
1436 (build_va_arg): Add address operator to va_list operand if necessary.
1438 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1441 * c-common.c (int_safely_convertible_to_real_p): Define.
1442 (unsafe_conversion_p): Check conversions involving complex types.
1443 (conversion_warning): Add new warning message for conversions which
1444 discard imaginary component.
1445 * c-common.h: (enum conversion_safety): Add new enumerator for such
1448 2015-05-14 Marek Polacek <polacek@redhat.com>
1452 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1453 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1454 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1455 use it. If FOR_INT_CONST, require that all evaluated operands be
1458 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1460 * c-common.h (warn_for_misleading_indentation): New prototype.
1461 * c-indentation.c: New file.
1462 * c.opt (Wmisleading-indentation): New option.
1464 2015-05-12 Tom de Vries <tom@codesourcery.com>
1466 PR tree-optimization/66010
1467 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1469 2015-05-09 Jason Merrill <jason@redhat.com>
1471 * c-opts.c (c_common_post_options): Also clear
1472 cpp_opts->cpp_warn_cxx11_compat.
1474 * c-common.h (enum cxx_dialect): Add cxx_unset.
1475 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1476 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1478 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1479 (std=gnu++0x): Mark as Undocumented.
1480 (std=gnu++1y): Add deprecated message.
1482 2015-05-08 Jason Merrill <jason@redhat.com>
1484 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1487 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1489 2015-05-08 Marek Polacek <polacek@redhat.com>
1492 * c.opt (Woverride-init-side-effects): New option.
1494 2015-05-07 Marek Polacek <polacek@redhat.com>
1497 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1499 * c.opt (Wshift-negative-value): New option.
1500 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1501 when -Wextra and C99/C++11 mode.
1503 2015-05-07 Marek Polacek <polacek@redhat.com>
1504 Martin Uecker <uecker@eecs.berkeley.edu>
1506 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1507 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1509 2015-05-05 Jason Merrill <jason@redhat.com>
1511 * c.opt (Wterminate): New.
1513 2015-04-30 Marek Polacek <polacek@redhat.com>
1515 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1516 require that the non-constant be of a boolean type.
1518 2015-04-29 Josh Triplett <josh@joshtriplett.org>
1520 * c-common.c (handle_section_attribute): Refactor to reduce
1521 nesting and distinguish between error cases.
1523 2015-04-29 Marek Polacek <polacek@redhat.com>
1526 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1529 2015-04-29 Jakub Jelinek <jakub@redhat.com>
1531 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1532 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1533 HOST_BITS_PER_WIDE_INT.
1535 2015-04-28 Tom de Vries <tom@codesourcery.com>
1537 PR tree-optimization/65887
1538 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1540 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
1541 Pierre-Marie de Rodat <derodat@adacore.com>
1543 * c-ada-spec.c (in_function): Delete.
1544 (dump_generic_ada_node): Do not change in_function and remove the
1545 redundant code dealing with it.
1546 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1547 (print_ada_methods): Output the static member functions in a nested
1548 package after the regular methods as well as associated renamings.
1550 2015-04-24 Marek Polacek <polacek@redhat.com>
1553 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1554 and OPT_Wshift_count_overflow.
1557 * c-common.c (warn_logical_operator): Warn if the operands have the
1560 2015-04-24 Marek Polacek <polacek@redhat.com>
1563 * c-common.c (warn_logical_operator): Bail if either operand comes
1564 from a macro expansion.
1566 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1569 * c-common.c (c_default_pointer_mode): Add definition.
1570 * c-common.h (c_default_pointer_mode): Add declaration.
1572 2015-03-11 Jakub Jelinek <jakub@redhat.com>
1574 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1575 on record_builtin_type argument.
1577 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1580 * c-common.c (warn_logical_not_parentheses): Don't warn for
1583 2015-03-07 Marek Polacek <polacek@redhat.com>
1586 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1587 before trying to figure out whether we have a flexible array member.
1589 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1590 Jonathan Wakely <jwakely.gcc@gmail.com>
1592 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1594 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1597 * c-ada-spec.c (print_destructor): Remove obsolete code.
1599 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1601 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1602 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1603 DECL_TEMPLATE_RESULT emulations.
1604 (dump_ada_template)): Add guard for TYPE_METHODS.
1606 2015-02-27 Marek Polacek <polacek@redhat.com>
1609 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1611 2015-02-27 Kai Tietz <ktietz@redhat.com>
1614 * c-pragma.c (handle_pragma_weak): Do not try to create
1615 weak/alias of declarations not being function, or variable
1618 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1621 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1623 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1625 2015-02-16 Marek Polacek <polacek@redhat.com>
1628 * c-format.c (check_format_types): Handle null param.
1630 2015-02-13 Marek Polacek <polacek@redhat.com>
1633 * c-format.c (check_format_types): Don't warn about different
1634 signedness if the original value is in the range of WANTED_TYPE.
1636 2015-02-12 Jason Merrill <jason@redhat.com>
1639 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1640 to the current highest version.
1641 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1643 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1647 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1648 instead of RDIV_EXPR. Use build_binary_op instead of
1651 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1653 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1654 to pass input_location as first argument.
1656 2015-01-23 Tom de Vries <tom@codesourcery.com>
1659 * c.opt (fopenacc): Mark as LTO option.
1661 2015-01-23 Tom de Vries <tom@codesourcery.com>
1664 * c.opt (fopenmp): Mark as LTO option.
1666 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1669 * cilk.c (fill_decls_vec): Only put decls into vector v.
1670 (compare_decls): Fix up formatting.
1672 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1675 * cilk.c: Include vec.h.
1676 (struct cilk_decls): New structure.
1677 (wrapper_parm_cb): Split this function to...
1678 (fill_decls_vec): ...this...
1679 (create_parm_list): ...and this.
1680 (compare_decls): New function.
1681 (for_local_cb): Remove.
1682 (wrapper_local_cb): Ditto.
1683 (build_wrapper_type): For now first traverse and fill vector of
1684 declarations then sort it and then deal with sorted vector.
1685 (cilk_outline): Ditto.
1686 (declare_one_free_variable): Ditto.
1688 2015-01-21 Jason Merrill <jason@redhat.com>
1691 * c-format.c (check_format_arg): Call decl_constant_value.
1693 2015-01-19 Martin Liska <mliska@suse.cz>
1695 * c-common.c (handle_noicf_attribute): New function.
1697 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1698 Bernd Schmidt <bernds@codesourcery.com>
1699 James Norris <jnorris@codesourcery.com>
1700 Cesar Philippidis <cesar@codesourcery.com>
1701 Ilmir Usmanov <i.usmanov@samsung.com>
1702 Jakub Jelinek <jakub@redhat.com>
1704 * c.opt (fopenacc): New option.
1705 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1706 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1708 * c-common.h (c_finish_oacc_wait): New prototype.
1709 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1710 (c_finish_oacc_wait): New function.
1711 * c-pragma.c (oacc_pragmas): New variable.
1712 (c_pp_lookup_pragma, init_pragma): Handle it.
1713 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1714 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1715 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1716 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1717 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1718 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1719 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1720 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1721 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1722 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1723 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1724 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1725 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1726 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1727 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1728 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1729 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1730 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1731 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1732 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1733 PRAGMA_OACC_CLAUSE_WORKER.
1735 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1737 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1738 for the new option fstack-protector_explicit.
1739 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1740 (handle_stack_protect_attribute): New function.
1742 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1744 * c.opt: New option -Warray-bounds=.
1746 2015-01-09 Michael Collison <michael.collison@linaro.org>
1748 * array-notation-common.c: Include hash-set.h, machmode.h,
1749 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1750 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1751 * c-ada-spec.c: Ditto.
1752 * c-cilkplus.c: Ditto.
1753 * c-common.c: Include input.h due to flattening of tree.h.
1754 Define macro GCC_C_COMMON_C.
1755 * c-common.h: Flatten tree.h header files into c-common.h.
1756 Remove include of tree-core.h.
1757 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1758 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1759 fold-const.h, wide-int.h, and inchash.h due to
1760 flattening of tree.h.
1762 * c-format.c: Flatten tree.h header files into c-common.h.
1763 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1764 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1765 fold-const.h, wide-int.h, and inchash.h due to
1766 flattening of tree.h.
1767 * c-dump.c: Include hash-set.h, machmode.h,
1768 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1769 fold-const.h, wide-int.h, and inchash.h due to
1770 flattening of tree.h.
1771 * c-format.c: Include hash-set.h, machmode.h,
1772 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1773 fold-const.h, wide-int.h, inchash.h and real.h due to
1774 flattening of tree.h.
1775 * c-gimplify.c: Include hash-set.h, machmode.h,
1776 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1777 fold-const.h, wide-int.h, and inchash.h due to
1778 flattening of tree.h.
1784 * c-ppoutput.c: Ditto.
1785 * c-pragma.c: Ditto.
1786 * c-pretty-print.c: Ditto.
1787 * c-semantics.c: Ditto.
1789 * stub-objc.c: Ditto.
1791 2015-01-08 Jason Merrill <jason@redhat.com>
1793 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1794 do_ubsan_in_current_function.
1795 (ubsan_maybe_instrument_reference_or_call): Likewise.
1796 * c-ubsan.h: Declare it.
1798 2015-01-08 Mike Stump <mikestump@comcast.net>
1800 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1802 2015-01-07 Marek Polacek <polacek@redhat.com>
1805 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1806 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1808 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1811 * c.opt (Wsuggest-override): New option.
1813 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1815 Update copyright years.
1817 2015-01-05 Marek Polacek <polacek@redhat.com>
1820 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1822 * c-common.h (warn_array_subscript_with_type_char): Update
1825 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1827 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1828 Control macro with flag_sized_deallocation.
1830 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1832 * c.opt (Wdiscarded-array-qualifiers): New option.
1834 2014-12-19 Jakub Jelinek <jakub@redhat.com>
1836 PR preprocessor/63831
1837 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1838 and __has_cpp_attribute here.
1839 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1840 c_common_has_attribute.
1841 * c-common.h (c_common_has_attribute): New prototype.
1842 * c-lex.c (init_c_lex): Set cb->has_attribute to
1843 c_common_has_attribute instead of cb_has_attribute.
1844 (get_token_no_padding): New function.
1845 (cb_has_attribute): Renamed to ...
1846 (c_common_has_attribute): ... this. No longer static. Use
1847 get_token_no_padding, require ()s, don't build TREE_LIST
1848 unnecessarily, fix up formatting, adjust diagnostics, call
1851 2014-12-15 Jason Merrill <jason@redhat.com>
1853 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1854 (-Wsized-deallocation): New.
1855 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1856 to on in C++14 and up.
1858 2014-12-11 Jason Merrill <jason@redhat.com>
1860 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1862 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1863 we aren't complaining about VLAs.
1865 2014-12-06 Marek Polacek <polacek@redhat.com>
1867 PR tree-optimization/64183
1868 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1869 shift-expression if it is integer_type_node. Use types_compatible_p.
1871 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1873 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1874 last argument from create_tmp_var_raw and create_tmp_var calls.
1875 * cilk.c (gimplify_cilk_spawn): Likewise.
1876 * c-omp.c (c_finish_omp_atomic): Likewise.
1878 2014-11-28 Marek Polacek <polacek@redhat.com>
1880 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1881 instead of unsigned_type_node.
1883 2014-11-28 Marek Polacek <polacek@redhat.com>
1886 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1888 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1889 expression to unsigned_type_node.
1891 2014-11-20 Mark Wielaard <mjw@redhat.com>
1894 * c-opts.c (set_std_c89): Set lang_hooks.name.
1895 (set_std_c99): Likewise.
1896 (set_std_c11): Likewise.
1897 (set_std_cxx98): Likewise.
1898 (set_std_cxx11): Likewise.
1899 (set_std_cxx14): Likewise.
1900 (set_std_cxx1z): Likewise.
1902 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1905 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1906 return type to bool.
1907 * c-common.c: Include gimple-expr.h.
1908 (convert_vector_to_pointer_for_subscript): Change return type to
1909 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1910 and copy it into a TARGET_EXPR and use that instead of *vecp
1913 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1915 Merger of git branch "gimple-classes-v2-option-3".
1916 * ChangeLog.gimple-classes: New.
1917 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1918 from being just a vec<gimple> to a vec<gbind *>.
1920 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1923 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1924 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1925 get_pointer_alignment for non-pointers. Use ptype, or if it is
1926 reference type, corresponding pointer type, as type of kind
1928 (ubsan_maybe_instrument_reference,
1929 ubsan_maybe_instrument_member_call): Adjust callers.
1931 2014-11-15 Marek Polacek <polacek@redhat.com>
1934 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1936 (extract_array_notation_exprs): Return for NULL node.
1938 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1940 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1941 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1943 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1946 * c-common.c (check_builtin_function_arguments): Handle
1947 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1949 2014-11-10 Andi Kleen <ak@linux.intel.com>
1952 * c-common.h (check_no_cilk): Declare.
1953 * cilk.c (get_error_location): New function.
1954 (check_no_cilk): Dito.
1956 2014-11-10 Andi Kleen <ak@linux.intel.com>
1958 * cilk.c (recognize_spawn): Use expression location
1961 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1963 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1965 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1967 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1968 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1969 (__cpp_range_based_for, __cpp_initializer_lists,
1970 __cpp_delegating_constructors, __cpp_nsdmi,
1971 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1972 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1973 __has_cpp_attribute.
1974 * c-lex.c (cb_has_attribute): New callback CPP function;
1975 (init_c_lex): Set has_attribute callback.
1977 2014-11-04 Richard Biener <rguenther@suse.de>
1979 * c-common.c (shorten_compare): Do not shorten mixed
1980 DFP and non-DFP compares.
1982 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1984 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1985 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1986 Commentary and rearrangement of tests.
1987 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1988 Commentary and rearrangement of tests.
1989 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1990 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1992 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1994 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1995 enum from machine_mode.
1997 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1999 * c-common.c: Adjust include files.
2000 * c-gimplify.c: Ditto.
2002 * c-pragma.c: Ditto.
2005 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
2007 * c-gimplify.c: Adjust include files.
2009 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2012 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2013 c_common_initialize_diagnostics.
2014 * c-common.h: Likewise.
2016 2014-10-24 Marek Polacek <polacek@redhat.com>
2019 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2020 print "struct"/"union"/"enum" for typedefed names.
2022 2014-10-23 Marek Polacek <polacek@redhat.com>
2024 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2027 2014-10-22 Jakub Jelinek <jakub@redhat.com>
2028 Yury Gribov <y.gribov@samsung.com>
2030 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2031 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2032 instead of flag_sanitize_recover as bool flag.
2034 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2036 * cilk.c: Revert previous change.
2038 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2041 * cilk.c: Include vec.h.
2042 (struct cilk_decls): New structure.
2043 (wrapper_parm_cb): Split this function to...
2044 (fill_decls_vec): ...this...
2045 (create_parm_list): ...and this.
2046 (compare_decls): New function.
2047 (for_local_cb): Remove.
2048 (wrapper_local_cb): Ditto.
2049 (build_wrapper_type): For now first traverse and fill vector of
2050 declarations then sort it and then deal with sorted vector.
2051 (cilk_outline): Ditto.
2052 (declare_one_free_variable): Ditto.
2054 2014-10-17 Marek Polacek <polacek@redhat.com>
2056 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2057 * c.opt (Wimplicit-int): Initialize to -1.
2059 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
2061 * c-pragma.c: Adjust include files.
2062 * c-semantics.c: Likewise.
2064 2014-10-16 DJ Delorie <dj@redhat.com>
2066 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2069 2014-10-14 Jason Merrill <jason@redhat.com>
2072 * c-common.h (CPP_PREPARSED_EXPR): New.
2073 (N_CP_TTYPES): Adjust.
2075 2014-10-15 Marek Polacek <polacek@redhat.com>
2077 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2079 2014-10-14 DJ Delorie <dj@redhat.com>
2081 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2082 types, not just __int128.
2083 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2084 types, not just __int128.
2085 (cpp_atomic_builtins): Round pointer sizes up.
2086 (type_suffix): Use type precision, not specific types.
2087 * c-common.c (c_common_reswords): Remove __int128 special case.
2088 (c_common_type_for_size): Check for all __intN types, not just
2090 (c_common_type_for_mode): Likewise.
2091 (c_common_signed_or_unsigned_type): Likewise.
2092 (c_build_bitfield_integer_type): Likewise.
2093 (c_common_nodes_and_builtins): Likewise.
2094 (keyword_begins_type_specifier): Likewise.
2095 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2098 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2100 * c-common.c: Use hash_table instead of hashtab.
2102 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2104 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2107 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2112 * c-common.c (warn_logical_operator): Punt for vectors.
2114 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2116 Implement SD-6: SG10 Feature Test Recommendations
2117 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2118 macros and the __has_header macro.
2120 2014-09-30 Jason Merrill <jason@redhat.com>
2122 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2123 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2124 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2126 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2127 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2129 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2130 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2132 2014-09-24 Marek Polacek <polacek@redhat.com>
2136 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2138 2014-09-23 Andi Kleen <ak@linux.intel.com>
2140 * c-common.c (handle_no_reorder_attribute): New function.
2141 (c_common_attribute_table): Add no_reorder attribute.
2143 2014-09-22 Joseph Myers <joseph@codesourcery.com>
2145 * c-cppbuiltin.c (c_cpp_builtins): Define
2146 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2149 2014-09-18 Joseph Myers <joseph@codesourcery.com>
2151 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2152 for supported floating-point modes.
2154 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2156 * c.opt (Wpsabi): Use LangEnabledBy.
2157 * c-opts.c (c_common_handle_option): Do not handle here.
2159 2014-09-12 Joseph Myers <joseph@codesourcery.com>
2161 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2162 macros for floating-point modes.
2164 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
2167 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2168 __*_DENORM_MIN__ without denormals.
2170 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2172 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2173 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2174 ubsan_create_data callers.
2175 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2176 index is constant or BIT_AND_EXPR with constant mask and is
2177 small enough for the bound.
2178 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2179 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2181 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2183 * c.opt: Add CppReason to various flags.
2184 (Wdate-time): Re-sort.
2185 * c-common.c: Include c-common.h earlier.
2186 (struct reason_option_codes_t): Delete.
2187 (c_option_controlling_cpp_error): Prefix global type and struct
2190 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2192 * c.opt (Wnormalized): New.
2193 (Wnormalized=): Use Enum and Reject Negative.
2194 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2196 2014-09-08 Joseph Myers <joseph@codesourcery.com>
2198 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2199 digits of floating-point modes if -fbuilding-libgcc.
2201 2014-09-05 Joseph Myers <joseph@codesourcery.com>
2203 * c-cppbuiltin.c (c_cpp_builtins): Also define
2204 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2205 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2206 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2207 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2208 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2209 __LIBGCC_STACK_GROWS_DOWNWARD__,
2210 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2211 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2212 __LIBGCC_DWARF_FRAME_REGISTERS__,
2213 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2214 __LIBGCC_STACK_POINTER_REGNUM__ and
2215 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2216 (builtin_define_with_value): Handle backslash-escaping in string
2219 2014-09-05 Richard Biener <rguenther@suse.de>
2222 * c-format.c (check_format_arg): Properly handle
2223 effectively signed POINTER_PLUS_EXPR offset.
2225 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2227 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2228 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2229 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2231 * c-opts.c (c_common_handle_option): Do not handle here.
2232 (sanitize_cpp_opts): Likewise.
2233 * c-common.c (struct reason_option_codes_t): Handle
2234 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2236 2014-09-03 Marek Polacek <polacek@redhat.com>
2238 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2240 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2241 Balaji V. Iyer <balaji.v.iyer@intel.com>
2242 Igor Zamyatin <igor.zamyatin@intel.com>
2244 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2245 * c-common.c (c_common_reswords): Added _Cilk_for.
2246 * c-common.h (enum rid): Added RID_CILK_FOR.
2247 (cilk_for_number_of_iterations): Add declaration.
2248 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2250 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2251 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2253 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2255 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2256 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2257 Wundef): Use CPP, Var and Init.
2258 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2260 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2262 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2263 * c-opts.c (c_common_handle_option): Do not handle here.
2265 2014-08-25 Jason Merrill <jason@redhat.com>
2267 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2268 -std=c++14 and -std=gnu++14, rather than the reverse.
2269 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2270 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2271 * c-common.h (cxx_dialect): Remove cxx1y.
2273 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2275 * c-common.h (enum cxx_dialect): Add cxx14.
2276 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2277 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2278 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2280 2014-08-22 Jason Merrill <jason@redhat.com>
2282 * c.opt (std=gnu++17): Fix alias.
2284 2014-08-22 Marek Polacek <polacek@redhat.com>
2287 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2288 check for vector types. Drop LHS argument.
2289 * c-common.h (warn_logical_not_parentheses): Adjust.
2291 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2293 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2294 (Wmultichar): Likewise.
2295 (Wdate-time): Use C-family languages instead of Common. Use CPP
2297 * c-opts.c (c_common_handle_option): Do not handle the above
2299 (sanitize_cpp_opts): Likewise.
2301 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2304 * c-opts.c: Include tree-diagnostics.h.
2305 (c_diagnostic_finalizer): New.
2306 (c_common_initialize_diagnostics): Use it.
2308 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2310 PR preprocessor/51303
2311 * c-common.c (struct reason_option_codes_t option_codes):
2312 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2314 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2318 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2319 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2320 (c_common_post_options): Call init_global_opts_from_cpp.
2321 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2323 2014-08-19 Marek Polacek <polacek@redhat.com>
2326 * c-common.c (maybe_warn_bool_compare): New function.
2327 * c-common.h (maybe_warn_bool_compare): Declare.
2328 * c.opt (Wbool-compare): New option.
2330 2014-08-19 Marek Polacek <polacek@redhat.com>
2332 * c.opt (Wc99-c11-compat): New option.
2334 2014-08-19 Marek Polacek <polacek@redhat.com>
2336 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2337 to warn_c90_c99_compat.
2338 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2341 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2342 Steven Bosscher <steven@gcc.gnu.org>
2345 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2346 format_check_results.
2347 (check_function_format): Use true and add comment for boolean
2349 (finish_dollar_format_checking): Use explicit location when warning.
2350 (check_format_info): Likewise.
2351 (check_format_arg): Set extra_arg_loc and format_string_loc.
2352 (check_format_info_main): Use explicit location when warning.
2353 (check_format_types): Pass explicit location.
2354 (format_type_warning): Likewise.
2356 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2359 * c-format.c: Handle Fortran flags.
2361 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2364 * array-notation-common.c (find_rank): Added handling for other
2365 types of references.
2367 2014-08-10 Marek Polacek <polacek@redhat.com>
2370 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2371 * c.opt (Wc90-c99-compat): Add option.
2373 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2375 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2377 2014-08-03 Marek Polacek <polacek@redhat.com>
2379 * c-common.c (check_case_value): Add location_t parameter. Use it.
2380 (c_add_case_label): Pass loc to check_case_value.
2382 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2384 * cilk.c: Use hash_map instead of pointer_map.
2386 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2388 * c-gimplify.c: Use hash_set instead of pointer_set.
2390 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2393 * array-notation-common.c (extract_array_notation_exprs): Handling
2396 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2398 * c-common.h (min_align_of_type): Removed prototype.
2399 * c-common.c (min_align_of_type): Removed.
2400 * c-ubsan.h (ubsan_maybe_instrument_reference,
2401 ubsan_maybe_instrument_member_call): New prototypes.
2402 * c-ubsan.c: Include stor-layout.h and builtins.h.
2403 (ubsan_maybe_instrument_reference_or_call,
2404 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2407 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
2410 * c.opt (-Wreturn-local-addr): Move to common.opt.
2412 2014-07-30 Jason Merrill <jason@redhat.com>
2417 * c.opt (-fuse-all-virtuals): New.
2419 2014-07-30 Tom Tromey <tromey@redhat.com>
2422 * c.opt (Wdesignated-init): New option.
2423 * c-common.c (c_common_attribute_table): Add "designated_init".
2424 (handle_designated_init): New function.
2426 2014-07-24 Marek Polacek <polacek@redhat.com>
2429 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2431 2014-07-16 Dodji Seketeli <dodji@redhat.com>
2433 PR preprocessor/60723 - missing system-ness marks for macro tokens
2434 * c-ppoutput.c (struct print::prev_was_system_token): New data
2436 (init_pp_output): Initialize it.
2437 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2438 (do_line_change): Return a flag saying if a line marker was
2440 (scan_translation_unit): Detect if the system-ness of the token we
2441 are about to emit is different from the one of the previously
2442 emitted token. If so, emit a line marker. Avoid emitting useless
2443 adjacent line markers. Avoid emitting line markers for tokens
2444 originating from the expansion of built-in macros.
2445 (scan_translation_unit_directives_only): Adjust.
2447 2014-07-15 Marek Polacek <polacek@redhat.com>
2449 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2450 TYPE_MAX_VALUE is NULL.
2452 2014-07-14 Jakub Jelinek <jakub@redhat.com>
2455 * c.opt (Wmemset-transposed-args): New warning.
2457 2014-07-10 Jason Merrill <jason@redhat.com>
2461 * c.opt (-fuse-all-virtuals): New.
2463 2014-07-09 Richard Biener <rguenther@suse.de>
2466 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2467 using unsigned arithmetic if overflow does not wrap instead of
2468 if overflow is undefined.
2470 2014-07-06 Marek Polacek <polacek@redhat.com>
2473 * c.opt (Wsizeof-array-argument): New option.
2475 2014-07-03 Jakub Jelinek <jakub@redhat.com>
2477 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
2478 comments->count <= 1, as comments->entries might be NULL.
2480 2014-07-01 Marek Polacek <polacek@redhat.com>
2482 * c.opt (Wint-conversion): New option.
2484 2014-07-01 Marek Polacek <polacek@redhat.com>
2487 * c.opt (Wincompatible-pointer-types): New option.
2489 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2492 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2493 Do not discard TYPE_QUALS of type.
2495 2014-06-26 Jason Merrill <jason@redhat.com>
2497 * c-common.h (enum cxx_dialect): Add cxx1z.
2498 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2499 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2501 2014-06-26 Teresa Johnson <tejohnson@google.com>
2503 * c-common.h (get_dump_info): Declare.
2504 * c-gimplify.c (c_genericize): Use saved dump files.
2505 * c-opts.c (c_common_parse_file): Begin and end dumps
2506 once around parsing invocation.
2507 (get_dump_info): New function.
2509 2014-06-23 Marek Polacek <polacek@redhat.com>
2510 Andrew MacLeod <amacleod@redhat.com>
2513 * c-common.c (get_atomic_generic_size): Don't segfault if the
2514 type doesn't have a size.
2516 2014-06-20 Marek Polacek <polacek@redhat.com>
2518 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2519 (ubsan_walk_array_refs_r): New function.
2520 (c_genericize): Instrument array bounds.
2521 * c-ubsan.c: Include "internal-fn.h".
2522 (ubsan_instrument_division): Mark instrumented arrays as having
2523 side effects. Adjust ubsan_type_descriptor call.
2524 (ubsan_instrument_shift): Likewise.
2525 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2526 (ubsan_instrument_bounds): New function.
2527 (ubsan_array_ref_instrumented_p): New function.
2528 (ubsan_maybe_instrument_array_ref): New function.
2529 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2530 (ubsan_array_ref_instrumented_p): Declare.
2531 (ubsan_maybe_instrument_array_ref): Declare.
2533 2014-06-20 Hale Wang <hale.wang@arm.com>
2536 * c.opt (fshort-enums): Add to LTO.
2537 * c.opt (fshort-wchar): Likewise.
2539 2014-06-16 Marek Polacek <polacek@redhat.com>
2542 * c.opt (Wswitch-bool): Add Var.
2544 2014-06-12 Jakub Jelinek <jakub@redhat.com>
2547 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2548 #pragma omp target teams or
2549 #pragma omp {,target }teams distribute simd.
2551 2014-06-12 Jason Merrill <jason@redhat.com>
2553 * c.opt (Wabi=, fabi-compat-version): New.
2554 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2555 (c_common_post_options): Handle flag_abi_compat_version default.
2556 Disallow -fabi-compat-version=1.
2557 * c-common.h (abi_version_crosses): New.
2559 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
2561 * c-common.c (handle_section_attribute): Update handling for
2562 section names that are no longer trees.
2564 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2567 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2568 (omp_pragmas): ... back here.
2570 2014-06-05 Marek Polacek <polacek@redhat.com>
2573 * c-common.c (warn_logical_not_parentheses): New function.
2574 * c-common.h (warn_logical_not_parentheses): Declare.
2575 * c.opt (Wlogical-not-parentheses): New option.
2577 2014-06-04 Marek Polacek <polacek@redhat.com>
2580 * c-common.c (check_case_bounds): Add location parameter.
2582 (c_add_case_label): Pass loc to check_case_bounds.
2584 2014-06-03 Marek Polacek <polacek@redhat.com>
2587 * c.opt (Wswitch-bool): New option.
2589 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2591 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2593 (record_types_used_by_current_var_decl): Move prototype to where
2596 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2597 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2598 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2600 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2602 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2603 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2605 * c-pretty-print.c (pp_c_void_constant): New function.
2606 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2607 (c_pretty_printer::expression): Handle VOID_CST.
2608 * cilk.c (extract_free_variables): Likewise.
2609 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2610 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2612 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2614 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2615 * c-pragma.c (push_alignment): Adjust.
2616 (handle_pragma_push_options): Likewise.
2618 2014-05-09 Marek Polacek <polacek@redhat.com>
2621 * c-common.c (check_user_alignment): Return -1 if alignment is error
2623 (handle_aligned_attribute): Don't call default_conversion on
2625 (handle_vector_size_attribute): Likewise.
2626 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2627 (handle_sentinel_attribute): Call default_conversion and allow even
2628 integral types as an argument.
2630 2014-05-08 Marek Polacek <polacek@redhat.com>
2633 * c-common.c (min_align_of_type): New function factored out from...
2634 (c_sizeof_or_alignof_type): ...here.
2635 * c-common.h (min_align_of_type): Declare.
2637 2014-05-08 Marek Polacek <polacek@redhat.com>
2640 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2641 parameter type of main.
2643 2014-05-07 DJ Delorie <dj@redhat.com>
2645 * c-cppbuiltin.c (print_bits_of_hex): New.
2646 (builtin_define_type_minmax): Print values using hex so as not to
2647 require a pre-computed list of string values.
2649 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2650 Mike Stump <mikestump@comcast.net>
2651 Richard Sandiford <rdsandiford@googlemail.com>
2653 * c-ada-spec.c: Include wide-int.h.
2654 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2655 (dump_generic_ada_node): Use wide-int interfaces.
2656 * c-common.c: Include wide-int-print.h.
2657 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2658 (pointer_int_sum): Use wide-int interfaces.
2659 (c_common_nodes_and_builtins): Use make_int_cst.
2660 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2661 (handle_alloc_size_attribute): Use wide-int interfaces.
2662 (get_nonnull_operand): Likewise.
2663 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2664 * c-lex.c: Include wide-int.h.
2665 (narrowest_unsigned_type): Take a widest_int rather than two
2667 (narrowest_signed_type): Likewise.
2668 (interpret_integer): Update accordingly. Use wide-int interfaces.
2669 (lex_charconst): Use wide-int interfaces.
2670 * c-pretty-print.c: Include wide-int.h.
2671 (pp_c_integer_constant): Use wide-int interfaces.
2672 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2673 INT_CST_LT_UNSIGNED.
2675 2014-05-06 Richard Biener <rguenther@suse.de>
2677 * c-opts.c (c_common_post_options): For -freestanding,
2678 -fno-hosted and -fno-builtin disable pattern recognition
2679 if not enabled explicitely.
2681 2014-05-02 Marek Polacek <polacek@redhat.com>
2683 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2685 2014-05-01 Marek Polacek <polacek@redhat.com>
2688 * c.opt (Wdiscarded-qualifiers): Add.
2690 2014-04-30 Marek Polacek <polacek@redhat.com>
2692 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2693 INT_MIN / -1 sanitization only for integer types.
2695 2014-04-25 Marek Polacek <polacek@redhat.com>
2698 * c-common.c (handle_noinline_attribute): Warn if the attribute
2699 conflicts with always_inline attribute.
2700 (handle_always_inline_attribute): Warn if the attribute conflicts
2701 with noinline attribute.
2703 2014-04-25 Marek Polacek <polacek@redhat.com>
2706 * c-common.c (check_main_parameter_types): Warn about variadic main.
2708 2014-04-24 Mike Stump <mikestump@comcast.net>
2710 * c.opt (Wshadow-ivar): Default to on.
2712 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2714 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2716 2014-04-23 Marek Polacek <polacek@redhat.com>
2718 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2720 2014-04-22 Jakub Jelinek <jakub@redhat.com>
2723 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2724 if flag_sanitize_undefined_trap_on_error.
2725 (ubsan_instrument_division, ubsan_instrument_shift,
2726 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2727 if !flag_sanitize_recover.
2729 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
2732 * c-common.c (registered_builtin_types): Make non-static.
2733 * c-common.h (registered_builtin_types): Declare.
2735 2014-04-14 Richard Biener <rguenther@suse.de>
2736 Marc Glisse <marc.glisse@inria.fr>
2739 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2740 apply may-alias the scalar pointer type when applicable.
2742 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2745 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2746 as possible argument for Cilk_spawn.
2748 2014-04-11 Tobias Burnus <burnus@net-b.de>
2751 * c.opt (Wformat-signedness): Add
2752 * c-format.c(check_format_types): Use it.
2754 2014-04-11 Jason Merrill <jason@redhat.com>
2757 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2758 default_conversion for an array argument.
2760 2014-04-08 Marek Polacek <polacek@redhat.com>
2763 * c-ubsan.c: Include asan.h.
2764 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2766 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2768 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2770 2014-04-02 Marek Polacek <polacek@redhat.com>
2772 * c-common.h (c_expand_expr): Remove declaration.
2774 2014-03-28 Jakub Jelinek <jakub@redhat.com>
2777 * c-common.c (add_atomic_size_parameter): When creating new
2778 params vector, push the size argument first.
2780 2014-03-26 Jakub Jelinek <jakub@redhat.com>
2782 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2783 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2784 ubsan_create_data callers.
2786 2014-03-22 Jakub Jelinek <jakub@redhat.com>
2789 * c-opts.c (c_finish_options): Restore cb_file_change call to
2792 2014-03-13 Jakub Jelinek <jakub@redhat.com>
2795 * c-pragma.c (apply_pragma_weak): Only look at
2796 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2797 DECL_ASSEMBLER_NAME_SET_P (decl).
2798 (maybe_apply_pending_pragma_weaks): Exit early if
2799 vec_safe_is_empty (pending_weaks) rather than only when
2801 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2802 set assembler name back to NULL afterwards.
2804 2014-03-11 Jason Merrill <jason@redhat.com>
2806 * c.opt: Add -std=gnu++14.
2808 2014-03-11 Ian Bolton <ian.bolton@arm.com>
2810 * c-opts.c (c_common_post_options): Don't override
2811 -ffp-contract=fast if unsafe-math-optimizations is on.
2813 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
2815 * c.opt: Enable LTO FE for fshort-double.
2817 2014-03-07 Jason Merrill <jason@redhat.com>
2819 * c.opt: Add -std=c++14.
2821 2014-03-06 Marek Polacek <polacek@redhat.com>
2824 * cilk.c (contains_cilk_spawn_stmt): New function.
2825 (contains_cilk_spawn_stmt_walker): Likewise.
2826 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2827 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2829 2014-03-03 Jakub Jelinek <jakub@redhat.com>
2831 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2832 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2833 even when flag_preprocess_only.
2835 2014-02-26 Jason Merrill <jason@redhat.com>
2839 * c-common.c (shorten_compare): Don't check
2840 c_inhibit_evaluation_warnings.
2842 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2845 * c-common.c (c_common_nodes_and_builtins): When initializing
2846 c_uint{16,32,64}_type_node, also set corresponding
2847 uint{16,32,64}_type_node to the same value.
2850 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2851 for PRAGMA_IVDEP if flag_preprocess_only.
2853 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2856 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2857 if false, add ADD itself, rather than vice versa.
2858 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2859 copy. For SAVE_EXPR, only call merge_tlist once.
2861 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2864 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2866 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2868 (c_common_attribute_table): Add alloc_align and assume_aligned
2871 2014-02-06 Marek Polacek <polacek@redhat.com>
2874 * c-common.c (warn_for_sign_compare): Call warning_at with location
2877 2014-02-05 Marek Polacek <polacek@redhat.com>
2880 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2883 2014-02-04 Marek Polacek <polacek@redhat.com>
2886 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2889 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2893 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2894 handle_vector_size_attribute, handle_nonnull_attribute): Call
2895 default_conversion on the attribute argument.
2896 (handle_nonnull_attribute): Increment the argument number.
2898 2014-01-31 Marek Polacek <polacek@redhat.com>
2901 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2902 build_function_call_vec.
2903 (resolve_overloaded_builtin): Likewise.
2904 * c-common.h (build_function_call_vec): Adjust declaration.
2906 2014-01-30 Marek Polacek <polacek@redhat.com>
2909 * c-common.h (unsafe_conversion_p): Adjust declaration.
2910 (warnings_for_convert_and_check): Likewise.
2911 (convert_and_check): Likewise.
2912 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2913 expansion_point_location_if_in_system_header on it.
2914 (warnings_for_convert_and_check): Add location parameter. Call
2915 expansion_point_location_if_in_system_header on it. Use it.
2916 (convert_and_check): Add location parameter. Use it.
2917 (conversion_warning): Likewise.
2918 (c_add_case_label): Adjust convert_and_check calls.
2919 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2921 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2923 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2925 * c-pragma.c (init_pragma): Likewise.
2928 2014-01-23 Marek Polacek <polacek@redhat.com>
2931 * c-common.c (shorten_compare): Add location_t parameter.
2932 * c-common.h (shorten_binary_op): Adjust declaration.
2934 2014-01-23 Marek Polacek <polacek@redhat.com>
2937 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2938 * c-common.h: Declare it.
2940 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2942 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2943 * c-ada-spec.c (dump_ads): Likewise.
2944 (cpp_check): Likewise.
2945 (dump_ada_specs): Likewise.
2947 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2950 * c-common.c (handle_no_instrument_function_attribute): Allow
2951 no_instrument_function attribute in class member
2952 definition/declaration.
2954 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2957 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2958 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2959 being COMPOUND_EXPR.
2960 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2961 operand a SAVE_EXPR and second MODIFY_EXPR.
2963 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2966 * c-pch.c (c_common_write_pch): Call
2967 prepare_target_option_nodes_for_pch.
2969 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2971 Update copyright years
2973 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2975 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2976 the copyright notice.
2978 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2980 * c-ada-spec.c (print_constructor): New function.
2981 (print_destructor): Retrieve the origin of the destructor.
2982 (print_ada_declaration): Revamp handling of constructors/destructors.
2984 2013-12-23 Stuart Hastings <stuart@apple.com>
2985 Bill Maddox <maddox@google.com>
2986 Jason Merrill <jason@redhat.com>
2988 * c.opt: Add -fdeclone-ctor-dtor.
2989 * c-opts.c (c_common_post_options): Default to on iff -Os.
2991 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2993 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2995 * c-pragma.h (enum pragma_cilk_clause): Remove.
2996 (enum pragma_omp_clause): Added the following fields:
2997 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2998 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2999 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3000 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3001 PRAGMA_CILK_CLAUSE_UNIFORM.
3004 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3006 * cilk.c (cilk_outline): Made this function non-static.
3007 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3008 (create_cilk_wrapper): Added a new parameter: a function pointer.
3009 (c_install_body_w_frame_cleanup): Remove
3010 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3011 * c-common.h (cilk_outline): New prototype.
3012 (gimplify_cilk_spawn): Removed two parameters.
3013 (cilk_install_body_with_frame_cleanup): New prototype.
3014 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3015 CILK_SPAWN_STMT case.
3017 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3019 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3021 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3022 (int_array_type_node): Remove.
3023 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3025 2013-12-05 Marek Polacek <polacek@redhat.com>
3028 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3029 [ADJUST_FIELD_ALIGN].
3031 2013-12-04 Joseph Myers <joseph@codesourcery.com>
3034 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3035 and check field alignment if set.
3036 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3037 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3039 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3040 Marek Polacek <polacek@redhat.com>
3042 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3043 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3045 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3048 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3051 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3054 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3055 goto invalid. If it is error_mark_node, don't issue further
3058 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3060 * c.opt (Wopenmp-simd): New.
3062 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3064 * c-ubsan.h (ubsan_instrument_return): New prototype.
3065 * c-ubsan.c (ubsan_instrument_return): New function.
3067 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3069 * c-common.c: Add required include files from gimple.h.
3070 * c-gimplify.c: Likewise
3073 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3075 * c-common.c (unsafe_conversion_p): Remove use of
3076 EXPR_LOC_OR_HERE macro.
3077 (conversion_warning): Likewise.
3078 (warnings_for_convert_and_check): Likewise.
3079 (warn_for_collisions_1): Likewise.
3080 (shorten_compare): Likewise, and remove use of in_system_header
3081 macro, using the location from the former.
3082 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3083 (cb_def_pragma): Remove use of in_system_header macro.
3084 (lex_string): Likewise.
3085 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3087 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3088 Mike Stump <mikestump@comcast.net>
3089 Richard Sandiford <rdsandiford@googlemail.com>
3091 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3092 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3093 tree_fits_shwi_p or tree_fits_uhwi_p.
3094 (dump_generic_ada_node): Likewise.
3095 * c-format.c (check_format_arg): Likewise.
3096 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3098 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3100 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3102 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3105 * c-common.c (unsafe_conversion_p): Make this function
3106 return an enumeration with more detail.
3107 (conversion_warning): Use the new return type of
3108 unsafe_conversion_p to separately warn either about conversions
3109 that lower floating point number precision or about the other
3110 kinds of conversions.
3111 * c-common.h (enum conversion_safety): New enumeration.
3112 (unsafe_conversion_p): switching return type to
3113 conversion_safety enumeration.
3114 * c.opt: Adding new warning -Wfloat-conversion and
3115 enabling it with -Wconversion.
3117 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3119 * c-opts.c: Include plugin.h.
3120 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3122 2013-11-19 Marek Polacek <polacek@redhat.com>
3124 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3126 (ubsan_instrument_shift): Likewise.
3127 (ubsan_instrument_vla): Likewise.
3129 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3131 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3132 cast to unsigned type.
3134 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3136 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3138 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3139 rather than tree_low_cst.
3141 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3143 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3144 tree_to_uhwi throughout.
3146 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3148 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3149 tree_low_cst (..., 0) with tree_to_shwi throughout.
3151 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3153 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3154 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3156 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3158 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3159 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3161 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3163 * c-cilkplus.c: New file.
3164 * c-common.c (readonly_error): Add location argument.
3165 * c-common.h (readonly_error): Same.
3166 (c_finish_cilk_clauses): Protoize.
3167 (c_check_cilk_loop): Same.
3168 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3169 Do not fail on error_mark_node.
3170 Abstract increment canonicalization to here...
3171 (c_omp_for_incr_canonicalize_ptr): New.
3172 c-pragma.c (init_pragma): Register "simd" pragma.
3173 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3174 (enum pragma_cilk_clause): New.
3176 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3178 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3179 wchar_type and host_integerp checks.
3181 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
3183 * c-common.c: Likewise.
3184 * c-gimplify.c: Likewise.
3187 2013-11-14 Diego Novillo <dnovillo@google.com>
3189 * c-common.c: Include fold-const.h.
3190 Include stor-layout.h.
3192 Include stringpool.h.
3195 Include trans-mem.h.
3196 * c-cppbuiltin.c: Include stor-layout.h.
3197 Include stringpool.h.
3198 * c-format.c: Include stringpool.h.
3199 * c-lex.c: Include stringpool.h.
3200 Include stor-layout.h.
3201 * c-pragma.c: Include stringpool.h.
3204 Include gcc-symtab.h.
3205 * c-pretty-print.c: Include stor-layout.h.
3207 * cilk.c: Include stringpool.h.
3210 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3212 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3213 * c-common.c (c_common_reswords): Add __auto_type.
3214 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3216 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3218 * c-common.c: Include gimplify.h.
3219 * c-gimplify.c: Likewise.
3221 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3222 * c-ubsan.c: Don't include gimple.h.
3224 2013-11-12 Joseph Myers <joseph@codesourcery.com>
3226 * c-common.c (c_common_reswords): Add _Thread_local.
3228 2013-11-09 Joseph Myers <joseph@codesourcery.com>
3230 * c-common.c (atomic_size_supported_p): New function.
3231 (resolve_overloaded_atomic_exchange)
3232 (resolve_overloaded_atomic_compare_exchange)
3233 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3234 Use it instead of comparing size with a local list of sizes.
3236 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
3237 Joseph Myers <joseph@codesourcery.com>
3239 * c-common.h (enum rid): Add RID_ATOMIC.
3240 * c-common.c (c_common_reswords): Add _Atomic.
3241 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3242 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3243 * c-format.c (check_format_types): Check for extra _Atomic
3244 qualifiers in format argument.
3245 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3246 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3248 2013-11-06 Tobias Burnus <burnus@net-b.de>
3250 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3252 2013-11-06 Joseph Myers <joseph@codesourcery.com>
3254 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3256 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3257 to mean lack of IEEE 754 support.
3259 2013-11-05 Tobias Burnus <burnus@net-b.de>
3261 * c.opt (-Wdate-time): New option
3262 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3264 2013-11-05 Joseph Myers <joseph@codesourcery.com>
3266 * c-cppbuiltin.c (cpp_iec_559_value): Test
3267 flag_excess_precision_cmdline not flag_excess_precision.
3269 2013-11-05 Tobias Burnus <burnus@net-b.de>
3271 * c.opt (fopenmp-simd): New option.
3272 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3273 (omp_pragmas): ... this new struct.
3274 (c_pp_lookup_pragma): Also walk omp_pragmas.
3275 (init_pragma): Init pragmas for -fopenmp-simd.
3277 2013-11-04 Marek Polacek <polacek@redhat.com>
3280 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3282 2013-11-04 Joseph Myers <joseph@codesourcery.com>
3284 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3286 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3288 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3290 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3291 (dump_ada_specs): Adjust prototype of second callback.
3292 * c-ada-spec.c (cpp_check): New global variable.
3293 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3294 (print_generic_ada_decl): Likewise.
3295 (has_static_fields): Change return type to bool and add guard.
3296 (has_nontrivial_methods): New predicate.
3297 (is_tagged_type): Change return type to bool.
3298 (separate_class_package): Call has_nontrivial_methods.
3299 (pp_ada_tree_identifier): Minor tweaks.
3300 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3301 (dump_ada_array_domains): Likewise.
3302 (dump_ada_array_type): Likewise.
3303 (dump_template_types): Remove cpp_check parameter and do not pass it to
3304 dump_generic_ada_node.
3305 (dump_ada_template): Likewise.
3306 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3308 (print_ada_methods): Change return type to integer. Remove cpp_check
3309 parameter and do not pass it down.
3310 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3311 dump_generic_ada_node.
3312 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3314 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3315 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3316 value of print_ada_methods.
3317 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3318 Set cpp_check to it before invoking dump_ada_nodes.
3319 (dump_ada_specs): Likewise.
3321 2013-11-03 Marek Polacek <polacek@redhat.com>
3323 * c-ubsan.c: Don't include hash-table.h.
3324 (ubsan_instrument_vla): New function.
3325 * c-ubsan.h: Declare it.
3327 2013-10-31 David Malcolm <dmalcolm@redhat.com>
3329 Automated part of renaming of symtab_node_base to symtab_node.
3331 Patch autogenerated by rename_symtab.py from
3332 https://github.com/davidmalcolm/gcc-refactoring-scripts
3333 revision 58bb219cc090b2f4516a9297d868c245495ee622
3335 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3336 symtab_node_base to symtab_node.
3338 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3340 Implement C++14 digit separators.
3341 * c-lex.c (interpret_float): Remove digit separators from scratch string
3342 before building real literal.
3344 2013-10-30 Jakub Jelinek <jakub@redhat.com>
3346 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3348 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3350 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3352 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3354 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3355 (insert_cilk_frame): New prototype.
3356 (cilk_init_builtins): Likewise.
3357 (gimplify_cilk_spawn): Likewise.
3358 (c_cilk_install_body_w_frame_cleanup): Likewise.
3359 (cilk_detect_spawn_and_unwrap): Likewise.
3360 (cilk_set_spawn_marker): Likewise.
3361 (build_cilk_sync): Likewise.
3362 (build_cilk_spawn): Likewise.
3365 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3367 Patch autogenerated by refactor_symtab.py from
3368 https://github.com/davidmalcolm/gcc-refactoring-scripts
3369 revision 58bb219cc090b2f4516a9297d868c245495ee622
3371 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3372 to a true class hierarchy.
3373 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3375 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3377 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3379 2013-10-26 Jeff Law <law@redhat.com>
3381 * c-common.c (c_define_builtins): Remove mudflap support.
3382 * c.opt: Ignore and warn for mudflap options.
3384 2013-10-24 Tobias Burnus <burnus@net-b.de>
3387 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3388 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3390 2013-10-23 Jason Merrill <jason@redhat.com>
3392 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3394 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3396 * c-common.h (omp_clause_mask::operator !=): New method.
3397 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3398 instead of if (mask & something) tests everywhere.
3400 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3401 201307 instead of 201107.
3402 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3403 (c_common_attribute_table): Add "omp declare target" and
3404 "omp declare simd" attributes.
3405 (handle_omp_declare_target_attribute,
3406 handle_omp_declare_simd_attribute): New functions.
3407 * c-omp.c: Include c-pragma.h.
3408 (c_finish_omp_taskgroup): New function.
3409 (c_finish_omp_atomic): Add swapped argument, if true,
3410 build the operation first with rhs, lhs arguments and use NOP_EXPR
3412 (c_finish_omp_for): Add code argument, pass it down to make_code.
3413 (c_omp_split_clauses): New function.
3414 (c_split_parallel_clauses): Removed.
3415 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3416 c_omp_declare_simd_clauses_to_decls): New functions.
3417 * c-common.h (omp_clause_mask): New type.
3418 (OMP_CLAUSE_MASK_1): Define.
3419 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3420 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3421 omp_clause_mask::operator |, omp_clause_mask::operator &,
3422 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3423 omp_clause_mask::operator ==): New methods.
3424 (enum c_omp_clause_split): New.
3425 (c_finish_omp_taskgroup): New prototype.
3426 (c_finish_omp_atomic): Add swapped argument.
3427 (c_finish_omp_for): Add code argument.
3428 (c_omp_split_clauses): New prototype.
3429 (c_split_parallel_clauses): Removed.
3430 (c_omp_declare_simd_clauses_to_numbers,
3431 c_omp_declare_simd_clauses_to_decls): New prototypes.
3432 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3433 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3434 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3435 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3436 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3437 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3438 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3439 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3440 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3441 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3442 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3443 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3444 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3445 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3446 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3447 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3448 PRAGMA_OMP_CLAUSE_UNIFORM.
3450 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
3452 PR tree-optimization/20318
3453 * c-common.c (handle_returns_nonnull_attribute): New function.
3454 (c_common_attribute_table): Add returns_nonnull.
3456 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
3459 * c.opt (fcheck-new): Move to common.opt.
3461 2013-09-25 Marek Polacek <polacek@redhat.com>
3462 Jakub Jelinek <jakub@redhat.com>
3465 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3466 an expression if we can prove it is correct.
3467 (ubsan_instrument_division): Likewise. Remove unnecessary
3470 2013-09-18 Marek Polacek <polacek@redhat.com>
3473 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3475 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3477 2013-09-14 Iain Sandoe <iain@codesourcery.com>
3480 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3481 fobjc-gc, freplace-objc-classes): Accept for LTO.
3483 2013-09-13 Jacek Caban <jacek@codeweavers.com>
3485 * c-target.def: New hook
3487 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3490 * c.opt (Wdelete-incomplete): Add.
3492 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3494 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3495 (vector_types_compatible_elements_p): New function.
3496 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3498 (vector_types_compatible_elements_p): Declare.
3500 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3502 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3503 a virtual member function.
3504 (pp_simple_type_specifier): Remove.
3505 (pp_c_type_specifier): Likewise.
3506 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3507 Rename from pp_c_type_specifier. Adjust.
3508 (c_pretty_printer::c_pretty_printer): Do not assign to
3509 simple_type_specifier.
3511 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3513 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3515 (c_pretty_printer::storage_class_specifier): Likewise.
3516 (c_pretty_printer::initializer): Likewise.
3517 (pp_declaration): Remove.
3518 (pp_declaration_specifiers): Likewise.
3519 (pp_abstract_declarator): Likewise.
3520 (pp_declarator): Likewise.
3521 (pp_type_id): Likewise.
3522 (pp_statement): Likewise.
3523 (pp_constant): Likewise.
3524 (pp_id_expression): Likewise.
3525 (pp_primary_expression): Likewise.
3526 (pp_unary_expression): Likewise.
3527 (pp_multiplicative_expression): Likewise.
3528 (pp_conditional_expression): Likewise.
3529 (pp_assignment_expression): Likewise.
3530 (pp_expression): Likewise.
3531 (pp_c_type_id): Likewise.
3532 (pp_c_storage_class_specifier): Likewise.
3533 * c-pretty-print.c (pp_c_type_cast): Tidy.
3534 (pp_c_pointer): Likewise.
3535 (pp_c_type_specifier): Likewise.
3536 (pp_c_parameter_type_list): Likewise.
3537 (pp_c_function_definition): Likewise.
3538 (pp_c_init_declarator): Likewise.
3539 (pp_c_initializer_list): Likewise.
3540 (pp_c_constructor_elts): Likewise.
3541 (c_pretty_printer::direct_abstract_declarator): Likewise.
3542 (c_pretty_printer::declaration_specifiers): Likewise.
3543 (c_pretty_printer::primary_expression): Likewise.
3544 (c_pretty_printer::postfix_expression): Likewise.
3545 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3546 (c_pretty_printer::storage_class_specifier): Rename from
3547 pp_c_storage_class_specifier.
3548 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3549 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3550 storage_class_specifier, initializer, offset_list, flags.
3552 2013-08-30 Marek Polacek <polacek@redhat.com>
3554 * c-ubsan.c: New file.
3555 * c-ubsan.h: New file.
3557 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3559 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3561 (c_pretty_printer::declaration_specifiers): Likewise.
3562 (c_pretty_printer::declarator): Likewise.
3563 (c_pretty_printer::abstract_declarator): Likewise.
3564 (c_pretty_printer::direct_abstract_declarator): Likewise.
3565 (c_pretty_printer::direct_declarator): Likewise.
3566 (c_pretty_printer::function_specifier): Likewise.
3567 (pp_declaration): Adjust.
3568 (pp_declaration_specifiers): Likewise.
3569 (pp_abstract_declarator): Likewise.
3570 (pp_direct_declarator): Likewise.
3571 (pp_function_specifier): Likewise.
3572 (pp_direct_abstract_declarator): Remove as unused.
3573 (pp_c_declaration): Remove.
3574 (pp_c_declaration_specifiers): Likewise.
3575 (pp_c_declarator): Likewise.
3576 (pp_c_direct_declarator): Likewise.
3577 (pp_c_function_specifier): Likewise.
3578 (pp_c_direct_abstract_declarator): Likewise.
3579 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3580 from pp_c_abstract_declarator. Adjust.
3581 (c_pretty_printer::direct_abstract_declarator): Rename from
3582 pp_c_direct_abstract_declarator. Adjust.
3583 (c_pretty_printer::function_specifier): Rename from
3584 pp_c_function_specifier. Adjust.
3585 (c_pretty_printer::declaration_specifiers): Rename from
3586 pp_c_declaration_specifiers. Adjust.
3587 (c_pretty_printer::direct_declarator): Rename from
3588 pp_c_direct_declarator. Adjust.
3589 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3590 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3591 (c_pretty_printer::c_pretty_printer): Do not assign to
3592 declaration, declaration_specifiers, declarator,
3593 direct_declarator, direct_abstract_declarator, function_specifier.
3595 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3597 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3598 virtual member function.
3599 (c_pretty_printer::multiplicative_expression): Likewise.
3600 (c_pretty_printer::conditional_expression): Likewise.
3601 (c_pretty_printer::assignment_expression): Likewise.
3602 (c_pretty_printer::expression): Likewise.
3603 (pp_unary_expression): Adjust.
3604 (pp_multiplicative_expression): Likewise.
3605 (pp_assignment_expression): Likewise.
3606 (pp_conditional_expression): Likewise.
3607 (pp_expression): Likewise.
3608 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3609 from pp_c_unary_expression. Adjust.
3610 (c_pretty_printer::multiplicative_expression): Rename from
3611 pp_c_multiplicative_expression. Adjust.
3612 (c_pretty_printer::conditional_expression): Rename from
3613 pp_c_conditional_expression. Adjust.
3614 (c_pretty_printer::assignment_expression): Rename from
3615 pp_c_assignment_expression. Adjust.
3616 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3617 (c_pretty_printer::c_pretty_printer): Do not assign to
3618 unary_expression, multiplicative_expression,
3619 conditional_expression, expression.
3621 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3623 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3624 virtual member function.
3625 (pp_postfix_expression): Adjust.
3626 (pp_c_postfix_expression): Remove.
3627 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3628 from pp_c_postfix_expression. Adjust.
3629 (c_pretty_printer::c_pretty_printer): Do not assign to
3632 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3634 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3635 virtua member function.
3636 (pp_primary_expression): Adjust.
3637 (pp_c_primary_expression): Remove.
3638 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3639 from pp_c_primary_expression. Adjust.
3640 (pp_c_initializer_list): Use pp_primary_expression.
3641 (c_pretty_printer::c_pretty_printer): Do not assign to
3644 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3646 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3647 * c-pretty-print.c (M_): Remove.
3648 (c_pretty_printer::translate_string): Define.
3649 (pp_c_type_specifier): Use it.
3650 (pp_c_primary_expression): Likewise.
3651 (pp_c_expression): Likewise.
3653 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3655 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3657 (pp_c_id_expression): Remove.
3658 (pp_id_expression): Adjust.
3659 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3660 pp_c_id_expression. Adjust.
3661 (pp_c_postfix_expression): Use pp_id_expression.
3662 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3664 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3666 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3668 (pp_constant): Adjust.
3669 (pp_c_constant): Remove.
3670 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3671 pp_c_constant. Adjust.
3673 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3674 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3676 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3678 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3679 (c_pretty_printer::c_pretty_printer): Declare.
3680 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3681 c_pretty_printer_init. Adjust.
3682 (print_c_tree): Do not call c_pretty_printer_init.
3683 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3685 2013-08-09 Arnaud Charlet <charlet@adacore.com>
3687 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3689 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3692 * c-common.c (pointer_int_sum): Add bool parameter.
3693 * c-common.h (pointer_int_sum): Adjust declaration.
3695 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3697 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3698 c_pretty_printer variable.
3700 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3702 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3704 (pp_c_base): Likewise. Adjust users.
3705 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3706 (pp_c_whitespace): Do not call pp_base.
3707 (pp_c_left_paren): Likewise.
3708 (pp_c_right_paren): Likewise.
3709 (pp_c_left_brace): Likewise.
3710 (pp_c_right_brace): Likewise.
3711 (pp_c_left_bracket): Likewise.
3712 (pp_c_right_bracket): Likewise.
3713 (pp_c_dot): Likewise.
3714 (pp_c_ampersand): Likewise.
3715 (pp_c_star): Likewise.
3716 (pp_c_arrow): Likewise.
3717 (pp_c_semicolon): Likewise.
3718 (pp_c_complement): Likewise.
3719 (pp_c_exclamation): Likewise.
3720 (pp_c_direct_declarator): Likewise.
3721 (pp_c_ws_string): Likewise.
3722 (pp_c_identifier): Likewise.
3723 (pp_c_statement): Likewise.
3724 (print_c_tree): Likewise.
3726 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3729 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3730 provide useful error strings.
3732 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3734 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3735 printer functions instead of pp_string or operators and punctuators.
3736 (dump_generic_ada_node): Likewise.
3737 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3738 (pp_c_relational_expression): Likewise.
3739 (pp_c_logical_or_expression): Likewise.
3741 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3743 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3744 functions instead of pp_character.
3745 (pp_ada_tree_identifier): Likewise.
3746 (dump_ada_double_name): Likewise.
3747 (dump_ada_function_declaration): Likewise.
3748 (dump_ada_array_domains): Likewise.
3749 (dump_template_types): Likewise.
3750 (dump_generic_ada_node): Likewise.
3751 (print_ada_declaration): Likewise.
3752 (print_ada_struct_decl): Likewise.
3753 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3755 2013-07-23 Tom Tromey <tromey@redhat.com>
3757 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3758 * c-common.c (c_common_reswords): Add _Generic.
3760 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
3762 * c-common.c: Fix typos.
3763 * c-common.h: Likewise.
3765 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
3768 * c-common.c (c_common_attribute_table): Add warn_unused.
3769 (handle_warn_unused_attribute): New.
3771 2013-07-10 Jakub Jelinek <jakub@redhat.com>
3773 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3774 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3776 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3779 * c.opt: Add Wconditionally-supported.
3781 2013-07-08 Graham Stott <graham.stott@btinternet.com>
3783 * array-notation-common.c (length_mismatch_in_expr_p): Delete
3784 unused variables l_length and l_node.
3786 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
3789 * c-common.c (complete_array_type): Delay folding first index
3790 like other indices. When folding, check for index overflow.
3792 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
3795 * c-common.h (c_build_vec_perm_expr): New complain argument.
3796 * c-common.c (c_build_vec_perm_expr): Likewise.
3797 Use save_expr also in C++.
3799 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3801 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3802 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3803 * c-opts.c (c_common_post_options): Likewise.
3805 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3807 * array-notation-common.c (length_mismatch_in_expr): Changed the
3808 parameter type's from a dynamic array to a vec_tree. Also removed
3809 the size parameters.
3810 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3813 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3815 * c-common.h (struct cilkplus_an_parts): New structure.
3816 (struct cilkplus_an_loop_parts): Likewise.
3817 (cilkplus_extract_an_triplets): New prototype.
3818 (fix_sec_implicit_args): Likewise.
3819 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3820 (fix_sec_implicit_args): Likewise.
3822 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3824 * array-notation-common.c (find_inv_trees): Removed an unwanted
3826 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3827 enum rid to enum tree_code.
3829 2013-06-11 Jan Hubicka <jh@suse.cz>
3831 * c-common.c (handle_alias_ifunc_attribute): Do not set
3832 DECL_EXTERNAL for weakref variables.
3833 * c-pragma.c (handle_pragma_weak): Make sure aliases
3834 are not declared as external.
3836 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3838 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3839 function from c/c-array-notation.c.
3840 (is_cilkplus_reduce_builtin): Likewise.
3841 (find_rank): Likewise.
3842 (extract_array_notation_exprs): Likewise.
3843 (replace_array_notations): Likewise.
3844 (find_inv_trees): Likewise.
3845 (replace_inv_trees): Likewise.
3846 (contains_array_notation_expr): Likewise.
3847 (find_correct_array_notation_type): Likewise.
3848 * c-common.h (struct inv_list): Moved this struct from the file
3849 c/c-array-notation.c and added a new field called additional tcodes.
3850 (length_mismatch_in_expr_p): New prototype.
3851 (is_cilkplus_reduce_builtin): Likewise.
3852 (find_rank): Likewise.
3853 (extract_array_notation_exprs): Likewise.
3854 (replace_array_notation): Likewise.
3855 (find_inv_trees): Likewise.
3856 (replace_inv_trees): Likewise.
3857 (find_correct_array_notation_type): Likewise.
3859 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3861 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3862 function array_notation_init_builtins is called.
3863 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3864 * c-common.def (ARRAY_NOTATION_REF): New tree.
3865 * c-common.h (build_array_notation_expr): New function declaration.
3866 (build_array_notation_ref): Likewise.
3867 (extract_sec_implicit_index_arg): New extern declaration.
3868 (is_sec_implicit_index_fn): Likewise.
3869 (ARRAY_NOTATION_CHECK): New define.
3870 (ARRAY_NOTATION_ARRAY): Likewise.
3871 (ARRAY_NOTATION_START): Likewise.
3872 (ARRAY_NOTATION_LENGTH): Likewise.
3873 (ARRAY_NOTATION_STRIDE): Likewise.
3874 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3876 (pp_c_expression): Likewise.
3877 * c.opt (flag_enable_cilkplus): New flag.
3878 * array-notation-common.c: New file.
3880 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3883 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3885 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3887 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3890 2013-05-07 Han Shen <shenhan@google.com>
3892 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3894 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3896 * c-common.c (check_user_alignment): Emit error for negative values.
3898 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3900 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3902 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3904 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3905 __GXX_EXPERIMENTAL_CXX1Y__.
3907 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3908 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3910 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3911 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3912 to simply use OPT_Wpointer_arith.
3913 (c_sizeof_or_alignof_type): Likewise.
3915 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3917 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3919 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3921 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3922 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3925 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3927 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3929 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3931 * c-common.c (pointer_int_sum): Remove dead code.
3933 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3936 * c-common.c (handle_optimize_attribute): Don't call
3937 save_optabs_if_changed.
3939 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3942 * c-pch.c (pch_init): Free target_validity at the end.
3944 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3946 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3948 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3949 Jakub Jelinek <jakub@redhat.com>
3952 * c-common.c (handle_no_sanitize_address_attribute): New function.
3953 (c_common_attribute_table): Add no_sanitize_address attribute.
3954 (handle_no_address_safety_analysis_attribute): Add
3955 no_sanitize_address attribute, not no_address_safety_analysis
3958 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3961 * c-common.c (handle_optimize_attribute): Call
3962 save_optabs_if_changed.
3964 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3965 Steven Bosscher <steven@gcc.gnu.org>
3968 * c-opts.c (c_common_post_options): If debug info is enabled
3969 and non-dwarf*, refuse to load PCH files and when writing PCH
3972 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3975 * c-common.c (handle_error_attribute): Fix condition.
3977 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3980 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3982 2013-01-18 Jason Merrill <jason@redhat.com>
3985 * c.opt (-fextern-tls-init): New.
3986 * c-opts.c (c_common_post_options): Handle it.
3988 2013-01-09 Jakub Jelinek <jakub@redhat.com>
3991 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3992 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3993 and is either negative or bigger or equal to type precision
3994 of the first operand.
3996 2012-12-03 Marek Polacek <polacek@redhat.com>
3999 * c-common.c (check_user_alignment): Swap order of tests,
4000 check TREE_CODE first.
4002 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4005 * c-common.h (overflow_type): New enum.
4006 (build_userdef_literal): Add overflow_type argument.
4007 (tree_userdef_literal): Add overflow_type.
4008 (USERDEF_LITERAL_OVERFLOW): New access macro.
4009 * c-common.c (build_userdef_literal): Add overflow_type
4011 * c-lex.c (c_lex_with_flags): Add overflow_type to
4012 build_userdef_literal calls.
4013 (interpret_integer, interpret_float): Add overflow_type argument.
4015 2012-11-28 Richard Biener <rguenther@suse.de>
4018 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4019 here and use a type with proper overflow behavior for types that would
4020 need to be promoted for the arithmetic.
4022 2012-11-23 Jakub Jelinek <jakub@redhat.com>
4025 * c-common.c (handle_no_address_safety_analysis_attribute): New
4027 (c_common_attribute_table): Add no_address_safety_analysis.
4029 2012-11-16 Simon Baldwin <simonb@google.com>
4031 * c.opt: Add f[no-]canonical-system-headers.
4032 * c-opts.c (c_common_handle_option): Handle
4033 OPT_fcanonical_system_headers.
4035 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4038 * c-opts.c (c_common_handle_option): Set new flags.
4039 * c.opt: Describe new flags.
4041 2012-11-09 Jason Merrill <jason@redhat.com>
4043 * c.opt (Wabi-tag): New.
4045 2012-11-09 Andi Kleen <ak@linux.intel.com>
4048 * c-common.c (get_atomic_generic_size): Mask with
4051 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4054 * c.opt (Wformat): Make it Alias Wformat=1.
4055 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4056 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4058 (Wformat=): RejectNegative. Use LangEnabledBy.
4059 (Wnonnull): Use LangEnabledBy.
4060 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4061 * c-format.c (set_Wformat): Delete.
4062 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4063 (maybe_read_dollar_number): Likewise.
4064 (avoid_dollar_number): Likewise.
4065 (finish_dollar_format_checking): Likewise.
4066 (check_format_info): Likewise.
4067 (check_format_info_main): Likewise.
4068 (check_format_types): Likewise.
4069 (format_type_warning): Likewise.
4070 * c-common.c (int): Likewise.
4071 (check_function_sentinel): Likewise.
4072 * c-common.h (warn_format,set_Wformat): Do not declare here.
4074 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4077 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4078 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4080 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4082 (Wvariadic-macros): Init(1).
4083 * c-opts.c (c_common_handle_option): Do not handle them
4085 (c_common_post_options): Likewise.
4086 (sanitize_cpp_opts): warn_unused_macros is now
4087 cpp_warn_unused_macros.
4088 (push_command_line_include): Likewise.
4089 * c-common.c (warn_unknown_pragmas): Do not define.
4090 * c-common.h (warn_unknown_pragmas): Do not declare.
4092 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4095 * c-common.c (conversion_warning): Handle conditional expressions.
4097 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4100 * c.opt (Wreturn_local_addr): Define new option.
4102 2012-10-25 Jason Merrill <jason@redhat.com>
4104 * c.opt (Wvirtual-move-assign): New.
4106 * c.opt (Winherited-variadic-ctor): New.
4108 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
4111 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4113 2012-10-23 Joseph Myers <joseph@codesourcery.com>
4115 * c-common.h (pch_cpp_save_state): Declare.
4116 * c-target.def (c_preinclude): New hook.
4117 * c-opts.c (done_preinclude): New.
4118 (push_command_line_include): Handle default preincluded header.
4119 (cb_file_change): Call pch_cpp_save_state when calling
4120 push_command_line_include.
4121 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4122 (pch_cpp_save_state): New.
4123 (pch_init): Call pch_cpp_save_state conditionally, instead of
4124 calling cpp_save_state.
4126 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4130 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4131 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4132 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4133 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4134 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4135 * c-opts.c (c_common_handle_option): Remove explicit handling from
4137 (c_common_post_options): Likewise.
4139 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4141 * c-ada-spec.c (LOCATION_COL): Delete.
4142 (compare_location): New function.
4143 (compare_node): Use it.
4144 (compare_comment): Likewise.
4146 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4150 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4151 * c-opts.c (c_common_handle_option): Do not set them here. Add
4153 (c_common_post_options): Likewise.
4155 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4157 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4158 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4159 Remove POINTER_TYPE handling, add large unsigned handling and use
4160 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4162 2012-10-12 Jakub Jelinek <jakub@redhat.com>
4165 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4166 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4167 locs and array of 3 trees instead of just single loc and single
4168 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4169 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4170 For *cmp* builtins that take two sources strings report warnings
4171 about first and second source, not about destination and source.
4173 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
4176 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4178 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4180 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4181 declaring something coming from another file.
4183 2012-10-10 Arnaud Charlet <charlet@adacore.com>
4186 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4188 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4191 * c-common.c (warn_about_parentheses): Add location_t parameter;
4192 use EXPR_LOC_OR_LOC.
4193 * c-common.h: Update declaration.
4195 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
4198 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4199 more operations. Make error messages optional.
4200 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4201 (scalar_to_vector): Declare.
4203 2012-10-08 Jason Merrill <jason@redhat.com>
4205 * c-common.c (c_common_reswords): Add thread_local.
4207 2012-10-08 Dodji Seketeli <dodji@redhat.com>
4209 PR c++/53528 C++11 attribute support
4210 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4212 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4214 (handle_aligned_attribute): In choose strictest alignment
4215 among many. Use new check_cxx_fundamental_alignment_constraints.
4216 (handle_transparent_union_attribute): In c++11 attribute syntax,
4217 don't look through typedefs.
4219 2012-10-04 Arnaud Charlet <charlet@adacore.com>
4221 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4222 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4225 2012-09-25 Dehao Chen <dehao@google.com>
4228 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
4229 map when read in the pch.
4231 2012-09-18 Arnaud Charlet <charlet@adacore.com>
4233 * c-ada-spec.c: Style fixes.
4235 2012-09-18 Thomas Quinot <quinot@adacore.com>
4237 * c.opt (-fada-spec-parent): Define new command line switch.
4238 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4239 is specified, generate binding spec as a child of the specified unit.
4241 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4242 Manuel López-Ibáñez <manu@gcc.gnu.org>
4245 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4247 2012-08-23 Arnaud Charlet <charlet@adacore.com>
4249 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4250 for pointers, and add missing Convention C pragma.
4251 (print_ada_struct_decl): Add missing aliased keyword.
4252 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4254 2012-08-17 Jakub Jelinek <jakub@redhat.com>
4256 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4257 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4258 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4259 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4260 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4262 2012-08-10 Richard Guenther <rguenther@suse.de>
4264 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4266 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4268 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4269 instead of separate pp_newline and pp_flush.
4270 (print_c_tree): Likewise.
4272 2012-07-26 Richard Henderson <rth@redhat.com>
4274 * c-common.c (handle_hot_attribute): Allow labels.
4275 (handle_cold_attribute): Likewise.
4277 2012-07-20 Jakub Jelinek <jakub@redhat.com>
4280 * c-common.c (check_function_nonnull): Handle multiple nonnull
4281 attributes properly.
4283 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4285 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4286 * c-ada-spec.c: Likewise.
4287 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4289 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4291 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4292 Remove code conditional on it.
4294 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4296 * c-gimplify.c: Do not include basic-block.h.
4297 * c-common.c: Do not include linfuncs.h.
4299 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4301 * c-common.h: Include tree.h.
4303 2012-07-02 Jason Merrill <jason@redhat.com>
4306 * c-common.c (get_priority): Call default_conversion.
4308 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
4310 * c-pch.c (c_common_write_pch): Remove unused variables.
4312 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4314 * cppspec.c: Moved from gcc/ to here.
4316 2012-06-27 Kai Tietz <ktietz@redhat.com>
4318 PR preprocessor/37215
4319 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4321 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4323 * c-common.h (c_common_print_pch_checksum): Remove.
4324 * c-pch.c: Do not include output.h.
4325 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4326 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4327 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4328 (struct c_pch_header): Remove.
4329 (get_ident): Update gpch version.
4330 (pch_init): Do not print executable_checksum to asm_out_file.
4331 Do not fail if there is no asm_out_file to read back from. Set
4332 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4333 (c_common_write_pch): Verify that nothing was written to asm_out_file
4334 since pch_init was called. Do not write a c_pch_header, and do not
4335 copy from asm_out_file to the PCH.
4336 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4337 the content of asm_out_file from the PCH.
4338 (c_common_print_pch_checksum): Remove.
4339 * c-opts.c (c_common_init): Print out executable_checksum directly.
4341 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4343 * c-target.def (objc_declare_unresolved_class_reference,
4344 objc_declare_class_definition): Add new hooks.
4346 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4348 * c-lex.c: Do not include output.h.
4349 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4350 Remove uses of ASM_OUTPUT_IDENT.
4352 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
4355 * c-common.h (c_build_vec_perm_expr): Move decl here.
4356 * c-common.c (c_build_vec_perm_expr): Move definition
4359 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4361 * c.opt (fconserve-space): Turn into a no-op.
4363 2012-06-04 Sterling Augustine <saugustine@google.com>
4365 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4366 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4367 both the start and end of the function.
4369 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4371 * c-common.c: Do not include output.h.
4372 * c-pragma.c: Likewise.
4374 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4376 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4377 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4378 (lang_decl_name): Handle namespace decls.
4380 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4382 * c-ada-spec.c: Do not include output.h.
4383 * c-semantics.c: Likewise.
4385 2012-05-29 Joseph Myers <joseph@codesourcery.com>
4387 * c-common.c: Fix typo.
4389 2012-05-29 Michael Matz <matz@suse.de>
4391 * c-common.h (c_expand_decl): Remove prototype.
4393 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4395 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4396 * c-opts.c (c_common_handle_option): Remove code handling
4397 warn_missing_braces.
4399 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4402 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4405 2012-05-22 Dodji Seketeli <dodji@redhat.com>
4408 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4410 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4412 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4413 * c-opts.c (c_common_handle_option): Do not handle explicitly
4414 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4416 2012-05-16 Dodji Seketeli <dodji@redhat.com>
4418 PR preprocessor/7263
4419 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4420 to cpp_classify_number. For diagnostics, use the precise location
4421 instead of the global input_location.
4423 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4426 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4428 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4430 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
4432 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4435 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4436 Wreorder): Use LangEnabledBy.
4437 * c-opts.c (c_common_handle_option): Do not enable them
4438 explicitly. Call lang-specific generated functions.
4439 (c_common_post_options): Do not set them here.
4441 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4443 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4444 Wmissing-field-initializers,Wmissing-parameter-type,
4445 Wold-style-declaration,Woverride-init): Use EnabledBy.
4446 * c-opts.c (c_common_post_options): Do not set here explicitly.
4448 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4451 * c-opts.c (c_common_handle_option): Use handle_generated_option
4452 to enable sub-options.
4454 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4457 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4459 2012-05-10 Richard Guenther <rguenther@suse.de>
4461 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4462 adjust commentary about TYPE_IS_SIZETYPE types.
4464 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4467 * c-common.c (warn_logical_operator): Check that argument of
4468 integer_zerop is not NULL.
4470 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4473 * c-common.c (warn_logical_operator): Do not warn if either side
4474 is already true or false.
4476 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4479 * c-common.c (expr_original_type): New.
4480 (shorten_compare): Do not warn for enumeration types.
4482 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4484 * c.opt (fpermissive): Add Var(flag_permissive).
4486 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
4489 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4490 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4492 2012-04-30 Dodji Seketeli <dodji@redhat.com>
4494 Add -Wvarargs option
4495 * c.opt (Wvarargs): Define new option.
4497 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4499 * c-common.c (check_function_arguments): Replace
4500 Wmissing-format-attribute with Wsuggest-attribute=format.
4502 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4504 * c.opt (Wsuggest-attribute=format): New. Alias of
4505 Wmissing-format-attribute.
4506 * c-format.c (decode_format_type): Replace
4507 Wmissing-format-attribute with Wsuggest-attribute=format.
4508 (check_function_format): Likewise.
4510 2012-04-27 Ollie Wild <aaw@google.com>
4512 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4513 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4514 * c.opt: Add Wliteral-suffix.
4516 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4519 * c.opt (Wpedantic): New.
4520 (pedantic): Alias Wpedantic.
4521 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4522 (c_common_post_options): Likewise.
4523 (sanitize_cpp_opts): Likewise.
4524 * c-lex.c (interpret_float): Likewise.
4525 * c-format.c (check_format_types): Likewise.
4526 * c-common.c (pointer_int_sum): Likewise.
4527 (c_sizeof_or_alignof_type): Likewise.
4528 (c_add_case_label): Likewise.
4529 (c_do_switch_warnings): Likewise.
4530 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4532 2012-04-15 Jason Merrill <jason@redhat.com>
4535 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4536 (C_STD_NAME): Distinguish between C++98 and C++11.
4538 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4541 * c-common.h (uint16_type_node): Rename into...
4542 (c_uint16_type_node): ...this.
4543 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4544 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4546 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4548 * c-common.c (warn_if_unused_value): Move definition to here.
4549 * c-common.h (warn_if_unused_value): Move declaration to here.
4551 2012-03-23 William Bader <williambader@hotmail.com>
4553 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4555 2012-03-20 Jason Merrill <jason@redhat.com>
4557 * c-common.h (enum cxx_dialect): Add cxx1y.
4558 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4560 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4561 * c-opts.c (c_common_post_options): Likewise.
4562 (set_std_cxx1y): New.
4563 (c_common_handle_option): Call it.
4564 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4566 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4569 * c.opt ([Wuseless-cast]): Add.
4571 2012-03-16 Richard Guenther <rguenther@suse.de>
4573 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4575 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4578 * c.opt (ftemplate-backtrace-limit) Add.
4580 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4582 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4584 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4585 (init_pragma): Don't register extern_prefix.
4587 2012-03-12 Richard Guenther <rguenther@suse.de>
4589 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4590 (builtin_type_for_size): Likewise.
4592 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4595 * c-common.c (sync_resolve_params): Don't decide whether to convert
4596 or not based on TYPE_SIZE comparison, convert whenever arg_type
4597 is unsigned INTEGER_TYPE.
4599 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4602 * c.opt ([Wunused-local-typedefs]): Fix description.
4604 2012-01-24 Mike Stump <mikestump@comcast.net>
4606 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4609 2012-01-18 Richard Guenther <rguenther@suse.de>
4611 * c-opts.c (c_common_post_options): Reset LTO flags if
4612 we are about to generate a PCH.
4614 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4617 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4618 use pp_unsigned_wide_integer.
4620 2012-01-10 Richard Guenther <rguenther@suse.de>
4623 * c-opts.c (c_common_handle_option): Move -Werror handling
4624 to language independent code.
4626 2012-01-05 Richard Guenther <rguenther@suse.de>
4629 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4632 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4635 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4636 of array types with an unknown bound.
4638 2011-12-20 Joseph Myers <joseph@codesourcery.com>
4640 * c-common.c (flag_isoc99): Update comment to refer to C11.
4641 (flag_isoc1x): Change to flag_isoc11.
4642 * c-common.h (flag_isoc99): Update comment to refer to C11.
4643 (flag_isoc1x): Change to flag_isoc11.
4644 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4646 * c-opts.c (set_std_c1x): Change to set_std_c11.
4647 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4649 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4650 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4651 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4653 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4654 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4655 (std=gnu1x): Make alias of std=gnu11.
4657 2011-12-19 Jason Merrill <jason@redhat.com>
4660 * c-common.c (handle_transparent_union_attribute): Check the first
4661 field if the type is complete.
4663 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4666 * c-common.c (RID_IS_FINAL): Add.
4667 * c-common.h (RID_IS_FINAL): Add.
4669 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4671 * c.opt (fgnu-runtime): Provide full description.
4672 (fnext-runtime): Likewise.
4673 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4675 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
4677 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4678 predefines in one place. Add LOCK_FREE predefines.
4679 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4682 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
4685 * c-common.c (get_atomic_generic_size): Check for various error
4687 (resolve_overloaded_atomic_exchange,
4688 resolve_overloaded_atomic_compare_exchange,
4689 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4690 error_mark_node for error conditions.
4692 2011-11-08 Richard Guenther <rguenther@suse.de>
4697 2011-11-07 Richard Henderson <rth@redhat.com>
4698 Aldy Hernandez <aldyh@redhat.com>
4699 Torvald Riegel <triegel@redhat.com>
4701 Merged from transactional-memory.
4703 * c-common.c (handle_tm_wrap_attribute,
4704 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4705 (struct c_common_reswords): Added __transaction* keywords.
4706 (struct c_common_attribute_table): Added transaction* and tm_regparm
4708 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4710 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4711 find_tm_attribute): Declare.
4713 2011-11-07 Jason Merrill <jason@redhat.com>
4716 * c-common.c, c-common.h: Revert yesterday's changes.
4718 2011-11-06 Jason Merrill <jason@redhat.com>
4721 * c-common.c (decl_has_visibility_attr): Split out from...
4722 (c_determine_visibility): ...here.
4723 * c-common.h: Declare it.
4725 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4727 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4728 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4730 (check_user_alignment): New. Split out of
4731 handle_aligned_attribute. Disallow integer constants with
4732 noninteger types. Conditionally allow zero.
4733 (handle_aligned_attribute): Use check_user_alignment.
4734 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4736 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
4737 Richard Henderson <rth@redhat.com>
4739 Merged from cxx-mem-model.
4741 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
4742 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
4743 parameters that are the same type size.
4744 (get_atomic_generic_size): New. Find size of generic
4745 atomic function parameters and do typechecking.
4746 (add_atomic_size_parameter): New. Insert size into parameter list.
4747 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4748 either __atomic_exchange_n or external library call.
4749 (resolve_overloaded_atomic_compare_exchange): Restructure
4750 __atomic_compare_exchange to either _n variant or external library call.
4751 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
4752 __atomic_load_n or an external library call.
4753 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4754 __atomic_store_n or an external library call.
4755 (resolve_overloaded_builtin): Handle new __atomic builtins.
4757 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4760 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4761 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4762 <INDIRECT_REF>: Return the argument.
4763 <ARRAY_REF>: Remove special code for negative offset.
4764 Call fold_build_pointer_plus instead of size_binop.
4765 (fold_offsetof): Remove STOP_REF argument and adjust.
4766 * c-common.h (fold_offsetof_1): Declare.
4767 (fold_offsetof): Remove STOP_REF argument.
4769 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4772 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4773 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4774 Wnarrowing for C++0x and C++98.
4775 * c.opt ([Wnarrowing]): Update.
4777 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4780 * c.opt: Add Wzero-as-null-pointer-constant.
4782 2011-10-31 Jason Merrill <jason@redhat.com>
4784 * c.opt (-fdeduce-init-list): Off by default.
4787 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4788 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4790 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4792 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4795 * c.opt (fvisibility-inlines-hidden): Description change.
4797 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4799 Implement C++11 user-defined literals.
4800 * c-common.c (build_userdef_literal): New.
4801 * c-common.def: New tree code.
4802 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4803 * c-lex.c (interpret_float): Add suffix parm.
4804 (c_lex_with_flags): Build literal tokens.
4806 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4810 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4813 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4814 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4815 Wnarrowing for C++0x and C++98.
4816 * c.opt ([Wnarrowing]): Update.
4818 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4821 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4822 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4823 Wnarrowing for C++0x and C++98.
4824 * c.opt ([Wnarrowing]): Update.
4826 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4829 * c-common.c (conversion_warning): Remove code looking for
4830 artificial operands.
4832 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4835 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
4836 !NO_IMPLICIT_EXTERN_C.
4838 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
4840 * c-common.c (c_common_reswords): Add __bases,
4842 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4844 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4847 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4849 2011-10-15 Tom Tromey <tromey@redhat.com>
4850 Dodji Seketeli <dodji@redhat.com>
4852 * c.opt (fdebug-cpp): New option.
4853 * c-opts.c (c_common_handle_option): Handle the option.
4854 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4855 output stream in parameter. Factorized from ...
4856 (maybe_print_line): ... this. Dump location debug information when
4857 -fdebug-cpp is in effect.
4858 (print_line_1): New static function. Takes an output stream in
4859 parameter. Factorized from ...
4860 (print_line): ... here. Dump location information when -fdebug-cpp
4862 (scan_translation_unit): Dump location information when
4863 -fdebug-cpp is in effect.
4865 2011-10-15 Tom Tromey <tromey@redhat.com>
4866 Dodji Seketeli <dodji@redhat.com>
4868 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4870 * c-opts.c (c_common_handle_option)<case
4871 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4872 cases. Handle -ftrack-macro-expansion with and without argument.
4874 2011-10-15 Tom Tromey <tromey@redhat.com>
4875 Dodji Seketeli <dodji@redhat.com>
4877 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4878 (print_line, cb_define, do_line_change): Adjust to avoid touching
4879 the internals of struct line_map. Use the public API instead.
4880 * c-pch.c (c_common_read_pch): Likewise.
4881 * c-lex.c (fe_file_change): Likewise.
4883 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4886 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4888 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4891 * c-pretty-print.c (pp_c_floating_constant): Output
4892 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4894 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4896 * c-common.c (def_builtin_1): Delete old interface with two
4897 parallel arrays to hold standard builtin declarations, and replace
4898 it with a function based interface that can support creating
4899 builtins on the fly in the future. Change all uses, and poison
4900 the old names. Make sure 0 is not a legitimate builtin index.
4901 * c-omp.c (c_finish_omp_barrier): Ditto.
4902 (c_finish_omp_taskwait): Ditto.
4903 (c_finish_omp_flush): Ditto.
4905 2011-10-11 Tristan Gingold <gingold@adacore.com>
4907 * c.opt: (fallow-parameterless-variadic-functions): New.
4909 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4911 PR c++/33255 - Support -Wunused-local-typedefs warning
4912 * c-common.h (struct c_language_function::local_typedefs): New
4914 (record_locally_defined_typedef, maybe_record_typedef_use)
4915 (maybe_warn_unused_local_typedefs): Declare new functions.
4916 * c-common.c (record_locally_defined_typedef)
4917 (maybe_record_typedef_use)
4918 (maybe_warn_unused_local_typedefs): Define new functions.
4919 * c.opt: Declare new -Wunused-local-typedefs flag.
4921 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4924 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4927 2011-09-05 Richard Guenther <rguenther@suse.de>
4929 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4930 of integer_minus_one_node for empty array upper bounds.
4932 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4934 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4935 it's the first time it's being called on this main TU.
4937 2011-08-24 Richard Guenther <rguenther@suse.de>
4940 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4942 2011-08-22 Gabriel Charette <gchare@google.com>
4944 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4945 defined in cpp_init_builtins and c_cpp_builtins.
4947 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4949 * c-common.c (c_common_reswords): Add __builtin_complex.
4950 * c-common.h (RID_BUILTIN_COMPLEX): New.
4952 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4954 * c-common.c (c_common_reswords): Add _Noreturn.
4955 (keyword_is_function_specifier): Handle RID_NORETURN.
4956 * c-common.h (RID_NORETURN): New.
4958 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4960 * c-common.c (unsafe_conversion_p): New function. Check if it is
4961 unsafe to convert an expression to the type.
4962 (conversion_warning): Adjust, use unsafe_conversion_p.
4963 * c-common.h (unsafe_conversion_p): New function declaration.
4965 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4967 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4968 (c_finish_omp_taskyield): New prototype.
4969 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4970 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4971 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4972 or RHS1 have side-effects, evaluate those too in the right spot,
4973 if it is a decl and LHS is also a decl, error out if they
4975 (c_finish_omp_taskyield): New function.
4976 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4977 * c-pragma.c (omp_pragmas): Add taskyield.
4978 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4979 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4980 PRAGMA_OMP_CLAUSE_MERGEABLE.
4982 2011-07-25 Dodji Seketeli <dodji@redhat.com>
4984 * c-common.h (set_underlying_type): Remove parm name from
4987 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
4989 * c-pretty-print.h: Search c-common.h in c-family.
4991 2011-07-22 Jason Merrill <jason@redhat.com>
4994 * c.opt (Wnarrowing): New.
4997 * c-common.h: Declare c_linkage_bindings.
4998 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5001 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5002 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5003 as flag_isoc99 for 'restrict'.
5004 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5006 2011-07-21 Ian Lance Taylor <iant@google.com>
5009 * c-common.c (c_disable_warnings): New static function.
5010 (c_enable_warnings): New static function.
5011 (c_fully_fold_internal): Change local unused_p to bool. Call
5012 c_disable_warnings and c_enable_warnings rather than change
5013 c_inhibit_evaluation_warnings.
5015 2011-07-20 Jason Merrill <jason@redhat.com>
5017 PR c++/6709 (DR 743)
5018 PR c++/42603 (DR 950)
5019 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5020 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5021 (CPP_DECLTYPE): New.
5022 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5024 2011-07-19 Richard Guenther <rguenther@suse.de>
5026 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5027 * c-omp.c (c_finish_omp_for): Likewise.
5029 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5031 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5032 body on the next line.
5034 2011-07-08 Jason Merrill <jason@redhat.com>
5037 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5040 * c-common.c (c_apply_type_quals_to_decl): Don't check
5041 TYPE_NEEDS_CONSTRUCTING.
5043 2011-07-06 Richard Guenther <rguenther@suse.de>
5045 * c-common.c (c_common_nodes_and_builtins):
5046 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5048 2011-07-05 Richard Guenther <rguenther@suse.de>
5050 * c-common.c (c_common_nodes_and_builtins): Build all common
5053 2011-06-27 Jakub Jelinek <jakub@redhat.com>
5055 * c-common.h (c_tree_chain_next): New static inline function.
5057 * c-common.c (check_builtin_function_arguments): Handle
5058 BUILT_IN_ASSUME_ALIGNED.
5060 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
5062 * c-common.c: Add sync_ or SYNC__ to builtin names.
5063 * c-omp.c: Add sync_ or SYNC__ to builtin names.
5065 2011-06-20 Pierre Vittet <piervit@pvittet.com>
5067 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5069 (gen_pragma_handler): New union.
5070 (internal_pragma_handler): New type.
5071 (c_register_pragma_with_data)
5072 (c_register_pragma_with_expansion_and_data): New functions.
5074 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5075 (c_register_pragma, c_register_pragma_with_expansion)
5076 (c_invoke_pragma_handler): Changed to work with
5077 internal_pragma_handler.
5078 (c_register_pragma_with_data)
5079 (c_register_pragma_with_expansion_and_data): New functions.
5081 2011-06-14 Joseph Myers <joseph@codesourcery.com>
5083 * c-common.c: Include common/common-target.h.
5084 (handle_section_attribute): Use
5085 targetm_common.have_named_sections.
5086 * c-cppbuiltin.c: Include common/common-target.h.
5087 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5089 2011-06-10 Richard Guenther <rguenther@suse.de>
5091 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5092 to print a IDENTIFIER_NODE.
5094 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5095 Joseph Myers <joseph@codesourcery.com>
5097 * c.opt (fbuilding-libgcc): New option.
5098 * c-cppbuiltin.c (c_cpp_builtins): Define
5099 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5101 2011-06-07 Jason Merrill <jason@redhat.com>
5103 * c-common.c (max_tinst_depth): Lower default to 900.
5105 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5107 2011-06-07 Richard Guenther <rguenther@suse.de>
5109 * c-common.c (c_common_nodes_and_builtins): Do not set
5110 size_type_node or call set_sizetype.
5112 2011-06-07 Dodji Seketeli <dodji@redhat.com>
5115 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
5116 type when using pointer comparison to compare types.
5118 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5120 * c.opt: Add -Wdelete-non-virtual-dtor.
5121 * c-opts.c (c_common_handle_option): Include it in -Wall.
5123 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5128 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5130 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5133 2011-05-27 Jakub Jelinek <jakub@redhat.com>
5136 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5137 C++ don't call c_common_truthvalue_conversion on void type arms.
5139 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5141 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5142 (stmt_list_stack): Define.
5143 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5144 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5146 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5148 * c-common.c (warning_candidate_p): Check for BLOCKs.
5150 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5152 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5155 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5157 * c-common.c (def_fn_type): Remove extra va_end.
5159 2011-05-23 Jason Merrill <jason@redhat.com>
5162 * c-common.c (c_common_get_narrower): New.
5163 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5165 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5167 * c-common.h (check_function_arguments): Tweak prototype of
5168 check_function_arguments.
5169 * c-common.c (check_function_arguments): Likewise. Adjust
5170 calls to check_function_nonnull, check_function_format, and
5171 check_function_sentinel.
5172 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5173 separate attributes and typelist arguments. Use
5174 FOREACH_FUNCTION_ARGS to iterate over argument types.
5176 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5178 * c-common.c (c_common_reswords): Reorder.
5179 * c-common.h (rid): Likewise.
5181 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5183 * c-common.c (def_fn_type): Don't call build_function_type, call
5184 build_function_type_array or build_varargs_function_type_array
5186 (c_common_nodes_and_builtins): Likewise.
5188 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5190 * c-common.c (c_add_case_label): Omit the loc argument to
5192 * c-common.h (build_case_label): Remove.
5193 * c-semantics.c (build_case_label): Remove.
5195 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5197 * c-objc.h (objc_start_method_definition): Update prototype.
5198 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5200 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5202 * c-common.c (check_main_parameter_types): Reindent. Don't use
5203 TYPE_ARG_TYPES directly.
5204 (handle_nonnull_attribute): Likewise.
5205 (sync_resolve_params): Likewise.
5206 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5207 to check_format_string.
5208 (handle_format_attribute): Likewise.
5209 (check_format_string): Take a function type to examine instead of
5210 a type list. Use a function_arg_iterator to step through argument
5213 2011-05-04 Richard Guenther <rguenther@suse.de>
5215 * c-common.c (fix_string_type): Use size_int for index type bounds.
5216 (start_fname_decls): Do not pass NULL to build_int_cst.
5217 (c_init_attributes): Likewise.
5218 * c-lex.c (c_lex_with_flags): Likewise.
5220 2011-04-27 Jason Merrill <jason@redhat.com>
5222 * c-common.c (make_tree_vector_from_list): New.
5223 * c-common.h: Declare it.
5225 2011-04-26 Richard Guenther <rguenther@suse.de>
5227 PR preprocessor/48248
5228 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5229 for output size with -P.
5231 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5233 * c-common.c (struct c_common_resword): Add __underlying_type.
5234 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5236 2011-04-20 Jim Meyering <meyering@redhat.com>
5238 * c-format.c (init_dollar_format_checking): Remove useless
5241 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5243 * c-objc.h (objc_get_interface_ivars): Removed.
5244 (objc_detect_field_duplicates): New.
5245 * stub-objc.c: Likewise.
5247 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5249 * stub-objc.c (objc_declare_protocols): Renamed to
5250 objc_declare_protocol.
5251 * c-objc.h: Likewise.
5253 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5255 * stub-objc.c (objc_declare_class): Updated argument name.
5257 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5259 * c-common.h (c_common_init_ts): Declare.
5260 * c-common.c (c_common_init_ts): Define.
5262 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5264 * c-objc.h (objc_build_message_expr): Updated prototype.
5265 * stub-objc.c (objc_build_message_expr): Likewise.
5267 2011-04-12 Martin Jambor <mjambor@suse.cz>
5269 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5272 2011-04-11 Richard Guenther <rguenther@suse.de>
5274 * c-common.c (complete_array_type): Build a range type of
5277 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5279 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5280 (handle_type_generic_attribute): Likewise.
5282 2011-04-07 Jason Merrill <jason@redhat.com>
5285 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5286 conversion from C++0x scoped enum.
5288 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5290 * c-target-def.h: New file.
5291 * c-target.def: New file.
5292 * c-target.h: New file.
5293 * c-common.c (targetcm): Don't define here.
5294 * c-common.h (default_handle_c_option): Declare.
5295 * c-format.c: Include c-target.h instead of target.h.
5296 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5298 (default_handle_c_option): Move from targhooks.c.
5300 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5302 PR preprocessor/48248
5303 * c-ppoutput.c (print): Add src_file field.
5304 (init_pp_output): Initialize it.
5305 (maybe_print_line): Don't optimize by adding up to 8 newlines
5306 if map->to_file and print.src_file are different file.
5307 (print_line): Update print.src_file.
5309 2011-03-25 Kai Tietz <ktietz@redhat.com>
5311 * c-ada-spec.c (compare_comment): Use filename_cmp
5312 instead of strcmp for filename.
5314 2011-03-25 Jeff Law <law@redhat.com>
5316 * c-common.c (def_fn_type): Add missing va_end.
5318 2011-03-25 Jason Merrill <jason@redhat.com>
5320 * c.opt: Add -std=c++03.
5322 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5324 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5326 2011-03-17 Kai Tietz
5329 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5330 Display allowed attributes for function pointer types.
5331 (pp_c_attributes_display): New function to display
5332 attributes having affects_type_identity flag set to true.
5333 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5335 * c-common.c (c_common_attribute_table):
5337 (c_common_format_attribute_table): Likewise.
5339 2011-03-18 Jason Merrill <jason@redhat.com>
5341 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5342 * c-common.h: Don't declare it here.
5343 * c-common.c: Or define it here.
5344 * c-opts.c (c_common_handle_option): Or set it here.
5347 * c-common.c (handle_transparent_union_attribute): Don't
5348 make a duplicate type in C++.
5350 2011-03-15 Jason Merrill <jason@redhat.com>
5352 * c-common.c (max_constexpr_depth): New.
5353 * c-common.h: Declare it.
5354 * c-opts.c (c_common_handle_option): Set it.
5355 * c.opt (fconstexpr-depth): New option.
5357 2011-03-11 Jason Merrill <jason@redhat.com>
5359 * c-common.c (attribute_takes_identifier_p): Add missing const.
5362 * c-common.c (attribute_takes_identifier_p): Assume that an
5363 unknown attribute takes an identifier.
5365 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5368 * c-common.c (c_type_hash): Call list_length instead of iterating
5369 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5371 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5374 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5376 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5378 * c.opt (fobjc-abi-version=) New.
5379 (fobjc-nilcheck): New.
5381 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5384 * c-common.h (keyword_is_decl_specifier): Declare.
5385 * c-common.c (keyword_is_decl_specifier): Define.
5386 (keyword_is_function_specifier): New function.
5388 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5391 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5392 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5395 2011-01-26 Arnaud Charlet <charlet@adacore.com>
5397 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5399 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5402 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5403 after init_c_lex if pch_file is set.
5405 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5408 * c.opt (-fkeep-inline-dllexport): New switch.
5410 2011-01-12 Richard Guenther <rguenther@suse.de>
5413 * c-common.c (handle_weak_attribute): Warn instead of error
5414 on declaring an inline function weak.
5416 2011-01-05 Tom Tromey <tromey@redhat.com>
5418 * c-common.h (lvalue_error): Update.
5419 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5422 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
5425 * c-objc.h (objc_finish_message_expr): Added argument to
5428 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5430 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5433 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5435 * c-objc.h (objc_maybe_warn_exceptions): New.
5436 * stub-objc.c (objc_maybe_warn_exceptions): New.
5438 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5440 * c-common.h (readonly_error): Declare.
5441 * c-common.c (readonly_error): Define.
5443 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5445 * c-common.h (invalid_indirection_error): Declare.
5446 * c-common.c (invalid_indirection_error): Define.
5448 2010-12-03 Richard Guenther <rguenther@suse.de>
5451 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5452 (pp_c_unary_expression): Likewise.
5453 (pp_c_expression): Likewise.
5455 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5457 * c-common.h (objc_finish_function): New.
5458 (objc_non_volatilized_type): Removed.
5459 (objc_type_quals_match): Removed.
5460 * stub-objc.c (objc_finish_function): New.
5461 (objc_non_volatilized_type): Removed.
5462 (objc_type_quals_match): Removed.
5464 2010-11-30 Joseph Myers <joseph@codesourcery.com>
5466 * c-common.h (parse_optimize_options): Declare.
5467 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5468 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5470 2010-11-29 Joseph Myers <joseph@codesourcery.com>
5472 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5474 * c-pch.c (O_BINARY): Don't define here.
5475 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5477 2010-11-25 Joseph Myers <joseph@codesourcery.com>
5479 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5480 targetm.except_unwind_info.
5482 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5484 * c-opts.c (c_common_handle_option): Pass location to
5485 set_struct_debug_option.
5487 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5489 * c-common.c (visibility_options): Move from ../opts.c.
5490 * c-common.h (struct visibility_flags, visibility_options):
5492 * c-opts.c (finish_options): Rename to c_finish_options.
5493 (c_common_init): Update call to finish_options.
5495 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5498 * c-lex.c (lex_string): Check that each string in an Objective-C
5499 string concat sequence starts with either one or zero '@', and
5500 that there are no spurious '@' signs at the end.
5502 2010-11-20 Joseph Myers <joseph@codesourcery.com>
5504 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5505 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5506 HANDLE_PRAGMA_VISIBILITY.
5507 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5508 HANDLE_PRAGMA_VISIBILITY): Don't define.
5509 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5511 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5516 * c-common.h (keyword_begins_type_specifier): Declare.
5517 (keyword_is_storage_class_specifier): Declare.
5518 (keyword_is_type_qualifier): Declare.
5519 * c-common.c (keyword_begins_type_specifier): New function.
5520 (keyword_is_storage_class_specifier): New function.
5521 (keyword_is_type_qualifier): Declare.
5523 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5526 * c-common.c (in_late_binary_op): Define.
5527 (c_common_truthvalue_conversion): Check in_late_binary_op before
5528 calling c_save_expr.
5529 * c-common.h (in_late_binary_op): Declare.
5531 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5533 * c-opts.c (c_common_handle_option): Update calls to
5534 set_struct_debug_option.
5536 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5538 * c-common.h (objc_declare_protocols): Added additional argument.
5539 * stub-objc.c (objc_declare_protocol): Same change.
5541 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5544 * c-common.h (build_real_imag_expr): Declare.
5545 * c-semantics.c (build_real_imag_expr): Define.
5547 2010-11-17 Joseph Myers <joseph@codesourcery.com>
5549 * c-opts.c (c_common_parse_file): Take no arguments.
5550 * c-common.h (c_common_parse_file): Update prototype.
5552 2010-11-16 Jakub Jelinek <jakub@redhat.com>
5555 * c-common.c (warning_candidate_p): Don't track non-const calls
5558 2010-11-15 Ian Lance Taylor <iant@google.com>
5560 * c-lex.c (init_c_lex): Set macro debug callbacks if
5561 flag_dump_go_spec is set.
5563 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5565 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5566 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5568 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5570 PR preprocessor/45038
5571 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5574 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5576 * c-common.h (c_family_lang_mask): Declare.
5577 * c-opts.c (c_family_lang_mask): Make extern.
5578 * c-pragma.c (handle_pragma_diagnostic): Use
5579 control_warning_option.
5581 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5583 * c-common.c (parse_optimize_options): Update call to
5585 * c-common.h (c_common_handle_option): Update prototype.
5586 * c-opts.c (c_common_handle_option): Take location_t parameter and
5587 pass it to other functions.
5589 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5591 * c-opts.c (warning_as_error_callback): Remove.
5592 (c_common_initialize_diagnostics): Don't call
5593 register_warning_as_error_callback.
5594 (c_common_handle_option): Handle -Werror=normalized= here.
5596 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5598 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5600 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5602 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5603 Remove trailing '.' from diagnostics.
5604 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5606 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5608 * c-common.c (parse_optimize_options): Pass global_dc to
5610 * c-opts.c (c_common_handle_option): Pass &global_options to
5611 set_Wstrict_aliasing.
5612 * c.opt (v): Don't mark Common or document here.
5614 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5617 * c-format.c (format_type): New type gcc_objc_string_format_type.
5618 (valid_stringptr_type_p): New.
5619 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
5620 (check_format_string): Pass expected type, use
5621 valid_stringptr_type_p (), check that the format string types are
5622 consistent with the format specification.
5623 (decode_format_attr): Warn if NSString is used outside objective-c.
5624 (format_types_orig): Add NSString.
5626 (format_flags): New.
5627 (check_format_arg): Handle format strings requiring an external parser.
5628 first_target_format_type: New variable.
5629 (handle_format_attribute): Set up first_target_format_type, pass the
5630 expected format arg string type to check_format_string().
5631 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5632 * stub-objc.c (objc_string_ref_type_p): New.
5633 (objc_check_format_arg): New.
5635 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5637 Fixed using the Objective-C 2.0 dot-syntax with class names.
5638 * c-common.h (objc_build_class_component_ref): New.
5639 * stub-objc.c (objc_build_class_component_ref): New.
5641 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5643 * c.opt (Wproperty-assign-default): New option.
5645 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5647 Implemented -fobjc-std=objc1 flag.
5648 * c.opt (fobjc-std=objc1): New option.
5650 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5652 Implemented format and noreturn attributes for Objective-C methods.
5653 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5654 attribute for Objective-C methods.
5656 2010-10-31 Jason Merrill <jason@redhat.com>
5658 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5661 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5663 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5664 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5665 (objc_add_property_declaration): Removed arguments for copies and
5667 (objc_build_getter_call): Renamed to
5668 objc_maybe_build_component_ref.
5669 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5670 (objc_is_property_ref): New.
5671 * c-common.c (c_common_reswords): Removed copies and ivar.
5672 * stub-objc.c (objc_add_property_declaration): Removed arguments
5673 for copies and ivar.
5674 (objc_build_getter_call): Renamed to
5675 objc_maybe_build_component_ref.
5676 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5677 (objc_is_property_ref): New.
5679 2010-10-29 Arnaud Charlet <charlet@adacore.com>
5680 Matthew Gingell <gingell@adacore.com>
5682 * c-ada-spec.c (separate_class_package): New function.
5683 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5684 name of their enclosing package.
5685 (print_ada_declaration): Use separate_class_package.
5687 2010-10-27 Jason Merrill <jason@redhat.com>
5689 * c-common.c (c_common_reswords): Add __is_literal_type.
5690 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5692 * c-common.c (check_case_value): Remove special C++ code.
5694 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5696 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5697 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5699 (objc_add_property_declaration): Added additional arguments.
5700 (objc_property_attribute_kind): Removed.
5701 (objc_set_property_attr): Removed.
5702 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5704 * stub-objc.c (objc_add_property_declaration): Added additional
5706 (objc_set_property_attr): Removed.
5708 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5710 * c-common.h (objc_add_property_variable): Renamed to
5711 objc_add_property_declaration. Added location argument.
5712 * stub-objc.c (objc_add_property_variable): Same change.
5714 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5716 * c-common.h (objc_maybe_printable_name): New.
5717 * stub-objc.c (objc_maybe_printable_name): New.
5719 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5720 Andrew Pinski <pinskia@gmail.com>
5722 * c-common.h (c_common_mark_addressable_vec): Declare.
5723 * c-common.c (c_common_mark_addressable_vec): New function.
5725 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5727 * c-common.h (objc_set_method_type): Removed.
5728 (objc_add_method_declaration): Added boolean argument.
5729 (objc_start_method_definition): Same change.
5730 (objc_build_method_signature): Same change.
5731 * stub-objc.c (objc_set_method_type): Removed.
5732 (objc_add_method_declaration): Added boolean argument.
5733 (objc_start_method_definition): Same change.
5734 (objc_build_method_signature): Same change.
5736 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5738 * c-common.h (finish_file): Removed.
5739 (objc_write_global_declarations): New.
5740 * c-opts.c (c_common_parse_file): Do not call finish_file.
5741 * stub-objc.c (objc_write_global_declarations): New.
5743 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5745 Implemented parsing @synthesize and @dynamic for
5746 Objective-C/Objective-C++.
5747 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5748 (objc_add_synthesize_declaration): New.
5749 (objc_add_dynamic_declaration): New.
5750 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5751 * stub-objc.c (objc_add_synthesize_declaration): New.
5752 (objc_add_dynamic_declaration): New.
5754 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5757 * c-cppbuiltin.c (mode_has_fma): Move function here from
5758 builtins.c. Don't use the fma optab, instead just use the
5759 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5762 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5764 Merge from 'apple/trunk' branch on FSF servers.
5766 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5769 * c-common.h (objc_non_volatilized_type): New declaration
5770 * stub-objc.c (objc_non_volatilized_type): New stub.
5772 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5774 Merge from 'apple/trunk' branch on FSF servers.
5776 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5779 * c-common.h (objc_diagnose_private_ivar): New decl.
5780 * stub-objc.c (objc_diagnose_private_ivar): New stub.
5782 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5784 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5785 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5786 (objc_ivar_visibility_kind): New enum.
5787 (objc_set_visibility): Adjust prototype to use visibility enum.
5788 * stub-objc.c (objc_set_visibility): Adjust stub to use
5791 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5793 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5794 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5795 has the appropriate fma builtins.
5796 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5798 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5800 merge from FSF apple 'trunk' branch.
5801 2006 Fariborz Jahanian <fjahanian@apple.com>
5803 Radars 4436866, 4505126, 4506903, 4517826
5804 * c-common.c (c_common_resword): Define @property and its attributes.
5805 * c-common.h: Define property attribute enum entries.
5806 (OBJC_IS_PATTR_KEYWORD): New.
5807 (objc_property_attribute_kind): New enum.
5808 Declare objc_set_property_attr (), objc_add_property_variable (),
5809 objc_build_getter_call () and objc_build_setter_call ().
5810 * stub-objc.c (objc_set_property_attr): New stub.
5811 (objc_add_property_variable): Likewise.
5812 (objc_build_getter_call): Likewise.
5813 (objc_build_setter_call) Likewise.
5815 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5817 merge from FSF apple 'trunk' branch.
5818 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5820 Radar 3803157 (method attributes)
5821 * c-common.c (handle_deprecated_attribute): Recognize
5822 objc methods as valid declarations.
5823 * c-common.h: Declare objc_method_decl ().
5824 * stub-objc.c (objc_method_decl): New stub.
5826 2010-10-08 Joseph Myers <joseph@codesourcery.com>
5828 * c-common.c (parse_optimize_options): Call
5829 decode_cmdline_options_to_array_default_mask before
5830 decode_options. Update arguments to decode_options.
5831 * c-common.h (c_common_init_options_struct): Declare.
5832 * c-opts.c (c_common_init_options_struct): New. Split out from
5833 c_common_init_options.
5835 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5837 Implemented fast enumeration for Objective-C.
5838 * c-common.h (objc_finish_foreach_loop): New.
5839 * stub-objc.c (objc_finish_foreach_loop): New.
5841 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5843 * c-common.h (struct diagnostic_context): Don't declare here.
5844 (c_common_initialize_diagnostics): Declare using
5845 diagnostic_context typedef.
5846 * c-opts.c (c_common_handle_option): Pass global_dc to
5847 handle_generated_option.
5849 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5851 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5852 handle_generated_option.
5854 2010-10-03 Ian Lance Taylor <iant@google.com>
5856 * c.opt (-fplan9-extensions): New option.
5858 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5860 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5862 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5863 of duplicating code.
5865 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5867 * c-common.c: Add two new entries for @optional
5868 and @required keywords.
5870 merge from FSF 'apple/trunk' branch.
5871 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5874 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5875 objective-c keywords.
5876 (objc_set_method_opt): New declaration.
5877 * stub-objc.c (objc_set_method_opt): New stub.
5879 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5881 * c-common.c (handle_optimize_attribute): Pass &global_options to
5882 cl_optimization_save and cl_optimization_restore.
5883 * c-opts.c (c_common_handle_option): Pass &global_options to
5884 handle_generated_option.
5885 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5886 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5887 &global_options to cl_optimization_restore.
5889 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5891 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5892 Objective-C/Objective-C++ keywords.
5894 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5896 Merge from 'apple/trunk' branch on FSF servers.
5898 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5901 * c-common.h (objc_check_global_decl): New declaration.
5902 * stub-objc.c (objc_check_global_decl): New stub.
5904 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5906 * c.opt: Don't use VarExists.
5908 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5910 * c-common.c (c_cpp_error): Update names of diagnostic_context
5912 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5913 cl_optimization members.
5914 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5915 sanitize_cpp_opts, finish_options): Update names of cpp_options
5918 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5920 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5921 (objc_is_reserved_word): Removed.
5922 * c-common.c: Updated comments.
5923 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5924 objc_is_reserved_word.
5925 * stub-objc.c (objc_is_reserved_word): Removed.
5927 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5929 * c-common.h (objc_add_method_declaration): Adjust prototype to
5931 (objc_start_method_definition): Likewise.
5932 (objc_build_keyword_decl): Likewise.
5933 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5934 (objc_start_method_definition): Likewise.
5935 (objc_build_keyword_decl): Likewise.
5937 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5939 * c-common.h (objc_start_class_interface): Adjust prototype.
5940 (objc_start_category_interface): Likewise.
5941 (objc_start_protocol): Likewise.
5942 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5943 (objc_start_class_interface): Likewise.
5944 (objc_start_category_interface): Likewise.
5946 2010-09-27 Ian Lance Taylor <iant@google.com>
5948 * c-common.c (c_common_attribute_table): Add no_split_stack.
5949 (handle_no_split_stack_attribute): New static function.
5951 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5953 Merge from 'apple/trunk' branch on FSF servers.
5955 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5958 * c-common.h (objc_have_common_type): New declaration.
5959 * stub-objc.c (objc_have_common_type): New stub.
5961 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5964 * c-common.h (objc_common_type): New prototype.
5965 * stub-objc.c (objc_common_type): New stub.
5967 2010-09-24 Jan Hubicka <jh@suse.cz>
5969 * c-common.c (handle_leaf_attribute): New function.
5970 (struct attribute_spec c_common_att): Add leaf.
5972 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5974 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5975 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5976 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5977 -include-barrier, -include-directory, -include-directory=,
5978 -include-directory-after, -include-directory-after=,
5979 -include-prefix, -include-prefix=, -include-with-prefix,
5980 -include-with-prefix=, -include-with-prefix-after,
5981 -include-with-prefix-after=, -include-with-prefix-before,
5982 -include-with-prefix-before=, -no-integrated-cpp,
5983 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5984 -output=, -pedantic, -pedantic-errors, -preprocess,
5985 -print-missing-file-dependencies, -trace-includes, -traditional,
5986 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5987 -user-dependencies, -verbose, -write-dependencies,
5988 -write-user-dependencies, no-integrated-cpp, traditional): New.
5990 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5993 * c-common.h (objc_start_method_definition): Return bool instead
5995 * stub-objc.c (objc_start_method_definition): Return bool instead
5998 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6001 * c-common.h (objc_get_interface_ivars): New declaration.
6002 * stub-objc.c (objc_get_interface_ivars): New stub.
6004 2010-09-15 Ian Lance Taylor <iant@google.com>
6006 * c-common.c (parse_optimize_options): Do not capitalize warning
6007 messages. Remove period at end of warning message.
6009 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6011 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6012 (handle_alias_attribute): ... here.
6013 (handle_ifunc_attribute): New.
6015 2010-09-06 Mark Mitchell <mark@codesourcery.com>
6017 * c-common.h (do_warn_double_promotion): Declare.
6018 * c-common.c (do_warn_double_promotion): Define.
6020 2010-09-05 Mark Mitchell <mark@codesourcery.com>
6022 * c.opt (Wdouble-promotion): New.
6024 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6026 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6027 fvtable-thunks, fxref): Mark no longer supported in help text.
6029 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6031 * c.opt (Wimport, fall-virtual, falt-external-templates,
6032 fdefault-inline, fenum-int-equiv, fexternal-templates,
6033 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6034 fname-mangling-version-, fnew-abi, fnonnull-objects,
6035 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6036 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6038 (fhandle-exceptions): Mark with Alias and Warn.
6039 * c-opts.c (c_common_handle_option): Don't handle options marked
6042 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6044 * c.opt (Wcomments, Werror-implicit-function-declaration,
6045 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6046 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6048 * c-common.c (option_codes): Use OPT_Wcomment instead of
6050 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6051 Don't handle options marked as aliases.
6053 2010-08-25 Richard Guenther <rguenther@suse.de>
6055 * c-common.c (c_common_get_alias_set): Remove special
6056 handling for pointers.
6058 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6060 * c-common.c: Use FOR_EACH_VEC_ELT.
6061 * c-gimplify.c: Likewise.
6062 * c-pragma.c: Likewise.
6064 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6066 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6068 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6070 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6071 instead of OPT_MDX and OPT_MMDX.
6073 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6075 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6077 2010-08-12 Joseph Myers <joseph@codesourcery.com>
6079 * c.opt (MD, MMD): Change to MDX and MMDX.
6080 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6082 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6084 * c-opts.c (c_common_handle_option): Call handle_generated_option
6085 instead of handle_option.
6087 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6089 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6090 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6092 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6094 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6095 (pending_redefine_extname): Change type to a VEC.
6096 (add_to_renaming_pragma_list): Update for new type of
6097 pending_redefine_extname.
6098 (maybe_apply_renaming_pragma): Likewise.
6100 2010-08-04 Arnaud Charlet <charlet@adacore.com>
6102 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6104 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6105 decide whether a type has already been declared/seen.
6106 Do not go to the original type.
6107 (dump_nested_types): New parameter forward.
6108 Generate forward declaration if needed and mark type as visited.
6109 (print_ada_declaration): Call dump_nested_types if not already done.
6110 Mark types as visited.
6112 2010-08-03 Joseph Myers <joseph@codesourcery.com>
6114 * c.opt (-print-pch-checksum): Remove option.
6115 * c-opts.c (c_common_handle_option): Don't handle
6116 OPT_print_pch_checksum.
6118 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6120 * c-common.h (c_common_handle_option): Update prototype and return
6122 * c-opts.c (c_common_handle_option): Update prototype and return
6123 value type. Update calls to handle_option and
6124 enable_warning_as_error.
6126 2010-07-27 Jakub Jelinek <jakub@redhat.com>
6129 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6131 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6133 * c-common.h (c_common_missing_argument): Remove.
6134 * c-opts.c (c_common_missing_argument): Remove.
6135 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6136 idirafter, imacros, include, isysroot, isystem, iquote): Add
6138 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6140 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6142 * c-common.h (c_common_option_lang_mask,
6143 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6145 (c_common_init_options): Update prototype.
6146 * c-opts.c (c_common_option_lang_mask): New.
6147 (c_common_initialize_diagnostics): Split out of
6148 c_common_init_options.
6149 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6151 (c_common_init_options): Update prototype. Use decoded options in
6152 search for -lang-asm.
6154 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6156 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6157 * c-format.c: Likewise.
6159 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6161 * c-common.h: Include diagnostic-core.h. Error if already
6163 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6165 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6167 * c-common.c (IN_GCC_FRONTEND): Do not undef.
6168 Do not include expr.h
6169 (vector_mode_valid_p): Move here.
6171 2010-06-21 DJ Delorie <dj@redhat.com>
6173 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6174 allow these pragmas anywhere.
6176 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6179 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6180 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6181 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6182 ggc_strdup instead of xstrdup.
6184 2010-06-10 Jakub Jelinek <jakub@redhat.com>
6186 * c-cppbuiltin.c: Include cpp-id-data.h.
6187 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6188 (lazy_hex_fp_value): New function.
6189 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6191 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6193 * c-gimplify.c: Do not include tree-flow.h
6195 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6198 * c-common.c: Rename targetm member:
6199 targetm.enum_va_list -> targetm.enum_va_list_p
6201 2010-06-28 Anatoly Sokolov <aesok@post.ru>
6203 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6205 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6207 * c-cppbuiltin.c: Do not include except.h.
6209 2010-06-24 Andi Kleen <ak@linux.intel.com>
6211 * c-common.c (warn_for_omitted_condop): New.
6212 * c-common.h (warn_for_omitted_condop): Add prototype.
6214 2010-06-21 Joseph Myers <joseph@codesourcery.com>
6216 * c.opt (lang-objc): Remove.
6217 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6219 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6221 * c-opts.c: Include "tm_p.h".
6223 2010-06-20 Joseph Myers <joseph@codesourcery.com>
6225 * c-common.c (parse_optimize_options): Update call to
6228 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6230 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6231 new type of types_used_by_cur_var_decl.
6233 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6236 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6237 for C++ standard compliance.
6239 2010-06-16 Jason Merrill <jason@redhat.com>
6241 * c.opt: Add -Wnoexcept.
6243 2010-06-16 Richard Guenther <rguenther@suse.de>
6246 * c-common.c (c_common_truthvalue_conversion): Remove
6247 premature and wrong optimization concering ADDR_EXPRs.
6249 2010-06-15 Arnaud Charlet <charlet@adacore.com>
6251 * c-ada-spec.c (dump_sloc): Remove column info.
6252 (is_simple_enum): New function.
6253 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6254 enum types when relevant.
6256 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6258 * c-common.c (conversion_warning): Warn at expression
6261 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6263 * c-opts.c (c_common_handle_option): Don't handle
6266 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6268 * c-pragma.c (push_alignment): Use typed GC allocation.
6269 (handle_pragma_push_options): Likewise.
6271 * c-common.c (parse_optimize_options): Likewise.
6273 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6276 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6278 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6279 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6280 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6281 flag_signed_bitfields, warn_strict_null_sentinel,
6282 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6283 flag_gen_declaration, flag_no_gnu_keywords,
6284 flag_implement_inlines, flag_implicit_templates,
6285 flag_implicit_inline_templates, flag_optional_diags,
6286 flag_elide_constructors, flag_default_inline, flag_rtti,
6287 flag_conserve_space, flag_access_control, flag_check_new,
6288 flag_new_for_scope, flag_weak, flag_working_directory,
6289 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6290 flag_enforce_eh_specs, flag_threadsafe_statics,
6291 flag_pretty_templates): Remove.
6292 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6293 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6294 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6295 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6296 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6297 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6298 flag_no_gnu_keywords, flag_implement_inlines,
6299 flag_implicit_templates, flag_implicit_inline_templates,
6300 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6301 flag_rtti, flag_conserve_space, flag_access_control,
6302 flag_check_new, flag_new_for_scope, flag_weak,
6303 flag_working_directory, flag_use_cxa_atexit,
6304 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6305 flag_threadsafe_statics, flag_pretty_templates,
6306 warn_strict_null_sentinel): Remove.
6307 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6308 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6309 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6310 fimplicit-inline-templates, fimplicit-templates,
6311 flax-vector-conversions, fms-extensions, fnil-receivers,
6312 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6313 frtti, fshort-double, fshort-enums, fshort-wchar,
6314 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6315 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6316 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6317 gen-decls, undef): Use Var.
6318 (fdefault-inline, foptional-diags): Document as doing nothing.
6319 * c-opts.c (c_common_handle_option): Remove cases for options now
6320 using Var. Mark ignored options as such.
6322 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6324 * c-common.c: Moved to here from parent directory.
6325 * c-common.def: Likewise.
6326 * c-common.h: Likewise.
6327 * c-cppbuiltin.c: Likewise.
6328 * c-dump.c: Likewise.
6329 * c-format.c: Likewise.
6330 * c-format.h : Likewise.
6331 * c-gimplify.c: Likewise.
6332 * c-lex.c: Likewise.
6333 * c-omp.c: Likewise.
6335 * c-opts.c: Likewise.
6336 * c-pch.c: Likewise.
6337 * c-ppoutput.c: Likewise.
6338 * c-pragma.c: Likewise.
6339 * c-pragma.h: Likewise.
6340 * c-pretty-print.c: Likewise.
6341 * c-pretty-print.h: Likewise.
6342 * c-semantics.c: Likewise.
6343 * stub-objc.c: Likewise.
6345 * c-common.c: Include gt-c-family-c-common.h.
6346 * c-pragma.c: Include gt-c-family-c-pragma.h.
6348 Copyright (C) 2010-2016 Free Software Foundation, Inc.
6350 Copying and distribution of this file, with or without modification,
6351 are permitted in any medium without royalty provided the copyright
6352 notice and this notice are preserved.