1 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
3 * c-common.c (get_source_date_epoch): Rename to
4 cb_get_source_date_epoch.
5 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
6 message when the parsing fails. Use error_at instead of fatal_error.
7 * c-common.h (get_source_date_epoch): Rename to
8 cb_get_source_date_epoch.
9 * c-common.h (cb_get_source_date_epoch): Prototype.
10 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
11 * c-common.h (c_omp_region_type): Remove trailing comma.
12 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
13 * c-lex.c (c_lex_with_flags): Remove initialization of
14 pfile->source_date_epoch.
16 2016-05-30 Jakub Jelinek <jakub@redhat.com>
19 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
20 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
21 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
22 instead of C_OMP_CLAUSE_SPLIT_FOR.
24 2016-05-24 Richard Biener <rguenther@suse.de>
28 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
29 (convert_vector_to_array_for_subscript): ... this.
30 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
31 VIEW_CONVERT_EXPR to an array type. Rename to ...
32 (convert_vector_to_array_for_subscript): ... this.
34 2016-05-12 Marek Polacek <polacek@redhat.com>
37 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
38 size_in_bytes and pass LOC to it.
40 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
43 * c.opt (Wduplicate-decl-specifier): New option.
45 2016-05-11 Marek Polacek <polacek@redhat.com>
48 * c-common.c (diagnose_mismatched_attributes): New function.
49 * c-common.h (diagnose_mismatched_attributes): Declare.
51 2016-05-04 Marek Polacek <polacek@redhat.com>
53 * c.opt (Wdangling-else): New option.
55 2016-05-03 Marek Polacek <polacek@redhat.com>
58 * c-common.c (builtin_function_validate_nargs): Add location
60 (check_builtin_function_arguments): Add location and arguments
62 * c-common.h (check_builtin_function_arguments): Update declaration.
64 2016-05-03 Richard Biener <rguenther@suse.de>
66 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
67 allow call args to gimplify to SSA names.
69 2016-05-03 Marek Polacek <polacek@redhat.com>
71 * c-common.h (enum c_omp_region_type): Remove stray comma.
73 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
75 * c-common.h (enum c_omp_region_type): Define.
77 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
79 * c-common.c (shorten_compare): Use wi::to_wide.
81 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
84 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
85 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
86 reduction clauses in acc parallel loops.
88 2016-04-29 Marek Polacek <polacek@redhat.com>
91 * c-common.c (warn_for_memset): Check domain before accessing it.
93 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
96 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
99 2016-04-28 Jason Merrill <jason@redhat.com>
101 * c-lex.c (c_common_has_attribute): Handle nodiscard.
103 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
104 Matthias Klose <doko@debian.org>
106 * c-common.c (get_source_date_epoch): New function, gets the environment
107 variable SOURCE_DATE_EPOCH and parses it as long long with error
109 * c-common.h (get_source_date_epoch): Prototype.
110 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
112 2015-04-27 Ryan Burn <contact@rnburn.com>
116 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
117 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
119 (cilk_detect_and_unwrap): Corresponding changes.
120 (extract_free_variables): Don't extract free variables from
122 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
123 (cilk_recognize_spawn): Likewise.
125 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
127 * c.opt (Wmemset-elt-size): New option.
128 * c-common.c (warn_for_memset): New function.
129 * c-common.h (warn_for_memset): Declare.
131 2016-04-25 Jason Merrill <jason@redhat.com>
133 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
135 * c-common.h: Declare it.
136 * c-lex.c (c_common_has_attribute): Add maybe_unused.
138 2016-04-22 Jason Merrill <jason@redhat.com>
140 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
142 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
145 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
146 * c-common.h (c_finish_cilk_clauses): Remove declaration.
148 2016-04-18 Michael Matz <matz@suse.de>
150 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
153 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
155 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
156 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
158 (dump_nested_type): Remove redundant tests and tidy up.
159 (print_ada_declaration): Also set TREE_VISITED on the declaration of
160 a type which is the typedef of an original type.
162 2016-04-15 Marek Polacek <polacek@redhat.com>
165 * c-common.c (build_va_arg): Change two asserts into errors and return
168 2016-04-13 Marek Polacek <polacek@redhat.com>
171 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
172 for switch statements, too.
174 2016-03-28 Jason Merrill <jason@redhat.com>
176 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
178 2016-03-23 Marek Polacek <polacek@redhat.com>
181 * c.opt (Wignored-attributes): New option.
183 2016-03-22 David Malcolm <dmalcolm@redhat.com>
186 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
187 diagnostic text, reversing the order of the warning and note so
188 that they appear in source order.
190 2016-03-17 Marek Polacek <polacek@redhat.com>
193 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
196 2016-03-14 Jason Merrill <jason@redhat.com>
198 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
200 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
202 2016-03-09 Richard Biener <rguenther@suse.de>
205 * c-common.c (strict_aliasing_warning): Add back
206 alias_sets_conflict_p check.
208 2016-03-08 Jason Merrill <jason@redhat.com>
210 * c-opts.c (set_std_cxx1z): Don't enable concepts.
212 2016-03-04 David Malcolm <dmalcolm@redhat.com>
215 * c-indentation.c (get_visual_column): Move code to determine next
217 (next_tab_stop): ...this new function.
218 (line_contains_hash_if): Delete function.
219 (detect_preprocessor_logic): Delete function.
220 (get_first_nws_vis_column): New function.
221 (detect_intervening_unindent): New function.
222 (should_warn_for_misleading_indentation): Replace call to
223 detect_preprocessor_logic with a call to
224 detect_intervening_unindent.
226 2016-03-04 David Malcolm <dmalcolm@redhat.com>
229 * c-indentation.c (should_warn_for_misleading_indentation): When
230 suppressing warnings about cases where the guard and body are on
231 the same column, only use the first non-whitespace column in place
232 of the guard token column when dealing with "else" clauses.
233 When rejecting aligned BODY and NEXT, loosen the requirement
234 from equality with the first non-whitespace of guard to simply
235 that they not be indented relative to it.
237 2016-03-04 Richard Biener <rguenther@suse.de>
240 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
241 instead of alias_sets_conflict_p.
243 2016-03-01 Marek Polacek <polacek@redhat.com>
246 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
249 2016-02-22 Martin Sebor <msebor@redhat.com>
252 * c-common.c (check_builtin_function_arguments): Validate and
253 reject invalid arguments to __builtin_alloca_with_align.
255 2016-02-20 Mark Wielaard <mjw@redhat.com>
258 * c.opt (Wunused-const-variable): Turn into Alias for...
259 (Wunused-const-variable=): New option.
261 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
264 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
266 (c_common_init_options): ...to here.
267 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
269 2016-02-19 Jakub Jelinek <jakub@redhat.com>
272 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
273 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
274 flag_preprocess_only.
276 2016-02-16 Jakub Jelinek <jakub@redhat.com>
279 * c.opt (Wnonnull-compare): Enable for -Wall.
281 2016-02-15 Jakub Jelinek <jakub@redhat.com>
284 * c-common.c (sync_resolve_size): Diagnose too few arguments
285 even when params is non-NULL empty vector.
287 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
290 * c.opt (fshort-double): Remove.
292 2016-02-05 Martin Sebor <msebor@redhat.com>
295 * c.opt (Warning options): Update -Wplacement-new to take
296 an optional argument.
298 2016-02-01 Jakub Jelinek <jakub@redhat.com>
300 PR preprocessor/69543
302 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
303 instead of loc to control_warning_option.
305 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
307 * c.opt (fopenacc-dim=): New option.
309 2016-01-27 Ryan Burn <contact@rnburn.com>
312 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
313 gimplify_arg. Removed superfluous post_p argument.
314 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
315 superfluous post_p argument.
316 * c-gimplify.c (c_gimplify_expr): Likewise.
318 2016-01-26 David Malcolm <dmalcolm@redhat.com>
321 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
322 pp_newline_and_flush with pp_flush.
324 2016-01-20 Martin Sebor <msebor@redhat.com>
327 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
328 an incompatible argument when the argument isn't a valid tree node.
330 2016-01-18 Jason Merrill <jason@redhat.com>
333 * c-common.c (check_function_arguments_recurse): Fold the whole
334 COND_EXPR, not just the condition.
336 2016-01-18 Tom de Vries <tom@codesourcery.com>
338 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
339 classify as loop clause.
341 2016-01-15 Jakub Jelinek <jakub@redhat.com>
344 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
345 C++ FE no longer has limit on number of pragmas.
347 2015-01-14 Ryan Burn <contact@rnburn.com>
350 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
351 to add missing cleanup point.
353 2016-01-14 David Malcolm <dmalcolm@redhat.com>
356 * c-indentation.c (get_visual_column): Add location_t param.
357 Handle the column number being zero by effectively disabling the
358 warning, with an "inform".
359 (should_warn_for_misleading_indentation): Add location_t argument
360 for all uses of get_visual_column.
362 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
365 * c-indentation.c (should_warn_for_misleading_indentation):
366 Don't warn about do-while statements.
368 2016-01-07 Martin Sebor <msebor@redhat.com>
371 * c-common.c (sync_resolve_size): Reject first argument when it's
374 2016-01-05 David Malcolm <dmalcolm@redhat.com>
377 * c-indentation.c (get_visual_column): Remove default argument.
378 (should_warn_for_misleading_indentation): For the multiline case,
379 update call to get_visual_column for next_stmt_exploc so that it
380 captures the location of the first non-whitespace character in the
381 relevant line. Don't issue warnings if there is non-whitespace
382 before the next statement.
384 2016-01-04 Jakub Jelinek <jakub@redhat.com>
386 Update copyright years.
388 2015-12-21 David Malcolm <dmalcolm@redhat.com>
390 * c-common.c (binary_op_error): Convert first param from
391 location_t to rich_location * and use it when emitting an error.
392 * c-common.h (binary_op_error): Convert first param from
393 location_t to rich_location *.
395 2015-12-16 David Malcolm <dmalcolm@redhat.com>
397 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
398 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
400 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
402 * c-common.c (c_common_attribute_table): Handle "omp declare target
405 2015-12-14 Jakub Jelinek <jakub@redhat.com>
408 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
410 2014-12-12 Tobias Burnus <burnus@net-b.de>
413 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
414 specifiers (%d, %i,%u and %c).
416 2015-12-10 David Malcolm <dmalcolm@redhat.com>
418 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
420 2015-12-08 Jakub Jelinek <jakub@redhat.com>
424 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
425 * c-pragma.c (handle_pragma_diagnostic): Adjust
426 control_warning_option caller.
428 2015-12-07 David Malcolm <dmalcolm@redhat.com>
430 * c-common.c (c_cpp_error): Update for change to
431 rich_location::set_range.
433 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
435 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
436 shifting 1 out of the sign bit.
438 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
440 * c-common.c (c_common_attribute_table[]): Update max arguments
441 count for "simd" attribute.
442 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
444 2015-12-03 Jakub Jelinek <jakub@redhat.com>
446 PR preprocessor/57580
447 * c-ppoutput.c (print): Change printed field to bool.
448 Move src_file last for smaller padding.
449 (init_pp_output): Set print.printed to false instead of 0.
450 (scan_translation_unit): Fix up formatting. Set print.printed
451 to true after printing something other than newline.
452 (scan_translation_unit_trad): Set print.printed to true instead of 1.
453 (maybe_print_line_1): Set print.printed to false instead of 0.
454 (print_line_1): Likewise.
455 (do_line_change): Set print.printed to true instead of 1.
456 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
457 dump_macro): Set print.printed to false after printing newline.
459 2015-12-02 Jason Merrill <jason@redhat.com>
461 * c-common.c (fold_for_warn): New.
462 (warn_logical_operator, warn_tautological_cmp)
463 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
465 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
466 (c_fully_fold_internal, decl_constant_value_for_optimization):
468 * c-common.h: Don't declare decl_constant_value_for_optimization.
470 2015-12-02 Joseph Myers <joseph@codesourcery.com>
473 * c-common.h (c_build_qualified_type): Add extra default
476 2015-12-01 Julian Brown <julian@codesourcery.com>
477 Cesar Philippidis <cesar@codesourcery.com>
478 James Norris <James_Norris@mentor.com>
480 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
481 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
482 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
484 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
486 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
487 (decl_sloc_common): Delete and move bulk of processing to...
488 (decl_sloc): ...here.
489 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
490 (dump_ada_double_name): Remove S parameter and compute the suffix.
491 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
492 element type and deal with an anonymous one.
493 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
494 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
495 and remove reference to QUAL_UNION_TYPE.
496 (dump_nested_types): Make 2 passes on the fields and move bulk to...
497 (dump_nested_type): ...here. New function extracted from above.
498 Generate a full declaration for anonymous element type of arrays.
499 (print_ada_declaration): Really skip anonymous declarations. Remove
500 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
501 Clean up processing of declarations of array types and objects.
502 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
503 Remove obsolete code and tidy up.
505 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
508 * c-common.c (handle_transparent_union_attribute): Update
511 2015-11-27 Martin Liska <mliska@suse.cz>
514 * array-notation-common.c (cilkplus_extract_an_triplets):
515 Release vector of vectors.
516 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
518 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
521 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
522 (print_ada_struct_decl): Likewise.
524 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
527 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
528 * cilk.c (recognize_spawn): Determine location in a more precise
531 2015-11-19 Jason Merrill <jason@redhat.com>
533 * c-common.c (shorten_compare): But look through macros from
536 2015-11-18 Jason Merrill <jason@redhat.com>
538 * c-common.c (shorten_compare): Don't -Wtype-limits if the
539 non-constant operand comes from a macro.
541 2015-11-17 Jason Merrill <jason@redhat.com>
544 * c-common.c (warn_tautological_cmp): Fold before checking for
547 2015-11-16 Marek Polacek <polacek@redhat.com>
550 * c-common.c (check_case_bounds): Fold low and high cases.
552 2015-11-16 Marek Polacek <polacek@redhat.com>
554 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
555 * c-common.c (c_common_get_alias_set): Likewise.
556 (handle_visibility_attribute): Likewise.
558 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
560 * c-common.c (handle_simd_attribute): New.
561 (struct attribute_spec): Add entry for "simd".
562 (handle_simd_attribute): New.
564 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
566 * c-lex.c (interpret_float): Use fold_convert.
568 2015-11-13 David Malcolm <dmalcolm@redhat.com>
570 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
571 and store it on the result.
572 * c-opts.c (c_common_init_options): Set
573 global_dc->colorize_source_p.
575 2015-11-12 James Norris <jnorris@codesourcery.com>
576 Joseph Myers <joseph@codesourcery.com>
578 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
579 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
580 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
581 PRAGMA_OACC_CLAUSE_LINK.
583 2015-11-11 Marek Polacek <polacek@redhat.com>
587 * c-common.c (valid_array_size_p): New function.
588 * c-common.h (valid_array_size_p): Declare.
590 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
593 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
595 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
597 * array-notation-common.c: Remove unused header files.
598 * c-ada-spec.c: Likewise.
599 * c-cilkplus.c: Likewise.
600 * c-common.c: Likewise.
601 * c-cppbuiltin.c: Likewise.
602 * c-dump.c: Likewise.
603 * c-format.c: Likewise.
604 * c-gimplify.c: Likewise.
605 * c-indentation.c: Likewise.
608 * c-opts.c: Likewise.
610 * c-ppoutput.c: Likewise.
611 * c-pragma.c: Likewise.
612 * c-pretty-print.c: Likewise.
613 * c-semantics.c: Likewise.
614 * c-ubsan.c: Likewise.
616 * stub-objc.c: Likewise.
618 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
619 Cesar Philippidis <cesar@codesourcery.com>
620 James Norris <jnorris@codesourcery.com>
621 Julian Brown <julian@codesourcery.com>
622 Nathan Sidwell <nathan@codesourcery.com>
624 * c-pragma.c (oacc_pragmas): Add "routine".
625 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
627 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
629 * c-common.c (c_common_attributes): Add scalar_storage_order.
630 (handle_scalar_storage_order_attribute): New function.
631 * c-pragma.c (global_sso): New variable.
632 (maybe_apply_pragma_scalar_storage_order): New function.
633 (handle_pragma_scalar_storage_order): Likewise.
634 (init_pragma): Register scalar_storage_order.
635 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
636 * c.opt (Wscalar-storage-order): New warning.
637 (fsso-struct=): New option.
639 2015-11-08 Martin Sebor <msebor@redhat.com>
641 * c.opt (Wplacement-new): Add a period to the end of a sentence.
643 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
645 * c-common.c: Don't undef DEF_BUILTIN.
647 2015-11-06 David Malcolm <dmalcolm@redhat.com>
649 * c-common.c (c_cpp_error): Convert parameter from location_t to
650 rich_location *. Eliminate the "column_override" parameter and
651 the call to diagnostic_override_column.
652 Update the "done_lexing" clause to set range 0
653 on the rich_location, rather than overwriting a location_t.
654 * c-common.h (c_cpp_error): Convert parameter from location_t to
655 rich_location *. Eliminate the "column_override" parameter.
657 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
658 Thomas Schwinge <thomas@codesourcery.com>
659 James Norris <jnorris@codesourcery.com>
661 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
662 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
663 clauses with parallel and kernels and loops.
664 * c-pragma.h (enum pragma_omp_clause): Add entries for
665 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
666 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
667 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
669 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
671 2015-11-05 Martin Sebor <msebor@redhat.com>
674 * c.opt (-Wplacement-new): New option.
676 2015-11-05 Jakub Jelinek <jakub@redhat.com>
678 * c-common.h (c_finish_omp_atomic): Add TEST argument.
679 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
680 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
681 save_expr or create_tmp_var* if TEST is true.
682 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
683 Don't call add_stmt here.
684 (struct c_omp_check_loop_iv_data): New type.
685 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
686 c_omp_check_loop_iv_exprs): New functions.
687 (c_omp_split_clauses): Adjust for lastprivate being allowed on
689 (c_omp_declare_simd_clauses_to_numbers): Change
690 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
691 (c_omp_declare_simd_clauses_to_decls): Similarly change those
692 from numbers to PARM_DECLs.
694 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
696 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
699 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
702 * c-common.h (fold_offsetof_1): Add argument.
703 * c-common.c (fold_offsetof_1): Diagnose more invalid
704 offsetof expressions that reference elements past the end of
707 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
708 Chung-Lin Tang <cltang@codesourcery.com>
710 * c-pragma.c (oacc_pragmas): Add "atomic".
711 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
713 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
715 * c-common.c (handle_target_clones_attribute): New.
716 (c_common_attribute_table): Add handle_target_clones_attribute.
717 (handle_always_inline_attribute): Add check on target_clones attribute.
718 (handle_target_attribute): Ditto.
720 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
722 * array-notation-common.c: Reorder #include's and remove duplicates.
723 * c-ada-spec.c: Likewise.
724 * c-cilkplus.c: Likewise.
725 * c-common.c: Likewise.
726 * c-cppbuiltin.c: Likewise.
727 * c-dump.c: Likewise.
728 * c-format.c: Likewise.
729 * c-gimplify.c: Likewise.
730 * c-indentation.c: Likewise.
733 * c-opts.c: Likewise.
735 * c-ppoutput.c: Likewise.
736 * c-pragma.c: Likewise.
737 * c-pretty-print.c: Likewise.
738 * c-semantics.c: Likewise.
739 * c-ubsan.c: Likewise.
741 * stub-objc.c: Likewise.
743 2015-10-28 Jason Merrill <jason@redhat.com>
745 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
747 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
748 James Norris <jnorris@codesourcery.com>
749 Cesar Philippidis <cesar@codesourcery.com>
753 * c-common.h (c_oacc_split_loop_clauses): Declare function.
754 * c-omp.c (c_oacc_split_loop_clauses): New function.
756 2015-10-21 Martin Sebor <msebor@redhat.com>
759 * c.opt: End each sentence that describes an option with a period.
761 2015-10-20 Marek Polacek <polacek@redhat.com>
763 * array-notation-common.c (is_cilkplus_vector_p): Define.
764 * c-common.h (is_cilkplus_vector_p): Declare.
766 2015-10-20 Marek Polacek <polacek@redhat.com>
768 * c.opt (std=gnu++11): Do not describe as experimental.
769 (std=gnu++14): Likewise.
771 2015-10-19 Jason Merrill <jason@redhat.com>
773 * c-cppbuiltin.c (c_cpp_builtins): Define
774 __cpp_nontype_template_args.
776 2015-10-19 Jason Merrill <jason@redhat.com>
778 * c-cppbuiltin.c (c_cpp_builtins): Define
779 __cpp_enumerator_attributes, __cpp_fold_expressions,
780 __cpp_unicode_characters.
782 2015-10-13 Jakub Jelinek <jakub@redhat.com>
783 Aldy Hernandez <aldyh@redhat.com>
785 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
786 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
787 (c_define_builtins): Likewise.
788 * c-common.h (enum c_omp_clause_split): Add
789 C_OMP_CLAUSE_SPLIT_TASKLOOP.
790 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
791 (c_finish_omp_for): Add ORIG_DECLV argument.
792 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
793 201511 instead of 201307.
794 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
795 OMP_CRITICAL_CLAUSES to it.
796 (c_finish_omp_ordered): Add CLAUSES argument, set
797 OMP_ORDERED_CLAUSES to it.
798 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
799 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
800 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
801 constructs and new OpenMP 4.5 clauses. Clear
802 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
804 * c-pragma.c (omp_pragmas_simd): Add taskloop.
805 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
806 (enum pragma_omp_clause): Add
807 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
808 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
810 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
812 * c-lex.c (interpret_float): Use real_equal instead of
815 2015-10-04 Jason Merrill <jason@redhat.com>
817 Implement N4514, C++ Extensions for Transactional Memory.
818 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
819 (c_common_attribute_table): Add transaction_safe_dynamic.
820 transaction_safe now affects type identity.
821 (handle_tm_attribute): Handle transaction_safe_dynamic.
822 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
823 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
824 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
826 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
827 * c-pretty-print.c (pp_c_attributes_display): Don't print
828 transaction_safe in C++.
830 2015-10-02 Marek Polacek <polacek@redhat.com>
832 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
834 2015-10-02 Marek Polacek <polacek@redhat.com>
837 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
838 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
839 * c.opt (Wduplicated-cond): New option.
841 2015-10-01 Joseph Myers <joseph@codesourcery.com>
843 * c.opt (std=c11): Do not describe as experimental.
844 (std=gnu11): Likewise.
845 (std=iso9899:2011): Likewise.
847 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
849 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
850 (DEF_FUNCTION_TYPE_VAR_11): Delete.
852 2015-09-25 Marek Polacek <polacek@redhat.com>
854 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
855 (ubsan_instrument_shift): Likewise.
857 2015-09-25 Marek Polacek <polacek@redhat.com>
860 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
862 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
864 * c-indentation.c (should_warn_for_misleading_indentation):
865 Compare next_stmt_vis_column with guard_line_first_nws instead
866 of with guard_line_vis_column.
868 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
872 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
873 options and options not valid for the current language.
875 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
877 * c-indentation.c (should_warn_for_misleading_indentation):
878 Float out and consolidate the calls to get_visual_column that
879 are passed guard_exploc as an argument. Compare
880 next_stmt_vis_column with guard_line_first_nws instead of with
883 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
885 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
886 Wnamespaces): New C++ warnings.
888 2015-09-22 Jason Merrill <jason@redhat.com>
890 * c-common.h (abi_compat_version_crosses): New.
891 (warn_abi_version): Declare.
892 * c-common.c: Define it.
893 * c-opts.c (c_common_post_options): Handle it.
894 flag_abi_compat_version defaults to 8.
896 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
898 Complete the implementation of N4230, Nested namespace definition.
899 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
900 __cpp_nested_namespace_definitions.
902 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
904 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
906 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
908 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
910 * c-pragma.h (pragma_lex): Add optional loc argument.
912 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
914 * c-format.c (check_format_arg): Adjust to use common block size in all
917 2015-09-15 David Malcolm <dmalcolm@redhat.com>
919 * c-format.c (location_from_offset): Update for change in
920 signature of location_get_source_line.
921 * c-indentation.c (get_visual_column): Likewise.
922 (line_contains_hash_if): Likewise.
924 2015-09-14 Marek Polacek <polacek@redhat.com>
926 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
927 setting various warnings.
929 2015-09-14 Marek Polacek <polacek@redhat.com>
931 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
934 2015-09-11 Mark Wielaard <mjw@redhat.com>
937 * c.opt (Wunused-variable): Option from common.opt.
938 (Wunused-const-variable): New option.
940 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
943 * c.opt ([Wsubobject-linkage]): Add.
945 2015-09-03 Martin Sebor <msebor@redhat.com>
948 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
950 * c-common.c (reject_gcc_builtin): Define.
952 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
955 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
957 * c-gimplify.c (c_gimplify_expr): Added a call to the function
958 cilk_gimplify_call_params_in_spawned_fn.
959 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
960 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
963 2015-08-25 Marek Polacek <polacek@redhat.com>
966 * c-common.c (handle_weak_attribute): Don't check whether the
967 visibility can be changed here.
969 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
971 * c-lex.c (c_lex_with_flags): Use explicit locations.
973 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
975 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
976 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
978 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
981 * c-common.c (check_builtin_function_arguments): Add check
982 for BUILT_IN_SIGNBIT argument.
984 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
987 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
990 2015-08-17 Marek Polacek <polacek@redhat.com>
992 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
993 with whitespaces before qualifier names.
995 2015-08-12 Marek Polacek <polacek@redhat.com>
998 * c-common.c (maybe_warn_shift_overflow): Properly handle
999 left-shifting 1 into the sign bit.
1001 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1003 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1005 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1006 Braden Obrzut <admin@maniacsvault.net>
1007 Jason Merrill <jason@redhat.com>
1009 Add C++ Concepts TS support.
1010 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1011 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1012 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1013 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1014 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1015 * c.opt (fconcepts): New.
1017 2015-08-02 Martin Sebor <msebor@redhat.com>
1019 * c.opt (-Wframe-address): New warning option.
1021 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1023 * c-indentation.c (should_warn_for_misleading_indentation):
1026 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1028 * c-indentation.c (get_visual_column): Add parameter first_nws,
1029 use it. Update comment documenting the function.
1030 (is_first_nonwhitespace_on_line): Remove.
1031 (should_warn_for_misleading_indentation): Replace usage of
1032 of is_first_nonwhitespace_on_line with get_visual_column.
1034 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1036 * c-indentation.h (struct token_indent_info): Define.
1037 (get_token_indent_info): Define.
1038 (warn_for_misleading_information): Declare.
1039 * c-common.h (warn_for_misleading_information): Remove.
1040 * c-identation.c (warn_for_misleading_indentation):
1041 Change declaration to take three token_indent_infos. Adjust
1043 * c-identation.c (should_warn_for_misleading_indentation):
1044 Likewise. Bail out early if the body is a compound statement.
1045 (guard_tinfo_to_string): Define.
1047 2015-07-30 Jason Merrill <jason@redhat.com>
1049 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1050 '*' for reference decay.
1052 2015-07-30 Marek Polacek <polacek@redhat.com>
1054 * c-common.c (warn_tautological_cmp): Bail for float types.
1056 2015-07-27 Marek Polacek <polacek@redhat.com>
1059 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1061 2015-07-27 Marek Polacek <polacek@redhat.com>
1065 * c-common.c (find_array_ref_with_const_idx_r): New function.
1066 (warn_tautological_cmp): New function.
1067 * c-common.h (warn_tautological_cmp): Declare.
1068 * c.opt (Wtautological-compare): New option.
1070 2015-07-23 Marek Polacek <polacek@redhat.com>
1072 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1073 (ubsan_instrument_shift): Likewise.
1075 2015-07-23 Marek Polacek <polacek@redhat.com>
1078 * c-ubsan.c: Include gimplify.h.
1079 (ubsan_instrument_division): Unshare OP0 and OP1.
1080 (ubsan_instrument_shift): Likewise.
1082 2015-07-20 Marek Polacek <polacek@redhat.com>
1083 Richard Sandiford <richard.sandiford@arm.com>
1086 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1087 Use EXPR_LOC_OR_LOC.
1088 (maybe_warn_shift_overflow): New function.
1089 * c-common.h (maybe_warn_shift_overflow): Declare.
1090 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1091 * c.opt (Wshift-overflow): New option.
1093 2015-07-16 Martin Liska <mliska@suse.cz>
1095 * c-format.c (static void check_format_info_main): Use
1096 object_allocator instead of pool_allocator.
1097 (check_format_arg): Likewise.
1098 (check_format_info_main): Likewise.
1100 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1102 * c-opts.c: Remove multiline #include comment.
1104 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1106 * c-common.c: Fix double word typos.
1108 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1110 * c-ada-spec.h (cpp_operation): Revert latest change.
1111 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1112 constructors and destructors.
1114 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
1116 * c-common.h: Adjust includes for flags.h changes.
1117 * stub-objc.c: Likewise.
1119 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1121 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1122 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1124 2015-07-08 Jakub Jelinek <jakub@redhat.com>
1126 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1127 are to be removed, return NULL rather than original clauses list.
1129 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1131 * array-notation-common.c: Adjust includes.
1132 * c-ada-spec.c: Likewise.
1133 * c-cilkplus.c: Likewise.
1134 * c-common.h: Likewise.
1135 * c-cppbuiltin.c: Likewise.
1136 * c-dump.c: Likewise.
1137 * c-format.c: Likewise.
1138 * c-gimplify.c: Likewise.
1139 * c-indentation.c: Likewise.
1140 * c-lex.c: Likewise.
1141 * c-omp.c: Likewise.
1142 * c-opts.c: Likewise.
1143 * c-pch.c: Likewise.
1144 * c-ppoutput.c: Likewise.
1145 * c-pragma.c: Likewise.
1146 * c-pretty-print.c: Likewise.
1147 * c-semantics.c: Likewise.
1148 * c-ubsan.c: Likewise.
1150 * stub-objc.c: Likewise.
1152 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1154 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1155 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1157 2015-07-01 Jason Merrill <jason@redhat.com>
1159 * c-common.h (D_CXX11): Rename from D_CXX0X.
1160 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1161 * c-common.c: Adjust.
1163 * c-opts.c (c_common_post_options): Default to C++14.
1165 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1167 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1169 Implement N4197 - Adding u8 character literals
1170 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
1172 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
1173 CPP_UTF8CHAR_USERDEF tokens.
1174 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
1175 and CPP_UTF8CHAR tokens.
1176 (lex_charconst): Treat CPP_UTF8CHAR token.
1178 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1181 * c-common.c (do_warn_unused_parameter): Move here.
1182 * c-common.h (do_warn_unused_parameter): Declare.
1184 2015-06-29 Marek Polacek <polacek@redhat.com>
1187 * c-common.c (check_case_bounds): Add bool * parameter. Set
1189 (c_add_case_label): Add bool * parameter. Pass it down to
1191 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1193 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1196 2015-06-27 Marek Polacek <polacek@redhat.com>
1198 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1199 or VECTOR_INTEGER_TYPE_P throughout.
1200 * c-gimplify.c: Likewise.
1202 2015-06-26 Marek Polacek <polacek@redhat.com>
1204 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1205 * c-common.c (c_fully_fold_internal): Likewise.
1206 (c_alignof_expr): Likewise.
1207 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1208 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
1209 * cilk.c (create_parm_list): Likewise.
1211 2015-06-26 Marek Polacek <polacek@redhat.com>
1213 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1215 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1217 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1218 * c-gimplify.c: Likewise.
1219 * c-pragma.c: Likewise.
1220 * c-ubsan.c: Likewise.
1223 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1225 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1228 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1230 * cilk.c: Move calls.h after tm.h in the include chain.
1232 2015-06-25 Marek Polacek <polacek@redhat.com>
1234 * array-notation-common.c: Use VAR_P throughout.
1235 * c-ada-spec.c: Likewise.
1236 * c-common.c: Likewise.
1237 * c-format.c: Likewise.
1238 * c-gimplify.c: Likewise.
1239 * c-omp.c: Likewise.
1240 * c-pragma.c: Likewise.
1241 * c-pretty-print.c: Likewise.
1244 2015-06-25 Marek Polacek <polacek@redhat.com>
1246 * cilk.c (extract_free_variables): Use is_global_var.
1248 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1250 * c-common.c: Don't include target-def.h.
1252 2015-06-23 Marek Polacek <polacek@redhat.com>
1254 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1255 when comparing INTEGER_CSTs.
1257 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1259 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1260 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1261 (dump_ada_template): Skip partially specialized types.
1263 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1265 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1268 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1270 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1271 * c-ada-spec.c: Likewise.
1272 * c-cilkplus.c: Likewise.
1273 * c-common.c: Likewise.
1274 * c-common.h: Likewise.
1275 * c-cppbuiltin.c: Likewise.
1276 * c-dump.c: Likewise.
1277 * c-format.c: Likewise.
1278 * c-gimplify.c: Likewise.
1279 * c-indentation.c: Likewise.
1280 * c-lex.c: Likewise.
1281 * c-omp.c: Likewise.
1282 * c-opts.c: Likewise.
1283 * c-pch.c: Likewise.
1284 * c-ppoutput.c: Likewise.
1285 * c-pragma.c: Likewise.
1286 * c-pretty-print.c: Likewise.
1287 * c-semantics.c: Likewise.
1288 * c-ubsan.c: Likewise.
1290 * stub-objc.c: Likewise.
1292 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1295 * c-common.c (c_common_truthvalue_conversion): Warn when
1296 converting an address of a reference to a truth value.
1298 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1300 * array-notation-common.c : Adjust include files.
1301 * c-ada-spec.c : Likewise.
1302 * c-cilkplus.c : Likewise.
1303 * c-common.c : Likewise.
1304 * c-common.h : Likewise.
1305 * c-cppbuiltin.c : Likewise.
1306 * c-dump.c : Likewise.
1307 * c-format.c : Likewise.
1308 * c-gimplify.c : Likewise.
1309 * c-indentation.c : Likewise.
1310 * c-lex.c : Likewise.
1311 * c-omp.c : Likewise.
1312 * c-opts.c : Likewise.
1313 * c-pch.c : Likewise.
1314 * c-ppoutput.c : Likewise.
1315 * c-pragma.c : Likewise.
1316 * c-pretty-print.c : Likewise.
1317 * c-semantics.c : Likewise.
1318 * c-ubsan.c : Likewise.
1319 * cilk.c : Likewise.
1320 * stub-objc.c : Likewise.
1322 2015-06-08 Marek Polacek <polacek@redhat.com>
1325 * c-format.c (location_from_offset): Return LOC if LINE is null.
1327 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1329 * c-common.h (c_parse_final_cleanups): New prototype.
1330 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1332 2015-06-04 Sriraman Tallam <tmsriram@google.com>
1334 * c-common.c (noplt): New attribute.
1335 (handle_noplt_attribute): New handler.
1337 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1339 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1340 * c-ada-spec.c: Likewise.
1341 * c-cilkplus.c: Likewise.
1342 * c-common.c: Likewise.
1343 * c-common.h: Likewise.
1344 * c-cppbuiltin.c: Likewise.
1345 * c-dump.c: Likewise.
1346 * c-format.c: Likewise.
1347 * c-gimplify.c: Likewise.
1348 * c-indentation.c: Likewise.
1349 * c-lex.c: Likewise.
1350 * c-omp.c: Likewise.
1351 * c-opts.c: Likewise.
1352 * c-pch.c: Likewise.
1353 * c-ppoutput.c: Likewise.
1354 * c-pragma.c: Likewise.
1355 * c-pretty-print.c: Likewise.
1356 * c-semantics.c: Likewise.
1357 * c-ubsan.c: Likewise.
1359 * stub-objc.c: Likewise.
1361 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1364 * c-indentation.c (should_warn_for_misleading_indentation): Use
1365 expand_location rather than expand_location_to_spelling_point.
1366 Don't warn if the guarding statement is more indented than the
1369 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1371 * c-indentation.c (warn_for_misleading_indentation): Bail out
1372 immediately if -Wmisleading-indentation isn't enabled.
1374 2015-06-01 Martin Liska <mliska@suse.cz>
1376 * c-format.c (check_format_arg):Use new type-based pool allocator.
1377 (check_format_info_main) Likewise.
1379 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1381 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1382 (has_nontrivial_methods): Likewise.
1384 2015-05-25 Marek Polacek <polacek@redhat.com>
1386 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1388 2015-05-22 Marek Polacek <polacek@redhat.com>
1391 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1393 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1395 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1396 STACK_GROWS_DOWNWARD.
1398 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1400 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1401 STACK_GROWS_DOWNWARD rather than if it is defined.
1403 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1406 * c-format.c (location_column_from_byte_offset): New.
1407 (location_from_offset): New.
1408 (struct format_wanted_type): Add offset_loc field.
1409 (check_format_info): Move handling of location for extra arguments
1410 closer to the point of warning.
1411 (check_format_info_main): Pass the result of location_from_offset
1413 (format_type_warning): Pass the result of location_from_offset
1416 2015-05-20 Marek Polacek <polacek@redhat.com>
1418 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1420 2015-05-20 Marek Polacek <polacek@redhat.com>
1422 * c-ada-spec.c (dump_sloc): Use DECL_P.
1424 2015-05-20 Marek Polacek <polacek@redhat.com>
1426 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1427 * c-common.c: Likewise.
1429 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1431 * c-common.h (fe_file_change): Strengthen param from
1432 const line_map * to const line_map_ordinary *.
1433 (pp_file_change): Likewise.
1434 * c-lex.c (fe_file_change): Likewise.
1435 (cb_define): Use linemap_check_ordinary when invoking
1437 (cb_undef): Likewise.
1438 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1439 invoking cb_file_change.
1440 (c_finish_options): Likewise.
1441 (push_command_line_include): Likewise.
1442 (cb_file_change): Strengthen param "new_map" from
1443 const line_map * to const line_map_ordinary *.
1444 * c-ppoutput.c (cb_define): Likewise for local "map".
1445 (pp_file_change): Likewise for param "map" and local "from".
1447 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1449 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1451 2015-05-18 Tom de Vries <tom@codesourcery.com>
1453 * c-common.c (build_va_arg_1): New function.
1454 (build_va_arg): Add address operator to va_list operand if necessary.
1456 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1459 * c-common.c (int_safely_convertible_to_real_p): Define.
1460 (unsafe_conversion_p): Check conversions involving complex types.
1461 (conversion_warning): Add new warning message for conversions which
1462 discard imaginary component.
1463 * c-common.h: (enum conversion_safety): Add new enumerator for such
1466 2015-05-14 Marek Polacek <polacek@redhat.com>
1470 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1471 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1472 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1473 use it. If FOR_INT_CONST, require that all evaluated operands be
1476 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1478 * c-common.h (warn_for_misleading_indentation): New prototype.
1479 * c-indentation.c: New file.
1480 * c.opt (Wmisleading-indentation): New option.
1482 2015-05-12 Tom de Vries <tom@codesourcery.com>
1484 PR tree-optimization/66010
1485 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1487 2015-05-09 Jason Merrill <jason@redhat.com>
1489 * c-opts.c (c_common_post_options): Also clear
1490 cpp_opts->cpp_warn_cxx11_compat.
1492 * c-common.h (enum cxx_dialect): Add cxx_unset.
1493 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1494 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1496 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1497 (std=gnu++0x): Mark as Undocumented.
1498 (std=gnu++1y): Add deprecated message.
1500 2015-05-08 Jason Merrill <jason@redhat.com>
1502 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1505 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1507 2015-05-08 Marek Polacek <polacek@redhat.com>
1510 * c.opt (Woverride-init-side-effects): New option.
1512 2015-05-07 Marek Polacek <polacek@redhat.com>
1515 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1517 * c.opt (Wshift-negative-value): New option.
1518 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1519 when -Wextra and C99/C++11 mode.
1521 2015-05-07 Marek Polacek <polacek@redhat.com>
1522 Martin Uecker <uecker@eecs.berkeley.edu>
1524 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1525 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1527 2015-05-05 Jason Merrill <jason@redhat.com>
1529 * c.opt (Wterminate): New.
1531 2015-04-30 Marek Polacek <polacek@redhat.com>
1533 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1534 require that the non-constant be of a boolean type.
1536 2015-04-29 Josh Triplett <josh@joshtriplett.org>
1538 * c-common.c (handle_section_attribute): Refactor to reduce
1539 nesting and distinguish between error cases.
1541 2015-04-29 Marek Polacek <polacek@redhat.com>
1544 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1547 2015-04-29 Jakub Jelinek <jakub@redhat.com>
1549 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1550 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1551 HOST_BITS_PER_WIDE_INT.
1553 2015-04-28 Tom de Vries <tom@codesourcery.com>
1555 PR tree-optimization/65887
1556 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1558 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
1559 Pierre-Marie de Rodat <derodat@adacore.com>
1561 * c-ada-spec.c (in_function): Delete.
1562 (dump_generic_ada_node): Do not change in_function and remove the
1563 redundant code dealing with it.
1564 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1565 (print_ada_methods): Output the static member functions in a nested
1566 package after the regular methods as well as associated renamings.
1568 2015-04-24 Marek Polacek <polacek@redhat.com>
1571 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1572 and OPT_Wshift_count_overflow.
1575 * c-common.c (warn_logical_operator): Warn if the operands have the
1578 2015-04-24 Marek Polacek <polacek@redhat.com>
1581 * c-common.c (warn_logical_operator): Bail if either operand comes
1582 from a macro expansion.
1584 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1587 * c-common.c (c_default_pointer_mode): Add definition.
1588 * c-common.h (c_default_pointer_mode): Add declaration.
1590 2015-03-11 Jakub Jelinek <jakub@redhat.com>
1592 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1593 on record_builtin_type argument.
1595 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1598 * c-common.c (warn_logical_not_parentheses): Don't warn for
1601 2015-03-07 Marek Polacek <polacek@redhat.com>
1604 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1605 before trying to figure out whether we have a flexible array member.
1607 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1608 Jonathan Wakely <jwakely.gcc@gmail.com>
1610 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1612 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1615 * c-ada-spec.c (print_destructor): Remove obsolete code.
1617 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1619 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1620 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1621 DECL_TEMPLATE_RESULT emulations.
1622 (dump_ada_template)): Add guard for TYPE_METHODS.
1624 2015-02-27 Marek Polacek <polacek@redhat.com>
1627 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1629 2015-02-27 Kai Tietz <ktietz@redhat.com>
1632 * c-pragma.c (handle_pragma_weak): Do not try to create
1633 weak/alias of declarations not being function, or variable
1636 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1639 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1641 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1643 2015-02-16 Marek Polacek <polacek@redhat.com>
1646 * c-format.c (check_format_types): Handle null param.
1648 2015-02-13 Marek Polacek <polacek@redhat.com>
1651 * c-format.c (check_format_types): Don't warn about different
1652 signedness if the original value is in the range of WANTED_TYPE.
1654 2015-02-12 Jason Merrill <jason@redhat.com>
1657 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1658 to the current highest version.
1659 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1661 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1665 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1666 instead of RDIV_EXPR. Use build_binary_op instead of
1669 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1671 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1672 to pass input_location as first argument.
1674 2015-01-23 Tom de Vries <tom@codesourcery.com>
1677 * c.opt (fopenacc): Mark as LTO option.
1679 2015-01-23 Tom de Vries <tom@codesourcery.com>
1682 * c.opt (fopenmp): Mark as LTO option.
1684 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1687 * cilk.c (fill_decls_vec): Only put decls into vector v.
1688 (compare_decls): Fix up formatting.
1690 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1693 * cilk.c: Include vec.h.
1694 (struct cilk_decls): New structure.
1695 (wrapper_parm_cb): Split this function to...
1696 (fill_decls_vec): ...this...
1697 (create_parm_list): ...and this.
1698 (compare_decls): New function.
1699 (for_local_cb): Remove.
1700 (wrapper_local_cb): Ditto.
1701 (build_wrapper_type): For now first traverse and fill vector of
1702 declarations then sort it and then deal with sorted vector.
1703 (cilk_outline): Ditto.
1704 (declare_one_free_variable): Ditto.
1706 2015-01-21 Jason Merrill <jason@redhat.com>
1709 * c-format.c (check_format_arg): Call decl_constant_value.
1711 2015-01-19 Martin Liska <mliska@suse.cz>
1713 * c-common.c (handle_noicf_attribute): New function.
1715 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1716 Bernd Schmidt <bernds@codesourcery.com>
1717 James Norris <jnorris@codesourcery.com>
1718 Cesar Philippidis <cesar@codesourcery.com>
1719 Ilmir Usmanov <i.usmanov@samsung.com>
1720 Jakub Jelinek <jakub@redhat.com>
1722 * c.opt (fopenacc): New option.
1723 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1724 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1726 * c-common.h (c_finish_oacc_wait): New prototype.
1727 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1728 (c_finish_oacc_wait): New function.
1729 * c-pragma.c (oacc_pragmas): New variable.
1730 (c_pp_lookup_pragma, init_pragma): Handle it.
1731 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1732 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1733 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1734 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1735 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1736 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1737 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1738 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1739 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1740 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1741 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1742 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1743 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1744 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1745 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1746 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1747 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1748 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1749 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1750 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1751 PRAGMA_OACC_CLAUSE_WORKER.
1753 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1755 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1756 for the new option fstack-protector_explicit.
1757 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1758 (handle_stack_protect_attribute): New function.
1760 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1762 * c.opt: New option -Warray-bounds=.
1764 2015-01-09 Michael Collison <michael.collison@linaro.org>
1766 * array-notation-common.c: Include hash-set.h, machmode.h,
1767 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1768 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1769 * c-ada-spec.c: Ditto.
1770 * c-cilkplus.c: Ditto.
1771 * c-common.c: Include input.h due to flattening of tree.h.
1772 Define macro GCC_C_COMMON_C.
1773 * c-common.h: Flatten tree.h header files into c-common.h.
1774 Remove include of tree-core.h.
1775 * c-cppbuiltin.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.
1780 * c-format.c: Flatten tree.h header files into c-common.h.
1781 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1782 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1783 fold-const.h, wide-int.h, and inchash.h due to
1784 flattening of tree.h.
1785 * c-dump.c: Include hash-set.h, machmode.h,
1786 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1787 fold-const.h, wide-int.h, and inchash.h due to
1788 flattening of tree.h.
1789 * c-format.c: Include hash-set.h, machmode.h,
1790 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1791 fold-const.h, wide-int.h, inchash.h and real.h due to
1792 flattening of tree.h.
1793 * c-gimplify.c: Include hash-set.h, machmode.h,
1794 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1795 fold-const.h, wide-int.h, and inchash.h due to
1796 flattening of tree.h.
1802 * c-ppoutput.c: Ditto.
1803 * c-pragma.c: Ditto.
1804 * c-pretty-print.c: Ditto.
1805 * c-semantics.c: Ditto.
1807 * stub-objc.c: Ditto.
1809 2015-01-08 Jason Merrill <jason@redhat.com>
1811 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1812 do_ubsan_in_current_function.
1813 (ubsan_maybe_instrument_reference_or_call): Likewise.
1814 * c-ubsan.h: Declare it.
1816 2015-01-08 Mike Stump <mikestump@comcast.net>
1818 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1820 2015-01-07 Marek Polacek <polacek@redhat.com>
1823 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1824 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1826 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1829 * c.opt (Wsuggest-override): New option.
1831 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1833 Update copyright years.
1835 2015-01-05 Marek Polacek <polacek@redhat.com>
1838 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1840 * c-common.h (warn_array_subscript_with_type_char): Update
1843 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1845 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1846 Control macro with flag_sized_deallocation.
1848 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1850 * c.opt (Wdiscarded-array-qualifiers): New option.
1852 2014-12-19 Jakub Jelinek <jakub@redhat.com>
1854 PR preprocessor/63831
1855 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1856 and __has_cpp_attribute here.
1857 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1858 c_common_has_attribute.
1859 * c-common.h (c_common_has_attribute): New prototype.
1860 * c-lex.c (init_c_lex): Set cb->has_attribute to
1861 c_common_has_attribute instead of cb_has_attribute.
1862 (get_token_no_padding): New function.
1863 (cb_has_attribute): Renamed to ...
1864 (c_common_has_attribute): ... this. No longer static. Use
1865 get_token_no_padding, require ()s, don't build TREE_LIST
1866 unnecessarily, fix up formatting, adjust diagnostics, call
1869 2014-12-15 Jason Merrill <jason@redhat.com>
1871 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1872 (-Wsized-deallocation): New.
1873 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1874 to on in C++14 and up.
1876 2014-12-11 Jason Merrill <jason@redhat.com>
1878 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1880 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1881 we aren't complaining about VLAs.
1883 2014-12-06 Marek Polacek <polacek@redhat.com>
1885 PR tree-optimization/64183
1886 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1887 shift-expression if it is integer_type_node. Use types_compatible_p.
1889 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1891 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1892 last argument from create_tmp_var_raw and create_tmp_var calls.
1893 * cilk.c (gimplify_cilk_spawn): Likewise.
1894 * c-omp.c (c_finish_omp_atomic): Likewise.
1896 2014-11-28 Marek Polacek <polacek@redhat.com>
1898 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1899 instead of unsigned_type_node.
1901 2014-11-28 Marek Polacek <polacek@redhat.com>
1904 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1906 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1907 expression to unsigned_type_node.
1909 2014-11-20 Mark Wielaard <mjw@redhat.com>
1912 * c-opts.c (set_std_c89): Set lang_hooks.name.
1913 (set_std_c99): Likewise.
1914 (set_std_c11): Likewise.
1915 (set_std_cxx98): Likewise.
1916 (set_std_cxx11): Likewise.
1917 (set_std_cxx14): Likewise.
1918 (set_std_cxx1z): Likewise.
1920 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1923 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1924 return type to bool.
1925 * c-common.c: Include gimple-expr.h.
1926 (convert_vector_to_pointer_for_subscript): Change return type to
1927 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1928 and copy it into a TARGET_EXPR and use that instead of *vecp
1931 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1933 Merger of git branch "gimple-classes-v2-option-3".
1934 * ChangeLog.gimple-classes: New.
1935 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1936 from being just a vec<gimple> to a vec<gbind *>.
1938 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1941 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1942 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1943 get_pointer_alignment for non-pointers. Use ptype, or if it is
1944 reference type, corresponding pointer type, as type of kind
1946 (ubsan_maybe_instrument_reference,
1947 ubsan_maybe_instrument_member_call): Adjust callers.
1949 2014-11-15 Marek Polacek <polacek@redhat.com>
1952 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1954 (extract_array_notation_exprs): Return for NULL node.
1956 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1958 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1959 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1961 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1964 * c-common.c (check_builtin_function_arguments): Handle
1965 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1967 2014-11-10 Andi Kleen <ak@linux.intel.com>
1970 * c-common.h (check_no_cilk): Declare.
1971 * cilk.c (get_error_location): New function.
1972 (check_no_cilk): Dito.
1974 2014-11-10 Andi Kleen <ak@linux.intel.com>
1976 * cilk.c (recognize_spawn): Use expression location
1979 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1981 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1983 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1985 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1986 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1987 (__cpp_range_based_for, __cpp_initializer_lists,
1988 __cpp_delegating_constructors, __cpp_nsdmi,
1989 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1990 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1991 __has_cpp_attribute.
1992 * c-lex.c (cb_has_attribute): New callback CPP function;
1993 (init_c_lex): Set has_attribute callback.
1995 2014-11-04 Richard Biener <rguenther@suse.de>
1997 * c-common.c (shorten_compare): Do not shorten mixed
1998 DFP and non-DFP compares.
2000 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2002 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2003 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2004 Commentary and rearrangement of tests.
2005 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2006 Commentary and rearrangement of tests.
2007 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2008 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2010 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2012 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2013 enum from machine_mode.
2015 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
2017 * c-common.c: Adjust include files.
2018 * c-gimplify.c: Ditto.
2020 * c-pragma.c: Ditto.
2023 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
2025 * c-gimplify.c: Adjust include files.
2027 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2030 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2031 c_common_initialize_diagnostics.
2032 * c-common.h: Likewise.
2034 2014-10-24 Marek Polacek <polacek@redhat.com>
2037 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2038 print "struct"/"union"/"enum" for typedefed names.
2040 2014-10-23 Marek Polacek <polacek@redhat.com>
2042 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2045 2014-10-22 Jakub Jelinek <jakub@redhat.com>
2046 Yury Gribov <y.gribov@samsung.com>
2048 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2049 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2050 instead of flag_sanitize_recover as bool flag.
2052 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2054 * cilk.c: Revert previous change.
2056 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2059 * cilk.c: Include vec.h.
2060 (struct cilk_decls): New structure.
2061 (wrapper_parm_cb): Split this function to...
2062 (fill_decls_vec): ...this...
2063 (create_parm_list): ...and this.
2064 (compare_decls): New function.
2065 (for_local_cb): Remove.
2066 (wrapper_local_cb): Ditto.
2067 (build_wrapper_type): For now first traverse and fill vector of
2068 declarations then sort it and then deal with sorted vector.
2069 (cilk_outline): Ditto.
2070 (declare_one_free_variable): Ditto.
2072 2014-10-17 Marek Polacek <polacek@redhat.com>
2074 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2075 * c.opt (Wimplicit-int): Initialize to -1.
2077 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
2079 * c-pragma.c: Adjust include files.
2080 * c-semantics.c: Likewise.
2082 2014-10-16 DJ Delorie <dj@redhat.com>
2084 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2087 2014-10-14 Jason Merrill <jason@redhat.com>
2090 * c-common.h (CPP_PREPARSED_EXPR): New.
2091 (N_CP_TTYPES): Adjust.
2093 2014-10-15 Marek Polacek <polacek@redhat.com>
2095 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2097 2014-10-14 DJ Delorie <dj@redhat.com>
2099 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2100 types, not just __int128.
2101 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2102 types, not just __int128.
2103 (cpp_atomic_builtins): Round pointer sizes up.
2104 (type_suffix): Use type precision, not specific types.
2105 * c-common.c (c_common_reswords): Remove __int128 special case.
2106 (c_common_type_for_size): Check for all __intN types, not just
2108 (c_common_type_for_mode): Likewise.
2109 (c_common_signed_or_unsigned_type): Likewise.
2110 (c_build_bitfield_integer_type): Likewise.
2111 (c_common_nodes_and_builtins): Likewise.
2112 (keyword_begins_type_specifier): Likewise.
2113 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2116 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2118 * c-common.c: Use hash_table instead of hashtab.
2120 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2122 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2125 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2130 * c-common.c (warn_logical_operator): Punt for vectors.
2132 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2134 Implement SD-6: SG10 Feature Test Recommendations
2135 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2136 macros and the __has_header macro.
2138 2014-09-30 Jason Merrill <jason@redhat.com>
2140 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2141 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2142 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2144 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2145 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2147 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2148 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2150 2014-09-24 Marek Polacek <polacek@redhat.com>
2154 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2156 2014-09-23 Andi Kleen <ak@linux.intel.com>
2158 * c-common.c (handle_no_reorder_attribute): New function.
2159 (c_common_attribute_table): Add no_reorder attribute.
2161 2014-09-22 Joseph Myers <joseph@codesourcery.com>
2163 * c-cppbuiltin.c (c_cpp_builtins): Define
2164 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2167 2014-09-18 Joseph Myers <joseph@codesourcery.com>
2169 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2170 for supported floating-point modes.
2172 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2174 * c.opt (Wpsabi): Use LangEnabledBy.
2175 * c-opts.c (c_common_handle_option): Do not handle here.
2177 2014-09-12 Joseph Myers <joseph@codesourcery.com>
2179 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2180 macros for floating-point modes.
2182 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
2185 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2186 __*_DENORM_MIN__ without denormals.
2188 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2190 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2191 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2192 ubsan_create_data callers.
2193 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2194 index is constant or BIT_AND_EXPR with constant mask and is
2195 small enough for the bound.
2196 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2197 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2199 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2201 * c.opt: Add CppReason to various flags.
2202 (Wdate-time): Re-sort.
2203 * c-common.c: Include c-common.h earlier.
2204 (struct reason_option_codes_t): Delete.
2205 (c_option_controlling_cpp_error): Prefix global type and struct
2208 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2210 * c.opt (Wnormalized): New.
2211 (Wnormalized=): Use Enum and Reject Negative.
2212 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2214 2014-09-08 Joseph Myers <joseph@codesourcery.com>
2216 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2217 digits of floating-point modes if -fbuilding-libgcc.
2219 2014-09-05 Joseph Myers <joseph@codesourcery.com>
2221 * c-cppbuiltin.c (c_cpp_builtins): Also define
2222 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2223 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2224 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2225 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2226 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2227 __LIBGCC_STACK_GROWS_DOWNWARD__,
2228 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2229 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2230 __LIBGCC_DWARF_FRAME_REGISTERS__,
2231 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2232 __LIBGCC_STACK_POINTER_REGNUM__ and
2233 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2234 (builtin_define_with_value): Handle backslash-escaping in string
2237 2014-09-05 Richard Biener <rguenther@suse.de>
2240 * c-format.c (check_format_arg): Properly handle
2241 effectively signed POINTER_PLUS_EXPR offset.
2243 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2245 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2246 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2247 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2249 * c-opts.c (c_common_handle_option): Do not handle here.
2250 (sanitize_cpp_opts): Likewise.
2251 * c-common.c (struct reason_option_codes_t): Handle
2252 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2254 2014-09-03 Marek Polacek <polacek@redhat.com>
2256 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2258 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2259 Balaji V. Iyer <balaji.v.iyer@intel.com>
2260 Igor Zamyatin <igor.zamyatin@intel.com>
2262 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2263 * c-common.c (c_common_reswords): Added _Cilk_for.
2264 * c-common.h (enum rid): Added RID_CILK_FOR.
2265 (cilk_for_number_of_iterations): Add declaration.
2266 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2268 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2269 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2271 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2273 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2274 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2275 Wundef): Use CPP, Var and Init.
2276 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2278 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2280 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2281 * c-opts.c (c_common_handle_option): Do not handle here.
2283 2014-08-25 Jason Merrill <jason@redhat.com>
2285 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2286 -std=c++14 and -std=gnu++14, rather than the reverse.
2287 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2288 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2289 * c-common.h (cxx_dialect): Remove cxx1y.
2291 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2293 * c-common.h (enum cxx_dialect): Add cxx14.
2294 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2295 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2296 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2298 2014-08-22 Jason Merrill <jason@redhat.com>
2300 * c.opt (std=gnu++17): Fix alias.
2302 2014-08-22 Marek Polacek <polacek@redhat.com>
2305 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2306 check for vector types. Drop LHS argument.
2307 * c-common.h (warn_logical_not_parentheses): Adjust.
2309 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2311 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2312 (Wmultichar): Likewise.
2313 (Wdate-time): Use C-family languages instead of Common. Use CPP
2315 * c-opts.c (c_common_handle_option): Do not handle the above
2317 (sanitize_cpp_opts): Likewise.
2319 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2322 * c-opts.c: Include tree-diagnostics.h.
2323 (c_diagnostic_finalizer): New.
2324 (c_common_initialize_diagnostics): Use it.
2326 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2328 PR preprocessor/51303
2329 * c-common.c (struct reason_option_codes_t option_codes):
2330 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2332 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2336 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2337 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2338 (c_common_post_options): Call init_global_opts_from_cpp.
2339 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2341 2014-08-19 Marek Polacek <polacek@redhat.com>
2344 * c-common.c (maybe_warn_bool_compare): New function.
2345 * c-common.h (maybe_warn_bool_compare): Declare.
2346 * c.opt (Wbool-compare): New option.
2348 2014-08-19 Marek Polacek <polacek@redhat.com>
2350 * c.opt (Wc99-c11-compat): New option.
2352 2014-08-19 Marek Polacek <polacek@redhat.com>
2354 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2355 to warn_c90_c99_compat.
2356 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2359 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2360 Steven Bosscher <steven@gcc.gnu.org>
2363 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2364 format_check_results.
2365 (check_function_format): Use true and add comment for boolean
2367 (finish_dollar_format_checking): Use explicit location when warning.
2368 (check_format_info): Likewise.
2369 (check_format_arg): Set extra_arg_loc and format_string_loc.
2370 (check_format_info_main): Use explicit location when warning.
2371 (check_format_types): Pass explicit location.
2372 (format_type_warning): Likewise.
2374 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2377 * c-format.c: Handle Fortran flags.
2379 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2382 * array-notation-common.c (find_rank): Added handling for other
2383 types of references.
2385 2014-08-10 Marek Polacek <polacek@redhat.com>
2388 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2389 * c.opt (Wc90-c99-compat): Add option.
2391 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2393 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2395 2014-08-03 Marek Polacek <polacek@redhat.com>
2397 * c-common.c (check_case_value): Add location_t parameter. Use it.
2398 (c_add_case_label): Pass loc to check_case_value.
2400 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2402 * cilk.c: Use hash_map instead of pointer_map.
2404 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2406 * c-gimplify.c: Use hash_set instead of pointer_set.
2408 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2411 * array-notation-common.c (extract_array_notation_exprs): Handling
2414 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2416 * c-common.h (min_align_of_type): Removed prototype.
2417 * c-common.c (min_align_of_type): Removed.
2418 * c-ubsan.h (ubsan_maybe_instrument_reference,
2419 ubsan_maybe_instrument_member_call): New prototypes.
2420 * c-ubsan.c: Include stor-layout.h and builtins.h.
2421 (ubsan_maybe_instrument_reference_or_call,
2422 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2425 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
2428 * c.opt (-Wreturn-local-addr): Move to common.opt.
2430 2014-07-30 Jason Merrill <jason@redhat.com>
2435 * c.opt (-fuse-all-virtuals): New.
2437 2014-07-30 Tom Tromey <tromey@redhat.com>
2440 * c.opt (Wdesignated-init): New option.
2441 * c-common.c (c_common_attribute_table): Add "designated_init".
2442 (handle_designated_init): New function.
2444 2014-07-24 Marek Polacek <polacek@redhat.com>
2447 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2449 2014-07-16 Dodji Seketeli <dodji@redhat.com>
2451 PR preprocessor/60723 - missing system-ness marks for macro tokens
2452 * c-ppoutput.c (struct print::prev_was_system_token): New data
2454 (init_pp_output): Initialize it.
2455 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2456 (do_line_change): Return a flag saying if a line marker was
2458 (scan_translation_unit): Detect if the system-ness of the token we
2459 are about to emit is different from the one of the previously
2460 emitted token. If so, emit a line marker. Avoid emitting useless
2461 adjacent line markers. Avoid emitting line markers for tokens
2462 originating from the expansion of built-in macros.
2463 (scan_translation_unit_directives_only): Adjust.
2465 2014-07-15 Marek Polacek <polacek@redhat.com>
2467 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2468 TYPE_MAX_VALUE is NULL.
2470 2014-07-14 Jakub Jelinek <jakub@redhat.com>
2473 * c.opt (Wmemset-transposed-args): New warning.
2475 2014-07-10 Jason Merrill <jason@redhat.com>
2479 * c.opt (-fuse-all-virtuals): New.
2481 2014-07-09 Richard Biener <rguenther@suse.de>
2484 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2485 using unsigned arithmetic if overflow does not wrap instead of
2486 if overflow is undefined.
2488 2014-07-06 Marek Polacek <polacek@redhat.com>
2491 * c.opt (Wsizeof-array-argument): New option.
2493 2014-07-03 Jakub Jelinek <jakub@redhat.com>
2495 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
2496 comments->count <= 1, as comments->entries might be NULL.
2498 2014-07-01 Marek Polacek <polacek@redhat.com>
2500 * c.opt (Wint-conversion): New option.
2502 2014-07-01 Marek Polacek <polacek@redhat.com>
2505 * c.opt (Wincompatible-pointer-types): New option.
2507 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2510 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2511 Do not discard TYPE_QUALS of type.
2513 2014-06-26 Jason Merrill <jason@redhat.com>
2515 * c-common.h (enum cxx_dialect): Add cxx1z.
2516 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2517 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2519 2014-06-26 Teresa Johnson <tejohnson@google.com>
2521 * c-common.h (get_dump_info): Declare.
2522 * c-gimplify.c (c_genericize): Use saved dump files.
2523 * c-opts.c (c_common_parse_file): Begin and end dumps
2524 once around parsing invocation.
2525 (get_dump_info): New function.
2527 2014-06-23 Marek Polacek <polacek@redhat.com>
2528 Andrew MacLeod <amacleod@redhat.com>
2531 * c-common.c (get_atomic_generic_size): Don't segfault if the
2532 type doesn't have a size.
2534 2014-06-20 Marek Polacek <polacek@redhat.com>
2536 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2537 (ubsan_walk_array_refs_r): New function.
2538 (c_genericize): Instrument array bounds.
2539 * c-ubsan.c: Include "internal-fn.h".
2540 (ubsan_instrument_division): Mark instrumented arrays as having
2541 side effects. Adjust ubsan_type_descriptor call.
2542 (ubsan_instrument_shift): Likewise.
2543 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2544 (ubsan_instrument_bounds): New function.
2545 (ubsan_array_ref_instrumented_p): New function.
2546 (ubsan_maybe_instrument_array_ref): New function.
2547 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2548 (ubsan_array_ref_instrumented_p): Declare.
2549 (ubsan_maybe_instrument_array_ref): Declare.
2551 2014-06-20 Hale Wang <hale.wang@arm.com>
2554 * c.opt (fshort-enums): Add to LTO.
2555 * c.opt (fshort-wchar): Likewise.
2557 2014-06-16 Marek Polacek <polacek@redhat.com>
2560 * c.opt (Wswitch-bool): Add Var.
2562 2014-06-12 Jakub Jelinek <jakub@redhat.com>
2565 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2566 #pragma omp target teams or
2567 #pragma omp {,target }teams distribute simd.
2569 2014-06-12 Jason Merrill <jason@redhat.com>
2571 * c.opt (Wabi=, fabi-compat-version): New.
2572 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2573 (c_common_post_options): Handle flag_abi_compat_version default.
2574 Disallow -fabi-compat-version=1.
2575 * c-common.h (abi_version_crosses): New.
2577 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
2579 * c-common.c (handle_section_attribute): Update handling for
2580 section names that are no longer trees.
2582 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2585 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2586 (omp_pragmas): ... back here.
2588 2014-06-05 Marek Polacek <polacek@redhat.com>
2591 * c-common.c (warn_logical_not_parentheses): New function.
2592 * c-common.h (warn_logical_not_parentheses): Declare.
2593 * c.opt (Wlogical-not-parentheses): New option.
2595 2014-06-04 Marek Polacek <polacek@redhat.com>
2598 * c-common.c (check_case_bounds): Add location parameter.
2600 (c_add_case_label): Pass loc to check_case_bounds.
2602 2014-06-03 Marek Polacek <polacek@redhat.com>
2605 * c.opt (Wswitch-bool): New option.
2607 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2609 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2611 (record_types_used_by_current_var_decl): Move prototype to where
2614 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2615 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2616 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2618 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2620 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2621 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2623 * c-pretty-print.c (pp_c_void_constant): New function.
2624 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2625 (c_pretty_printer::expression): Handle VOID_CST.
2626 * cilk.c (extract_free_variables): Likewise.
2627 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2628 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2630 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2632 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2633 * c-pragma.c (push_alignment): Adjust.
2634 (handle_pragma_push_options): Likewise.
2636 2014-05-09 Marek Polacek <polacek@redhat.com>
2639 * c-common.c (check_user_alignment): Return -1 if alignment is error
2641 (handle_aligned_attribute): Don't call default_conversion on
2643 (handle_vector_size_attribute): Likewise.
2644 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2645 (handle_sentinel_attribute): Call default_conversion and allow even
2646 integral types as an argument.
2648 2014-05-08 Marek Polacek <polacek@redhat.com>
2651 * c-common.c (min_align_of_type): New function factored out from...
2652 (c_sizeof_or_alignof_type): ...here.
2653 * c-common.h (min_align_of_type): Declare.
2655 2014-05-08 Marek Polacek <polacek@redhat.com>
2658 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2659 parameter type of main.
2661 2014-05-07 DJ Delorie <dj@redhat.com>
2663 * c-cppbuiltin.c (print_bits_of_hex): New.
2664 (builtin_define_type_minmax): Print values using hex so as not to
2665 require a pre-computed list of string values.
2667 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2668 Mike Stump <mikestump@comcast.net>
2669 Richard Sandiford <rdsandiford@googlemail.com>
2671 * c-ada-spec.c: Include wide-int.h.
2672 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2673 (dump_generic_ada_node): Use wide-int interfaces.
2674 * c-common.c: Include wide-int-print.h.
2675 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2676 (pointer_int_sum): Use wide-int interfaces.
2677 (c_common_nodes_and_builtins): Use make_int_cst.
2678 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2679 (handle_alloc_size_attribute): Use wide-int interfaces.
2680 (get_nonnull_operand): Likewise.
2681 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2682 * c-lex.c: Include wide-int.h.
2683 (narrowest_unsigned_type): Take a widest_int rather than two
2685 (narrowest_signed_type): Likewise.
2686 (interpret_integer): Update accordingly. Use wide-int interfaces.
2687 (lex_charconst): Use wide-int interfaces.
2688 * c-pretty-print.c: Include wide-int.h.
2689 (pp_c_integer_constant): Use wide-int interfaces.
2690 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2691 INT_CST_LT_UNSIGNED.
2693 2014-05-06 Richard Biener <rguenther@suse.de>
2695 * c-opts.c (c_common_post_options): For -freestanding,
2696 -fno-hosted and -fno-builtin disable pattern recognition
2697 if not enabled explicitely.
2699 2014-05-02 Marek Polacek <polacek@redhat.com>
2701 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2703 2014-05-01 Marek Polacek <polacek@redhat.com>
2706 * c.opt (Wdiscarded-qualifiers): Add.
2708 2014-04-30 Marek Polacek <polacek@redhat.com>
2710 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2711 INT_MIN / -1 sanitization only for integer types.
2713 2014-04-25 Marek Polacek <polacek@redhat.com>
2716 * c-common.c (handle_noinline_attribute): Warn if the attribute
2717 conflicts with always_inline attribute.
2718 (handle_always_inline_attribute): Warn if the attribute conflicts
2719 with noinline attribute.
2721 2014-04-25 Marek Polacek <polacek@redhat.com>
2724 * c-common.c (check_main_parameter_types): Warn about variadic main.
2726 2014-04-24 Mike Stump <mikestump@comcast.net>
2728 * c.opt (Wshadow-ivar): Default to on.
2730 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2732 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2734 2014-04-23 Marek Polacek <polacek@redhat.com>
2736 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2738 2014-04-22 Jakub Jelinek <jakub@redhat.com>
2741 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2742 if flag_sanitize_undefined_trap_on_error.
2743 (ubsan_instrument_division, ubsan_instrument_shift,
2744 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2745 if !flag_sanitize_recover.
2747 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
2750 * c-common.c (registered_builtin_types): Make non-static.
2751 * c-common.h (registered_builtin_types): Declare.
2753 2014-04-14 Richard Biener <rguenther@suse.de>
2754 Marc Glisse <marc.glisse@inria.fr>
2757 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2758 apply may-alias the scalar pointer type when applicable.
2760 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2763 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2764 as possible argument for Cilk_spawn.
2766 2014-04-11 Tobias Burnus <burnus@net-b.de>
2769 * c.opt (Wformat-signedness): Add
2770 * c-format.c(check_format_types): Use it.
2772 2014-04-11 Jason Merrill <jason@redhat.com>
2775 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2776 default_conversion for an array argument.
2778 2014-04-08 Marek Polacek <polacek@redhat.com>
2781 * c-ubsan.c: Include asan.h.
2782 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2784 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2786 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2788 2014-04-02 Marek Polacek <polacek@redhat.com>
2790 * c-common.h (c_expand_expr): Remove declaration.
2792 2014-03-28 Jakub Jelinek <jakub@redhat.com>
2795 * c-common.c (add_atomic_size_parameter): When creating new
2796 params vector, push the size argument first.
2798 2014-03-26 Jakub Jelinek <jakub@redhat.com>
2800 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2801 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2802 ubsan_create_data callers.
2804 2014-03-22 Jakub Jelinek <jakub@redhat.com>
2807 * c-opts.c (c_finish_options): Restore cb_file_change call to
2810 2014-03-13 Jakub Jelinek <jakub@redhat.com>
2813 * c-pragma.c (apply_pragma_weak): Only look at
2814 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2815 DECL_ASSEMBLER_NAME_SET_P (decl).
2816 (maybe_apply_pending_pragma_weaks): Exit early if
2817 vec_safe_is_empty (pending_weaks) rather than only when
2819 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2820 set assembler name back to NULL afterwards.
2822 2014-03-11 Jason Merrill <jason@redhat.com>
2824 * c.opt: Add -std=gnu++14.
2826 2014-03-11 Ian Bolton <ian.bolton@arm.com>
2828 * c-opts.c (c_common_post_options): Don't override
2829 -ffp-contract=fast if unsafe-math-optimizations is on.
2831 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
2833 * c.opt: Enable LTO FE for fshort-double.
2835 2014-03-07 Jason Merrill <jason@redhat.com>
2837 * c.opt: Add -std=c++14.
2839 2014-03-06 Marek Polacek <polacek@redhat.com>
2842 * cilk.c (contains_cilk_spawn_stmt): New function.
2843 (contains_cilk_spawn_stmt_walker): Likewise.
2844 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2845 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2847 2014-03-03 Jakub Jelinek <jakub@redhat.com>
2849 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2850 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2851 even when flag_preprocess_only.
2853 2014-02-26 Jason Merrill <jason@redhat.com>
2857 * c-common.c (shorten_compare): Don't check
2858 c_inhibit_evaluation_warnings.
2860 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2863 * c-common.c (c_common_nodes_and_builtins): When initializing
2864 c_uint{16,32,64}_type_node, also set corresponding
2865 uint{16,32,64}_type_node to the same value.
2868 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2869 for PRAGMA_IVDEP if flag_preprocess_only.
2871 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2874 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2875 if false, add ADD itself, rather than vice versa.
2876 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2877 copy. For SAVE_EXPR, only call merge_tlist once.
2879 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2882 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2884 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2886 (c_common_attribute_table): Add alloc_align and assume_aligned
2889 2014-02-06 Marek Polacek <polacek@redhat.com>
2892 * c-common.c (warn_for_sign_compare): Call warning_at with location
2895 2014-02-05 Marek Polacek <polacek@redhat.com>
2898 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2901 2014-02-04 Marek Polacek <polacek@redhat.com>
2904 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2907 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2911 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2912 handle_vector_size_attribute, handle_nonnull_attribute): Call
2913 default_conversion on the attribute argument.
2914 (handle_nonnull_attribute): Increment the argument number.
2916 2014-01-31 Marek Polacek <polacek@redhat.com>
2919 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2920 build_function_call_vec.
2921 (resolve_overloaded_builtin): Likewise.
2922 * c-common.h (build_function_call_vec): Adjust declaration.
2924 2014-01-30 Marek Polacek <polacek@redhat.com>
2927 * c-common.h (unsafe_conversion_p): Adjust declaration.
2928 (warnings_for_convert_and_check): Likewise.
2929 (convert_and_check): Likewise.
2930 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2931 expansion_point_location_if_in_system_header on it.
2932 (warnings_for_convert_and_check): Add location parameter. Call
2933 expansion_point_location_if_in_system_header on it. Use it.
2934 (convert_and_check): Add location parameter. Use it.
2935 (conversion_warning): Likewise.
2936 (c_add_case_label): Adjust convert_and_check calls.
2937 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2939 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2941 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2943 * c-pragma.c (init_pragma): Likewise.
2946 2014-01-23 Marek Polacek <polacek@redhat.com>
2949 * c-common.c (shorten_compare): Add location_t parameter.
2950 * c-common.h (shorten_binary_op): Adjust declaration.
2952 2014-01-23 Marek Polacek <polacek@redhat.com>
2955 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2956 * c-common.h: Declare it.
2958 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2960 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2961 * c-ada-spec.c (dump_ads): Likewise.
2962 (cpp_check): Likewise.
2963 (dump_ada_specs): Likewise.
2965 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2968 * c-common.c (handle_no_instrument_function_attribute): Allow
2969 no_instrument_function attribute in class member
2970 definition/declaration.
2972 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2975 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2976 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2977 being COMPOUND_EXPR.
2978 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2979 operand a SAVE_EXPR and second MODIFY_EXPR.
2981 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2984 * c-pch.c (c_common_write_pch): Call
2985 prepare_target_option_nodes_for_pch.
2987 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2989 Update copyright years
2991 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2993 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2994 the copyright notice.
2996 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2998 * c-ada-spec.c (print_constructor): New function.
2999 (print_destructor): Retrieve the origin of the destructor.
3000 (print_ada_declaration): Revamp handling of constructors/destructors.
3002 2013-12-23 Stuart Hastings <stuart@apple.com>
3003 Bill Maddox <maddox@google.com>
3004 Jason Merrill <jason@redhat.com>
3006 * c.opt: Add -fdeclone-ctor-dtor.
3007 * c-opts.c (c_common_post_options): Default to on iff -Os.
3009 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3011 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3013 * c-pragma.h (enum pragma_cilk_clause): Remove.
3014 (enum pragma_omp_clause): Added the following fields:
3015 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3016 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3017 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3018 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3019 PRAGMA_CILK_CLAUSE_UNIFORM.
3022 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3024 * cilk.c (cilk_outline): Made this function non-static.
3025 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3026 (create_cilk_wrapper): Added a new parameter: a function pointer.
3027 (c_install_body_w_frame_cleanup): Remove
3028 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3029 * c-common.h (cilk_outline): New prototype.
3030 (gimplify_cilk_spawn): Removed two parameters.
3031 (cilk_install_body_with_frame_cleanup): New prototype.
3032 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3033 CILK_SPAWN_STMT case.
3035 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3037 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3039 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3040 (int_array_type_node): Remove.
3041 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3043 2013-12-05 Marek Polacek <polacek@redhat.com>
3046 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3047 [ADJUST_FIELD_ALIGN].
3049 2013-12-04 Joseph Myers <joseph@codesourcery.com>
3052 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3053 and check field alignment if set.
3054 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3055 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3057 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3058 Marek Polacek <polacek@redhat.com>
3060 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3061 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3063 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3066 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3069 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3072 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3073 goto invalid. If it is error_mark_node, don't issue further
3076 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3078 * c.opt (Wopenmp-simd): New.
3080 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3082 * c-ubsan.h (ubsan_instrument_return): New prototype.
3083 * c-ubsan.c (ubsan_instrument_return): New function.
3085 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3087 * c-common.c: Add required include files from gimple.h.
3088 * c-gimplify.c: Likewise
3091 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3093 * c-common.c (unsafe_conversion_p): Remove use of
3094 EXPR_LOC_OR_HERE macro.
3095 (conversion_warning): Likewise.
3096 (warnings_for_convert_and_check): Likewise.
3097 (warn_for_collisions_1): Likewise.
3098 (shorten_compare): Likewise, and remove use of in_system_header
3099 macro, using the location from the former.
3100 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3101 (cb_def_pragma): Remove use of in_system_header macro.
3102 (lex_string): Likewise.
3103 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3105 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3106 Mike Stump <mikestump@comcast.net>
3107 Richard Sandiford <rdsandiford@googlemail.com>
3109 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3110 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3111 tree_fits_shwi_p or tree_fits_uhwi_p.
3112 (dump_generic_ada_node): Likewise.
3113 * c-format.c (check_format_arg): Likewise.
3114 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3116 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3118 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3120 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3123 * c-common.c (unsafe_conversion_p): Make this function
3124 return an enumeration with more detail.
3125 (conversion_warning): Use the new return type of
3126 unsafe_conversion_p to separately warn either about conversions
3127 that lower floating point number precision or about the other
3128 kinds of conversions.
3129 * c-common.h (enum conversion_safety): New enumeration.
3130 (unsafe_conversion_p): switching return type to
3131 conversion_safety enumeration.
3132 * c.opt: Adding new warning -Wfloat-conversion and
3133 enabling it with -Wconversion.
3135 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3137 * c-opts.c: Include plugin.h.
3138 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3140 2013-11-19 Marek Polacek <polacek@redhat.com>
3142 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3144 (ubsan_instrument_shift): Likewise.
3145 (ubsan_instrument_vla): Likewise.
3147 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3149 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3150 cast to unsigned type.
3152 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3154 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3156 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3157 rather than tree_low_cst.
3159 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3161 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3162 tree_to_uhwi throughout.
3164 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3166 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3167 tree_low_cst (..., 0) with tree_to_shwi throughout.
3169 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3171 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3172 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3174 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3176 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3177 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3179 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3181 * c-cilkplus.c: New file.
3182 * c-common.c (readonly_error): Add location argument.
3183 * c-common.h (readonly_error): Same.
3184 (c_finish_cilk_clauses): Protoize.
3185 (c_check_cilk_loop): Same.
3186 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3187 Do not fail on error_mark_node.
3188 Abstract increment canonicalization to here...
3189 (c_omp_for_incr_canonicalize_ptr): New.
3190 c-pragma.c (init_pragma): Register "simd" pragma.
3191 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3192 (enum pragma_cilk_clause): New.
3194 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3196 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3197 wchar_type and host_integerp checks.
3199 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
3201 * c-common.c: Likewise.
3202 * c-gimplify.c: Likewise.
3205 2013-11-14 Diego Novillo <dnovillo@google.com>
3207 * c-common.c: Include fold-const.h.
3208 Include stor-layout.h.
3210 Include stringpool.h.
3213 Include trans-mem.h.
3214 * c-cppbuiltin.c: Include stor-layout.h.
3215 Include stringpool.h.
3216 * c-format.c: Include stringpool.h.
3217 * c-lex.c: Include stringpool.h.
3218 Include stor-layout.h.
3219 * c-pragma.c: Include stringpool.h.
3222 Include gcc-symtab.h.
3223 * c-pretty-print.c: Include stor-layout.h.
3225 * cilk.c: Include stringpool.h.
3228 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3230 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3231 * c-common.c (c_common_reswords): Add __auto_type.
3232 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3234 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3236 * c-common.c: Include gimplify.h.
3237 * c-gimplify.c: Likewise.
3239 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3240 * c-ubsan.c: Don't include gimple.h.
3242 2013-11-12 Joseph Myers <joseph@codesourcery.com>
3244 * c-common.c (c_common_reswords): Add _Thread_local.
3246 2013-11-09 Joseph Myers <joseph@codesourcery.com>
3248 * c-common.c (atomic_size_supported_p): New function.
3249 (resolve_overloaded_atomic_exchange)
3250 (resolve_overloaded_atomic_compare_exchange)
3251 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3252 Use it instead of comparing size with a local list of sizes.
3254 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
3255 Joseph Myers <joseph@codesourcery.com>
3257 * c-common.h (enum rid): Add RID_ATOMIC.
3258 * c-common.c (c_common_reswords): Add _Atomic.
3259 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3260 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3261 * c-format.c (check_format_types): Check for extra _Atomic
3262 qualifiers in format argument.
3263 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3264 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3266 2013-11-06 Tobias Burnus <burnus@net-b.de>
3268 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3270 2013-11-06 Joseph Myers <joseph@codesourcery.com>
3272 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3274 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3275 to mean lack of IEEE 754 support.
3277 2013-11-05 Tobias Burnus <burnus@net-b.de>
3279 * c.opt (-Wdate-time): New option
3280 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3282 2013-11-05 Joseph Myers <joseph@codesourcery.com>
3284 * c-cppbuiltin.c (cpp_iec_559_value): Test
3285 flag_excess_precision_cmdline not flag_excess_precision.
3287 2013-11-05 Tobias Burnus <burnus@net-b.de>
3289 * c.opt (fopenmp-simd): New option.
3290 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3291 (omp_pragmas): ... this new struct.
3292 (c_pp_lookup_pragma): Also walk omp_pragmas.
3293 (init_pragma): Init pragmas for -fopenmp-simd.
3295 2013-11-04 Marek Polacek <polacek@redhat.com>
3298 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3300 2013-11-04 Joseph Myers <joseph@codesourcery.com>
3302 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3304 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3306 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3308 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3309 (dump_ada_specs): Adjust prototype of second callback.
3310 * c-ada-spec.c (cpp_check): New global variable.
3311 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3312 (print_generic_ada_decl): Likewise.
3313 (has_static_fields): Change return type to bool and add guard.
3314 (has_nontrivial_methods): New predicate.
3315 (is_tagged_type): Change return type to bool.
3316 (separate_class_package): Call has_nontrivial_methods.
3317 (pp_ada_tree_identifier): Minor tweaks.
3318 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3319 (dump_ada_array_domains): Likewise.
3320 (dump_ada_array_type): Likewise.
3321 (dump_template_types): Remove cpp_check parameter and do not pass it to
3322 dump_generic_ada_node.
3323 (dump_ada_template): Likewise.
3324 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3326 (print_ada_methods): Change return type to integer. Remove cpp_check
3327 parameter and do not pass it down.
3328 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3329 dump_generic_ada_node.
3330 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3332 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3333 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3334 value of print_ada_methods.
3335 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3336 Set cpp_check to it before invoking dump_ada_nodes.
3337 (dump_ada_specs): Likewise.
3339 2013-11-03 Marek Polacek <polacek@redhat.com>
3341 * c-ubsan.c: Don't include hash-table.h.
3342 (ubsan_instrument_vla): New function.
3343 * c-ubsan.h: Declare it.
3345 2013-10-31 David Malcolm <dmalcolm@redhat.com>
3347 Automated part of renaming of symtab_node_base to symtab_node.
3349 Patch autogenerated by rename_symtab.py from
3350 https://github.com/davidmalcolm/gcc-refactoring-scripts
3351 revision 58bb219cc090b2f4516a9297d868c245495ee622
3353 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3354 symtab_node_base to symtab_node.
3356 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3358 Implement C++14 digit separators.
3359 * c-lex.c (interpret_float): Remove digit separators from scratch string
3360 before building real literal.
3362 2013-10-30 Jakub Jelinek <jakub@redhat.com>
3364 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3366 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3368 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3370 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3372 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3373 (insert_cilk_frame): New prototype.
3374 (cilk_init_builtins): Likewise.
3375 (gimplify_cilk_spawn): Likewise.
3376 (c_cilk_install_body_w_frame_cleanup): Likewise.
3377 (cilk_detect_spawn_and_unwrap): Likewise.
3378 (cilk_set_spawn_marker): Likewise.
3379 (build_cilk_sync): Likewise.
3380 (build_cilk_spawn): Likewise.
3383 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3385 Patch autogenerated by refactor_symtab.py from
3386 https://github.com/davidmalcolm/gcc-refactoring-scripts
3387 revision 58bb219cc090b2f4516a9297d868c245495ee622
3389 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3390 to a true class hierarchy.
3391 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3393 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3395 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3397 2013-10-26 Jeff Law <law@redhat.com>
3399 * c-common.c (c_define_builtins): Remove mudflap support.
3400 * c.opt: Ignore and warn for mudflap options.
3402 2013-10-24 Tobias Burnus <burnus@net-b.de>
3405 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3406 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3408 2013-10-23 Jason Merrill <jason@redhat.com>
3410 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3412 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3414 * c-common.h (omp_clause_mask::operator !=): New method.
3415 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3416 instead of if (mask & something) tests everywhere.
3418 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3419 201307 instead of 201107.
3420 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3421 (c_common_attribute_table): Add "omp declare target" and
3422 "omp declare simd" attributes.
3423 (handle_omp_declare_target_attribute,
3424 handle_omp_declare_simd_attribute): New functions.
3425 * c-omp.c: Include c-pragma.h.
3426 (c_finish_omp_taskgroup): New function.
3427 (c_finish_omp_atomic): Add swapped argument, if true,
3428 build the operation first with rhs, lhs arguments and use NOP_EXPR
3430 (c_finish_omp_for): Add code argument, pass it down to make_code.
3431 (c_omp_split_clauses): New function.
3432 (c_split_parallel_clauses): Removed.
3433 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3434 c_omp_declare_simd_clauses_to_decls): New functions.
3435 * c-common.h (omp_clause_mask): New type.
3436 (OMP_CLAUSE_MASK_1): Define.
3437 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3438 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3439 omp_clause_mask::operator |, omp_clause_mask::operator &,
3440 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3441 omp_clause_mask::operator ==): New methods.
3442 (enum c_omp_clause_split): New.
3443 (c_finish_omp_taskgroup): New prototype.
3444 (c_finish_omp_atomic): Add swapped argument.
3445 (c_finish_omp_for): Add code argument.
3446 (c_omp_split_clauses): New prototype.
3447 (c_split_parallel_clauses): Removed.
3448 (c_omp_declare_simd_clauses_to_numbers,
3449 c_omp_declare_simd_clauses_to_decls): New prototypes.
3450 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3451 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3452 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3453 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3454 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3455 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3456 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3457 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3458 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3459 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3460 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3461 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3462 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3463 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3464 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3465 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3466 PRAGMA_OMP_CLAUSE_UNIFORM.
3468 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
3470 PR tree-optimization/20318
3471 * c-common.c (handle_returns_nonnull_attribute): New function.
3472 (c_common_attribute_table): Add returns_nonnull.
3474 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
3477 * c.opt (fcheck-new): Move to common.opt.
3479 2013-09-25 Marek Polacek <polacek@redhat.com>
3480 Jakub Jelinek <jakub@redhat.com>
3483 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3484 an expression if we can prove it is correct.
3485 (ubsan_instrument_division): Likewise. Remove unnecessary
3488 2013-09-18 Marek Polacek <polacek@redhat.com>
3491 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3493 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3495 2013-09-14 Iain Sandoe <iain@codesourcery.com>
3498 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3499 fobjc-gc, freplace-objc-classes): Accept for LTO.
3501 2013-09-13 Jacek Caban <jacek@codeweavers.com>
3503 * c-target.def: New hook
3505 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3508 * c.opt (Wdelete-incomplete): Add.
3510 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3512 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3513 (vector_types_compatible_elements_p): New function.
3514 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3516 (vector_types_compatible_elements_p): Declare.
3518 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3520 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3521 a virtual member function.
3522 (pp_simple_type_specifier): Remove.
3523 (pp_c_type_specifier): Likewise.
3524 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3525 Rename from pp_c_type_specifier. Adjust.
3526 (c_pretty_printer::c_pretty_printer): Do not assign to
3527 simple_type_specifier.
3529 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3531 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3533 (c_pretty_printer::storage_class_specifier): Likewise.
3534 (c_pretty_printer::initializer): Likewise.
3535 (pp_declaration): Remove.
3536 (pp_declaration_specifiers): Likewise.
3537 (pp_abstract_declarator): Likewise.
3538 (pp_declarator): Likewise.
3539 (pp_type_id): Likewise.
3540 (pp_statement): Likewise.
3541 (pp_constant): Likewise.
3542 (pp_id_expression): Likewise.
3543 (pp_primary_expression): Likewise.
3544 (pp_unary_expression): Likewise.
3545 (pp_multiplicative_expression): Likewise.
3546 (pp_conditional_expression): Likewise.
3547 (pp_assignment_expression): Likewise.
3548 (pp_expression): Likewise.
3549 (pp_c_type_id): Likewise.
3550 (pp_c_storage_class_specifier): Likewise.
3551 * c-pretty-print.c (pp_c_type_cast): Tidy.
3552 (pp_c_pointer): Likewise.
3553 (pp_c_type_specifier): Likewise.
3554 (pp_c_parameter_type_list): Likewise.
3555 (pp_c_function_definition): Likewise.
3556 (pp_c_init_declarator): Likewise.
3557 (pp_c_initializer_list): Likewise.
3558 (pp_c_constructor_elts): Likewise.
3559 (c_pretty_printer::direct_abstract_declarator): Likewise.
3560 (c_pretty_printer::declaration_specifiers): Likewise.
3561 (c_pretty_printer::primary_expression): Likewise.
3562 (c_pretty_printer::postfix_expression): Likewise.
3563 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3564 (c_pretty_printer::storage_class_specifier): Rename from
3565 pp_c_storage_class_specifier.
3566 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3567 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3568 storage_class_specifier, initializer, offset_list, flags.
3570 2013-08-30 Marek Polacek <polacek@redhat.com>
3572 * c-ubsan.c: New file.
3573 * c-ubsan.h: New file.
3575 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3577 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3579 (c_pretty_printer::declaration_specifiers): Likewise.
3580 (c_pretty_printer::declarator): Likewise.
3581 (c_pretty_printer::abstract_declarator): Likewise.
3582 (c_pretty_printer::direct_abstract_declarator): Likewise.
3583 (c_pretty_printer::direct_declarator): Likewise.
3584 (c_pretty_printer::function_specifier): Likewise.
3585 (pp_declaration): Adjust.
3586 (pp_declaration_specifiers): Likewise.
3587 (pp_abstract_declarator): Likewise.
3588 (pp_direct_declarator): Likewise.
3589 (pp_function_specifier): Likewise.
3590 (pp_direct_abstract_declarator): Remove as unused.
3591 (pp_c_declaration): Remove.
3592 (pp_c_declaration_specifiers): Likewise.
3593 (pp_c_declarator): Likewise.
3594 (pp_c_direct_declarator): Likewise.
3595 (pp_c_function_specifier): Likewise.
3596 (pp_c_direct_abstract_declarator): Likewise.
3597 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3598 from pp_c_abstract_declarator. Adjust.
3599 (c_pretty_printer::direct_abstract_declarator): Rename from
3600 pp_c_direct_abstract_declarator. Adjust.
3601 (c_pretty_printer::function_specifier): Rename from
3602 pp_c_function_specifier. Adjust.
3603 (c_pretty_printer::declaration_specifiers): Rename from
3604 pp_c_declaration_specifiers. Adjust.
3605 (c_pretty_printer::direct_declarator): Rename from
3606 pp_c_direct_declarator. Adjust.
3607 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3608 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3609 (c_pretty_printer::c_pretty_printer): Do not assign to
3610 declaration, declaration_specifiers, declarator,
3611 direct_declarator, direct_abstract_declarator, function_specifier.
3613 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3615 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3616 virtual member function.
3617 (c_pretty_printer::multiplicative_expression): Likewise.
3618 (c_pretty_printer::conditional_expression): Likewise.
3619 (c_pretty_printer::assignment_expression): Likewise.
3620 (c_pretty_printer::expression): Likewise.
3621 (pp_unary_expression): Adjust.
3622 (pp_multiplicative_expression): Likewise.
3623 (pp_assignment_expression): Likewise.
3624 (pp_conditional_expression): Likewise.
3625 (pp_expression): Likewise.
3626 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3627 from pp_c_unary_expression. Adjust.
3628 (c_pretty_printer::multiplicative_expression): Rename from
3629 pp_c_multiplicative_expression. Adjust.
3630 (c_pretty_printer::conditional_expression): Rename from
3631 pp_c_conditional_expression. Adjust.
3632 (c_pretty_printer::assignment_expression): Rename from
3633 pp_c_assignment_expression. Adjust.
3634 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3635 (c_pretty_printer::c_pretty_printer): Do not assign to
3636 unary_expression, multiplicative_expression,
3637 conditional_expression, expression.
3639 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3641 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3642 virtual member function.
3643 (pp_postfix_expression): Adjust.
3644 (pp_c_postfix_expression): Remove.
3645 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3646 from pp_c_postfix_expression. Adjust.
3647 (c_pretty_printer::c_pretty_printer): Do not assign to
3650 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3652 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3653 virtua member function.
3654 (pp_primary_expression): Adjust.
3655 (pp_c_primary_expression): Remove.
3656 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3657 from pp_c_primary_expression. Adjust.
3658 (pp_c_initializer_list): Use pp_primary_expression.
3659 (c_pretty_printer::c_pretty_printer): Do not assign to
3662 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3664 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3665 * c-pretty-print.c (M_): Remove.
3666 (c_pretty_printer::translate_string): Define.
3667 (pp_c_type_specifier): Use it.
3668 (pp_c_primary_expression): Likewise.
3669 (pp_c_expression): Likewise.
3671 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3673 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3675 (pp_c_id_expression): Remove.
3676 (pp_id_expression): Adjust.
3677 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3678 pp_c_id_expression. Adjust.
3679 (pp_c_postfix_expression): Use pp_id_expression.
3680 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3682 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3684 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3686 (pp_constant): Adjust.
3687 (pp_c_constant): Remove.
3688 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3689 pp_c_constant. Adjust.
3691 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3692 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3694 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3696 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3697 (c_pretty_printer::c_pretty_printer): Declare.
3698 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3699 c_pretty_printer_init. Adjust.
3700 (print_c_tree): Do not call c_pretty_printer_init.
3701 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3703 2013-08-09 Arnaud Charlet <charlet@adacore.com>
3705 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3707 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3710 * c-common.c (pointer_int_sum): Add bool parameter.
3711 * c-common.h (pointer_int_sum): Adjust declaration.
3713 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3715 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3716 c_pretty_printer variable.
3718 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3720 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3722 (pp_c_base): Likewise. Adjust users.
3723 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3724 (pp_c_whitespace): Do not call pp_base.
3725 (pp_c_left_paren): Likewise.
3726 (pp_c_right_paren): Likewise.
3727 (pp_c_left_brace): Likewise.
3728 (pp_c_right_brace): Likewise.
3729 (pp_c_left_bracket): Likewise.
3730 (pp_c_right_bracket): Likewise.
3731 (pp_c_dot): Likewise.
3732 (pp_c_ampersand): Likewise.
3733 (pp_c_star): Likewise.
3734 (pp_c_arrow): Likewise.
3735 (pp_c_semicolon): Likewise.
3736 (pp_c_complement): Likewise.
3737 (pp_c_exclamation): Likewise.
3738 (pp_c_direct_declarator): Likewise.
3739 (pp_c_ws_string): Likewise.
3740 (pp_c_identifier): Likewise.
3741 (pp_c_statement): Likewise.
3742 (print_c_tree): Likewise.
3744 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3747 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3748 provide useful error strings.
3750 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3752 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3753 printer functions instead of pp_string or operators and punctuators.
3754 (dump_generic_ada_node): Likewise.
3755 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3756 (pp_c_relational_expression): Likewise.
3757 (pp_c_logical_or_expression): Likewise.
3759 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3761 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3762 functions instead of pp_character.
3763 (pp_ada_tree_identifier): Likewise.
3764 (dump_ada_double_name): Likewise.
3765 (dump_ada_function_declaration): Likewise.
3766 (dump_ada_array_domains): Likewise.
3767 (dump_template_types): Likewise.
3768 (dump_generic_ada_node): Likewise.
3769 (print_ada_declaration): Likewise.
3770 (print_ada_struct_decl): Likewise.
3771 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3773 2013-07-23 Tom Tromey <tromey@redhat.com>
3775 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3776 * c-common.c (c_common_reswords): Add _Generic.
3778 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
3780 * c-common.c: Fix typos.
3781 * c-common.h: Likewise.
3783 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
3786 * c-common.c (c_common_attribute_table): Add warn_unused.
3787 (handle_warn_unused_attribute): New.
3789 2013-07-10 Jakub Jelinek <jakub@redhat.com>
3791 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3792 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3794 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3797 * c.opt: Add Wconditionally-supported.
3799 2013-07-08 Graham Stott <graham.stott@btinternet.com>
3801 * array-notation-common.c (length_mismatch_in_expr_p): Delete
3802 unused variables l_length and l_node.
3804 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
3807 * c-common.c (complete_array_type): Delay folding first index
3808 like other indices. When folding, check for index overflow.
3810 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
3813 * c-common.h (c_build_vec_perm_expr): New complain argument.
3814 * c-common.c (c_build_vec_perm_expr): Likewise.
3815 Use save_expr also in C++.
3817 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3819 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3820 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3821 * c-opts.c (c_common_post_options): Likewise.
3823 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3825 * array-notation-common.c (length_mismatch_in_expr): Changed the
3826 parameter type's from a dynamic array to a vec_tree. Also removed
3827 the size parameters.
3828 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3831 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3833 * c-common.h (struct cilkplus_an_parts): New structure.
3834 (struct cilkplus_an_loop_parts): Likewise.
3835 (cilkplus_extract_an_triplets): New prototype.
3836 (fix_sec_implicit_args): Likewise.
3837 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3838 (fix_sec_implicit_args): Likewise.
3840 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3842 * array-notation-common.c (find_inv_trees): Removed an unwanted
3844 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3845 enum rid to enum tree_code.
3847 2013-06-11 Jan Hubicka <jh@suse.cz>
3849 * c-common.c (handle_alias_ifunc_attribute): Do not set
3850 DECL_EXTERNAL for weakref variables.
3851 * c-pragma.c (handle_pragma_weak): Make sure aliases
3852 are not declared as external.
3854 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3856 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3857 function from c/c-array-notation.c.
3858 (is_cilkplus_reduce_builtin): Likewise.
3859 (find_rank): Likewise.
3860 (extract_array_notation_exprs): Likewise.
3861 (replace_array_notations): Likewise.
3862 (find_inv_trees): Likewise.
3863 (replace_inv_trees): Likewise.
3864 (contains_array_notation_expr): Likewise.
3865 (find_correct_array_notation_type): Likewise.
3866 * c-common.h (struct inv_list): Moved this struct from the file
3867 c/c-array-notation.c and added a new field called additional tcodes.
3868 (length_mismatch_in_expr_p): New prototype.
3869 (is_cilkplus_reduce_builtin): Likewise.
3870 (find_rank): Likewise.
3871 (extract_array_notation_exprs): Likewise.
3872 (replace_array_notation): Likewise.
3873 (find_inv_trees): Likewise.
3874 (replace_inv_trees): Likewise.
3875 (find_correct_array_notation_type): Likewise.
3877 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3879 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3880 function array_notation_init_builtins is called.
3881 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3882 * c-common.def (ARRAY_NOTATION_REF): New tree.
3883 * c-common.h (build_array_notation_expr): New function declaration.
3884 (build_array_notation_ref): Likewise.
3885 (extract_sec_implicit_index_arg): New extern declaration.
3886 (is_sec_implicit_index_fn): Likewise.
3887 (ARRAY_NOTATION_CHECK): New define.
3888 (ARRAY_NOTATION_ARRAY): Likewise.
3889 (ARRAY_NOTATION_START): Likewise.
3890 (ARRAY_NOTATION_LENGTH): Likewise.
3891 (ARRAY_NOTATION_STRIDE): Likewise.
3892 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3894 (pp_c_expression): Likewise.
3895 * c.opt (flag_enable_cilkplus): New flag.
3896 * array-notation-common.c: New file.
3898 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3901 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3903 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3905 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3908 2013-05-07 Han Shen <shenhan@google.com>
3910 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3912 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3914 * c-common.c (check_user_alignment): Emit error for negative values.
3916 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3918 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3920 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3922 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3923 __GXX_EXPERIMENTAL_CXX1Y__.
3925 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3926 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3928 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3929 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3930 to simply use OPT_Wpointer_arith.
3931 (c_sizeof_or_alignof_type): Likewise.
3933 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3935 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3937 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3939 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3940 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3943 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3945 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3947 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3949 * c-common.c (pointer_int_sum): Remove dead code.
3951 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3954 * c-common.c (handle_optimize_attribute): Don't call
3955 save_optabs_if_changed.
3957 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3960 * c-pch.c (pch_init): Free target_validity at the end.
3962 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3964 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3966 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3967 Jakub Jelinek <jakub@redhat.com>
3970 * c-common.c (handle_no_sanitize_address_attribute): New function.
3971 (c_common_attribute_table): Add no_sanitize_address attribute.
3972 (handle_no_address_safety_analysis_attribute): Add
3973 no_sanitize_address attribute, not no_address_safety_analysis
3976 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3979 * c-common.c (handle_optimize_attribute): Call
3980 save_optabs_if_changed.
3982 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3983 Steven Bosscher <steven@gcc.gnu.org>
3986 * c-opts.c (c_common_post_options): If debug info is enabled
3987 and non-dwarf*, refuse to load PCH files and when writing PCH
3990 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3993 * c-common.c (handle_error_attribute): Fix condition.
3995 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3998 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4000 2013-01-18 Jason Merrill <jason@redhat.com>
4003 * c.opt (-fextern-tls-init): New.
4004 * c-opts.c (c_common_post_options): Handle it.
4006 2013-01-09 Jakub Jelinek <jakub@redhat.com>
4009 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4010 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4011 and is either negative or bigger or equal to type precision
4012 of the first operand.
4014 2012-12-03 Marek Polacek <polacek@redhat.com>
4017 * c-common.c (check_user_alignment): Swap order of tests,
4018 check TREE_CODE first.
4020 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4023 * c-common.h (overflow_type): New enum.
4024 (build_userdef_literal): Add overflow_type argument.
4025 (tree_userdef_literal): Add overflow_type.
4026 (USERDEF_LITERAL_OVERFLOW): New access macro.
4027 * c-common.c (build_userdef_literal): Add overflow_type
4029 * c-lex.c (c_lex_with_flags): Add overflow_type to
4030 build_userdef_literal calls.
4031 (interpret_integer, interpret_float): Add overflow_type argument.
4033 2012-11-28 Richard Biener <rguenther@suse.de>
4036 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4037 here and use a type with proper overflow behavior for types that would
4038 need to be promoted for the arithmetic.
4040 2012-11-23 Jakub Jelinek <jakub@redhat.com>
4043 * c-common.c (handle_no_address_safety_analysis_attribute): New
4045 (c_common_attribute_table): Add no_address_safety_analysis.
4047 2012-11-16 Simon Baldwin <simonb@google.com>
4049 * c.opt: Add f[no-]canonical-system-headers.
4050 * c-opts.c (c_common_handle_option): Handle
4051 OPT_fcanonical_system_headers.
4053 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4056 * c-opts.c (c_common_handle_option): Set new flags.
4057 * c.opt: Describe new flags.
4059 2012-11-09 Jason Merrill <jason@redhat.com>
4061 * c.opt (Wabi-tag): New.
4063 2012-11-09 Andi Kleen <ak@linux.intel.com>
4066 * c-common.c (get_atomic_generic_size): Mask with
4069 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4072 * c.opt (Wformat): Make it Alias Wformat=1.
4073 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4074 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4076 (Wformat=): RejectNegative. Use LangEnabledBy.
4077 (Wnonnull): Use LangEnabledBy.
4078 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4079 * c-format.c (set_Wformat): Delete.
4080 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4081 (maybe_read_dollar_number): Likewise.
4082 (avoid_dollar_number): Likewise.
4083 (finish_dollar_format_checking): Likewise.
4084 (check_format_info): Likewise.
4085 (check_format_info_main): Likewise.
4086 (check_format_types): Likewise.
4087 (format_type_warning): Likewise.
4088 * c-common.c (int): Likewise.
4089 (check_function_sentinel): Likewise.
4090 * c-common.h (warn_format,set_Wformat): Do not declare here.
4092 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4095 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4096 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4098 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4100 (Wvariadic-macros): Init(1).
4101 * c-opts.c (c_common_handle_option): Do not handle them
4103 (c_common_post_options): Likewise.
4104 (sanitize_cpp_opts): warn_unused_macros is now
4105 cpp_warn_unused_macros.
4106 (push_command_line_include): Likewise.
4107 * c-common.c (warn_unknown_pragmas): Do not define.
4108 * c-common.h (warn_unknown_pragmas): Do not declare.
4110 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4113 * c-common.c (conversion_warning): Handle conditional expressions.
4115 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4118 * c.opt (Wreturn_local_addr): Define new option.
4120 2012-10-25 Jason Merrill <jason@redhat.com>
4122 * c.opt (Wvirtual-move-assign): New.
4124 * c.opt (Winherited-variadic-ctor): New.
4126 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
4129 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4131 2012-10-23 Joseph Myers <joseph@codesourcery.com>
4133 * c-common.h (pch_cpp_save_state): Declare.
4134 * c-target.def (c_preinclude): New hook.
4135 * c-opts.c (done_preinclude): New.
4136 (push_command_line_include): Handle default preincluded header.
4137 (cb_file_change): Call pch_cpp_save_state when calling
4138 push_command_line_include.
4139 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4140 (pch_cpp_save_state): New.
4141 (pch_init): Call pch_cpp_save_state conditionally, instead of
4142 calling cpp_save_state.
4144 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4148 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4149 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4150 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4151 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4152 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4153 * c-opts.c (c_common_handle_option): Remove explicit handling from
4155 (c_common_post_options): Likewise.
4157 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4159 * c-ada-spec.c (LOCATION_COL): Delete.
4160 (compare_location): New function.
4161 (compare_node): Use it.
4162 (compare_comment): Likewise.
4164 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4168 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4169 * c-opts.c (c_common_handle_option): Do not set them here. Add
4171 (c_common_post_options): Likewise.
4173 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4175 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4176 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4177 Remove POINTER_TYPE handling, add large unsigned handling and use
4178 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4180 2012-10-12 Jakub Jelinek <jakub@redhat.com>
4183 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4184 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4185 locs and array of 3 trees instead of just single loc and single
4186 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4187 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4188 For *cmp* builtins that take two sources strings report warnings
4189 about first and second source, not about destination and source.
4191 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
4194 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4196 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4198 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4199 declaring something coming from another file.
4201 2012-10-10 Arnaud Charlet <charlet@adacore.com>
4204 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4206 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4209 * c-common.c (warn_about_parentheses): Add location_t parameter;
4210 use EXPR_LOC_OR_LOC.
4211 * c-common.h: Update declaration.
4213 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
4216 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4217 more operations. Make error messages optional.
4218 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4219 (scalar_to_vector): Declare.
4221 2012-10-08 Jason Merrill <jason@redhat.com>
4223 * c-common.c (c_common_reswords): Add thread_local.
4225 2012-10-08 Dodji Seketeli <dodji@redhat.com>
4227 PR c++/53528 C++11 attribute support
4228 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4230 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4232 (handle_aligned_attribute): In choose strictest alignment
4233 among many. Use new check_cxx_fundamental_alignment_constraints.
4234 (handle_transparent_union_attribute): In c++11 attribute syntax,
4235 don't look through typedefs.
4237 2012-10-04 Arnaud Charlet <charlet@adacore.com>
4239 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4240 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4243 2012-09-25 Dehao Chen <dehao@google.com>
4246 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
4247 map when read in the pch.
4249 2012-09-18 Arnaud Charlet <charlet@adacore.com>
4251 * c-ada-spec.c: Style fixes.
4253 2012-09-18 Thomas Quinot <quinot@adacore.com>
4255 * c.opt (-fada-spec-parent): Define new command line switch.
4256 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4257 is specified, generate binding spec as a child of the specified unit.
4259 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4260 Manuel López-Ibáñez <manu@gcc.gnu.org>
4263 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4265 2012-08-23 Arnaud Charlet <charlet@adacore.com>
4267 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4268 for pointers, and add missing Convention C pragma.
4269 (print_ada_struct_decl): Add missing aliased keyword.
4270 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4272 2012-08-17 Jakub Jelinek <jakub@redhat.com>
4274 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4275 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4276 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4277 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4278 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4280 2012-08-10 Richard Guenther <rguenther@suse.de>
4282 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4284 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4286 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4287 instead of separate pp_newline and pp_flush.
4288 (print_c_tree): Likewise.
4290 2012-07-26 Richard Henderson <rth@redhat.com>
4292 * c-common.c (handle_hot_attribute): Allow labels.
4293 (handle_cold_attribute): Likewise.
4295 2012-07-20 Jakub Jelinek <jakub@redhat.com>
4298 * c-common.c (check_function_nonnull): Handle multiple nonnull
4299 attributes properly.
4301 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4303 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4304 * c-ada-spec.c: Likewise.
4305 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4307 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4309 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4310 Remove code conditional on it.
4312 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4314 * c-gimplify.c: Do not include basic-block.h.
4315 * c-common.c: Do not include linfuncs.h.
4317 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4319 * c-common.h: Include tree.h.
4321 2012-07-02 Jason Merrill <jason@redhat.com>
4324 * c-common.c (get_priority): Call default_conversion.
4326 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
4328 * c-pch.c (c_common_write_pch): Remove unused variables.
4330 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4332 * cppspec.c: Moved from gcc/ to here.
4334 2012-06-27 Kai Tietz <ktietz@redhat.com>
4336 PR preprocessor/37215
4337 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4339 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4341 * c-common.h (c_common_print_pch_checksum): Remove.
4342 * c-pch.c: Do not include output.h.
4343 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4344 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4345 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4346 (struct c_pch_header): Remove.
4347 (get_ident): Update gpch version.
4348 (pch_init): Do not print executable_checksum to asm_out_file.
4349 Do not fail if there is no asm_out_file to read back from. Set
4350 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4351 (c_common_write_pch): Verify that nothing was written to asm_out_file
4352 since pch_init was called. Do not write a c_pch_header, and do not
4353 copy from asm_out_file to the PCH.
4354 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4355 the content of asm_out_file from the PCH.
4356 (c_common_print_pch_checksum): Remove.
4357 * c-opts.c (c_common_init): Print out executable_checksum directly.
4359 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4361 * c-target.def (objc_declare_unresolved_class_reference,
4362 objc_declare_class_definition): Add new hooks.
4364 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4366 * c-lex.c: Do not include output.h.
4367 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4368 Remove uses of ASM_OUTPUT_IDENT.
4370 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
4373 * c-common.h (c_build_vec_perm_expr): Move decl here.
4374 * c-common.c (c_build_vec_perm_expr): Move definition
4377 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4379 * c.opt (fconserve-space): Turn into a no-op.
4381 2012-06-04 Sterling Augustine <saugustine@google.com>
4383 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4384 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4385 both the start and end of the function.
4387 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4389 * c-common.c: Do not include output.h.
4390 * c-pragma.c: Likewise.
4392 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4394 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4395 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4396 (lang_decl_name): Handle namespace decls.
4398 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4400 * c-ada-spec.c: Do not include output.h.
4401 * c-semantics.c: Likewise.
4403 2012-05-29 Joseph Myers <joseph@codesourcery.com>
4405 * c-common.c: Fix typo.
4407 2012-05-29 Michael Matz <matz@suse.de>
4409 * c-common.h (c_expand_decl): Remove prototype.
4411 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4413 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4414 * c-opts.c (c_common_handle_option): Remove code handling
4415 warn_missing_braces.
4417 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4420 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4423 2012-05-22 Dodji Seketeli <dodji@redhat.com>
4426 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4428 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4430 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4431 * c-opts.c (c_common_handle_option): Do not handle explicitly
4432 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4434 2012-05-16 Dodji Seketeli <dodji@redhat.com>
4436 PR preprocessor/7263
4437 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4438 to cpp_classify_number. For diagnostics, use the precise location
4439 instead of the global input_location.
4441 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4444 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4446 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4448 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
4450 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4453 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4454 Wreorder): Use LangEnabledBy.
4455 * c-opts.c (c_common_handle_option): Do not enable them
4456 explicitly. Call lang-specific generated functions.
4457 (c_common_post_options): Do not set them here.
4459 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4461 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4462 Wmissing-field-initializers,Wmissing-parameter-type,
4463 Wold-style-declaration,Woverride-init): Use EnabledBy.
4464 * c-opts.c (c_common_post_options): Do not set here explicitly.
4466 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4469 * c-opts.c (c_common_handle_option): Use handle_generated_option
4470 to enable sub-options.
4472 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4475 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4477 2012-05-10 Richard Guenther <rguenther@suse.de>
4479 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4480 adjust commentary about TYPE_IS_SIZETYPE types.
4482 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4485 * c-common.c (warn_logical_operator): Check that argument of
4486 integer_zerop is not NULL.
4488 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4491 * c-common.c (warn_logical_operator): Do not warn if either side
4492 is already true or false.
4494 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4497 * c-common.c (expr_original_type): New.
4498 (shorten_compare): Do not warn for enumeration types.
4500 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4502 * c.opt (fpermissive): Add Var(flag_permissive).
4504 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
4507 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4508 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4510 2012-04-30 Dodji Seketeli <dodji@redhat.com>
4512 Add -Wvarargs option
4513 * c.opt (Wvarargs): Define new option.
4515 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4517 * c-common.c (check_function_arguments): Replace
4518 Wmissing-format-attribute with Wsuggest-attribute=format.
4520 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4522 * c.opt (Wsuggest-attribute=format): New. Alias of
4523 Wmissing-format-attribute.
4524 * c-format.c (decode_format_type): Replace
4525 Wmissing-format-attribute with Wsuggest-attribute=format.
4526 (check_function_format): Likewise.
4528 2012-04-27 Ollie Wild <aaw@google.com>
4530 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4531 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4532 * c.opt: Add Wliteral-suffix.
4534 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4537 * c.opt (Wpedantic): New.
4538 (pedantic): Alias Wpedantic.
4539 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4540 (c_common_post_options): Likewise.
4541 (sanitize_cpp_opts): Likewise.
4542 * c-lex.c (interpret_float): Likewise.
4543 * c-format.c (check_format_types): Likewise.
4544 * c-common.c (pointer_int_sum): Likewise.
4545 (c_sizeof_or_alignof_type): Likewise.
4546 (c_add_case_label): Likewise.
4547 (c_do_switch_warnings): Likewise.
4548 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4550 2012-04-15 Jason Merrill <jason@redhat.com>
4553 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4554 (C_STD_NAME): Distinguish between C++98 and C++11.
4556 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4559 * c-common.h (uint16_type_node): Rename into...
4560 (c_uint16_type_node): ...this.
4561 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4562 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4564 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4566 * c-common.c (warn_if_unused_value): Move definition to here.
4567 * c-common.h (warn_if_unused_value): Move declaration to here.
4569 2012-03-23 William Bader <williambader@hotmail.com>
4571 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4573 2012-03-20 Jason Merrill <jason@redhat.com>
4575 * c-common.h (enum cxx_dialect): Add cxx1y.
4576 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4578 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4579 * c-opts.c (c_common_post_options): Likewise.
4580 (set_std_cxx1y): New.
4581 (c_common_handle_option): Call it.
4582 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4584 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4587 * c.opt ([Wuseless-cast]): Add.
4589 2012-03-16 Richard Guenther <rguenther@suse.de>
4591 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4593 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4596 * c.opt (ftemplate-backtrace-limit) Add.
4598 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4600 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4602 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4603 (init_pragma): Don't register extern_prefix.
4605 2012-03-12 Richard Guenther <rguenther@suse.de>
4607 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4608 (builtin_type_for_size): Likewise.
4610 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4613 * c-common.c (sync_resolve_params): Don't decide whether to convert
4614 or not based on TYPE_SIZE comparison, convert whenever arg_type
4615 is unsigned INTEGER_TYPE.
4617 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4620 * c.opt ([Wunused-local-typedefs]): Fix description.
4622 2012-01-24 Mike Stump <mikestump@comcast.net>
4624 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4627 2012-01-18 Richard Guenther <rguenther@suse.de>
4629 * c-opts.c (c_common_post_options): Reset LTO flags if
4630 we are about to generate a PCH.
4632 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4635 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4636 use pp_unsigned_wide_integer.
4638 2012-01-10 Richard Guenther <rguenther@suse.de>
4641 * c-opts.c (c_common_handle_option): Move -Werror handling
4642 to language independent code.
4644 2012-01-05 Richard Guenther <rguenther@suse.de>
4647 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4650 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4653 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4654 of array types with an unknown bound.
4656 2011-12-20 Joseph Myers <joseph@codesourcery.com>
4658 * c-common.c (flag_isoc99): Update comment to refer to C11.
4659 (flag_isoc1x): Change to flag_isoc11.
4660 * c-common.h (flag_isoc99): Update comment to refer to C11.
4661 (flag_isoc1x): Change to flag_isoc11.
4662 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4664 * c-opts.c (set_std_c1x): Change to set_std_c11.
4665 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4667 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4668 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4669 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4671 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4672 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4673 (std=gnu1x): Make alias of std=gnu11.
4675 2011-12-19 Jason Merrill <jason@redhat.com>
4678 * c-common.c (handle_transparent_union_attribute): Check the first
4679 field if the type is complete.
4681 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4684 * c-common.c (RID_IS_FINAL): Add.
4685 * c-common.h (RID_IS_FINAL): Add.
4687 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4689 * c.opt (fgnu-runtime): Provide full description.
4690 (fnext-runtime): Likewise.
4691 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4693 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
4695 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4696 predefines in one place. Add LOCK_FREE predefines.
4697 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4700 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
4703 * c-common.c (get_atomic_generic_size): Check for various error
4705 (resolve_overloaded_atomic_exchange,
4706 resolve_overloaded_atomic_compare_exchange,
4707 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4708 error_mark_node for error conditions.
4710 2011-11-08 Richard Guenther <rguenther@suse.de>
4715 2011-11-07 Richard Henderson <rth@redhat.com>
4716 Aldy Hernandez <aldyh@redhat.com>
4717 Torvald Riegel <triegel@redhat.com>
4719 Merged from transactional-memory.
4721 * c-common.c (handle_tm_wrap_attribute,
4722 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4723 (struct c_common_reswords): Added __transaction* keywords.
4724 (struct c_common_attribute_table): Added transaction* and tm_regparm
4726 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4728 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4729 find_tm_attribute): Declare.
4731 2011-11-07 Jason Merrill <jason@redhat.com>
4734 * c-common.c, c-common.h: Revert yesterday's changes.
4736 2011-11-06 Jason Merrill <jason@redhat.com>
4739 * c-common.c (decl_has_visibility_attr): Split out from...
4740 (c_determine_visibility): ...here.
4741 * c-common.h: Declare it.
4743 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4745 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4746 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4748 (check_user_alignment): New. Split out of
4749 handle_aligned_attribute. Disallow integer constants with
4750 noninteger types. Conditionally allow zero.
4751 (handle_aligned_attribute): Use check_user_alignment.
4752 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4754 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
4755 Richard Henderson <rth@redhat.com>
4757 Merged from cxx-mem-model.
4759 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
4760 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
4761 parameters that are the same type size.
4762 (get_atomic_generic_size): New. Find size of generic
4763 atomic function parameters and do typechecking.
4764 (add_atomic_size_parameter): New. Insert size into parameter list.
4765 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4766 either __atomic_exchange_n or external library call.
4767 (resolve_overloaded_atomic_compare_exchange): Restructure
4768 __atomic_compare_exchange to either _n variant or external library call.
4769 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
4770 __atomic_load_n or an external library call.
4771 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4772 __atomic_store_n or an external library call.
4773 (resolve_overloaded_builtin): Handle new __atomic builtins.
4775 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4778 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4779 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4780 <INDIRECT_REF>: Return the argument.
4781 <ARRAY_REF>: Remove special code for negative offset.
4782 Call fold_build_pointer_plus instead of size_binop.
4783 (fold_offsetof): Remove STOP_REF argument and adjust.
4784 * c-common.h (fold_offsetof_1): Declare.
4785 (fold_offsetof): Remove STOP_REF argument.
4787 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4790 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4791 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4792 Wnarrowing for C++0x and C++98.
4793 * c.opt ([Wnarrowing]): Update.
4795 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4798 * c.opt: Add Wzero-as-null-pointer-constant.
4800 2011-10-31 Jason Merrill <jason@redhat.com>
4802 * c.opt (-fdeduce-init-list): Off by default.
4805 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4806 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4808 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4810 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4813 * c.opt (fvisibility-inlines-hidden): Description change.
4815 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4817 Implement C++11 user-defined literals.
4818 * c-common.c (build_userdef_literal): New.
4819 * c-common.def: New tree code.
4820 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4821 * c-lex.c (interpret_float): Add suffix parm.
4822 (c_lex_with_flags): Build literal tokens.
4824 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4828 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4831 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4832 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4833 Wnarrowing for C++0x and C++98.
4834 * c.opt ([Wnarrowing]): Update.
4836 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4839 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4840 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4841 Wnarrowing for C++0x and C++98.
4842 * c.opt ([Wnarrowing]): Update.
4844 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4847 * c-common.c (conversion_warning): Remove code looking for
4848 artificial operands.
4850 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4853 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
4854 !NO_IMPLICIT_EXTERN_C.
4856 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
4858 * c-common.c (c_common_reswords): Add __bases,
4860 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4862 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4865 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4867 2011-10-15 Tom Tromey <tromey@redhat.com>
4868 Dodji Seketeli <dodji@redhat.com>
4870 * c.opt (fdebug-cpp): New option.
4871 * c-opts.c (c_common_handle_option): Handle the option.
4872 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4873 output stream in parameter. Factorized from ...
4874 (maybe_print_line): ... this. Dump location debug information when
4875 -fdebug-cpp is in effect.
4876 (print_line_1): New static function. Takes an output stream in
4877 parameter. Factorized from ...
4878 (print_line): ... here. Dump location information when -fdebug-cpp
4880 (scan_translation_unit): Dump location information when
4881 -fdebug-cpp is in effect.
4883 2011-10-15 Tom Tromey <tromey@redhat.com>
4884 Dodji Seketeli <dodji@redhat.com>
4886 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4888 * c-opts.c (c_common_handle_option)<case
4889 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4890 cases. Handle -ftrack-macro-expansion with and without argument.
4892 2011-10-15 Tom Tromey <tromey@redhat.com>
4893 Dodji Seketeli <dodji@redhat.com>
4895 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4896 (print_line, cb_define, do_line_change): Adjust to avoid touching
4897 the internals of struct line_map. Use the public API instead.
4898 * c-pch.c (c_common_read_pch): Likewise.
4899 * c-lex.c (fe_file_change): Likewise.
4901 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4904 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4906 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4909 * c-pretty-print.c (pp_c_floating_constant): Output
4910 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4912 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4914 * c-common.c (def_builtin_1): Delete old interface with two
4915 parallel arrays to hold standard builtin declarations, and replace
4916 it with a function based interface that can support creating
4917 builtins on the fly in the future. Change all uses, and poison
4918 the old names. Make sure 0 is not a legitimate builtin index.
4919 * c-omp.c (c_finish_omp_barrier): Ditto.
4920 (c_finish_omp_taskwait): Ditto.
4921 (c_finish_omp_flush): Ditto.
4923 2011-10-11 Tristan Gingold <gingold@adacore.com>
4925 * c.opt: (fallow-parameterless-variadic-functions): New.
4927 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4929 PR c++/33255 - Support -Wunused-local-typedefs warning
4930 * c-common.h (struct c_language_function::local_typedefs): New
4932 (record_locally_defined_typedef, maybe_record_typedef_use)
4933 (maybe_warn_unused_local_typedefs): Declare new functions.
4934 * c-common.c (record_locally_defined_typedef)
4935 (maybe_record_typedef_use)
4936 (maybe_warn_unused_local_typedefs): Define new functions.
4937 * c.opt: Declare new -Wunused-local-typedefs flag.
4939 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4942 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4945 2011-09-05 Richard Guenther <rguenther@suse.de>
4947 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4948 of integer_minus_one_node for empty array upper bounds.
4950 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4952 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4953 it's the first time it's being called on this main TU.
4955 2011-08-24 Richard Guenther <rguenther@suse.de>
4958 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4960 2011-08-22 Gabriel Charette <gchare@google.com>
4962 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4963 defined in cpp_init_builtins and c_cpp_builtins.
4965 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4967 * c-common.c (c_common_reswords): Add __builtin_complex.
4968 * c-common.h (RID_BUILTIN_COMPLEX): New.
4970 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4972 * c-common.c (c_common_reswords): Add _Noreturn.
4973 (keyword_is_function_specifier): Handle RID_NORETURN.
4974 * c-common.h (RID_NORETURN): New.
4976 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4978 * c-common.c (unsafe_conversion_p): New function. Check if it is
4979 unsafe to convert an expression to the type.
4980 (conversion_warning): Adjust, use unsafe_conversion_p.
4981 * c-common.h (unsafe_conversion_p): New function declaration.
4983 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4985 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4986 (c_finish_omp_taskyield): New prototype.
4987 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4988 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4989 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4990 or RHS1 have side-effects, evaluate those too in the right spot,
4991 if it is a decl and LHS is also a decl, error out if they
4993 (c_finish_omp_taskyield): New function.
4994 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4995 * c-pragma.c (omp_pragmas): Add taskyield.
4996 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4997 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4998 PRAGMA_OMP_CLAUSE_MERGEABLE.
5000 2011-07-25 Dodji Seketeli <dodji@redhat.com>
5002 * c-common.h (set_underlying_type): Remove parm name from
5005 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
5007 * c-pretty-print.h: Search c-common.h in c-family.
5009 2011-07-22 Jason Merrill <jason@redhat.com>
5012 * c.opt (Wnarrowing): New.
5015 * c-common.h: Declare c_linkage_bindings.
5016 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5019 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5020 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5021 as flag_isoc99 for 'restrict'.
5022 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5024 2011-07-21 Ian Lance Taylor <iant@google.com>
5027 * c-common.c (c_disable_warnings): New static function.
5028 (c_enable_warnings): New static function.
5029 (c_fully_fold_internal): Change local unused_p to bool. Call
5030 c_disable_warnings and c_enable_warnings rather than change
5031 c_inhibit_evaluation_warnings.
5033 2011-07-20 Jason Merrill <jason@redhat.com>
5035 PR c++/6709 (DR 743)
5036 PR c++/42603 (DR 950)
5037 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5038 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5039 (CPP_DECLTYPE): New.
5040 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5042 2011-07-19 Richard Guenther <rguenther@suse.de>
5044 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5045 * c-omp.c (c_finish_omp_for): Likewise.
5047 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5049 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5050 body on the next line.
5052 2011-07-08 Jason Merrill <jason@redhat.com>
5055 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5058 * c-common.c (c_apply_type_quals_to_decl): Don't check
5059 TYPE_NEEDS_CONSTRUCTING.
5061 2011-07-06 Richard Guenther <rguenther@suse.de>
5063 * c-common.c (c_common_nodes_and_builtins):
5064 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5066 2011-07-05 Richard Guenther <rguenther@suse.de>
5068 * c-common.c (c_common_nodes_and_builtins): Build all common
5071 2011-06-27 Jakub Jelinek <jakub@redhat.com>
5073 * c-common.h (c_tree_chain_next): New static inline function.
5075 * c-common.c (check_builtin_function_arguments): Handle
5076 BUILT_IN_ASSUME_ALIGNED.
5078 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
5080 * c-common.c: Add sync_ or SYNC__ to builtin names.
5081 * c-omp.c: Add sync_ or SYNC__ to builtin names.
5083 2011-06-20 Pierre Vittet <piervit@pvittet.com>
5085 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5087 (gen_pragma_handler): New union.
5088 (internal_pragma_handler): New type.
5089 (c_register_pragma_with_data)
5090 (c_register_pragma_with_expansion_and_data): New functions.
5092 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5093 (c_register_pragma, c_register_pragma_with_expansion)
5094 (c_invoke_pragma_handler): Changed to work with
5095 internal_pragma_handler.
5096 (c_register_pragma_with_data)
5097 (c_register_pragma_with_expansion_and_data): New functions.
5099 2011-06-14 Joseph Myers <joseph@codesourcery.com>
5101 * c-common.c: Include common/common-target.h.
5102 (handle_section_attribute): Use
5103 targetm_common.have_named_sections.
5104 * c-cppbuiltin.c: Include common/common-target.h.
5105 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5107 2011-06-10 Richard Guenther <rguenther@suse.de>
5109 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5110 to print a IDENTIFIER_NODE.
5112 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5113 Joseph Myers <joseph@codesourcery.com>
5115 * c.opt (fbuilding-libgcc): New option.
5116 * c-cppbuiltin.c (c_cpp_builtins): Define
5117 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5119 2011-06-07 Jason Merrill <jason@redhat.com>
5121 * c-common.c (max_tinst_depth): Lower default to 900.
5123 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5125 2011-06-07 Richard Guenther <rguenther@suse.de>
5127 * c-common.c (c_common_nodes_and_builtins): Do not set
5128 size_type_node or call set_sizetype.
5130 2011-06-07 Dodji Seketeli <dodji@redhat.com>
5133 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
5134 type when using pointer comparison to compare types.
5136 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5138 * c.opt: Add -Wdelete-non-virtual-dtor.
5139 * c-opts.c (c_common_handle_option): Include it in -Wall.
5141 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5146 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5148 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5151 2011-05-27 Jakub Jelinek <jakub@redhat.com>
5154 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5155 C++ don't call c_common_truthvalue_conversion on void type arms.
5157 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5159 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5160 (stmt_list_stack): Define.
5161 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5162 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5164 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5166 * c-common.c (warning_candidate_p): Check for BLOCKs.
5168 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5170 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5173 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5175 * c-common.c (def_fn_type): Remove extra va_end.
5177 2011-05-23 Jason Merrill <jason@redhat.com>
5180 * c-common.c (c_common_get_narrower): New.
5181 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5183 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5185 * c-common.h (check_function_arguments): Tweak prototype of
5186 check_function_arguments.
5187 * c-common.c (check_function_arguments): Likewise. Adjust
5188 calls to check_function_nonnull, check_function_format, and
5189 check_function_sentinel.
5190 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5191 separate attributes and typelist arguments. Use
5192 FOREACH_FUNCTION_ARGS to iterate over argument types.
5194 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5196 * c-common.c (c_common_reswords): Reorder.
5197 * c-common.h (rid): Likewise.
5199 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5201 * c-common.c (def_fn_type): Don't call build_function_type, call
5202 build_function_type_array or build_varargs_function_type_array
5204 (c_common_nodes_and_builtins): Likewise.
5206 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5208 * c-common.c (c_add_case_label): Omit the loc argument to
5210 * c-common.h (build_case_label): Remove.
5211 * c-semantics.c (build_case_label): Remove.
5213 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5215 * c-objc.h (objc_start_method_definition): Update prototype.
5216 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5218 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5220 * c-common.c (check_main_parameter_types): Reindent. Don't use
5221 TYPE_ARG_TYPES directly.
5222 (handle_nonnull_attribute): Likewise.
5223 (sync_resolve_params): Likewise.
5224 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5225 to check_format_string.
5226 (handle_format_attribute): Likewise.
5227 (check_format_string): Take a function type to examine instead of
5228 a type list. Use a function_arg_iterator to step through argument
5231 2011-05-04 Richard Guenther <rguenther@suse.de>
5233 * c-common.c (fix_string_type): Use size_int for index type bounds.
5234 (start_fname_decls): Do not pass NULL to build_int_cst.
5235 (c_init_attributes): Likewise.
5236 * c-lex.c (c_lex_with_flags): Likewise.
5238 2011-04-27 Jason Merrill <jason@redhat.com>
5240 * c-common.c (make_tree_vector_from_list): New.
5241 * c-common.h: Declare it.
5243 2011-04-26 Richard Guenther <rguenther@suse.de>
5245 PR preprocessor/48248
5246 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5247 for output size with -P.
5249 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5251 * c-common.c (struct c_common_resword): Add __underlying_type.
5252 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5254 2011-04-20 Jim Meyering <meyering@redhat.com>
5256 * c-format.c (init_dollar_format_checking): Remove useless
5259 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5261 * c-objc.h (objc_get_interface_ivars): Removed.
5262 (objc_detect_field_duplicates): New.
5263 * stub-objc.c: Likewise.
5265 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5267 * stub-objc.c (objc_declare_protocols): Renamed to
5268 objc_declare_protocol.
5269 * c-objc.h: Likewise.
5271 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5273 * stub-objc.c (objc_declare_class): Updated argument name.
5275 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5277 * c-common.h (c_common_init_ts): Declare.
5278 * c-common.c (c_common_init_ts): Define.
5280 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5282 * c-objc.h (objc_build_message_expr): Updated prototype.
5283 * stub-objc.c (objc_build_message_expr): Likewise.
5285 2011-04-12 Martin Jambor <mjambor@suse.cz>
5287 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5290 2011-04-11 Richard Guenther <rguenther@suse.de>
5292 * c-common.c (complete_array_type): Build a range type of
5295 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5297 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5298 (handle_type_generic_attribute): Likewise.
5300 2011-04-07 Jason Merrill <jason@redhat.com>
5303 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5304 conversion from C++0x scoped enum.
5306 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5308 * c-target-def.h: New file.
5309 * c-target.def: New file.
5310 * c-target.h: New file.
5311 * c-common.c (targetcm): Don't define here.
5312 * c-common.h (default_handle_c_option): Declare.
5313 * c-format.c: Include c-target.h instead of target.h.
5314 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5316 (default_handle_c_option): Move from targhooks.c.
5318 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5320 PR preprocessor/48248
5321 * c-ppoutput.c (print): Add src_file field.
5322 (init_pp_output): Initialize it.
5323 (maybe_print_line): Don't optimize by adding up to 8 newlines
5324 if map->to_file and print.src_file are different file.
5325 (print_line): Update print.src_file.
5327 2011-03-25 Kai Tietz <ktietz@redhat.com>
5329 * c-ada-spec.c (compare_comment): Use filename_cmp
5330 instead of strcmp for filename.
5332 2011-03-25 Jeff Law <law@redhat.com>
5334 * c-common.c (def_fn_type): Add missing va_end.
5336 2011-03-25 Jason Merrill <jason@redhat.com>
5338 * c.opt: Add -std=c++03.
5340 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5342 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5344 2011-03-17 Kai Tietz
5347 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5348 Display allowed attributes for function pointer types.
5349 (pp_c_attributes_display): New function to display
5350 attributes having affects_type_identity flag set to true.
5351 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5353 * c-common.c (c_common_attribute_table):
5355 (c_common_format_attribute_table): Likewise.
5357 2011-03-18 Jason Merrill <jason@redhat.com>
5359 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5360 * c-common.h: Don't declare it here.
5361 * c-common.c: Or define it here.
5362 * c-opts.c (c_common_handle_option): Or set it here.
5365 * c-common.c (handle_transparent_union_attribute): Don't
5366 make a duplicate type in C++.
5368 2011-03-15 Jason Merrill <jason@redhat.com>
5370 * c-common.c (max_constexpr_depth): New.
5371 * c-common.h: Declare it.
5372 * c-opts.c (c_common_handle_option): Set it.
5373 * c.opt (fconstexpr-depth): New option.
5375 2011-03-11 Jason Merrill <jason@redhat.com>
5377 * c-common.c (attribute_takes_identifier_p): Add missing const.
5380 * c-common.c (attribute_takes_identifier_p): Assume that an
5381 unknown attribute takes an identifier.
5383 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5386 * c-common.c (c_type_hash): Call list_length instead of iterating
5387 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5389 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5392 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5394 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5396 * c.opt (fobjc-abi-version=) New.
5397 (fobjc-nilcheck): New.
5399 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5402 * c-common.h (keyword_is_decl_specifier): Declare.
5403 * c-common.c (keyword_is_decl_specifier): Define.
5404 (keyword_is_function_specifier): New function.
5406 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5409 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5410 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5413 2011-01-26 Arnaud Charlet <charlet@adacore.com>
5415 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5417 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5420 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5421 after init_c_lex if pch_file is set.
5423 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5426 * c.opt (-fkeep-inline-dllexport): New switch.
5428 2011-01-12 Richard Guenther <rguenther@suse.de>
5431 * c-common.c (handle_weak_attribute): Warn instead of error
5432 on declaring an inline function weak.
5434 2011-01-05 Tom Tromey <tromey@redhat.com>
5436 * c-common.h (lvalue_error): Update.
5437 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5440 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
5443 * c-objc.h (objc_finish_message_expr): Added argument to
5446 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5448 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5451 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5453 * c-objc.h (objc_maybe_warn_exceptions): New.
5454 * stub-objc.c (objc_maybe_warn_exceptions): New.
5456 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5458 * c-common.h (readonly_error): Declare.
5459 * c-common.c (readonly_error): Define.
5461 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5463 * c-common.h (invalid_indirection_error): Declare.
5464 * c-common.c (invalid_indirection_error): Define.
5466 2010-12-03 Richard Guenther <rguenther@suse.de>
5469 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5470 (pp_c_unary_expression): Likewise.
5471 (pp_c_expression): Likewise.
5473 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5475 * c-common.h (objc_finish_function): New.
5476 (objc_non_volatilized_type): Removed.
5477 (objc_type_quals_match): Removed.
5478 * stub-objc.c (objc_finish_function): New.
5479 (objc_non_volatilized_type): Removed.
5480 (objc_type_quals_match): Removed.
5482 2010-11-30 Joseph Myers <joseph@codesourcery.com>
5484 * c-common.h (parse_optimize_options): Declare.
5485 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5486 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5488 2010-11-29 Joseph Myers <joseph@codesourcery.com>
5490 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5492 * c-pch.c (O_BINARY): Don't define here.
5493 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5495 2010-11-25 Joseph Myers <joseph@codesourcery.com>
5497 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5498 targetm.except_unwind_info.
5500 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5502 * c-opts.c (c_common_handle_option): Pass location to
5503 set_struct_debug_option.
5505 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5507 * c-common.c (visibility_options): Move from ../opts.c.
5508 * c-common.h (struct visibility_flags, visibility_options):
5510 * c-opts.c (finish_options): Rename to c_finish_options.
5511 (c_common_init): Update call to finish_options.
5513 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5516 * c-lex.c (lex_string): Check that each string in an Objective-C
5517 string concat sequence starts with either one or zero '@', and
5518 that there are no spurious '@' signs at the end.
5520 2010-11-20 Joseph Myers <joseph@codesourcery.com>
5522 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5523 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5524 HANDLE_PRAGMA_VISIBILITY.
5525 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5526 HANDLE_PRAGMA_VISIBILITY): Don't define.
5527 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5529 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5534 * c-common.h (keyword_begins_type_specifier): Declare.
5535 (keyword_is_storage_class_specifier): Declare.
5536 (keyword_is_type_qualifier): Declare.
5537 * c-common.c (keyword_begins_type_specifier): New function.
5538 (keyword_is_storage_class_specifier): New function.
5539 (keyword_is_type_qualifier): Declare.
5541 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5544 * c-common.c (in_late_binary_op): Define.
5545 (c_common_truthvalue_conversion): Check in_late_binary_op before
5546 calling c_save_expr.
5547 * c-common.h (in_late_binary_op): Declare.
5549 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5551 * c-opts.c (c_common_handle_option): Update calls to
5552 set_struct_debug_option.
5554 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5556 * c-common.h (objc_declare_protocols): Added additional argument.
5557 * stub-objc.c (objc_declare_protocol): Same change.
5559 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5562 * c-common.h (build_real_imag_expr): Declare.
5563 * c-semantics.c (build_real_imag_expr): Define.
5565 2010-11-17 Joseph Myers <joseph@codesourcery.com>
5567 * c-opts.c (c_common_parse_file): Take no arguments.
5568 * c-common.h (c_common_parse_file): Update prototype.
5570 2010-11-16 Jakub Jelinek <jakub@redhat.com>
5573 * c-common.c (warning_candidate_p): Don't track non-const calls
5576 2010-11-15 Ian Lance Taylor <iant@google.com>
5578 * c-lex.c (init_c_lex): Set macro debug callbacks if
5579 flag_dump_go_spec is set.
5581 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5583 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5584 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5586 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5588 PR preprocessor/45038
5589 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5592 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5594 * c-common.h (c_family_lang_mask): Declare.
5595 * c-opts.c (c_family_lang_mask): Make extern.
5596 * c-pragma.c (handle_pragma_diagnostic): Use
5597 control_warning_option.
5599 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5601 * c-common.c (parse_optimize_options): Update call to
5603 * c-common.h (c_common_handle_option): Update prototype.
5604 * c-opts.c (c_common_handle_option): Take location_t parameter and
5605 pass it to other functions.
5607 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5609 * c-opts.c (warning_as_error_callback): Remove.
5610 (c_common_initialize_diagnostics): Don't call
5611 register_warning_as_error_callback.
5612 (c_common_handle_option): Handle -Werror=normalized= here.
5614 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5616 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5618 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5620 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5621 Remove trailing '.' from diagnostics.
5622 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5624 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5626 * c-common.c (parse_optimize_options): Pass global_dc to
5628 * c-opts.c (c_common_handle_option): Pass &global_options to
5629 set_Wstrict_aliasing.
5630 * c.opt (v): Don't mark Common or document here.
5632 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5635 * c-format.c (format_type): New type gcc_objc_string_format_type.
5636 (valid_stringptr_type_p): New.
5637 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
5638 (check_format_string): Pass expected type, use
5639 valid_stringptr_type_p (), check that the format string types are
5640 consistent with the format specification.
5641 (decode_format_attr): Warn if NSString is used outside objective-c.
5642 (format_types_orig): Add NSString.
5644 (format_flags): New.
5645 (check_format_arg): Handle format strings requiring an external parser.
5646 first_target_format_type: New variable.
5647 (handle_format_attribute): Set up first_target_format_type, pass the
5648 expected format arg string type to check_format_string().
5649 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5650 * stub-objc.c (objc_string_ref_type_p): New.
5651 (objc_check_format_arg): New.
5653 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5655 Fixed using the Objective-C 2.0 dot-syntax with class names.
5656 * c-common.h (objc_build_class_component_ref): New.
5657 * stub-objc.c (objc_build_class_component_ref): New.
5659 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5661 * c.opt (Wproperty-assign-default): New option.
5663 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5665 Implemented -fobjc-std=objc1 flag.
5666 * c.opt (fobjc-std=objc1): New option.
5668 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5670 Implemented format and noreturn attributes for Objective-C methods.
5671 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5672 attribute for Objective-C methods.
5674 2010-10-31 Jason Merrill <jason@redhat.com>
5676 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5679 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5681 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5682 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5683 (objc_add_property_declaration): Removed arguments for copies and
5685 (objc_build_getter_call): Renamed to
5686 objc_maybe_build_component_ref.
5687 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5688 (objc_is_property_ref): New.
5689 * c-common.c (c_common_reswords): Removed copies and ivar.
5690 * stub-objc.c (objc_add_property_declaration): Removed arguments
5691 for copies and ivar.
5692 (objc_build_getter_call): Renamed to
5693 objc_maybe_build_component_ref.
5694 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5695 (objc_is_property_ref): New.
5697 2010-10-29 Arnaud Charlet <charlet@adacore.com>
5698 Matthew Gingell <gingell@adacore.com>
5700 * c-ada-spec.c (separate_class_package): New function.
5701 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5702 name of their enclosing package.
5703 (print_ada_declaration): Use separate_class_package.
5705 2010-10-27 Jason Merrill <jason@redhat.com>
5707 * c-common.c (c_common_reswords): Add __is_literal_type.
5708 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5710 * c-common.c (check_case_value): Remove special C++ code.
5712 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5714 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5715 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5717 (objc_add_property_declaration): Added additional arguments.
5718 (objc_property_attribute_kind): Removed.
5719 (objc_set_property_attr): Removed.
5720 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5722 * stub-objc.c (objc_add_property_declaration): Added additional
5724 (objc_set_property_attr): Removed.
5726 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5728 * c-common.h (objc_add_property_variable): Renamed to
5729 objc_add_property_declaration. Added location argument.
5730 * stub-objc.c (objc_add_property_variable): Same change.
5732 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5734 * c-common.h (objc_maybe_printable_name): New.
5735 * stub-objc.c (objc_maybe_printable_name): New.
5737 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5738 Andrew Pinski <pinskia@gmail.com>
5740 * c-common.h (c_common_mark_addressable_vec): Declare.
5741 * c-common.c (c_common_mark_addressable_vec): New function.
5743 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5745 * c-common.h (objc_set_method_type): Removed.
5746 (objc_add_method_declaration): Added boolean argument.
5747 (objc_start_method_definition): Same change.
5748 (objc_build_method_signature): Same change.
5749 * stub-objc.c (objc_set_method_type): Removed.
5750 (objc_add_method_declaration): Added boolean argument.
5751 (objc_start_method_definition): Same change.
5752 (objc_build_method_signature): Same change.
5754 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5756 * c-common.h (finish_file): Removed.
5757 (objc_write_global_declarations): New.
5758 * c-opts.c (c_common_parse_file): Do not call finish_file.
5759 * stub-objc.c (objc_write_global_declarations): New.
5761 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5763 Implemented parsing @synthesize and @dynamic for
5764 Objective-C/Objective-C++.
5765 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5766 (objc_add_synthesize_declaration): New.
5767 (objc_add_dynamic_declaration): New.
5768 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5769 * stub-objc.c (objc_add_synthesize_declaration): New.
5770 (objc_add_dynamic_declaration): New.
5772 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5775 * c-cppbuiltin.c (mode_has_fma): Move function here from
5776 builtins.c. Don't use the fma optab, instead just use the
5777 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5780 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5782 Merge from 'apple/trunk' branch on FSF servers.
5784 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5787 * c-common.h (objc_non_volatilized_type): New declaration
5788 * stub-objc.c (objc_non_volatilized_type): New stub.
5790 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5792 Merge from 'apple/trunk' branch on FSF servers.
5794 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5797 * c-common.h (objc_diagnose_private_ivar): New decl.
5798 * stub-objc.c (objc_diagnose_private_ivar): New stub.
5800 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5802 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5803 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5804 (objc_ivar_visibility_kind): New enum.
5805 (objc_set_visibility): Adjust prototype to use visibility enum.
5806 * stub-objc.c (objc_set_visibility): Adjust stub to use
5809 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5811 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5812 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5813 has the appropriate fma builtins.
5814 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5816 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5818 merge from FSF apple 'trunk' branch.
5819 2006 Fariborz Jahanian <fjahanian@apple.com>
5821 Radars 4436866, 4505126, 4506903, 4517826
5822 * c-common.c (c_common_resword): Define @property and its attributes.
5823 * c-common.h: Define property attribute enum entries.
5824 (OBJC_IS_PATTR_KEYWORD): New.
5825 (objc_property_attribute_kind): New enum.
5826 Declare objc_set_property_attr (), objc_add_property_variable (),
5827 objc_build_getter_call () and objc_build_setter_call ().
5828 * stub-objc.c (objc_set_property_attr): New stub.
5829 (objc_add_property_variable): Likewise.
5830 (objc_build_getter_call): Likewise.
5831 (objc_build_setter_call) Likewise.
5833 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5835 merge from FSF apple 'trunk' branch.
5836 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5838 Radar 3803157 (method attributes)
5839 * c-common.c (handle_deprecated_attribute): Recognize
5840 objc methods as valid declarations.
5841 * c-common.h: Declare objc_method_decl ().
5842 * stub-objc.c (objc_method_decl): New stub.
5844 2010-10-08 Joseph Myers <joseph@codesourcery.com>
5846 * c-common.c (parse_optimize_options): Call
5847 decode_cmdline_options_to_array_default_mask before
5848 decode_options. Update arguments to decode_options.
5849 * c-common.h (c_common_init_options_struct): Declare.
5850 * c-opts.c (c_common_init_options_struct): New. Split out from
5851 c_common_init_options.
5853 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5855 Implemented fast enumeration for Objective-C.
5856 * c-common.h (objc_finish_foreach_loop): New.
5857 * stub-objc.c (objc_finish_foreach_loop): New.
5859 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5861 * c-common.h (struct diagnostic_context): Don't declare here.
5862 (c_common_initialize_diagnostics): Declare using
5863 diagnostic_context typedef.
5864 * c-opts.c (c_common_handle_option): Pass global_dc to
5865 handle_generated_option.
5867 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5869 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5870 handle_generated_option.
5872 2010-10-03 Ian Lance Taylor <iant@google.com>
5874 * c.opt (-fplan9-extensions): New option.
5876 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5878 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5880 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5881 of duplicating code.
5883 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5885 * c-common.c: Add two new entries for @optional
5886 and @required keywords.
5888 merge from FSF 'apple/trunk' branch.
5889 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5892 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5893 objective-c keywords.
5894 (objc_set_method_opt): New declaration.
5895 * stub-objc.c (objc_set_method_opt): New stub.
5897 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5899 * c-common.c (handle_optimize_attribute): Pass &global_options to
5900 cl_optimization_save and cl_optimization_restore.
5901 * c-opts.c (c_common_handle_option): Pass &global_options to
5902 handle_generated_option.
5903 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5904 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5905 &global_options to cl_optimization_restore.
5907 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5909 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5910 Objective-C/Objective-C++ keywords.
5912 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5914 Merge from 'apple/trunk' branch on FSF servers.
5916 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5919 * c-common.h (objc_check_global_decl): New declaration.
5920 * stub-objc.c (objc_check_global_decl): New stub.
5922 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5924 * c.opt: Don't use VarExists.
5926 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5928 * c-common.c (c_cpp_error): Update names of diagnostic_context
5930 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5931 cl_optimization members.
5932 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5933 sanitize_cpp_opts, finish_options): Update names of cpp_options
5936 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5938 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5939 (objc_is_reserved_word): Removed.
5940 * c-common.c: Updated comments.
5941 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5942 objc_is_reserved_word.
5943 * stub-objc.c (objc_is_reserved_word): Removed.
5945 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5947 * c-common.h (objc_add_method_declaration): Adjust prototype to
5949 (objc_start_method_definition): Likewise.
5950 (objc_build_keyword_decl): Likewise.
5951 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5952 (objc_start_method_definition): Likewise.
5953 (objc_build_keyword_decl): Likewise.
5955 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5957 * c-common.h (objc_start_class_interface): Adjust prototype.
5958 (objc_start_category_interface): Likewise.
5959 (objc_start_protocol): Likewise.
5960 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5961 (objc_start_class_interface): Likewise.
5962 (objc_start_category_interface): Likewise.
5964 2010-09-27 Ian Lance Taylor <iant@google.com>
5966 * c-common.c (c_common_attribute_table): Add no_split_stack.
5967 (handle_no_split_stack_attribute): New static function.
5969 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5971 Merge from 'apple/trunk' branch on FSF servers.
5973 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5976 * c-common.h (objc_have_common_type): New declaration.
5977 * stub-objc.c (objc_have_common_type): New stub.
5979 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5982 * c-common.h (objc_common_type): New prototype.
5983 * stub-objc.c (objc_common_type): New stub.
5985 2010-09-24 Jan Hubicka <jh@suse.cz>
5987 * c-common.c (handle_leaf_attribute): New function.
5988 (struct attribute_spec c_common_att): Add leaf.
5990 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5992 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5993 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5994 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5995 -include-barrier, -include-directory, -include-directory=,
5996 -include-directory-after, -include-directory-after=,
5997 -include-prefix, -include-prefix=, -include-with-prefix,
5998 -include-with-prefix=, -include-with-prefix-after,
5999 -include-with-prefix-after=, -include-with-prefix-before,
6000 -include-with-prefix-before=, -no-integrated-cpp,
6001 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6002 -output=, -pedantic, -pedantic-errors, -preprocess,
6003 -print-missing-file-dependencies, -trace-includes, -traditional,
6004 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6005 -user-dependencies, -verbose, -write-dependencies,
6006 -write-user-dependencies, no-integrated-cpp, traditional): New.
6008 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6011 * c-common.h (objc_start_method_definition): Return bool instead
6013 * stub-objc.c (objc_start_method_definition): Return bool instead
6016 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6019 * c-common.h (objc_get_interface_ivars): New declaration.
6020 * stub-objc.c (objc_get_interface_ivars): New stub.
6022 2010-09-15 Ian Lance Taylor <iant@google.com>
6024 * c-common.c (parse_optimize_options): Do not capitalize warning
6025 messages. Remove period at end of warning message.
6027 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6029 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6030 (handle_alias_attribute): ... here.
6031 (handle_ifunc_attribute): New.
6033 2010-09-06 Mark Mitchell <mark@codesourcery.com>
6035 * c-common.h (do_warn_double_promotion): Declare.
6036 * c-common.c (do_warn_double_promotion): Define.
6038 2010-09-05 Mark Mitchell <mark@codesourcery.com>
6040 * c.opt (Wdouble-promotion): New.
6042 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6044 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6045 fvtable-thunks, fxref): Mark no longer supported in help text.
6047 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6049 * c.opt (Wimport, fall-virtual, falt-external-templates,
6050 fdefault-inline, fenum-int-equiv, fexternal-templates,
6051 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6052 fname-mangling-version-, fnew-abi, fnonnull-objects,
6053 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6054 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6056 (fhandle-exceptions): Mark with Alias and Warn.
6057 * c-opts.c (c_common_handle_option): Don't handle options marked
6060 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6062 * c.opt (Wcomments, Werror-implicit-function-declaration,
6063 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6064 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6066 * c-common.c (option_codes): Use OPT_Wcomment instead of
6068 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6069 Don't handle options marked as aliases.
6071 2010-08-25 Richard Guenther <rguenther@suse.de>
6073 * c-common.c (c_common_get_alias_set): Remove special
6074 handling for pointers.
6076 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6078 * c-common.c: Use FOR_EACH_VEC_ELT.
6079 * c-gimplify.c: Likewise.
6080 * c-pragma.c: Likewise.
6082 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6084 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6086 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6088 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6089 instead of OPT_MDX and OPT_MMDX.
6091 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6093 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6095 2010-08-12 Joseph Myers <joseph@codesourcery.com>
6097 * c.opt (MD, MMD): Change to MDX and MMDX.
6098 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6100 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6102 * c-opts.c (c_common_handle_option): Call handle_generated_option
6103 instead of handle_option.
6105 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6107 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6108 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6110 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6112 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6113 (pending_redefine_extname): Change type to a VEC.
6114 (add_to_renaming_pragma_list): Update for new type of
6115 pending_redefine_extname.
6116 (maybe_apply_renaming_pragma): Likewise.
6118 2010-08-04 Arnaud Charlet <charlet@adacore.com>
6120 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6122 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6123 decide whether a type has already been declared/seen.
6124 Do not go to the original type.
6125 (dump_nested_types): New parameter forward.
6126 Generate forward declaration if needed and mark type as visited.
6127 (print_ada_declaration): Call dump_nested_types if not already done.
6128 Mark types as visited.
6130 2010-08-03 Joseph Myers <joseph@codesourcery.com>
6132 * c.opt (-print-pch-checksum): Remove option.
6133 * c-opts.c (c_common_handle_option): Don't handle
6134 OPT_print_pch_checksum.
6136 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6138 * c-common.h (c_common_handle_option): Update prototype and return
6140 * c-opts.c (c_common_handle_option): Update prototype and return
6141 value type. Update calls to handle_option and
6142 enable_warning_as_error.
6144 2010-07-27 Jakub Jelinek <jakub@redhat.com>
6147 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6149 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6151 * c-common.h (c_common_missing_argument): Remove.
6152 * c-opts.c (c_common_missing_argument): Remove.
6153 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6154 idirafter, imacros, include, isysroot, isystem, iquote): Add
6156 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6158 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6160 * c-common.h (c_common_option_lang_mask,
6161 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6163 (c_common_init_options): Update prototype.
6164 * c-opts.c (c_common_option_lang_mask): New.
6165 (c_common_initialize_diagnostics): Split out of
6166 c_common_init_options.
6167 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6169 (c_common_init_options): Update prototype. Use decoded options in
6170 search for -lang-asm.
6172 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6174 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6175 * c-format.c: Likewise.
6177 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6179 * c-common.h: Include diagnostic-core.h. Error if already
6181 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6183 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6185 * c-common.c (IN_GCC_FRONTEND): Do not undef.
6186 Do not include expr.h
6187 (vector_mode_valid_p): Move here.
6189 2010-06-21 DJ Delorie <dj@redhat.com>
6191 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6192 allow these pragmas anywhere.
6194 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6197 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6198 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6199 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6200 ggc_strdup instead of xstrdup.
6202 2010-06-10 Jakub Jelinek <jakub@redhat.com>
6204 * c-cppbuiltin.c: Include cpp-id-data.h.
6205 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6206 (lazy_hex_fp_value): New function.
6207 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6209 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6211 * c-gimplify.c: Do not include tree-flow.h
6213 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6216 * c-common.c: Rename targetm member:
6217 targetm.enum_va_list -> targetm.enum_va_list_p
6219 2010-06-28 Anatoly Sokolov <aesok@post.ru>
6221 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6223 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6225 * c-cppbuiltin.c: Do not include except.h.
6227 2010-06-24 Andi Kleen <ak@linux.intel.com>
6229 * c-common.c (warn_for_omitted_condop): New.
6230 * c-common.h (warn_for_omitted_condop): Add prototype.
6232 2010-06-21 Joseph Myers <joseph@codesourcery.com>
6234 * c.opt (lang-objc): Remove.
6235 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6237 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6239 * c-opts.c: Include "tm_p.h".
6241 2010-06-20 Joseph Myers <joseph@codesourcery.com>
6243 * c-common.c (parse_optimize_options): Update call to
6246 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6248 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6249 new type of types_used_by_cur_var_decl.
6251 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6254 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6255 for C++ standard compliance.
6257 2010-06-16 Jason Merrill <jason@redhat.com>
6259 * c.opt: Add -Wnoexcept.
6261 2010-06-16 Richard Guenther <rguenther@suse.de>
6264 * c-common.c (c_common_truthvalue_conversion): Remove
6265 premature and wrong optimization concering ADDR_EXPRs.
6267 2010-06-15 Arnaud Charlet <charlet@adacore.com>
6269 * c-ada-spec.c (dump_sloc): Remove column info.
6270 (is_simple_enum): New function.
6271 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6272 enum types when relevant.
6274 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6276 * c-common.c (conversion_warning): Warn at expression
6279 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6281 * c-opts.c (c_common_handle_option): Don't handle
6284 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6286 * c-pragma.c (push_alignment): Use typed GC allocation.
6287 (handle_pragma_push_options): Likewise.
6289 * c-common.c (parse_optimize_options): Likewise.
6291 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6294 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6296 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6297 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6298 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6299 flag_signed_bitfields, warn_strict_null_sentinel,
6300 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6301 flag_gen_declaration, flag_no_gnu_keywords,
6302 flag_implement_inlines, flag_implicit_templates,
6303 flag_implicit_inline_templates, flag_optional_diags,
6304 flag_elide_constructors, flag_default_inline, flag_rtti,
6305 flag_conserve_space, flag_access_control, flag_check_new,
6306 flag_new_for_scope, flag_weak, flag_working_directory,
6307 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6308 flag_enforce_eh_specs, flag_threadsafe_statics,
6309 flag_pretty_templates): Remove.
6310 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6311 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6312 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6313 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6314 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6315 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6316 flag_no_gnu_keywords, flag_implement_inlines,
6317 flag_implicit_templates, flag_implicit_inline_templates,
6318 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6319 flag_rtti, flag_conserve_space, flag_access_control,
6320 flag_check_new, flag_new_for_scope, flag_weak,
6321 flag_working_directory, flag_use_cxa_atexit,
6322 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6323 flag_threadsafe_statics, flag_pretty_templates,
6324 warn_strict_null_sentinel): Remove.
6325 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6326 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6327 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6328 fimplicit-inline-templates, fimplicit-templates,
6329 flax-vector-conversions, fms-extensions, fnil-receivers,
6330 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6331 frtti, fshort-double, fshort-enums, fshort-wchar,
6332 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6333 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6334 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6335 gen-decls, undef): Use Var.
6336 (fdefault-inline, foptional-diags): Document as doing nothing.
6337 * c-opts.c (c_common_handle_option): Remove cases for options now
6338 using Var. Mark ignored options as such.
6340 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6342 * c-common.c: Moved to here from parent directory.
6343 * c-common.def: Likewise.
6344 * c-common.h: Likewise.
6345 * c-cppbuiltin.c: Likewise.
6346 * c-dump.c: Likewise.
6347 * c-format.c: Likewise.
6348 * c-format.h : Likewise.
6349 * c-gimplify.c: Likewise.
6350 * c-lex.c: Likewise.
6351 * c-omp.c: Likewise.
6353 * c-opts.c: Likewise.
6354 * c-pch.c: Likewise.
6355 * c-ppoutput.c: Likewise.
6356 * c-pragma.c: Likewise.
6357 * c-pragma.h: Likewise.
6358 * c-pretty-print.c: Likewise.
6359 * c-pretty-print.h: Likewise.
6360 * c-semantics.c: Likewise.
6361 * stub-objc.c: Likewise.
6363 * c-common.c: Include gt-c-family-c-common.h.
6364 * c-pragma.c: Include gt-c-family-c-pragma.h.
6366 Copyright (C) 2010-2016 Free Software Foundation, Inc.
6368 Copying and distribution of this file, with or without modification,
6369 are permitted in any medium without royalty provided the copyright
6370 notice and this notice are preserved.