1 2016-05-03 Richard Biener <rguenther@suse.de>
3 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
4 allow call args to gimplify to SSA names.
6 2016-05-03 Marek Polacek <polacek@redhat.com>
8 * c-common.h (enum c_omp_region_type): Remove stray comma.
10 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
12 * c-common.h (enum c_omp_region_type): Define.
14 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
16 * c-common.c (shorten_compare): Use wi::to_wide.
18 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
21 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
22 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
23 reduction clauses in acc parallel loops.
25 2016-04-29 Marek Polacek <polacek@redhat.com>
28 * c-common.c (warn_for_memset): Check domain before accessing it.
30 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
33 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
36 2016-04-28 Jason Merrill <jason@redhat.com>
38 * c-lex.c (c_common_has_attribute): Handle nodiscard.
40 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
41 Matthias Klose <doko@debian.org>
43 * c-common.c (get_source_date_epoch): New function, gets the environment
44 variable SOURCE_DATE_EPOCH and parses it as long long with error
46 * c-common.h (get_source_date_epoch): Prototype.
47 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
49 2015-04-27 Ryan Burn <contact@rnburn.com>
53 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
54 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
56 (cilk_detect_and_unwrap): Corresponding changes.
57 (extract_free_variables): Don't extract free variables from
59 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
60 (cilk_recognize_spawn): Likewise.
62 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
64 * c.opt (Wmemset-elt-size): New option.
65 * c-common.c (warn_for_memset): New function.
66 * c-common.h (warn_for_memset): Declare.
68 2016-04-25 Jason Merrill <jason@redhat.com>
70 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
72 * c-common.h: Declare it.
73 * c-lex.c (c_common_has_attribute): Add maybe_unused.
75 2016-04-22 Jason Merrill <jason@redhat.com>
77 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
79 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
82 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
83 * c-common.h (c_finish_cilk_clauses): Remove declaration.
85 2016-04-18 Michael Matz <matz@suse.de>
87 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
90 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
92 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
93 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
95 (dump_nested_type): Remove redundant tests and tidy up.
96 (print_ada_declaration): Also set TREE_VISITED on the declaration of
97 a type which is the typedef of an original type.
99 2016-04-15 Marek Polacek <polacek@redhat.com>
102 * c-common.c (build_va_arg): Change two asserts into errors and return
105 2016-04-13 Marek Polacek <polacek@redhat.com>
108 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
109 for switch statements, too.
111 2016-03-28 Jason Merrill <jason@redhat.com>
113 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
115 2016-03-23 Marek Polacek <polacek@redhat.com>
118 * c.opt (Wignored-attributes): New option.
120 2016-03-22 David Malcolm <dmalcolm@redhat.com>
123 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
124 diagnostic text, reversing the order of the warning and note so
125 that they appear in source order.
127 2016-03-17 Marek Polacek <polacek@redhat.com>
130 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
133 2016-03-14 Jason Merrill <jason@redhat.com>
135 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
137 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
139 2016-03-09 Richard Biener <rguenther@suse.de>
142 * c-common.c (strict_aliasing_warning): Add back
143 alias_sets_conflict_p check.
145 2016-03-08 Jason Merrill <jason@redhat.com>
147 * c-opts.c (set_std_cxx1z): Don't enable concepts.
149 2016-03-04 David Malcolm <dmalcolm@redhat.com>
152 * c-indentation.c (get_visual_column): Move code to determine next
154 (next_tab_stop): ...this new function.
155 (line_contains_hash_if): Delete function.
156 (detect_preprocessor_logic): Delete function.
157 (get_first_nws_vis_column): New function.
158 (detect_intervening_unindent): New function.
159 (should_warn_for_misleading_indentation): Replace call to
160 detect_preprocessor_logic with a call to
161 detect_intervening_unindent.
163 2016-03-04 David Malcolm <dmalcolm@redhat.com>
166 * c-indentation.c (should_warn_for_misleading_indentation): When
167 suppressing warnings about cases where the guard and body are on
168 the same column, only use the first non-whitespace column in place
169 of the guard token column when dealing with "else" clauses.
170 When rejecting aligned BODY and NEXT, loosen the requirement
171 from equality with the first non-whitespace of guard to simply
172 that they not be indented relative to it.
174 2016-03-04 Richard Biener <rguenther@suse.de>
177 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
178 instead of alias_sets_conflict_p.
180 2016-03-01 Marek Polacek <polacek@redhat.com>
183 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
186 2016-02-22 Martin Sebor <msebor@redhat.com>
189 * c-common.c (check_builtin_function_arguments): Validate and
190 reject invalid arguments to __builtin_alloca_with_align.
192 2016-02-20 Mark Wielaard <mjw@redhat.com>
195 * c.opt (Wunused-const-variable): Turn into Alias for...
196 (Wunused-const-variable=): New option.
198 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
201 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
203 (c_common_init_options): ...to here.
204 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
206 2016-02-19 Jakub Jelinek <jakub@redhat.com>
209 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
210 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
211 flag_preprocess_only.
213 2016-02-16 Jakub Jelinek <jakub@redhat.com>
216 * c.opt (Wnonnull-compare): Enable for -Wall.
218 2016-02-15 Jakub Jelinek <jakub@redhat.com>
221 * c-common.c (sync_resolve_size): Diagnose too few arguments
222 even when params is non-NULL empty vector.
224 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
227 * c.opt (fshort-double): Remove.
229 2016-02-05 Martin Sebor <msebor@redhat.com>
232 * c.opt (Warning options): Update -Wplacement-new to take
233 an optional argument.
235 2016-02-01 Jakub Jelinek <jakub@redhat.com>
237 PR preprocessor/69543
239 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
240 instead of loc to control_warning_option.
242 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
244 * c.opt (fopenacc-dim=): New option.
246 2016-01-27 Ryan Burn <contact@rnburn.com>
249 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
250 gimplify_arg. Removed superfluous post_p argument.
251 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
252 superfluous post_p argument.
253 * c-gimplify.c (c_gimplify_expr): Likewise.
255 2016-01-26 David Malcolm <dmalcolm@redhat.com>
258 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
259 pp_newline_and_flush with pp_flush.
261 2016-01-20 Martin Sebor <msebor@redhat.com>
264 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
265 an incompatible argument when the argument isn't a valid tree node.
267 2016-01-18 Jason Merrill <jason@redhat.com>
270 * c-common.c (check_function_arguments_recurse): Fold the whole
271 COND_EXPR, not just the condition.
273 2016-01-18 Tom de Vries <tom@codesourcery.com>
275 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
276 classify as loop clause.
278 2016-01-15 Jakub Jelinek <jakub@redhat.com>
281 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
282 C++ FE no longer has limit on number of pragmas.
284 2015-01-14 Ryan Burn <contact@rnburn.com>
287 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
288 to add missing cleanup point.
290 2016-01-14 David Malcolm <dmalcolm@redhat.com>
293 * c-indentation.c (get_visual_column): Add location_t param.
294 Handle the column number being zero by effectively disabling the
295 warning, with an "inform".
296 (should_warn_for_misleading_indentation): Add location_t argument
297 for all uses of get_visual_column.
299 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
302 * c-indentation.c (should_warn_for_misleading_indentation):
303 Don't warn about do-while statements.
305 2016-01-07 Martin Sebor <msebor@redhat.com>
308 * c-common.c (sync_resolve_size): Reject first argument when it's
311 2016-01-05 David Malcolm <dmalcolm@redhat.com>
314 * c-indentation.c (get_visual_column): Remove default argument.
315 (should_warn_for_misleading_indentation): For the multiline case,
316 update call to get_visual_column for next_stmt_exploc so that it
317 captures the location of the first non-whitespace character in the
318 relevant line. Don't issue warnings if there is non-whitespace
319 before the next statement.
321 2016-01-04 Jakub Jelinek <jakub@redhat.com>
323 Update copyright years.
325 2015-12-21 David Malcolm <dmalcolm@redhat.com>
327 * c-common.c (binary_op_error): Convert first param from
328 location_t to rich_location * and use it when emitting an error.
329 * c-common.h (binary_op_error): Convert first param from
330 location_t to rich_location *.
332 2015-12-16 David Malcolm <dmalcolm@redhat.com>
334 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
335 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
337 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
339 * c-common.c (c_common_attribute_table): Handle "omp declare target
342 2015-12-14 Jakub Jelinek <jakub@redhat.com>
345 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
347 2014-12-12 Tobias Burnus <burnus@net-b.de>
350 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
351 specifiers (%d, %i,%u and %c).
353 2015-12-10 David Malcolm <dmalcolm@redhat.com>
355 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
357 2015-12-08 Jakub Jelinek <jakub@redhat.com>
361 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
362 * c-pragma.c (handle_pragma_diagnostic): Adjust
363 control_warning_option caller.
365 2015-12-07 David Malcolm <dmalcolm@redhat.com>
367 * c-common.c (c_cpp_error): Update for change to
368 rich_location::set_range.
370 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
372 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
373 shifting 1 out of the sign bit.
375 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
377 * c-common.c (c_common_attribute_table[]): Update max arguments
378 count for "simd" attribute.
379 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
381 2015-12-03 Jakub Jelinek <jakub@redhat.com>
383 PR preprocessor/57580
384 * c-ppoutput.c (print): Change printed field to bool.
385 Move src_file last for smaller padding.
386 (init_pp_output): Set print.printed to false instead of 0.
387 (scan_translation_unit): Fix up formatting. Set print.printed
388 to true after printing something other than newline.
389 (scan_translation_unit_trad): Set print.printed to true instead of 1.
390 (maybe_print_line_1): Set print.printed to false instead of 0.
391 (print_line_1): Likewise.
392 (do_line_change): Set print.printed to true instead of 1.
393 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
394 dump_macro): Set print.printed to false after printing newline.
396 2015-12-02 Jason Merrill <jason@redhat.com>
398 * c-common.c (fold_for_warn): New.
399 (warn_logical_operator, warn_tautological_cmp)
400 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
402 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
403 (c_fully_fold_internal, decl_constant_value_for_optimization):
405 * c-common.h: Don't declare decl_constant_value_for_optimization.
407 2015-12-02 Joseph Myers <joseph@codesourcery.com>
410 * c-common.h (c_build_qualified_type): Add extra default
413 2015-12-01 Julian Brown <julian@codesourcery.com>
414 Cesar Philippidis <cesar@codesourcery.com>
415 James Norris <James_Norris@mentor.com>
417 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
418 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
419 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
421 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
423 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
424 (decl_sloc_common): Delete and move bulk of processing to...
425 (decl_sloc): ...here.
426 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
427 (dump_ada_double_name): Remove S parameter and compute the suffix.
428 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
429 element type and deal with an anonymous one.
430 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
431 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
432 and remove reference to QUAL_UNION_TYPE.
433 (dump_nested_types): Make 2 passes on the fields and move bulk to...
434 (dump_nested_type): ...here. New function extracted from above.
435 Generate a full declaration for anonymous element type of arrays.
436 (print_ada_declaration): Really skip anonymous declarations. Remove
437 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
438 Clean up processing of declarations of array types and objects.
439 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
440 Remove obsolete code and tidy up.
442 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
445 * c-common.c (handle_transparent_union_attribute): Update
448 2015-11-27 Martin Liska <mliska@suse.cz>
451 * array-notation-common.c (cilkplus_extract_an_triplets):
452 Release vector of vectors.
453 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
455 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
458 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
459 (print_ada_struct_decl): Likewise.
461 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
464 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
465 * cilk.c (recognize_spawn): Determine location in a more precise
468 2015-11-19 Jason Merrill <jason@redhat.com>
470 * c-common.c (shorten_compare): But look through macros from
473 2015-11-18 Jason Merrill <jason@redhat.com>
475 * c-common.c (shorten_compare): Don't -Wtype-limits if the
476 non-constant operand comes from a macro.
478 2015-11-17 Jason Merrill <jason@redhat.com>
481 * c-common.c (warn_tautological_cmp): Fold before checking for
484 2015-11-16 Marek Polacek <polacek@redhat.com>
487 * c-common.c (check_case_bounds): Fold low and high cases.
489 2015-11-16 Marek Polacek <polacek@redhat.com>
491 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
492 * c-common.c (c_common_get_alias_set): Likewise.
493 (handle_visibility_attribute): Likewise.
495 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
497 * c-common.c (handle_simd_attribute): New.
498 (struct attribute_spec): Add entry for "simd".
499 (handle_simd_attribute): New.
501 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
503 * c-lex.c (interpret_float): Use fold_convert.
505 2015-11-13 David Malcolm <dmalcolm@redhat.com>
507 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
508 and store it on the result.
509 * c-opts.c (c_common_init_options): Set
510 global_dc->colorize_source_p.
512 2015-11-12 James Norris <jnorris@codesourcery.com>
513 Joseph Myers <joseph@codesourcery.com>
515 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
516 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
517 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
518 PRAGMA_OACC_CLAUSE_LINK.
520 2015-11-11 Marek Polacek <polacek@redhat.com>
524 * c-common.c (valid_array_size_p): New function.
525 * c-common.h (valid_array_size_p): Declare.
527 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
530 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
532 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
534 * array-notation-common.c: Remove unused header files.
535 * c-ada-spec.c: Likewise.
536 * c-cilkplus.c: Likewise.
537 * c-common.c: Likewise.
538 * c-cppbuiltin.c: Likewise.
539 * c-dump.c: Likewise.
540 * c-format.c: Likewise.
541 * c-gimplify.c: Likewise.
542 * c-indentation.c: Likewise.
545 * c-opts.c: Likewise.
547 * c-ppoutput.c: Likewise.
548 * c-pragma.c: Likewise.
549 * c-pretty-print.c: Likewise.
550 * c-semantics.c: Likewise.
551 * c-ubsan.c: Likewise.
553 * stub-objc.c: Likewise.
555 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
556 Cesar Philippidis <cesar@codesourcery.com>
557 James Norris <jnorris@codesourcery.com>
558 Julian Brown <julian@codesourcery.com>
559 Nathan Sidwell <nathan@codesourcery.com>
561 * c-pragma.c (oacc_pragmas): Add "routine".
562 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
564 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
566 * c-common.c (c_common_attributes): Add scalar_storage_order.
567 (handle_scalar_storage_order_attribute): New function.
568 * c-pragma.c (global_sso): New variable.
569 (maybe_apply_pragma_scalar_storage_order): New function.
570 (handle_pragma_scalar_storage_order): Likewise.
571 (init_pragma): Register scalar_storage_order.
572 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
573 * c.opt (Wscalar-storage-order): New warning.
574 (fsso-struct=): New option.
576 2015-11-08 Martin Sebor <msebor@redhat.com>
578 * c.opt (Wplacement-new): Add a period to the end of a sentence.
580 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
582 * c-common.c: Don't undef DEF_BUILTIN.
584 2015-11-06 David Malcolm <dmalcolm@redhat.com>
586 * c-common.c (c_cpp_error): Convert parameter from location_t to
587 rich_location *. Eliminate the "column_override" parameter and
588 the call to diagnostic_override_column.
589 Update the "done_lexing" clause to set range 0
590 on the rich_location, rather than overwriting a location_t.
591 * c-common.h (c_cpp_error): Convert parameter from location_t to
592 rich_location *. Eliminate the "column_override" parameter.
594 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
595 Thomas Schwinge <thomas@codesourcery.com>
596 James Norris <jnorris@codesourcery.com>
598 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
599 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
600 clauses with parallel and kernels and loops.
601 * c-pragma.h (enum pragma_omp_clause): Add entries for
602 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
603 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
604 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
606 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
608 2015-11-05 Martin Sebor <msebor@redhat.com>
611 * c.opt (-Wplacement-new): New option.
613 2015-11-05 Jakub Jelinek <jakub@redhat.com>
615 * c-common.h (c_finish_omp_atomic): Add TEST argument.
616 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
617 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
618 save_expr or create_tmp_var* if TEST is true.
619 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
620 Don't call add_stmt here.
621 (struct c_omp_check_loop_iv_data): New type.
622 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
623 c_omp_check_loop_iv_exprs): New functions.
624 (c_omp_split_clauses): Adjust for lastprivate being allowed on
626 (c_omp_declare_simd_clauses_to_numbers): Change
627 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
628 (c_omp_declare_simd_clauses_to_decls): Similarly change those
629 from numbers to PARM_DECLs.
631 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
633 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
636 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
639 * c-common.h (fold_offsetof_1): Add argument.
640 * c-common.c (fold_offsetof_1): Diagnose more invalid
641 offsetof expressions that reference elements past the end of
644 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
645 Chung-Lin Tang <cltang@codesourcery.com>
647 * c-pragma.c (oacc_pragmas): Add "atomic".
648 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
650 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
652 * c-common.c (handle_target_clones_attribute): New.
653 (c_common_attribute_table): Add handle_target_clones_attribute.
654 (handle_always_inline_attribute): Add check on target_clones attribute.
655 (handle_target_attribute): Ditto.
657 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
659 * array-notation-common.c: Reorder #include's and remove duplicates.
660 * c-ada-spec.c: Likewise.
661 * c-cilkplus.c: Likewise.
662 * c-common.c: Likewise.
663 * c-cppbuiltin.c: Likewise.
664 * c-dump.c: Likewise.
665 * c-format.c: Likewise.
666 * c-gimplify.c: Likewise.
667 * c-indentation.c: Likewise.
670 * c-opts.c: Likewise.
672 * c-ppoutput.c: Likewise.
673 * c-pragma.c: Likewise.
674 * c-pretty-print.c: Likewise.
675 * c-semantics.c: Likewise.
676 * c-ubsan.c: Likewise.
678 * stub-objc.c: Likewise.
680 2015-10-28 Jason Merrill <jason@redhat.com>
682 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
684 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
685 James Norris <jnorris@codesourcery.com>
686 Cesar Philippidis <cesar@codesourcery.com>
690 * c-common.h (c_oacc_split_loop_clauses): Declare function.
691 * c-omp.c (c_oacc_split_loop_clauses): New function.
693 2015-10-21 Martin Sebor <msebor@redhat.com>
696 * c.opt: End each sentence that describes an option with a period.
698 2015-10-20 Marek Polacek <polacek@redhat.com>
700 * array-notation-common.c (is_cilkplus_vector_p): Define.
701 * c-common.h (is_cilkplus_vector_p): Declare.
703 2015-10-20 Marek Polacek <polacek@redhat.com>
705 * c.opt (std=gnu++11): Do not describe as experimental.
706 (std=gnu++14): Likewise.
708 2015-10-19 Jason Merrill <jason@redhat.com>
710 * c-cppbuiltin.c (c_cpp_builtins): Define
711 __cpp_nontype_template_args.
713 2015-10-19 Jason Merrill <jason@redhat.com>
715 * c-cppbuiltin.c (c_cpp_builtins): Define
716 __cpp_enumerator_attributes, __cpp_fold_expressions,
717 __cpp_unicode_characters.
719 2015-10-13 Jakub Jelinek <jakub@redhat.com>
720 Aldy Hernandez <aldyh@redhat.com>
722 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
723 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
724 (c_define_builtins): Likewise.
725 * c-common.h (enum c_omp_clause_split): Add
726 C_OMP_CLAUSE_SPLIT_TASKLOOP.
727 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
728 (c_finish_omp_for): Add ORIG_DECLV argument.
729 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
730 201511 instead of 201307.
731 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
732 OMP_CRITICAL_CLAUSES to it.
733 (c_finish_omp_ordered): Add CLAUSES argument, set
734 OMP_ORDERED_CLAUSES to it.
735 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
736 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
737 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
738 constructs and new OpenMP 4.5 clauses. Clear
739 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
741 * c-pragma.c (omp_pragmas_simd): Add taskloop.
742 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
743 (enum pragma_omp_clause): Add
744 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
745 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
747 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
749 * c-lex.c (interpret_float): Use real_equal instead of
752 2015-10-04 Jason Merrill <jason@redhat.com>
754 Implement N4514, C++ Extensions for Transactional Memory.
755 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
756 (c_common_attribute_table): Add transaction_safe_dynamic.
757 transaction_safe now affects type identity.
758 (handle_tm_attribute): Handle transaction_safe_dynamic.
759 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
760 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
761 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
763 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
764 * c-pretty-print.c (pp_c_attributes_display): Don't print
765 transaction_safe in C++.
767 2015-10-02 Marek Polacek <polacek@redhat.com>
769 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
771 2015-10-02 Marek Polacek <polacek@redhat.com>
774 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
775 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
776 * c.opt (Wduplicated-cond): New option.
778 2015-10-01 Joseph Myers <joseph@codesourcery.com>
780 * c.opt (std=c11): Do not describe as experimental.
781 (std=gnu11): Likewise.
782 (std=iso9899:2011): Likewise.
784 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
786 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
787 (DEF_FUNCTION_TYPE_VAR_11): Delete.
789 2015-09-25 Marek Polacek <polacek@redhat.com>
791 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
792 (ubsan_instrument_shift): Likewise.
794 2015-09-25 Marek Polacek <polacek@redhat.com>
797 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
799 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
801 * c-indentation.c (should_warn_for_misleading_indentation):
802 Compare next_stmt_vis_column with guard_line_first_nws instead
803 of with guard_line_vis_column.
805 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
809 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
810 options and options not valid for the current language.
812 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
814 * c-indentation.c (should_warn_for_misleading_indentation):
815 Float out and consolidate the calls to get_visual_column that
816 are passed guard_exploc as an argument. Compare
817 next_stmt_vis_column with guard_line_first_nws instead of with
820 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
822 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
823 Wnamespaces): New C++ warnings.
825 2015-09-22 Jason Merrill <jason@redhat.com>
827 * c-common.h (abi_compat_version_crosses): New.
828 (warn_abi_version): Declare.
829 * c-common.c: Define it.
830 * c-opts.c (c_common_post_options): Handle it.
831 flag_abi_compat_version defaults to 8.
833 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
835 Complete the implementation of N4230, Nested namespace definition.
836 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
837 __cpp_nested_namespace_definitions.
839 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
841 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
843 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
845 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
847 * c-pragma.h (pragma_lex): Add optional loc argument.
849 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
851 * c-format.c (check_format_arg): Adjust to use common block size in all
854 2015-09-15 David Malcolm <dmalcolm@redhat.com>
856 * c-format.c (location_from_offset): Update for change in
857 signature of location_get_source_line.
858 * c-indentation.c (get_visual_column): Likewise.
859 (line_contains_hash_if): Likewise.
861 2015-09-14 Marek Polacek <polacek@redhat.com>
863 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
864 setting various warnings.
866 2015-09-14 Marek Polacek <polacek@redhat.com>
868 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
871 2015-09-11 Mark Wielaard <mjw@redhat.com>
874 * c.opt (Wunused-variable): Option from common.opt.
875 (Wunused-const-variable): New option.
877 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
880 * c.opt ([Wsubobject-linkage]): Add.
882 2015-09-03 Martin Sebor <msebor@redhat.com>
885 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
887 * c-common.c (reject_gcc_builtin): Define.
889 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
892 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
894 * c-gimplify.c (c_gimplify_expr): Added a call to the function
895 cilk_gimplify_call_params_in_spawned_fn.
896 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
897 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
900 2015-08-25 Marek Polacek <polacek@redhat.com>
903 * c-common.c (handle_weak_attribute): Don't check whether the
904 visibility can be changed here.
906 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
908 * c-lex.c (c_lex_with_flags): Use explicit locations.
910 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
912 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
913 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
915 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
918 * c-common.c (check_builtin_function_arguments): Add check
919 for BUILT_IN_SIGNBIT argument.
921 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
924 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
927 2015-08-17 Marek Polacek <polacek@redhat.com>
929 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
930 with whitespaces before qualifier names.
932 2015-08-12 Marek Polacek <polacek@redhat.com>
935 * c-common.c (maybe_warn_shift_overflow): Properly handle
936 left-shifting 1 into the sign bit.
938 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
940 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
942 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
943 Braden Obrzut <admin@maniacsvault.net>
944 Jason Merrill <jason@redhat.com>
946 Add C++ Concepts TS support.
947 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
948 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
949 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
950 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
951 * c-opts.c (set_std_cxx1z): Set flag_concepts.
952 * c.opt (fconcepts): New.
954 2015-08-02 Martin Sebor <msebor@redhat.com>
956 * c.opt (-Wframe-address): New warning option.
958 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
960 * c-indentation.c (should_warn_for_misleading_indentation):
963 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
965 * c-indentation.c (get_visual_column): Add parameter first_nws,
966 use it. Update comment documenting the function.
967 (is_first_nonwhitespace_on_line): Remove.
968 (should_warn_for_misleading_indentation): Replace usage of
969 of is_first_nonwhitespace_on_line with get_visual_column.
971 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
973 * c-indentation.h (struct token_indent_info): Define.
974 (get_token_indent_info): Define.
975 (warn_for_misleading_information): Declare.
976 * c-common.h (warn_for_misleading_information): Remove.
977 * c-identation.c (warn_for_misleading_indentation):
978 Change declaration to take three token_indent_infos. Adjust
980 * c-identation.c (should_warn_for_misleading_indentation):
981 Likewise. Bail out early if the body is a compound statement.
982 (guard_tinfo_to_string): Define.
984 2015-07-30 Jason Merrill <jason@redhat.com>
986 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
987 '*' for reference decay.
989 2015-07-30 Marek Polacek <polacek@redhat.com>
991 * c-common.c (warn_tautological_cmp): Bail for float types.
993 2015-07-27 Marek Polacek <polacek@redhat.com>
996 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
998 2015-07-27 Marek Polacek <polacek@redhat.com>
1002 * c-common.c (find_array_ref_with_const_idx_r): New function.
1003 (warn_tautological_cmp): New function.
1004 * c-common.h (warn_tautological_cmp): Declare.
1005 * c.opt (Wtautological-compare): New option.
1007 2015-07-23 Marek Polacek <polacek@redhat.com>
1009 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1010 (ubsan_instrument_shift): Likewise.
1012 2015-07-23 Marek Polacek <polacek@redhat.com>
1015 * c-ubsan.c: Include gimplify.h.
1016 (ubsan_instrument_division): Unshare OP0 and OP1.
1017 (ubsan_instrument_shift): Likewise.
1019 2015-07-20 Marek Polacek <polacek@redhat.com>
1020 Richard Sandiford <richard.sandiford@arm.com>
1023 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1024 Use EXPR_LOC_OR_LOC.
1025 (maybe_warn_shift_overflow): New function.
1026 * c-common.h (maybe_warn_shift_overflow): Declare.
1027 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1028 * c.opt (Wshift-overflow): New option.
1030 2015-07-16 Martin Liska <mliska@suse.cz>
1032 * c-format.c (static void check_format_info_main): Use
1033 object_allocator instead of pool_allocator.
1034 (check_format_arg): Likewise.
1035 (check_format_info_main): Likewise.
1037 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1039 * c-opts.c: Remove multiline #include comment.
1041 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1043 * c-common.c: Fix double word typos.
1045 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1047 * c-ada-spec.h (cpp_operation): Revert latest change.
1048 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1049 constructors and destructors.
1051 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
1053 * c-common.h: Adjust includes for flags.h changes.
1054 * stub-objc.c: Likewise.
1056 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1058 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1059 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1061 2015-07-08 Jakub Jelinek <jakub@redhat.com>
1063 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1064 are to be removed, return NULL rather than original clauses list.
1066 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1068 * array-notation-common.c: Adjust includes.
1069 * c-ada-spec.c: Likewise.
1070 * c-cilkplus.c: Likewise.
1071 * c-common.h: Likewise.
1072 * c-cppbuiltin.c: Likewise.
1073 * c-dump.c: Likewise.
1074 * c-format.c: Likewise.
1075 * c-gimplify.c: Likewise.
1076 * c-indentation.c: Likewise.
1077 * c-lex.c: Likewise.
1078 * c-omp.c: Likewise.
1079 * c-opts.c: Likewise.
1080 * c-pch.c: Likewise.
1081 * c-ppoutput.c: Likewise.
1082 * c-pragma.c: Likewise.
1083 * c-pretty-print.c: Likewise.
1084 * c-semantics.c: Likewise.
1085 * c-ubsan.c: Likewise.
1087 * stub-objc.c: Likewise.
1089 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1091 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1092 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1094 2015-07-01 Jason Merrill <jason@redhat.com>
1096 * c-common.h (D_CXX11): Rename from D_CXX0X.
1097 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1098 * c-common.c: Adjust.
1100 * c-opts.c (c_common_post_options): Default to C++14.
1102 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1104 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1106 Implement N4197 - Adding u8 character literals
1107 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
1109 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
1110 CPP_UTF8CHAR_USERDEF tokens.
1111 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
1112 and CPP_UTF8CHAR tokens.
1113 (lex_charconst): Treat CPP_UTF8CHAR token.
1115 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1118 * c-common.c (do_warn_unused_parameter): Move here.
1119 * c-common.h (do_warn_unused_parameter): Declare.
1121 2015-06-29 Marek Polacek <polacek@redhat.com>
1124 * c-common.c (check_case_bounds): Add bool * parameter. Set
1126 (c_add_case_label): Add bool * parameter. Pass it down to
1128 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1130 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1133 2015-06-27 Marek Polacek <polacek@redhat.com>
1135 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1136 or VECTOR_INTEGER_TYPE_P throughout.
1137 * c-gimplify.c: Likewise.
1139 2015-06-26 Marek Polacek <polacek@redhat.com>
1141 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1142 * c-common.c (c_fully_fold_internal): Likewise.
1143 (c_alignof_expr): Likewise.
1144 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1145 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
1146 * cilk.c (create_parm_list): Likewise.
1148 2015-06-26 Marek Polacek <polacek@redhat.com>
1150 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1152 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1154 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1155 * c-gimplify.c: Likewise.
1156 * c-pragma.c: Likewise.
1157 * c-ubsan.c: Likewise.
1160 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1162 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1165 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1167 * cilk.c: Move calls.h after tm.h in the include chain.
1169 2015-06-25 Marek Polacek <polacek@redhat.com>
1171 * array-notation-common.c: Use VAR_P throughout.
1172 * c-ada-spec.c: Likewise.
1173 * c-common.c: Likewise.
1174 * c-format.c: Likewise.
1175 * c-gimplify.c: Likewise.
1176 * c-omp.c: Likewise.
1177 * c-pragma.c: Likewise.
1178 * c-pretty-print.c: Likewise.
1181 2015-06-25 Marek Polacek <polacek@redhat.com>
1183 * cilk.c (extract_free_variables): Use is_global_var.
1185 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1187 * c-common.c: Don't include target-def.h.
1189 2015-06-23 Marek Polacek <polacek@redhat.com>
1191 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1192 when comparing INTEGER_CSTs.
1194 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1196 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1197 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1198 (dump_ada_template): Skip partially specialized types.
1200 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1202 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1205 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1207 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1208 * c-ada-spec.c: Likewise.
1209 * c-cilkplus.c: Likewise.
1210 * c-common.c: Likewise.
1211 * c-common.h: Likewise.
1212 * c-cppbuiltin.c: Likewise.
1213 * c-dump.c: Likewise.
1214 * c-format.c: Likewise.
1215 * c-gimplify.c: Likewise.
1216 * c-indentation.c: Likewise.
1217 * c-lex.c: Likewise.
1218 * c-omp.c: Likewise.
1219 * c-opts.c: Likewise.
1220 * c-pch.c: Likewise.
1221 * c-ppoutput.c: Likewise.
1222 * c-pragma.c: Likewise.
1223 * c-pretty-print.c: Likewise.
1224 * c-semantics.c: Likewise.
1225 * c-ubsan.c: Likewise.
1227 * stub-objc.c: Likewise.
1229 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1232 * c-common.c (c_common_truthvalue_conversion): Warn when
1233 converting an address of a reference to a truth value.
1235 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1237 * array-notation-common.c : Adjust include files.
1238 * c-ada-spec.c : Likewise.
1239 * c-cilkplus.c : Likewise.
1240 * c-common.c : Likewise.
1241 * c-common.h : Likewise.
1242 * c-cppbuiltin.c : Likewise.
1243 * c-dump.c : Likewise.
1244 * c-format.c : Likewise.
1245 * c-gimplify.c : Likewise.
1246 * c-indentation.c : Likewise.
1247 * c-lex.c : Likewise.
1248 * c-omp.c : Likewise.
1249 * c-opts.c : Likewise.
1250 * c-pch.c : Likewise.
1251 * c-ppoutput.c : Likewise.
1252 * c-pragma.c : Likewise.
1253 * c-pretty-print.c : Likewise.
1254 * c-semantics.c : Likewise.
1255 * c-ubsan.c : Likewise.
1256 * cilk.c : Likewise.
1257 * stub-objc.c : Likewise.
1259 2015-06-08 Marek Polacek <polacek@redhat.com>
1262 * c-format.c (location_from_offset): Return LOC if LINE is null.
1264 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1266 * c-common.h (c_parse_final_cleanups): New prototype.
1267 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1269 2015-06-04 Sriraman Tallam <tmsriram@google.com>
1271 * c-common.c (noplt): New attribute.
1272 (handle_noplt_attribute): New handler.
1274 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1276 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1277 * c-ada-spec.c: Likewise.
1278 * c-cilkplus.c: Likewise.
1279 * c-common.c: Likewise.
1280 * c-common.h: Likewise.
1281 * c-cppbuiltin.c: Likewise.
1282 * c-dump.c: Likewise.
1283 * c-format.c: Likewise.
1284 * c-gimplify.c: Likewise.
1285 * c-indentation.c: Likewise.
1286 * c-lex.c: Likewise.
1287 * c-omp.c: Likewise.
1288 * c-opts.c: Likewise.
1289 * c-pch.c: Likewise.
1290 * c-ppoutput.c: Likewise.
1291 * c-pragma.c: Likewise.
1292 * c-pretty-print.c: Likewise.
1293 * c-semantics.c: Likewise.
1294 * c-ubsan.c: Likewise.
1296 * stub-objc.c: Likewise.
1298 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1301 * c-indentation.c (should_warn_for_misleading_indentation): Use
1302 expand_location rather than expand_location_to_spelling_point.
1303 Don't warn if the guarding statement is more indented than the
1306 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1308 * c-indentation.c (warn_for_misleading_indentation): Bail out
1309 immediately if -Wmisleading-indentation isn't enabled.
1311 2015-06-01 Martin Liska <mliska@suse.cz>
1313 * c-format.c (check_format_arg):Use new type-based pool allocator.
1314 (check_format_info_main) Likewise.
1316 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1318 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1319 (has_nontrivial_methods): Likewise.
1321 2015-05-25 Marek Polacek <polacek@redhat.com>
1323 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1325 2015-05-22 Marek Polacek <polacek@redhat.com>
1328 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1330 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1332 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1333 STACK_GROWS_DOWNWARD.
1335 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1337 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1338 STACK_GROWS_DOWNWARD rather than if it is defined.
1340 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1343 * c-format.c (location_column_from_byte_offset): New.
1344 (location_from_offset): New.
1345 (struct format_wanted_type): Add offset_loc field.
1346 (check_format_info): Move handling of location for extra arguments
1347 closer to the point of warning.
1348 (check_format_info_main): Pass the result of location_from_offset
1350 (format_type_warning): Pass the result of location_from_offset
1353 2015-05-20 Marek Polacek <polacek@redhat.com>
1355 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1357 2015-05-20 Marek Polacek <polacek@redhat.com>
1359 * c-ada-spec.c (dump_sloc): Use DECL_P.
1361 2015-05-20 Marek Polacek <polacek@redhat.com>
1363 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1364 * c-common.c: Likewise.
1366 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1368 * c-common.h (fe_file_change): Strengthen param from
1369 const line_map * to const line_map_ordinary *.
1370 (pp_file_change): Likewise.
1371 * c-lex.c (fe_file_change): Likewise.
1372 (cb_define): Use linemap_check_ordinary when invoking
1374 (cb_undef): Likewise.
1375 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1376 invoking cb_file_change.
1377 (c_finish_options): Likewise.
1378 (push_command_line_include): Likewise.
1379 (cb_file_change): Strengthen param "new_map" from
1380 const line_map * to const line_map_ordinary *.
1381 * c-ppoutput.c (cb_define): Likewise for local "map".
1382 (pp_file_change): Likewise for param "map" and local "from".
1384 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1386 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1388 2015-05-18 Tom de Vries <tom@codesourcery.com>
1390 * c-common.c (build_va_arg_1): New function.
1391 (build_va_arg): Add address operator to va_list operand if necessary.
1393 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1396 * c-common.c (int_safely_convertible_to_real_p): Define.
1397 (unsafe_conversion_p): Check conversions involving complex types.
1398 (conversion_warning): Add new warning message for conversions which
1399 discard imaginary component.
1400 * c-common.h: (enum conversion_safety): Add new enumerator for such
1403 2015-05-14 Marek Polacek <polacek@redhat.com>
1407 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1408 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1409 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1410 use it. If FOR_INT_CONST, require that all evaluated operands be
1413 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1415 * c-common.h (warn_for_misleading_indentation): New prototype.
1416 * c-indentation.c: New file.
1417 * c.opt (Wmisleading-indentation): New option.
1419 2015-05-12 Tom de Vries <tom@codesourcery.com>
1421 PR tree-optimization/66010
1422 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1424 2015-05-09 Jason Merrill <jason@redhat.com>
1426 * c-opts.c (c_common_post_options): Also clear
1427 cpp_opts->cpp_warn_cxx11_compat.
1429 * c-common.h (enum cxx_dialect): Add cxx_unset.
1430 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1431 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1433 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1434 (std=gnu++0x): Mark as Undocumented.
1435 (std=gnu++1y): Add deprecated message.
1437 2015-05-08 Jason Merrill <jason@redhat.com>
1439 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1442 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1444 2015-05-08 Marek Polacek <polacek@redhat.com>
1447 * c.opt (Woverride-init-side-effects): New option.
1449 2015-05-07 Marek Polacek <polacek@redhat.com>
1452 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1454 * c.opt (Wshift-negative-value): New option.
1455 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1456 when -Wextra and C99/C++11 mode.
1458 2015-05-07 Marek Polacek <polacek@redhat.com>
1459 Martin Uecker <uecker@eecs.berkeley.edu>
1461 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1462 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1464 2015-05-05 Jason Merrill <jason@redhat.com>
1466 * c.opt (Wterminate): New.
1468 2015-04-30 Marek Polacek <polacek@redhat.com>
1470 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1471 require that the non-constant be of a boolean type.
1473 2015-04-29 Josh Triplett <josh@joshtriplett.org>
1475 * c-common.c (handle_section_attribute): Refactor to reduce
1476 nesting and distinguish between error cases.
1478 2015-04-29 Marek Polacek <polacek@redhat.com>
1481 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1484 2015-04-29 Jakub Jelinek <jakub@redhat.com>
1486 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1487 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1488 HOST_BITS_PER_WIDE_INT.
1490 2015-04-28 Tom de Vries <tom@codesourcery.com>
1492 PR tree-optimization/65887
1493 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1495 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
1496 Pierre-Marie de Rodat <derodat@adacore.com>
1498 * c-ada-spec.c (in_function): Delete.
1499 (dump_generic_ada_node): Do not change in_function and remove the
1500 redundant code dealing with it.
1501 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1502 (print_ada_methods): Output the static member functions in a nested
1503 package after the regular methods as well as associated renamings.
1505 2015-04-24 Marek Polacek <polacek@redhat.com>
1508 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1509 and OPT_Wshift_count_overflow.
1512 * c-common.c (warn_logical_operator): Warn if the operands have the
1515 2015-04-24 Marek Polacek <polacek@redhat.com>
1518 * c-common.c (warn_logical_operator): Bail if either operand comes
1519 from a macro expansion.
1521 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1524 * c-common.c (c_default_pointer_mode): Add definition.
1525 * c-common.h (c_default_pointer_mode): Add declaration.
1527 2015-03-11 Jakub Jelinek <jakub@redhat.com>
1529 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1530 on record_builtin_type argument.
1532 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1535 * c-common.c (warn_logical_not_parentheses): Don't warn for
1538 2015-03-07 Marek Polacek <polacek@redhat.com>
1541 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1542 before trying to figure out whether we have a flexible array member.
1544 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1545 Jonathan Wakely <jwakely.gcc@gmail.com>
1547 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1549 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1552 * c-ada-spec.c (print_destructor): Remove obsolete code.
1554 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1556 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1557 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1558 DECL_TEMPLATE_RESULT emulations.
1559 (dump_ada_template)): Add guard for TYPE_METHODS.
1561 2015-02-27 Marek Polacek <polacek@redhat.com>
1564 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1566 2015-02-27 Kai Tietz <ktietz@redhat.com>
1569 * c-pragma.c (handle_pragma_weak): Do not try to create
1570 weak/alias of declarations not being function, or variable
1573 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1576 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1578 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1580 2015-02-16 Marek Polacek <polacek@redhat.com>
1583 * c-format.c (check_format_types): Handle null param.
1585 2015-02-13 Marek Polacek <polacek@redhat.com>
1588 * c-format.c (check_format_types): Don't warn about different
1589 signedness if the original value is in the range of WANTED_TYPE.
1591 2015-02-12 Jason Merrill <jason@redhat.com>
1594 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1595 to the current highest version.
1596 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1598 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1602 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1603 instead of RDIV_EXPR. Use build_binary_op instead of
1606 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1608 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1609 to pass input_location as first argument.
1611 2015-01-23 Tom de Vries <tom@codesourcery.com>
1614 * c.opt (fopenacc): Mark as LTO option.
1616 2015-01-23 Tom de Vries <tom@codesourcery.com>
1619 * c.opt (fopenmp): Mark as LTO option.
1621 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1624 * cilk.c (fill_decls_vec): Only put decls into vector v.
1625 (compare_decls): Fix up formatting.
1627 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1630 * cilk.c: Include vec.h.
1631 (struct cilk_decls): New structure.
1632 (wrapper_parm_cb): Split this function to...
1633 (fill_decls_vec): ...this...
1634 (create_parm_list): ...and this.
1635 (compare_decls): New function.
1636 (for_local_cb): Remove.
1637 (wrapper_local_cb): Ditto.
1638 (build_wrapper_type): For now first traverse and fill vector of
1639 declarations then sort it and then deal with sorted vector.
1640 (cilk_outline): Ditto.
1641 (declare_one_free_variable): Ditto.
1643 2015-01-21 Jason Merrill <jason@redhat.com>
1646 * c-format.c (check_format_arg): Call decl_constant_value.
1648 2015-01-19 Martin Liska <mliska@suse.cz>
1650 * c-common.c (handle_noicf_attribute): New function.
1652 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1653 Bernd Schmidt <bernds@codesourcery.com>
1654 James Norris <jnorris@codesourcery.com>
1655 Cesar Philippidis <cesar@codesourcery.com>
1656 Ilmir Usmanov <i.usmanov@samsung.com>
1657 Jakub Jelinek <jakub@redhat.com>
1659 * c.opt (fopenacc): New option.
1660 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1661 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1663 * c-common.h (c_finish_oacc_wait): New prototype.
1664 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1665 (c_finish_oacc_wait): New function.
1666 * c-pragma.c (oacc_pragmas): New variable.
1667 (c_pp_lookup_pragma, init_pragma): Handle it.
1668 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1669 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1670 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1671 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1672 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1673 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1674 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1675 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1676 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1677 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1678 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1679 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1680 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1681 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1682 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1683 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1684 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1685 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1686 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1687 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1688 PRAGMA_OACC_CLAUSE_WORKER.
1690 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1692 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1693 for the new option fstack-protector_explicit.
1694 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1695 (handle_stack_protect_attribute): New function.
1697 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1699 * c.opt: New option -Warray-bounds=.
1701 2015-01-09 Michael Collison <michael.collison@linaro.org>
1703 * array-notation-common.c: Include hash-set.h, machmode.h,
1704 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1705 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1706 * c-ada-spec.c: Ditto.
1707 * c-cilkplus.c: Ditto.
1708 * c-common.c: Include input.h due to flattening of tree.h.
1709 Define macro GCC_C_COMMON_C.
1710 * c-common.h: Flatten tree.h header files into c-common.h.
1711 Remove include of tree-core.h.
1712 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1713 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1714 fold-const.h, wide-int.h, and inchash.h due to
1715 flattening of tree.h.
1717 * c-format.c: Flatten tree.h header files into c-common.h.
1718 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1719 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1720 fold-const.h, wide-int.h, and inchash.h due to
1721 flattening of tree.h.
1722 * c-dump.c: Include hash-set.h, machmode.h,
1723 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1724 fold-const.h, wide-int.h, and inchash.h due to
1725 flattening of tree.h.
1726 * c-format.c: Include hash-set.h, machmode.h,
1727 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1728 fold-const.h, wide-int.h, inchash.h and real.h due to
1729 flattening of tree.h.
1730 * c-gimplify.c: Include hash-set.h, machmode.h,
1731 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1732 fold-const.h, wide-int.h, and inchash.h due to
1733 flattening of tree.h.
1739 * c-ppoutput.c: Ditto.
1740 * c-pragma.c: Ditto.
1741 * c-pretty-print.c: Ditto.
1742 * c-semantics.c: Ditto.
1744 * stub-objc.c: Ditto.
1746 2015-01-08 Jason Merrill <jason@redhat.com>
1748 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1749 do_ubsan_in_current_function.
1750 (ubsan_maybe_instrument_reference_or_call): Likewise.
1751 * c-ubsan.h: Declare it.
1753 2015-01-08 Mike Stump <mikestump@comcast.net>
1755 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1757 2015-01-07 Marek Polacek <polacek@redhat.com>
1760 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1761 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1763 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1766 * c.opt (Wsuggest-override): New option.
1768 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1770 Update copyright years.
1772 2015-01-05 Marek Polacek <polacek@redhat.com>
1775 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1777 * c-common.h (warn_array_subscript_with_type_char): Update
1780 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1782 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1783 Control macro with flag_sized_deallocation.
1785 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1787 * c.opt (Wdiscarded-array-qualifiers): New option.
1789 2014-12-19 Jakub Jelinek <jakub@redhat.com>
1791 PR preprocessor/63831
1792 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1793 and __has_cpp_attribute here.
1794 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1795 c_common_has_attribute.
1796 * c-common.h (c_common_has_attribute): New prototype.
1797 * c-lex.c (init_c_lex): Set cb->has_attribute to
1798 c_common_has_attribute instead of cb_has_attribute.
1799 (get_token_no_padding): New function.
1800 (cb_has_attribute): Renamed to ...
1801 (c_common_has_attribute): ... this. No longer static. Use
1802 get_token_no_padding, require ()s, don't build TREE_LIST
1803 unnecessarily, fix up formatting, adjust diagnostics, call
1806 2014-12-15 Jason Merrill <jason@redhat.com>
1808 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1809 (-Wsized-deallocation): New.
1810 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1811 to on in C++14 and up.
1813 2014-12-11 Jason Merrill <jason@redhat.com>
1815 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1817 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1818 we aren't complaining about VLAs.
1820 2014-12-06 Marek Polacek <polacek@redhat.com>
1822 PR tree-optimization/64183
1823 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1824 shift-expression if it is integer_type_node. Use types_compatible_p.
1826 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1828 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1829 last argument from create_tmp_var_raw and create_tmp_var calls.
1830 * cilk.c (gimplify_cilk_spawn): Likewise.
1831 * c-omp.c (c_finish_omp_atomic): Likewise.
1833 2014-11-28 Marek Polacek <polacek@redhat.com>
1835 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1836 instead of unsigned_type_node.
1838 2014-11-28 Marek Polacek <polacek@redhat.com>
1841 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1843 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1844 expression to unsigned_type_node.
1846 2014-11-20 Mark Wielaard <mjw@redhat.com>
1849 * c-opts.c (set_std_c89): Set lang_hooks.name.
1850 (set_std_c99): Likewise.
1851 (set_std_c11): Likewise.
1852 (set_std_cxx98): Likewise.
1853 (set_std_cxx11): Likewise.
1854 (set_std_cxx14): Likewise.
1855 (set_std_cxx1z): Likewise.
1857 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1860 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1861 return type to bool.
1862 * c-common.c: Include gimple-expr.h.
1863 (convert_vector_to_pointer_for_subscript): Change return type to
1864 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1865 and copy it into a TARGET_EXPR and use that instead of *vecp
1868 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1870 Merger of git branch "gimple-classes-v2-option-3".
1871 * ChangeLog.gimple-classes: New.
1872 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1873 from being just a vec<gimple> to a vec<gbind *>.
1875 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1878 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1879 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1880 get_pointer_alignment for non-pointers. Use ptype, or if it is
1881 reference type, corresponding pointer type, as type of kind
1883 (ubsan_maybe_instrument_reference,
1884 ubsan_maybe_instrument_member_call): Adjust callers.
1886 2014-11-15 Marek Polacek <polacek@redhat.com>
1889 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1891 (extract_array_notation_exprs): Return for NULL node.
1893 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1895 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1896 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1898 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1901 * c-common.c (check_builtin_function_arguments): Handle
1902 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1904 2014-11-10 Andi Kleen <ak@linux.intel.com>
1907 * c-common.h (check_no_cilk): Declare.
1908 * cilk.c (get_error_location): New function.
1909 (check_no_cilk): Dito.
1911 2014-11-10 Andi Kleen <ak@linux.intel.com>
1913 * cilk.c (recognize_spawn): Use expression location
1916 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1918 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1920 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1922 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1923 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1924 (__cpp_range_based_for, __cpp_initializer_lists,
1925 __cpp_delegating_constructors, __cpp_nsdmi,
1926 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1927 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1928 __has_cpp_attribute.
1929 * c-lex.c (cb_has_attribute): New callback CPP function;
1930 (init_c_lex): Set has_attribute callback.
1932 2014-11-04 Richard Biener <rguenther@suse.de>
1934 * c-common.c (shorten_compare): Do not shorten mixed
1935 DFP and non-DFP compares.
1937 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1939 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1940 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1941 Commentary and rearrangement of tests.
1942 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1943 Commentary and rearrangement of tests.
1944 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1945 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1947 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1949 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1950 enum from machine_mode.
1952 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1954 * c-common.c: Adjust include files.
1955 * c-gimplify.c: Ditto.
1957 * c-pragma.c: Ditto.
1960 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1962 * c-gimplify.c: Adjust include files.
1964 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1967 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1968 c_common_initialize_diagnostics.
1969 * c-common.h: Likewise.
1971 2014-10-24 Marek Polacek <polacek@redhat.com>
1974 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1975 print "struct"/"union"/"enum" for typedefed names.
1977 2014-10-23 Marek Polacek <polacek@redhat.com>
1979 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1982 2014-10-22 Jakub Jelinek <jakub@redhat.com>
1983 Yury Gribov <y.gribov@samsung.com>
1985 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1986 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1987 instead of flag_sanitize_recover as bool flag.
1989 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1991 * cilk.c: Revert previous change.
1993 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1996 * cilk.c: Include vec.h.
1997 (struct cilk_decls): New structure.
1998 (wrapper_parm_cb): Split this function to...
1999 (fill_decls_vec): ...this...
2000 (create_parm_list): ...and this.
2001 (compare_decls): New function.
2002 (for_local_cb): Remove.
2003 (wrapper_local_cb): Ditto.
2004 (build_wrapper_type): For now first traverse and fill vector of
2005 declarations then sort it and then deal with sorted vector.
2006 (cilk_outline): Ditto.
2007 (declare_one_free_variable): Ditto.
2009 2014-10-17 Marek Polacek <polacek@redhat.com>
2011 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2012 * c.opt (Wimplicit-int): Initialize to -1.
2014 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
2016 * c-pragma.c: Adjust include files.
2017 * c-semantics.c: Likewise.
2019 2014-10-16 DJ Delorie <dj@redhat.com>
2021 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2024 2014-10-14 Jason Merrill <jason@redhat.com>
2027 * c-common.h (CPP_PREPARSED_EXPR): New.
2028 (N_CP_TTYPES): Adjust.
2030 2014-10-15 Marek Polacek <polacek@redhat.com>
2032 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2034 2014-10-14 DJ Delorie <dj@redhat.com>
2036 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2037 types, not just __int128.
2038 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2039 types, not just __int128.
2040 (cpp_atomic_builtins): Round pointer sizes up.
2041 (type_suffix): Use type precision, not specific types.
2042 * c-common.c (c_common_reswords): Remove __int128 special case.
2043 (c_common_type_for_size): Check for all __intN types, not just
2045 (c_common_type_for_mode): Likewise.
2046 (c_common_signed_or_unsigned_type): Likewise.
2047 (c_build_bitfield_integer_type): Likewise.
2048 (c_common_nodes_and_builtins): Likewise.
2049 (keyword_begins_type_specifier): Likewise.
2050 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2053 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2055 * c-common.c: Use hash_table instead of hashtab.
2057 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2059 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2062 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2067 * c-common.c (warn_logical_operator): Punt for vectors.
2069 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2071 Implement SD-6: SG10 Feature Test Recommendations
2072 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2073 macros and the __has_header macro.
2075 2014-09-30 Jason Merrill <jason@redhat.com>
2077 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2078 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2079 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2081 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2082 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2084 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2085 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2087 2014-09-24 Marek Polacek <polacek@redhat.com>
2091 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2093 2014-09-23 Andi Kleen <ak@linux.intel.com>
2095 * c-common.c (handle_no_reorder_attribute): New function.
2096 (c_common_attribute_table): Add no_reorder attribute.
2098 2014-09-22 Joseph Myers <joseph@codesourcery.com>
2100 * c-cppbuiltin.c (c_cpp_builtins): Define
2101 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2104 2014-09-18 Joseph Myers <joseph@codesourcery.com>
2106 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2107 for supported floating-point modes.
2109 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2111 * c.opt (Wpsabi): Use LangEnabledBy.
2112 * c-opts.c (c_common_handle_option): Do not handle here.
2114 2014-09-12 Joseph Myers <joseph@codesourcery.com>
2116 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2117 macros for floating-point modes.
2119 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
2122 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2123 __*_DENORM_MIN__ without denormals.
2125 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2127 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2128 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2129 ubsan_create_data callers.
2130 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2131 index is constant or BIT_AND_EXPR with constant mask and is
2132 small enough for the bound.
2133 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2134 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2136 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2138 * c.opt: Add CppReason to various flags.
2139 (Wdate-time): Re-sort.
2140 * c-common.c: Include c-common.h earlier.
2141 (struct reason_option_codes_t): Delete.
2142 (c_option_controlling_cpp_error): Prefix global type and struct
2145 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2147 * c.opt (Wnormalized): New.
2148 (Wnormalized=): Use Enum and Reject Negative.
2149 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2151 2014-09-08 Joseph Myers <joseph@codesourcery.com>
2153 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2154 digits of floating-point modes if -fbuilding-libgcc.
2156 2014-09-05 Joseph Myers <joseph@codesourcery.com>
2158 * c-cppbuiltin.c (c_cpp_builtins): Also define
2159 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2160 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2161 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2162 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2163 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2164 __LIBGCC_STACK_GROWS_DOWNWARD__,
2165 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2166 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2167 __LIBGCC_DWARF_FRAME_REGISTERS__,
2168 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2169 __LIBGCC_STACK_POINTER_REGNUM__ and
2170 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2171 (builtin_define_with_value): Handle backslash-escaping in string
2174 2014-09-05 Richard Biener <rguenther@suse.de>
2177 * c-format.c (check_format_arg): Properly handle
2178 effectively signed POINTER_PLUS_EXPR offset.
2180 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2182 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2183 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2184 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2186 * c-opts.c (c_common_handle_option): Do not handle here.
2187 (sanitize_cpp_opts): Likewise.
2188 * c-common.c (struct reason_option_codes_t): Handle
2189 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2191 2014-09-03 Marek Polacek <polacek@redhat.com>
2193 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2195 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2196 Balaji V. Iyer <balaji.v.iyer@intel.com>
2197 Igor Zamyatin <igor.zamyatin@intel.com>
2199 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2200 * c-common.c (c_common_reswords): Added _Cilk_for.
2201 * c-common.h (enum rid): Added RID_CILK_FOR.
2202 (cilk_for_number_of_iterations): Add declaration.
2203 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2205 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2206 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2208 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2210 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2211 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2212 Wundef): Use CPP, Var and Init.
2213 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2215 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2217 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2218 * c-opts.c (c_common_handle_option): Do not handle here.
2220 2014-08-25 Jason Merrill <jason@redhat.com>
2222 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2223 -std=c++14 and -std=gnu++14, rather than the reverse.
2224 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2225 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2226 * c-common.h (cxx_dialect): Remove cxx1y.
2228 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2230 * c-common.h (enum cxx_dialect): Add cxx14.
2231 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2232 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2233 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2235 2014-08-22 Jason Merrill <jason@redhat.com>
2237 * c.opt (std=gnu++17): Fix alias.
2239 2014-08-22 Marek Polacek <polacek@redhat.com>
2242 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2243 check for vector types. Drop LHS argument.
2244 * c-common.h (warn_logical_not_parentheses): Adjust.
2246 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2248 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2249 (Wmultichar): Likewise.
2250 (Wdate-time): Use C-family languages instead of Common. Use CPP
2252 * c-opts.c (c_common_handle_option): Do not handle the above
2254 (sanitize_cpp_opts): Likewise.
2256 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2259 * c-opts.c: Include tree-diagnostics.h.
2260 (c_diagnostic_finalizer): New.
2261 (c_common_initialize_diagnostics): Use it.
2263 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2265 PR preprocessor/51303
2266 * c-common.c (struct reason_option_codes_t option_codes):
2267 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2269 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2273 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2274 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2275 (c_common_post_options): Call init_global_opts_from_cpp.
2276 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2278 2014-08-19 Marek Polacek <polacek@redhat.com>
2281 * c-common.c (maybe_warn_bool_compare): New function.
2282 * c-common.h (maybe_warn_bool_compare): Declare.
2283 * c.opt (Wbool-compare): New option.
2285 2014-08-19 Marek Polacek <polacek@redhat.com>
2287 * c.opt (Wc99-c11-compat): New option.
2289 2014-08-19 Marek Polacek <polacek@redhat.com>
2291 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2292 to warn_c90_c99_compat.
2293 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2296 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2297 Steven Bosscher <steven@gcc.gnu.org>
2300 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2301 format_check_results.
2302 (check_function_format): Use true and add comment for boolean
2304 (finish_dollar_format_checking): Use explicit location when warning.
2305 (check_format_info): Likewise.
2306 (check_format_arg): Set extra_arg_loc and format_string_loc.
2307 (check_format_info_main): Use explicit location when warning.
2308 (check_format_types): Pass explicit location.
2309 (format_type_warning): Likewise.
2311 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2314 * c-format.c: Handle Fortran flags.
2316 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2319 * array-notation-common.c (find_rank): Added handling for other
2320 types of references.
2322 2014-08-10 Marek Polacek <polacek@redhat.com>
2325 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2326 * c.opt (Wc90-c99-compat): Add option.
2328 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2330 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2332 2014-08-03 Marek Polacek <polacek@redhat.com>
2334 * c-common.c (check_case_value): Add location_t parameter. Use it.
2335 (c_add_case_label): Pass loc to check_case_value.
2337 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2339 * cilk.c: Use hash_map instead of pointer_map.
2341 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2343 * c-gimplify.c: Use hash_set instead of pointer_set.
2345 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2348 * array-notation-common.c (extract_array_notation_exprs): Handling
2351 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2353 * c-common.h (min_align_of_type): Removed prototype.
2354 * c-common.c (min_align_of_type): Removed.
2355 * c-ubsan.h (ubsan_maybe_instrument_reference,
2356 ubsan_maybe_instrument_member_call): New prototypes.
2357 * c-ubsan.c: Include stor-layout.h and builtins.h.
2358 (ubsan_maybe_instrument_reference_or_call,
2359 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2362 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
2365 * c.opt (-Wreturn-local-addr): Move to common.opt.
2367 2014-07-30 Jason Merrill <jason@redhat.com>
2372 * c.opt (-fuse-all-virtuals): New.
2374 2014-07-30 Tom Tromey <tromey@redhat.com>
2377 * c.opt (Wdesignated-init): New option.
2378 * c-common.c (c_common_attribute_table): Add "designated_init".
2379 (handle_designated_init): New function.
2381 2014-07-24 Marek Polacek <polacek@redhat.com>
2384 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2386 2014-07-16 Dodji Seketeli <dodji@redhat.com>
2388 PR preprocessor/60723 - missing system-ness marks for macro tokens
2389 * c-ppoutput.c (struct print::prev_was_system_token): New data
2391 (init_pp_output): Initialize it.
2392 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2393 (do_line_change): Return a flag saying if a line marker was
2395 (scan_translation_unit): Detect if the system-ness of the token we
2396 are about to emit is different from the one of the previously
2397 emitted token. If so, emit a line marker. Avoid emitting useless
2398 adjacent line markers. Avoid emitting line markers for tokens
2399 originating from the expansion of built-in macros.
2400 (scan_translation_unit_directives_only): Adjust.
2402 2014-07-15 Marek Polacek <polacek@redhat.com>
2404 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2405 TYPE_MAX_VALUE is NULL.
2407 2014-07-14 Jakub Jelinek <jakub@redhat.com>
2410 * c.opt (Wmemset-transposed-args): New warning.
2412 2014-07-10 Jason Merrill <jason@redhat.com>
2416 * c.opt (-fuse-all-virtuals): New.
2418 2014-07-09 Richard Biener <rguenther@suse.de>
2421 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2422 using unsigned arithmetic if overflow does not wrap instead of
2423 if overflow is undefined.
2425 2014-07-06 Marek Polacek <polacek@redhat.com>
2428 * c.opt (Wsizeof-array-argument): New option.
2430 2014-07-03 Jakub Jelinek <jakub@redhat.com>
2432 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
2433 comments->count <= 1, as comments->entries might be NULL.
2435 2014-07-01 Marek Polacek <polacek@redhat.com>
2437 * c.opt (Wint-conversion): New option.
2439 2014-07-01 Marek Polacek <polacek@redhat.com>
2442 * c.opt (Wincompatible-pointer-types): New option.
2444 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2447 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2448 Do not discard TYPE_QUALS of type.
2450 2014-06-26 Jason Merrill <jason@redhat.com>
2452 * c-common.h (enum cxx_dialect): Add cxx1z.
2453 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2454 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2456 2014-06-26 Teresa Johnson <tejohnson@google.com>
2458 * c-common.h (get_dump_info): Declare.
2459 * c-gimplify.c (c_genericize): Use saved dump files.
2460 * c-opts.c (c_common_parse_file): Begin and end dumps
2461 once around parsing invocation.
2462 (get_dump_info): New function.
2464 2014-06-23 Marek Polacek <polacek@redhat.com>
2465 Andrew MacLeod <amacleod@redhat.com>
2468 * c-common.c (get_atomic_generic_size): Don't segfault if the
2469 type doesn't have a size.
2471 2014-06-20 Marek Polacek <polacek@redhat.com>
2473 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2474 (ubsan_walk_array_refs_r): New function.
2475 (c_genericize): Instrument array bounds.
2476 * c-ubsan.c: Include "internal-fn.h".
2477 (ubsan_instrument_division): Mark instrumented arrays as having
2478 side effects. Adjust ubsan_type_descriptor call.
2479 (ubsan_instrument_shift): Likewise.
2480 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2481 (ubsan_instrument_bounds): New function.
2482 (ubsan_array_ref_instrumented_p): New function.
2483 (ubsan_maybe_instrument_array_ref): New function.
2484 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2485 (ubsan_array_ref_instrumented_p): Declare.
2486 (ubsan_maybe_instrument_array_ref): Declare.
2488 2014-06-20 Hale Wang <hale.wang@arm.com>
2491 * c.opt (fshort-enums): Add to LTO.
2492 * c.opt (fshort-wchar): Likewise.
2494 2014-06-16 Marek Polacek <polacek@redhat.com>
2497 * c.opt (Wswitch-bool): Add Var.
2499 2014-06-12 Jakub Jelinek <jakub@redhat.com>
2502 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2503 #pragma omp target teams or
2504 #pragma omp {,target }teams distribute simd.
2506 2014-06-12 Jason Merrill <jason@redhat.com>
2508 * c.opt (Wabi=, fabi-compat-version): New.
2509 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2510 (c_common_post_options): Handle flag_abi_compat_version default.
2511 Disallow -fabi-compat-version=1.
2512 * c-common.h (abi_version_crosses): New.
2514 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
2516 * c-common.c (handle_section_attribute): Update handling for
2517 section names that are no longer trees.
2519 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2522 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2523 (omp_pragmas): ... back here.
2525 2014-06-05 Marek Polacek <polacek@redhat.com>
2528 * c-common.c (warn_logical_not_parentheses): New function.
2529 * c-common.h (warn_logical_not_parentheses): Declare.
2530 * c.opt (Wlogical-not-parentheses): New option.
2532 2014-06-04 Marek Polacek <polacek@redhat.com>
2535 * c-common.c (check_case_bounds): Add location parameter.
2537 (c_add_case_label): Pass loc to check_case_bounds.
2539 2014-06-03 Marek Polacek <polacek@redhat.com>
2542 * c.opt (Wswitch-bool): New option.
2544 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2546 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2548 (record_types_used_by_current_var_decl): Move prototype to where
2551 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2552 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2553 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2555 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2557 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2558 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2560 * c-pretty-print.c (pp_c_void_constant): New function.
2561 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2562 (c_pretty_printer::expression): Handle VOID_CST.
2563 * cilk.c (extract_free_variables): Likewise.
2564 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2565 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2567 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2569 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2570 * c-pragma.c (push_alignment): Adjust.
2571 (handle_pragma_push_options): Likewise.
2573 2014-05-09 Marek Polacek <polacek@redhat.com>
2576 * c-common.c (check_user_alignment): Return -1 if alignment is error
2578 (handle_aligned_attribute): Don't call default_conversion on
2580 (handle_vector_size_attribute): Likewise.
2581 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2582 (handle_sentinel_attribute): Call default_conversion and allow even
2583 integral types as an argument.
2585 2014-05-08 Marek Polacek <polacek@redhat.com>
2588 * c-common.c (min_align_of_type): New function factored out from...
2589 (c_sizeof_or_alignof_type): ...here.
2590 * c-common.h (min_align_of_type): Declare.
2592 2014-05-08 Marek Polacek <polacek@redhat.com>
2595 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2596 parameter type of main.
2598 2014-05-07 DJ Delorie <dj@redhat.com>
2600 * c-cppbuiltin.c (print_bits_of_hex): New.
2601 (builtin_define_type_minmax): Print values using hex so as not to
2602 require a pre-computed list of string values.
2604 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2605 Mike Stump <mikestump@comcast.net>
2606 Richard Sandiford <rdsandiford@googlemail.com>
2608 * c-ada-spec.c: Include wide-int.h.
2609 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2610 (dump_generic_ada_node): Use wide-int interfaces.
2611 * c-common.c: Include wide-int-print.h.
2612 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2613 (pointer_int_sum): Use wide-int interfaces.
2614 (c_common_nodes_and_builtins): Use make_int_cst.
2615 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2616 (handle_alloc_size_attribute): Use wide-int interfaces.
2617 (get_nonnull_operand): Likewise.
2618 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2619 * c-lex.c: Include wide-int.h.
2620 (narrowest_unsigned_type): Take a widest_int rather than two
2622 (narrowest_signed_type): Likewise.
2623 (interpret_integer): Update accordingly. Use wide-int interfaces.
2624 (lex_charconst): Use wide-int interfaces.
2625 * c-pretty-print.c: Include wide-int.h.
2626 (pp_c_integer_constant): Use wide-int interfaces.
2627 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2628 INT_CST_LT_UNSIGNED.
2630 2014-05-06 Richard Biener <rguenther@suse.de>
2632 * c-opts.c (c_common_post_options): For -freestanding,
2633 -fno-hosted and -fno-builtin disable pattern recognition
2634 if not enabled explicitely.
2636 2014-05-02 Marek Polacek <polacek@redhat.com>
2638 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2640 2014-05-01 Marek Polacek <polacek@redhat.com>
2643 * c.opt (Wdiscarded-qualifiers): Add.
2645 2014-04-30 Marek Polacek <polacek@redhat.com>
2647 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2648 INT_MIN / -1 sanitization only for integer types.
2650 2014-04-25 Marek Polacek <polacek@redhat.com>
2653 * c-common.c (handle_noinline_attribute): Warn if the attribute
2654 conflicts with always_inline attribute.
2655 (handle_always_inline_attribute): Warn if the attribute conflicts
2656 with noinline attribute.
2658 2014-04-25 Marek Polacek <polacek@redhat.com>
2661 * c-common.c (check_main_parameter_types): Warn about variadic main.
2663 2014-04-24 Mike Stump <mikestump@comcast.net>
2665 * c.opt (Wshadow-ivar): Default to on.
2667 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2669 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2671 2014-04-23 Marek Polacek <polacek@redhat.com>
2673 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2675 2014-04-22 Jakub Jelinek <jakub@redhat.com>
2678 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2679 if flag_sanitize_undefined_trap_on_error.
2680 (ubsan_instrument_division, ubsan_instrument_shift,
2681 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2682 if !flag_sanitize_recover.
2684 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
2687 * c-common.c (registered_builtin_types): Make non-static.
2688 * c-common.h (registered_builtin_types): Declare.
2690 2014-04-14 Richard Biener <rguenther@suse.de>
2691 Marc Glisse <marc.glisse@inria.fr>
2694 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2695 apply may-alias the scalar pointer type when applicable.
2697 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2700 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2701 as possible argument for Cilk_spawn.
2703 2014-04-11 Tobias Burnus <burnus@net-b.de>
2706 * c.opt (Wformat-signedness): Add
2707 * c-format.c(check_format_types): Use it.
2709 2014-04-11 Jason Merrill <jason@redhat.com>
2712 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2713 default_conversion for an array argument.
2715 2014-04-08 Marek Polacek <polacek@redhat.com>
2718 * c-ubsan.c: Include asan.h.
2719 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2721 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2723 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2725 2014-04-02 Marek Polacek <polacek@redhat.com>
2727 * c-common.h (c_expand_expr): Remove declaration.
2729 2014-03-28 Jakub Jelinek <jakub@redhat.com>
2732 * c-common.c (add_atomic_size_parameter): When creating new
2733 params vector, push the size argument first.
2735 2014-03-26 Jakub Jelinek <jakub@redhat.com>
2737 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2738 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2739 ubsan_create_data callers.
2741 2014-03-22 Jakub Jelinek <jakub@redhat.com>
2744 * c-opts.c (c_finish_options): Restore cb_file_change call to
2747 2014-03-13 Jakub Jelinek <jakub@redhat.com>
2750 * c-pragma.c (apply_pragma_weak): Only look at
2751 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2752 DECL_ASSEMBLER_NAME_SET_P (decl).
2753 (maybe_apply_pending_pragma_weaks): Exit early if
2754 vec_safe_is_empty (pending_weaks) rather than only when
2756 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2757 set assembler name back to NULL afterwards.
2759 2014-03-11 Jason Merrill <jason@redhat.com>
2761 * c.opt: Add -std=gnu++14.
2763 2014-03-11 Ian Bolton <ian.bolton@arm.com>
2765 * c-opts.c (c_common_post_options): Don't override
2766 -ffp-contract=fast if unsafe-math-optimizations is on.
2768 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
2770 * c.opt: Enable LTO FE for fshort-double.
2772 2014-03-07 Jason Merrill <jason@redhat.com>
2774 * c.opt: Add -std=c++14.
2776 2014-03-06 Marek Polacek <polacek@redhat.com>
2779 * cilk.c (contains_cilk_spawn_stmt): New function.
2780 (contains_cilk_spawn_stmt_walker): Likewise.
2781 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2782 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2784 2014-03-03 Jakub Jelinek <jakub@redhat.com>
2786 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2787 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2788 even when flag_preprocess_only.
2790 2014-02-26 Jason Merrill <jason@redhat.com>
2794 * c-common.c (shorten_compare): Don't check
2795 c_inhibit_evaluation_warnings.
2797 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2800 * c-common.c (c_common_nodes_and_builtins): When initializing
2801 c_uint{16,32,64}_type_node, also set corresponding
2802 uint{16,32,64}_type_node to the same value.
2805 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2806 for PRAGMA_IVDEP if flag_preprocess_only.
2808 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2811 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2812 if false, add ADD itself, rather than vice versa.
2813 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2814 copy. For SAVE_EXPR, only call merge_tlist once.
2816 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2819 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2821 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2823 (c_common_attribute_table): Add alloc_align and assume_aligned
2826 2014-02-06 Marek Polacek <polacek@redhat.com>
2829 * c-common.c (warn_for_sign_compare): Call warning_at with location
2832 2014-02-05 Marek Polacek <polacek@redhat.com>
2835 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2838 2014-02-04 Marek Polacek <polacek@redhat.com>
2841 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2844 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2848 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2849 handle_vector_size_attribute, handle_nonnull_attribute): Call
2850 default_conversion on the attribute argument.
2851 (handle_nonnull_attribute): Increment the argument number.
2853 2014-01-31 Marek Polacek <polacek@redhat.com>
2856 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2857 build_function_call_vec.
2858 (resolve_overloaded_builtin): Likewise.
2859 * c-common.h (build_function_call_vec): Adjust declaration.
2861 2014-01-30 Marek Polacek <polacek@redhat.com>
2864 * c-common.h (unsafe_conversion_p): Adjust declaration.
2865 (warnings_for_convert_and_check): Likewise.
2866 (convert_and_check): Likewise.
2867 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2868 expansion_point_location_if_in_system_header on it.
2869 (warnings_for_convert_and_check): Add location parameter. Call
2870 expansion_point_location_if_in_system_header on it. Use it.
2871 (convert_and_check): Add location parameter. Use it.
2872 (conversion_warning): Likewise.
2873 (c_add_case_label): Adjust convert_and_check calls.
2874 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2876 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2878 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2880 * c-pragma.c (init_pragma): Likewise.
2883 2014-01-23 Marek Polacek <polacek@redhat.com>
2886 * c-common.c (shorten_compare): Add location_t parameter.
2887 * c-common.h (shorten_binary_op): Adjust declaration.
2889 2014-01-23 Marek Polacek <polacek@redhat.com>
2892 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2893 * c-common.h: Declare it.
2895 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2897 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2898 * c-ada-spec.c (dump_ads): Likewise.
2899 (cpp_check): Likewise.
2900 (dump_ada_specs): Likewise.
2902 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2905 * c-common.c (handle_no_instrument_function_attribute): Allow
2906 no_instrument_function attribute in class member
2907 definition/declaration.
2909 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2912 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2913 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2914 being COMPOUND_EXPR.
2915 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2916 operand a SAVE_EXPR and second MODIFY_EXPR.
2918 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2921 * c-pch.c (c_common_write_pch): Call
2922 prepare_target_option_nodes_for_pch.
2924 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2926 Update copyright years
2928 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2930 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2931 the copyright notice.
2933 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2935 * c-ada-spec.c (print_constructor): New function.
2936 (print_destructor): Retrieve the origin of the destructor.
2937 (print_ada_declaration): Revamp handling of constructors/destructors.
2939 2013-12-23 Stuart Hastings <stuart@apple.com>
2940 Bill Maddox <maddox@google.com>
2941 Jason Merrill <jason@redhat.com>
2943 * c.opt: Add -fdeclone-ctor-dtor.
2944 * c-opts.c (c_common_post_options): Default to on iff -Os.
2946 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2948 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2950 * c-pragma.h (enum pragma_cilk_clause): Remove.
2951 (enum pragma_omp_clause): Added the following fields:
2952 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2953 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2954 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2955 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2956 PRAGMA_CILK_CLAUSE_UNIFORM.
2959 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2961 * cilk.c (cilk_outline): Made this function non-static.
2962 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2963 (create_cilk_wrapper): Added a new parameter: a function pointer.
2964 (c_install_body_w_frame_cleanup): Remove
2965 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2966 * c-common.h (cilk_outline): New prototype.
2967 (gimplify_cilk_spawn): Removed two parameters.
2968 (cilk_install_body_with_frame_cleanup): New prototype.
2969 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2970 CILK_SPAWN_STMT case.
2972 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2974 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2976 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2977 (int_array_type_node): Remove.
2978 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2980 2013-12-05 Marek Polacek <polacek@redhat.com>
2983 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2984 [ADJUST_FIELD_ALIGN].
2986 2013-12-04 Joseph Myers <joseph@codesourcery.com>
2989 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2990 and check field alignment if set.
2991 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2992 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2994 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2995 Marek Polacek <polacek@redhat.com>
2997 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2998 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3000 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3003 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3006 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3009 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3010 goto invalid. If it is error_mark_node, don't issue further
3013 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3015 * c.opt (Wopenmp-simd): New.
3017 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3019 * c-ubsan.h (ubsan_instrument_return): New prototype.
3020 * c-ubsan.c (ubsan_instrument_return): New function.
3022 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3024 * c-common.c: Add required include files from gimple.h.
3025 * c-gimplify.c: Likewise
3028 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3030 * c-common.c (unsafe_conversion_p): Remove use of
3031 EXPR_LOC_OR_HERE macro.
3032 (conversion_warning): Likewise.
3033 (warnings_for_convert_and_check): Likewise.
3034 (warn_for_collisions_1): Likewise.
3035 (shorten_compare): Likewise, and remove use of in_system_header
3036 macro, using the location from the former.
3037 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3038 (cb_def_pragma): Remove use of in_system_header macro.
3039 (lex_string): Likewise.
3040 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3042 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3043 Mike Stump <mikestump@comcast.net>
3044 Richard Sandiford <rdsandiford@googlemail.com>
3046 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3047 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3048 tree_fits_shwi_p or tree_fits_uhwi_p.
3049 (dump_generic_ada_node): Likewise.
3050 * c-format.c (check_format_arg): Likewise.
3051 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3053 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3055 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3057 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3060 * c-common.c (unsafe_conversion_p): Make this function
3061 return an enumeration with more detail.
3062 (conversion_warning): Use the new return type of
3063 unsafe_conversion_p to separately warn either about conversions
3064 that lower floating point number precision or about the other
3065 kinds of conversions.
3066 * c-common.h (enum conversion_safety): New enumeration.
3067 (unsafe_conversion_p): switching return type to
3068 conversion_safety enumeration.
3069 * c.opt: Adding new warning -Wfloat-conversion and
3070 enabling it with -Wconversion.
3072 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3074 * c-opts.c: Include plugin.h.
3075 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3077 2013-11-19 Marek Polacek <polacek@redhat.com>
3079 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3081 (ubsan_instrument_shift): Likewise.
3082 (ubsan_instrument_vla): Likewise.
3084 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3086 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3087 cast to unsigned type.
3089 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3091 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3093 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3094 rather than tree_low_cst.
3096 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3098 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3099 tree_to_uhwi throughout.
3101 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3103 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3104 tree_low_cst (..., 0) with tree_to_shwi throughout.
3106 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3108 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3109 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3111 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3113 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3114 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3116 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3118 * c-cilkplus.c: New file.
3119 * c-common.c (readonly_error): Add location argument.
3120 * c-common.h (readonly_error): Same.
3121 (c_finish_cilk_clauses): Protoize.
3122 (c_check_cilk_loop): Same.
3123 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3124 Do not fail on error_mark_node.
3125 Abstract increment canonicalization to here...
3126 (c_omp_for_incr_canonicalize_ptr): New.
3127 c-pragma.c (init_pragma): Register "simd" pragma.
3128 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3129 (enum pragma_cilk_clause): New.
3131 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3133 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3134 wchar_type and host_integerp checks.
3136 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
3138 * c-common.c: Likewise.
3139 * c-gimplify.c: Likewise.
3142 2013-11-14 Diego Novillo <dnovillo@google.com>
3144 * c-common.c: Include fold-const.h.
3145 Include stor-layout.h.
3147 Include stringpool.h.
3150 Include trans-mem.h.
3151 * c-cppbuiltin.c: Include stor-layout.h.
3152 Include stringpool.h.
3153 * c-format.c: Include stringpool.h.
3154 * c-lex.c: Include stringpool.h.
3155 Include stor-layout.h.
3156 * c-pragma.c: Include stringpool.h.
3159 Include gcc-symtab.h.
3160 * c-pretty-print.c: Include stor-layout.h.
3162 * cilk.c: Include stringpool.h.
3165 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3167 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3168 * c-common.c (c_common_reswords): Add __auto_type.
3169 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3171 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3173 * c-common.c: Include gimplify.h.
3174 * c-gimplify.c: Likewise.
3176 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3177 * c-ubsan.c: Don't include gimple.h.
3179 2013-11-12 Joseph Myers <joseph@codesourcery.com>
3181 * c-common.c (c_common_reswords): Add _Thread_local.
3183 2013-11-09 Joseph Myers <joseph@codesourcery.com>
3185 * c-common.c (atomic_size_supported_p): New function.
3186 (resolve_overloaded_atomic_exchange)
3187 (resolve_overloaded_atomic_compare_exchange)
3188 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3189 Use it instead of comparing size with a local list of sizes.
3191 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
3192 Joseph Myers <joseph@codesourcery.com>
3194 * c-common.h (enum rid): Add RID_ATOMIC.
3195 * c-common.c (c_common_reswords): Add _Atomic.
3196 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3197 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3198 * c-format.c (check_format_types): Check for extra _Atomic
3199 qualifiers in format argument.
3200 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3201 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3203 2013-11-06 Tobias Burnus <burnus@net-b.de>
3205 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3207 2013-11-06 Joseph Myers <joseph@codesourcery.com>
3209 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3211 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3212 to mean lack of IEEE 754 support.
3214 2013-11-05 Tobias Burnus <burnus@net-b.de>
3216 * c.opt (-Wdate-time): New option
3217 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3219 2013-11-05 Joseph Myers <joseph@codesourcery.com>
3221 * c-cppbuiltin.c (cpp_iec_559_value): Test
3222 flag_excess_precision_cmdline not flag_excess_precision.
3224 2013-11-05 Tobias Burnus <burnus@net-b.de>
3226 * c.opt (fopenmp-simd): New option.
3227 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3228 (omp_pragmas): ... this new struct.
3229 (c_pp_lookup_pragma): Also walk omp_pragmas.
3230 (init_pragma): Init pragmas for -fopenmp-simd.
3232 2013-11-04 Marek Polacek <polacek@redhat.com>
3235 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3237 2013-11-04 Joseph Myers <joseph@codesourcery.com>
3239 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3241 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3243 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3245 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3246 (dump_ada_specs): Adjust prototype of second callback.
3247 * c-ada-spec.c (cpp_check): New global variable.
3248 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3249 (print_generic_ada_decl): Likewise.
3250 (has_static_fields): Change return type to bool and add guard.
3251 (has_nontrivial_methods): New predicate.
3252 (is_tagged_type): Change return type to bool.
3253 (separate_class_package): Call has_nontrivial_methods.
3254 (pp_ada_tree_identifier): Minor tweaks.
3255 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3256 (dump_ada_array_domains): Likewise.
3257 (dump_ada_array_type): Likewise.
3258 (dump_template_types): Remove cpp_check parameter and do not pass it to
3259 dump_generic_ada_node.
3260 (dump_ada_template): Likewise.
3261 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3263 (print_ada_methods): Change return type to integer. Remove cpp_check
3264 parameter and do not pass it down.
3265 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3266 dump_generic_ada_node.
3267 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3269 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3270 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3271 value of print_ada_methods.
3272 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3273 Set cpp_check to it before invoking dump_ada_nodes.
3274 (dump_ada_specs): Likewise.
3276 2013-11-03 Marek Polacek <polacek@redhat.com>
3278 * c-ubsan.c: Don't include hash-table.h.
3279 (ubsan_instrument_vla): New function.
3280 * c-ubsan.h: Declare it.
3282 2013-10-31 David Malcolm <dmalcolm@redhat.com>
3284 Automated part of renaming of symtab_node_base to symtab_node.
3286 Patch autogenerated by rename_symtab.py from
3287 https://github.com/davidmalcolm/gcc-refactoring-scripts
3288 revision 58bb219cc090b2f4516a9297d868c245495ee622
3290 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3291 symtab_node_base to symtab_node.
3293 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3295 Implement C++14 digit separators.
3296 * c-lex.c (interpret_float): Remove digit separators from scratch string
3297 before building real literal.
3299 2013-10-30 Jakub Jelinek <jakub@redhat.com>
3301 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3303 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3305 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3307 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3309 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3310 (insert_cilk_frame): New prototype.
3311 (cilk_init_builtins): Likewise.
3312 (gimplify_cilk_spawn): Likewise.
3313 (c_cilk_install_body_w_frame_cleanup): Likewise.
3314 (cilk_detect_spawn_and_unwrap): Likewise.
3315 (cilk_set_spawn_marker): Likewise.
3316 (build_cilk_sync): Likewise.
3317 (build_cilk_spawn): Likewise.
3320 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3322 Patch autogenerated by refactor_symtab.py from
3323 https://github.com/davidmalcolm/gcc-refactoring-scripts
3324 revision 58bb219cc090b2f4516a9297d868c245495ee622
3326 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3327 to a true class hierarchy.
3328 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3330 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3332 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3334 2013-10-26 Jeff Law <law@redhat.com>
3336 * c-common.c (c_define_builtins): Remove mudflap support.
3337 * c.opt: Ignore and warn for mudflap options.
3339 2013-10-24 Tobias Burnus <burnus@net-b.de>
3342 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3343 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3345 2013-10-23 Jason Merrill <jason@redhat.com>
3347 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3349 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3351 * c-common.h (omp_clause_mask::operator !=): New method.
3352 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3353 instead of if (mask & something) tests everywhere.
3355 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3356 201307 instead of 201107.
3357 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3358 (c_common_attribute_table): Add "omp declare target" and
3359 "omp declare simd" attributes.
3360 (handle_omp_declare_target_attribute,
3361 handle_omp_declare_simd_attribute): New functions.
3362 * c-omp.c: Include c-pragma.h.
3363 (c_finish_omp_taskgroup): New function.
3364 (c_finish_omp_atomic): Add swapped argument, if true,
3365 build the operation first with rhs, lhs arguments and use NOP_EXPR
3367 (c_finish_omp_for): Add code argument, pass it down to make_code.
3368 (c_omp_split_clauses): New function.
3369 (c_split_parallel_clauses): Removed.
3370 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3371 c_omp_declare_simd_clauses_to_decls): New functions.
3372 * c-common.h (omp_clause_mask): New type.
3373 (OMP_CLAUSE_MASK_1): Define.
3374 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3375 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3376 omp_clause_mask::operator |, omp_clause_mask::operator &,
3377 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3378 omp_clause_mask::operator ==): New methods.
3379 (enum c_omp_clause_split): New.
3380 (c_finish_omp_taskgroup): New prototype.
3381 (c_finish_omp_atomic): Add swapped argument.
3382 (c_finish_omp_for): Add code argument.
3383 (c_omp_split_clauses): New prototype.
3384 (c_split_parallel_clauses): Removed.
3385 (c_omp_declare_simd_clauses_to_numbers,
3386 c_omp_declare_simd_clauses_to_decls): New prototypes.
3387 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3388 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3389 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3390 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3391 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3392 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3393 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3394 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3395 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3396 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3397 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3398 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3399 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3400 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3401 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3402 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3403 PRAGMA_OMP_CLAUSE_UNIFORM.
3405 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
3407 PR tree-optimization/20318
3408 * c-common.c (handle_returns_nonnull_attribute): New function.
3409 (c_common_attribute_table): Add returns_nonnull.
3411 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
3414 * c.opt (fcheck-new): Move to common.opt.
3416 2013-09-25 Marek Polacek <polacek@redhat.com>
3417 Jakub Jelinek <jakub@redhat.com>
3420 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3421 an expression if we can prove it is correct.
3422 (ubsan_instrument_division): Likewise. Remove unnecessary
3425 2013-09-18 Marek Polacek <polacek@redhat.com>
3428 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3430 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3432 2013-09-14 Iain Sandoe <iain@codesourcery.com>
3435 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3436 fobjc-gc, freplace-objc-classes): Accept for LTO.
3438 2013-09-13 Jacek Caban <jacek@codeweavers.com>
3440 * c-target.def: New hook
3442 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3445 * c.opt (Wdelete-incomplete): Add.
3447 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3449 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3450 (vector_types_compatible_elements_p): New function.
3451 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3453 (vector_types_compatible_elements_p): Declare.
3455 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3457 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3458 a virtual member function.
3459 (pp_simple_type_specifier): Remove.
3460 (pp_c_type_specifier): Likewise.
3461 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3462 Rename from pp_c_type_specifier. Adjust.
3463 (c_pretty_printer::c_pretty_printer): Do not assign to
3464 simple_type_specifier.
3466 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3468 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3470 (c_pretty_printer::storage_class_specifier): Likewise.
3471 (c_pretty_printer::initializer): Likewise.
3472 (pp_declaration): Remove.
3473 (pp_declaration_specifiers): Likewise.
3474 (pp_abstract_declarator): Likewise.
3475 (pp_declarator): Likewise.
3476 (pp_type_id): Likewise.
3477 (pp_statement): Likewise.
3478 (pp_constant): Likewise.
3479 (pp_id_expression): Likewise.
3480 (pp_primary_expression): Likewise.
3481 (pp_unary_expression): Likewise.
3482 (pp_multiplicative_expression): Likewise.
3483 (pp_conditional_expression): Likewise.
3484 (pp_assignment_expression): Likewise.
3485 (pp_expression): Likewise.
3486 (pp_c_type_id): Likewise.
3487 (pp_c_storage_class_specifier): Likewise.
3488 * c-pretty-print.c (pp_c_type_cast): Tidy.
3489 (pp_c_pointer): Likewise.
3490 (pp_c_type_specifier): Likewise.
3491 (pp_c_parameter_type_list): Likewise.
3492 (pp_c_function_definition): Likewise.
3493 (pp_c_init_declarator): Likewise.
3494 (pp_c_initializer_list): Likewise.
3495 (pp_c_constructor_elts): Likewise.
3496 (c_pretty_printer::direct_abstract_declarator): Likewise.
3497 (c_pretty_printer::declaration_specifiers): Likewise.
3498 (c_pretty_printer::primary_expression): Likewise.
3499 (c_pretty_printer::postfix_expression): Likewise.
3500 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3501 (c_pretty_printer::storage_class_specifier): Rename from
3502 pp_c_storage_class_specifier.
3503 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3504 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3505 storage_class_specifier, initializer, offset_list, flags.
3507 2013-08-30 Marek Polacek <polacek@redhat.com>
3509 * c-ubsan.c: New file.
3510 * c-ubsan.h: New file.
3512 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3514 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3516 (c_pretty_printer::declaration_specifiers): Likewise.
3517 (c_pretty_printer::declarator): Likewise.
3518 (c_pretty_printer::abstract_declarator): Likewise.
3519 (c_pretty_printer::direct_abstract_declarator): Likewise.
3520 (c_pretty_printer::direct_declarator): Likewise.
3521 (c_pretty_printer::function_specifier): Likewise.
3522 (pp_declaration): Adjust.
3523 (pp_declaration_specifiers): Likewise.
3524 (pp_abstract_declarator): Likewise.
3525 (pp_direct_declarator): Likewise.
3526 (pp_function_specifier): Likewise.
3527 (pp_direct_abstract_declarator): Remove as unused.
3528 (pp_c_declaration): Remove.
3529 (pp_c_declaration_specifiers): Likewise.
3530 (pp_c_declarator): Likewise.
3531 (pp_c_direct_declarator): Likewise.
3532 (pp_c_function_specifier): Likewise.
3533 (pp_c_direct_abstract_declarator): Likewise.
3534 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3535 from pp_c_abstract_declarator. Adjust.
3536 (c_pretty_printer::direct_abstract_declarator): Rename from
3537 pp_c_direct_abstract_declarator. Adjust.
3538 (c_pretty_printer::function_specifier): Rename from
3539 pp_c_function_specifier. Adjust.
3540 (c_pretty_printer::declaration_specifiers): Rename from
3541 pp_c_declaration_specifiers. Adjust.
3542 (c_pretty_printer::direct_declarator): Rename from
3543 pp_c_direct_declarator. Adjust.
3544 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3545 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3546 (c_pretty_printer::c_pretty_printer): Do not assign to
3547 declaration, declaration_specifiers, declarator,
3548 direct_declarator, direct_abstract_declarator, function_specifier.
3550 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3552 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3553 virtual member function.
3554 (c_pretty_printer::multiplicative_expression): Likewise.
3555 (c_pretty_printer::conditional_expression): Likewise.
3556 (c_pretty_printer::assignment_expression): Likewise.
3557 (c_pretty_printer::expression): Likewise.
3558 (pp_unary_expression): Adjust.
3559 (pp_multiplicative_expression): Likewise.
3560 (pp_assignment_expression): Likewise.
3561 (pp_conditional_expression): Likewise.
3562 (pp_expression): Likewise.
3563 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3564 from pp_c_unary_expression. Adjust.
3565 (c_pretty_printer::multiplicative_expression): Rename from
3566 pp_c_multiplicative_expression. Adjust.
3567 (c_pretty_printer::conditional_expression): Rename from
3568 pp_c_conditional_expression. Adjust.
3569 (c_pretty_printer::assignment_expression): Rename from
3570 pp_c_assignment_expression. Adjust.
3571 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3572 (c_pretty_printer::c_pretty_printer): Do not assign to
3573 unary_expression, multiplicative_expression,
3574 conditional_expression, expression.
3576 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3578 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3579 virtual member function.
3580 (pp_postfix_expression): Adjust.
3581 (pp_c_postfix_expression): Remove.
3582 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3583 from pp_c_postfix_expression. Adjust.
3584 (c_pretty_printer::c_pretty_printer): Do not assign to
3587 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3589 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3590 virtua member function.
3591 (pp_primary_expression): Adjust.
3592 (pp_c_primary_expression): Remove.
3593 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3594 from pp_c_primary_expression. Adjust.
3595 (pp_c_initializer_list): Use pp_primary_expression.
3596 (c_pretty_printer::c_pretty_printer): Do not assign to
3599 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3601 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3602 * c-pretty-print.c (M_): Remove.
3603 (c_pretty_printer::translate_string): Define.
3604 (pp_c_type_specifier): Use it.
3605 (pp_c_primary_expression): Likewise.
3606 (pp_c_expression): Likewise.
3608 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3610 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3612 (pp_c_id_expression): Remove.
3613 (pp_id_expression): Adjust.
3614 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3615 pp_c_id_expression. Adjust.
3616 (pp_c_postfix_expression): Use pp_id_expression.
3617 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3619 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3621 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3623 (pp_constant): Adjust.
3624 (pp_c_constant): Remove.
3625 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3626 pp_c_constant. Adjust.
3628 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3629 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3631 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3633 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3634 (c_pretty_printer::c_pretty_printer): Declare.
3635 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3636 c_pretty_printer_init. Adjust.
3637 (print_c_tree): Do not call c_pretty_printer_init.
3638 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3640 2013-08-09 Arnaud Charlet <charlet@adacore.com>
3642 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3644 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3647 * c-common.c (pointer_int_sum): Add bool parameter.
3648 * c-common.h (pointer_int_sum): Adjust declaration.
3650 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3652 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3653 c_pretty_printer variable.
3655 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3657 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3659 (pp_c_base): Likewise. Adjust users.
3660 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3661 (pp_c_whitespace): Do not call pp_base.
3662 (pp_c_left_paren): Likewise.
3663 (pp_c_right_paren): Likewise.
3664 (pp_c_left_brace): Likewise.
3665 (pp_c_right_brace): Likewise.
3666 (pp_c_left_bracket): Likewise.
3667 (pp_c_right_bracket): Likewise.
3668 (pp_c_dot): Likewise.
3669 (pp_c_ampersand): Likewise.
3670 (pp_c_star): Likewise.
3671 (pp_c_arrow): Likewise.
3672 (pp_c_semicolon): Likewise.
3673 (pp_c_complement): Likewise.
3674 (pp_c_exclamation): Likewise.
3675 (pp_c_direct_declarator): Likewise.
3676 (pp_c_ws_string): Likewise.
3677 (pp_c_identifier): Likewise.
3678 (pp_c_statement): Likewise.
3679 (print_c_tree): Likewise.
3681 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3684 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3685 provide useful error strings.
3687 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3689 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3690 printer functions instead of pp_string or operators and punctuators.
3691 (dump_generic_ada_node): Likewise.
3692 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3693 (pp_c_relational_expression): Likewise.
3694 (pp_c_logical_or_expression): Likewise.
3696 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3698 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3699 functions instead of pp_character.
3700 (pp_ada_tree_identifier): Likewise.
3701 (dump_ada_double_name): Likewise.
3702 (dump_ada_function_declaration): Likewise.
3703 (dump_ada_array_domains): Likewise.
3704 (dump_template_types): Likewise.
3705 (dump_generic_ada_node): Likewise.
3706 (print_ada_declaration): Likewise.
3707 (print_ada_struct_decl): Likewise.
3708 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3710 2013-07-23 Tom Tromey <tromey@redhat.com>
3712 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3713 * c-common.c (c_common_reswords): Add _Generic.
3715 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
3717 * c-common.c: Fix typos.
3718 * c-common.h: Likewise.
3720 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
3723 * c-common.c (c_common_attribute_table): Add warn_unused.
3724 (handle_warn_unused_attribute): New.
3726 2013-07-10 Jakub Jelinek <jakub@redhat.com>
3728 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3729 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3731 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3734 * c.opt: Add Wconditionally-supported.
3736 2013-07-08 Graham Stott <graham.stott@btinternet.com>
3738 * array-notation-common.c (length_mismatch_in_expr_p): Delete
3739 unused variables l_length and l_node.
3741 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
3744 * c-common.c (complete_array_type): Delay folding first index
3745 like other indices. When folding, check for index overflow.
3747 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
3750 * c-common.h (c_build_vec_perm_expr): New complain argument.
3751 * c-common.c (c_build_vec_perm_expr): Likewise.
3752 Use save_expr also in C++.
3754 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3756 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3757 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3758 * c-opts.c (c_common_post_options): Likewise.
3760 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3762 * array-notation-common.c (length_mismatch_in_expr): Changed the
3763 parameter type's from a dynamic array to a vec_tree. Also removed
3764 the size parameters.
3765 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3768 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3770 * c-common.h (struct cilkplus_an_parts): New structure.
3771 (struct cilkplus_an_loop_parts): Likewise.
3772 (cilkplus_extract_an_triplets): New prototype.
3773 (fix_sec_implicit_args): Likewise.
3774 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3775 (fix_sec_implicit_args): Likewise.
3777 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3779 * array-notation-common.c (find_inv_trees): Removed an unwanted
3781 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3782 enum rid to enum tree_code.
3784 2013-06-11 Jan Hubicka <jh@suse.cz>
3786 * c-common.c (handle_alias_ifunc_attribute): Do not set
3787 DECL_EXTERNAL for weakref variables.
3788 * c-pragma.c (handle_pragma_weak): Make sure aliases
3789 are not declared as external.
3791 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3793 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3794 function from c/c-array-notation.c.
3795 (is_cilkplus_reduce_builtin): Likewise.
3796 (find_rank): Likewise.
3797 (extract_array_notation_exprs): Likewise.
3798 (replace_array_notations): Likewise.
3799 (find_inv_trees): Likewise.
3800 (replace_inv_trees): Likewise.
3801 (contains_array_notation_expr): Likewise.
3802 (find_correct_array_notation_type): Likewise.
3803 * c-common.h (struct inv_list): Moved this struct from the file
3804 c/c-array-notation.c and added a new field called additional tcodes.
3805 (length_mismatch_in_expr_p): New prototype.
3806 (is_cilkplus_reduce_builtin): Likewise.
3807 (find_rank): Likewise.
3808 (extract_array_notation_exprs): Likewise.
3809 (replace_array_notation): Likewise.
3810 (find_inv_trees): Likewise.
3811 (replace_inv_trees): Likewise.
3812 (find_correct_array_notation_type): Likewise.
3814 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3816 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3817 function array_notation_init_builtins is called.
3818 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3819 * c-common.def (ARRAY_NOTATION_REF): New tree.
3820 * c-common.h (build_array_notation_expr): New function declaration.
3821 (build_array_notation_ref): Likewise.
3822 (extract_sec_implicit_index_arg): New extern declaration.
3823 (is_sec_implicit_index_fn): Likewise.
3824 (ARRAY_NOTATION_CHECK): New define.
3825 (ARRAY_NOTATION_ARRAY): Likewise.
3826 (ARRAY_NOTATION_START): Likewise.
3827 (ARRAY_NOTATION_LENGTH): Likewise.
3828 (ARRAY_NOTATION_STRIDE): Likewise.
3829 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3831 (pp_c_expression): Likewise.
3832 * c.opt (flag_enable_cilkplus): New flag.
3833 * array-notation-common.c: New file.
3835 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3838 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3840 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3842 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3845 2013-05-07 Han Shen <shenhan@google.com>
3847 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3849 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3851 * c-common.c (check_user_alignment): Emit error for negative values.
3853 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3855 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3857 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3859 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3860 __GXX_EXPERIMENTAL_CXX1Y__.
3862 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3863 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3865 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3866 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3867 to simply use OPT_Wpointer_arith.
3868 (c_sizeof_or_alignof_type): Likewise.
3870 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3872 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3874 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3876 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3877 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3880 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3882 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3884 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3886 * c-common.c (pointer_int_sum): Remove dead code.
3888 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3891 * c-common.c (handle_optimize_attribute): Don't call
3892 save_optabs_if_changed.
3894 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3897 * c-pch.c (pch_init): Free target_validity at the end.
3899 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3901 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3903 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3904 Jakub Jelinek <jakub@redhat.com>
3907 * c-common.c (handle_no_sanitize_address_attribute): New function.
3908 (c_common_attribute_table): Add no_sanitize_address attribute.
3909 (handle_no_address_safety_analysis_attribute): Add
3910 no_sanitize_address attribute, not no_address_safety_analysis
3913 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3916 * c-common.c (handle_optimize_attribute): Call
3917 save_optabs_if_changed.
3919 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3920 Steven Bosscher <steven@gcc.gnu.org>
3923 * c-opts.c (c_common_post_options): If debug info is enabled
3924 and non-dwarf*, refuse to load PCH files and when writing PCH
3927 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3930 * c-common.c (handle_error_attribute): Fix condition.
3932 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3935 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3937 2013-01-18 Jason Merrill <jason@redhat.com>
3940 * c.opt (-fextern-tls-init): New.
3941 * c-opts.c (c_common_post_options): Handle it.
3943 2013-01-09 Jakub Jelinek <jakub@redhat.com>
3946 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3947 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3948 and is either negative or bigger or equal to type precision
3949 of the first operand.
3951 2012-12-03 Marek Polacek <polacek@redhat.com>
3954 * c-common.c (check_user_alignment): Swap order of tests,
3955 check TREE_CODE first.
3957 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3960 * c-common.h (overflow_type): New enum.
3961 (build_userdef_literal): Add overflow_type argument.
3962 (tree_userdef_literal): Add overflow_type.
3963 (USERDEF_LITERAL_OVERFLOW): New access macro.
3964 * c-common.c (build_userdef_literal): Add overflow_type
3966 * c-lex.c (c_lex_with_flags): Add overflow_type to
3967 build_userdef_literal calls.
3968 (interpret_integer, interpret_float): Add overflow_type argument.
3970 2012-11-28 Richard Biener <rguenther@suse.de>
3973 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3974 here and use a type with proper overflow behavior for types that would
3975 need to be promoted for the arithmetic.
3977 2012-11-23 Jakub Jelinek <jakub@redhat.com>
3980 * c-common.c (handle_no_address_safety_analysis_attribute): New
3982 (c_common_attribute_table): Add no_address_safety_analysis.
3984 2012-11-16 Simon Baldwin <simonb@google.com>
3986 * c.opt: Add f[no-]canonical-system-headers.
3987 * c-opts.c (c_common_handle_option): Handle
3988 OPT_fcanonical_system_headers.
3990 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3993 * c-opts.c (c_common_handle_option): Set new flags.
3994 * c.opt: Describe new flags.
3996 2012-11-09 Jason Merrill <jason@redhat.com>
3998 * c.opt (Wabi-tag): New.
4000 2012-11-09 Andi Kleen <ak@linux.intel.com>
4003 * c-common.c (get_atomic_generic_size): Mask with
4006 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4009 * c.opt (Wformat): Make it Alias Wformat=1.
4010 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4011 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4013 (Wformat=): RejectNegative. Use LangEnabledBy.
4014 (Wnonnull): Use LangEnabledBy.
4015 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4016 * c-format.c (set_Wformat): Delete.
4017 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4018 (maybe_read_dollar_number): Likewise.
4019 (avoid_dollar_number): Likewise.
4020 (finish_dollar_format_checking): Likewise.
4021 (check_format_info): Likewise.
4022 (check_format_info_main): Likewise.
4023 (check_format_types): Likewise.
4024 (format_type_warning): Likewise.
4025 * c-common.c (int): Likewise.
4026 (check_function_sentinel): Likewise.
4027 * c-common.h (warn_format,set_Wformat): Do not declare here.
4029 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4032 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4033 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4035 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4037 (Wvariadic-macros): Init(1).
4038 * c-opts.c (c_common_handle_option): Do not handle them
4040 (c_common_post_options): Likewise.
4041 (sanitize_cpp_opts): warn_unused_macros is now
4042 cpp_warn_unused_macros.
4043 (push_command_line_include): Likewise.
4044 * c-common.c (warn_unknown_pragmas): Do not define.
4045 * c-common.h (warn_unknown_pragmas): Do not declare.
4047 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4050 * c-common.c (conversion_warning): Handle conditional expressions.
4052 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4055 * c.opt (Wreturn_local_addr): Define new option.
4057 2012-10-25 Jason Merrill <jason@redhat.com>
4059 * c.opt (Wvirtual-move-assign): New.
4061 * c.opt (Winherited-variadic-ctor): New.
4063 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
4066 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4068 2012-10-23 Joseph Myers <joseph@codesourcery.com>
4070 * c-common.h (pch_cpp_save_state): Declare.
4071 * c-target.def (c_preinclude): New hook.
4072 * c-opts.c (done_preinclude): New.
4073 (push_command_line_include): Handle default preincluded header.
4074 (cb_file_change): Call pch_cpp_save_state when calling
4075 push_command_line_include.
4076 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4077 (pch_cpp_save_state): New.
4078 (pch_init): Call pch_cpp_save_state conditionally, instead of
4079 calling cpp_save_state.
4081 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4085 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4086 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4087 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4088 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4089 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4090 * c-opts.c (c_common_handle_option): Remove explicit handling from
4092 (c_common_post_options): Likewise.
4094 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4096 * c-ada-spec.c (LOCATION_COL): Delete.
4097 (compare_location): New function.
4098 (compare_node): Use it.
4099 (compare_comment): Likewise.
4101 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4105 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4106 * c-opts.c (c_common_handle_option): Do not set them here. Add
4108 (c_common_post_options): Likewise.
4110 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4112 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4113 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4114 Remove POINTER_TYPE handling, add large unsigned handling and use
4115 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4117 2012-10-12 Jakub Jelinek <jakub@redhat.com>
4120 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4121 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4122 locs and array of 3 trees instead of just single loc and single
4123 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4124 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4125 For *cmp* builtins that take two sources strings report warnings
4126 about first and second source, not about destination and source.
4128 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
4131 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4133 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4135 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4136 declaring something coming from another file.
4138 2012-10-10 Arnaud Charlet <charlet@adacore.com>
4141 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4143 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4146 * c-common.c (warn_about_parentheses): Add location_t parameter;
4147 use EXPR_LOC_OR_LOC.
4148 * c-common.h: Update declaration.
4150 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
4153 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4154 more operations. Make error messages optional.
4155 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4156 (scalar_to_vector): Declare.
4158 2012-10-08 Jason Merrill <jason@redhat.com>
4160 * c-common.c (c_common_reswords): Add thread_local.
4162 2012-10-08 Dodji Seketeli <dodji@redhat.com>
4164 PR c++/53528 C++11 attribute support
4165 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4167 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4169 (handle_aligned_attribute): In choose strictest alignment
4170 among many. Use new check_cxx_fundamental_alignment_constraints.
4171 (handle_transparent_union_attribute): In c++11 attribute syntax,
4172 don't look through typedefs.
4174 2012-10-04 Arnaud Charlet <charlet@adacore.com>
4176 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4177 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4180 2012-09-25 Dehao Chen <dehao@google.com>
4183 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
4184 map when read in the pch.
4186 2012-09-18 Arnaud Charlet <charlet@adacore.com>
4188 * c-ada-spec.c: Style fixes.
4190 2012-09-18 Thomas Quinot <quinot@adacore.com>
4192 * c.opt (-fada-spec-parent): Define new command line switch.
4193 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4194 is specified, generate binding spec as a child of the specified unit.
4196 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4197 Manuel López-Ibáñez <manu@gcc.gnu.org>
4200 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4202 2012-08-23 Arnaud Charlet <charlet@adacore.com>
4204 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4205 for pointers, and add missing Convention C pragma.
4206 (print_ada_struct_decl): Add missing aliased keyword.
4207 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4209 2012-08-17 Jakub Jelinek <jakub@redhat.com>
4211 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4212 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4213 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4214 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4215 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4217 2012-08-10 Richard Guenther <rguenther@suse.de>
4219 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4221 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4223 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4224 instead of separate pp_newline and pp_flush.
4225 (print_c_tree): Likewise.
4227 2012-07-26 Richard Henderson <rth@redhat.com>
4229 * c-common.c (handle_hot_attribute): Allow labels.
4230 (handle_cold_attribute): Likewise.
4232 2012-07-20 Jakub Jelinek <jakub@redhat.com>
4235 * c-common.c (check_function_nonnull): Handle multiple nonnull
4236 attributes properly.
4238 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4240 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4241 * c-ada-spec.c: Likewise.
4242 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4244 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4246 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4247 Remove code conditional on it.
4249 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4251 * c-gimplify.c: Do not include basic-block.h.
4252 * c-common.c: Do not include linfuncs.h.
4254 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4256 * c-common.h: Include tree.h.
4258 2012-07-02 Jason Merrill <jason@redhat.com>
4261 * c-common.c (get_priority): Call default_conversion.
4263 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
4265 * c-pch.c (c_common_write_pch): Remove unused variables.
4267 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4269 * cppspec.c: Moved from gcc/ to here.
4271 2012-06-27 Kai Tietz <ktietz@redhat.com>
4273 PR preprocessor/37215
4274 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4276 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4278 * c-common.h (c_common_print_pch_checksum): Remove.
4279 * c-pch.c: Do not include output.h.
4280 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4281 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4282 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4283 (struct c_pch_header): Remove.
4284 (get_ident): Update gpch version.
4285 (pch_init): Do not print executable_checksum to asm_out_file.
4286 Do not fail if there is no asm_out_file to read back from. Set
4287 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4288 (c_common_write_pch): Verify that nothing was written to asm_out_file
4289 since pch_init was called. Do not write a c_pch_header, and do not
4290 copy from asm_out_file to the PCH.
4291 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4292 the content of asm_out_file from the PCH.
4293 (c_common_print_pch_checksum): Remove.
4294 * c-opts.c (c_common_init): Print out executable_checksum directly.
4296 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4298 * c-target.def (objc_declare_unresolved_class_reference,
4299 objc_declare_class_definition): Add new hooks.
4301 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4303 * c-lex.c: Do not include output.h.
4304 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4305 Remove uses of ASM_OUTPUT_IDENT.
4307 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
4310 * c-common.h (c_build_vec_perm_expr): Move decl here.
4311 * c-common.c (c_build_vec_perm_expr): Move definition
4314 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4316 * c.opt (fconserve-space): Turn into a no-op.
4318 2012-06-04 Sterling Augustine <saugustine@google.com>
4320 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4321 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4322 both the start and end of the function.
4324 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4326 * c-common.c: Do not include output.h.
4327 * c-pragma.c: Likewise.
4329 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4331 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4332 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4333 (lang_decl_name): Handle namespace decls.
4335 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4337 * c-ada-spec.c: Do not include output.h.
4338 * c-semantics.c: Likewise.
4340 2012-05-29 Joseph Myers <joseph@codesourcery.com>
4342 * c-common.c: Fix typo.
4344 2012-05-29 Michael Matz <matz@suse.de>
4346 * c-common.h (c_expand_decl): Remove prototype.
4348 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4350 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4351 * c-opts.c (c_common_handle_option): Remove code handling
4352 warn_missing_braces.
4354 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4357 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4360 2012-05-22 Dodji Seketeli <dodji@redhat.com>
4363 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4365 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4367 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4368 * c-opts.c (c_common_handle_option): Do not handle explicitly
4369 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4371 2012-05-16 Dodji Seketeli <dodji@redhat.com>
4373 PR preprocessor/7263
4374 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4375 to cpp_classify_number. For diagnostics, use the precise location
4376 instead of the global input_location.
4378 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4381 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4383 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4385 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
4387 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4390 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4391 Wreorder): Use LangEnabledBy.
4392 * c-opts.c (c_common_handle_option): Do not enable them
4393 explicitly. Call lang-specific generated functions.
4394 (c_common_post_options): Do not set them here.
4396 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4398 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4399 Wmissing-field-initializers,Wmissing-parameter-type,
4400 Wold-style-declaration,Woverride-init): Use EnabledBy.
4401 * c-opts.c (c_common_post_options): Do not set here explicitly.
4403 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4406 * c-opts.c (c_common_handle_option): Use handle_generated_option
4407 to enable sub-options.
4409 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4412 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4414 2012-05-10 Richard Guenther <rguenther@suse.de>
4416 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4417 adjust commentary about TYPE_IS_SIZETYPE types.
4419 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4422 * c-common.c (warn_logical_operator): Check that argument of
4423 integer_zerop is not NULL.
4425 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4428 * c-common.c (warn_logical_operator): Do not warn if either side
4429 is already true or false.
4431 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4434 * c-common.c (expr_original_type): New.
4435 (shorten_compare): Do not warn for enumeration types.
4437 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4439 * c.opt (fpermissive): Add Var(flag_permissive).
4441 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
4444 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4445 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4447 2012-04-30 Dodji Seketeli <dodji@redhat.com>
4449 Add -Wvarargs option
4450 * c.opt (Wvarargs): Define new option.
4452 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4454 * c-common.c (check_function_arguments): Replace
4455 Wmissing-format-attribute with Wsuggest-attribute=format.
4457 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4459 * c.opt (Wsuggest-attribute=format): New. Alias of
4460 Wmissing-format-attribute.
4461 * c-format.c (decode_format_type): Replace
4462 Wmissing-format-attribute with Wsuggest-attribute=format.
4463 (check_function_format): Likewise.
4465 2012-04-27 Ollie Wild <aaw@google.com>
4467 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4468 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4469 * c.opt: Add Wliteral-suffix.
4471 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4474 * c.opt (Wpedantic): New.
4475 (pedantic): Alias Wpedantic.
4476 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4477 (c_common_post_options): Likewise.
4478 (sanitize_cpp_opts): Likewise.
4479 * c-lex.c (interpret_float): Likewise.
4480 * c-format.c (check_format_types): Likewise.
4481 * c-common.c (pointer_int_sum): Likewise.
4482 (c_sizeof_or_alignof_type): Likewise.
4483 (c_add_case_label): Likewise.
4484 (c_do_switch_warnings): Likewise.
4485 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4487 2012-04-15 Jason Merrill <jason@redhat.com>
4490 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4491 (C_STD_NAME): Distinguish between C++98 and C++11.
4493 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4496 * c-common.h (uint16_type_node): Rename into...
4497 (c_uint16_type_node): ...this.
4498 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4499 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4501 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4503 * c-common.c (warn_if_unused_value): Move definition to here.
4504 * c-common.h (warn_if_unused_value): Move declaration to here.
4506 2012-03-23 William Bader <williambader@hotmail.com>
4508 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4510 2012-03-20 Jason Merrill <jason@redhat.com>
4512 * c-common.h (enum cxx_dialect): Add cxx1y.
4513 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4515 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4516 * c-opts.c (c_common_post_options): Likewise.
4517 (set_std_cxx1y): New.
4518 (c_common_handle_option): Call it.
4519 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4521 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4524 * c.opt ([Wuseless-cast]): Add.
4526 2012-03-16 Richard Guenther <rguenther@suse.de>
4528 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4530 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4533 * c.opt (ftemplate-backtrace-limit) Add.
4535 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4537 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4539 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4540 (init_pragma): Don't register extern_prefix.
4542 2012-03-12 Richard Guenther <rguenther@suse.de>
4544 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4545 (builtin_type_for_size): Likewise.
4547 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4550 * c-common.c (sync_resolve_params): Don't decide whether to convert
4551 or not based on TYPE_SIZE comparison, convert whenever arg_type
4552 is unsigned INTEGER_TYPE.
4554 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4557 * c.opt ([Wunused-local-typedefs]): Fix description.
4559 2012-01-24 Mike Stump <mikestump@comcast.net>
4561 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4564 2012-01-18 Richard Guenther <rguenther@suse.de>
4566 * c-opts.c (c_common_post_options): Reset LTO flags if
4567 we are about to generate a PCH.
4569 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4572 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4573 use pp_unsigned_wide_integer.
4575 2012-01-10 Richard Guenther <rguenther@suse.de>
4578 * c-opts.c (c_common_handle_option): Move -Werror handling
4579 to language independent code.
4581 2012-01-05 Richard Guenther <rguenther@suse.de>
4584 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4587 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4590 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4591 of array types with an unknown bound.
4593 2011-12-20 Joseph Myers <joseph@codesourcery.com>
4595 * c-common.c (flag_isoc99): Update comment to refer to C11.
4596 (flag_isoc1x): Change to flag_isoc11.
4597 * c-common.h (flag_isoc99): Update comment to refer to C11.
4598 (flag_isoc1x): Change to flag_isoc11.
4599 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4601 * c-opts.c (set_std_c1x): Change to set_std_c11.
4602 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4604 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4605 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4606 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4608 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4609 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4610 (std=gnu1x): Make alias of std=gnu11.
4612 2011-12-19 Jason Merrill <jason@redhat.com>
4615 * c-common.c (handle_transparent_union_attribute): Check the first
4616 field if the type is complete.
4618 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4621 * c-common.c (RID_IS_FINAL): Add.
4622 * c-common.h (RID_IS_FINAL): Add.
4624 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4626 * c.opt (fgnu-runtime): Provide full description.
4627 (fnext-runtime): Likewise.
4628 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4630 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
4632 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4633 predefines in one place. Add LOCK_FREE predefines.
4634 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4637 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
4640 * c-common.c (get_atomic_generic_size): Check for various error
4642 (resolve_overloaded_atomic_exchange,
4643 resolve_overloaded_atomic_compare_exchange,
4644 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4645 error_mark_node for error conditions.
4647 2011-11-08 Richard Guenther <rguenther@suse.de>
4652 2011-11-07 Richard Henderson <rth@redhat.com>
4653 Aldy Hernandez <aldyh@redhat.com>
4654 Torvald Riegel <triegel@redhat.com>
4656 Merged from transactional-memory.
4658 * c-common.c (handle_tm_wrap_attribute,
4659 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4660 (struct c_common_reswords): Added __transaction* keywords.
4661 (struct c_common_attribute_table): Added transaction* and tm_regparm
4663 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4665 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4666 find_tm_attribute): Declare.
4668 2011-11-07 Jason Merrill <jason@redhat.com>
4671 * c-common.c, c-common.h: Revert yesterday's changes.
4673 2011-11-06 Jason Merrill <jason@redhat.com>
4676 * c-common.c (decl_has_visibility_attr): Split out from...
4677 (c_determine_visibility): ...here.
4678 * c-common.h: Declare it.
4680 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4682 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4683 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4685 (check_user_alignment): New. Split out of
4686 handle_aligned_attribute. Disallow integer constants with
4687 noninteger types. Conditionally allow zero.
4688 (handle_aligned_attribute): Use check_user_alignment.
4689 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4691 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
4692 Richard Henderson <rth@redhat.com>
4694 Merged from cxx-mem-model.
4696 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
4697 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
4698 parameters that are the same type size.
4699 (get_atomic_generic_size): New. Find size of generic
4700 atomic function parameters and do typechecking.
4701 (add_atomic_size_parameter): New. Insert size into parameter list.
4702 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4703 either __atomic_exchange_n or external library call.
4704 (resolve_overloaded_atomic_compare_exchange): Restructure
4705 __atomic_compare_exchange to either _n variant or external library call.
4706 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
4707 __atomic_load_n or an external library call.
4708 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4709 __atomic_store_n or an external library call.
4710 (resolve_overloaded_builtin): Handle new __atomic builtins.
4712 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4715 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4716 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4717 <INDIRECT_REF>: Return the argument.
4718 <ARRAY_REF>: Remove special code for negative offset.
4719 Call fold_build_pointer_plus instead of size_binop.
4720 (fold_offsetof): Remove STOP_REF argument and adjust.
4721 * c-common.h (fold_offsetof_1): Declare.
4722 (fold_offsetof): Remove STOP_REF argument.
4724 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4727 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4728 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4729 Wnarrowing for C++0x and C++98.
4730 * c.opt ([Wnarrowing]): Update.
4732 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4735 * c.opt: Add Wzero-as-null-pointer-constant.
4737 2011-10-31 Jason Merrill <jason@redhat.com>
4739 * c.opt (-fdeduce-init-list): Off by default.
4742 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4743 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4745 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4747 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4750 * c.opt (fvisibility-inlines-hidden): Description change.
4752 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4754 Implement C++11 user-defined literals.
4755 * c-common.c (build_userdef_literal): New.
4756 * c-common.def: New tree code.
4757 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4758 * c-lex.c (interpret_float): Add suffix parm.
4759 (c_lex_with_flags): Build literal tokens.
4761 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4765 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4768 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4769 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4770 Wnarrowing for C++0x and C++98.
4771 * c.opt ([Wnarrowing]): Update.
4773 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4776 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4777 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4778 Wnarrowing for C++0x and C++98.
4779 * c.opt ([Wnarrowing]): Update.
4781 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4784 * c-common.c (conversion_warning): Remove code looking for
4785 artificial operands.
4787 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4790 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
4791 !NO_IMPLICIT_EXTERN_C.
4793 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
4795 * c-common.c (c_common_reswords): Add __bases,
4797 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4799 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4802 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4804 2011-10-15 Tom Tromey <tromey@redhat.com>
4805 Dodji Seketeli <dodji@redhat.com>
4807 * c.opt (fdebug-cpp): New option.
4808 * c-opts.c (c_common_handle_option): Handle the option.
4809 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4810 output stream in parameter. Factorized from ...
4811 (maybe_print_line): ... this. Dump location debug information when
4812 -fdebug-cpp is in effect.
4813 (print_line_1): New static function. Takes an output stream in
4814 parameter. Factorized from ...
4815 (print_line): ... here. Dump location information when -fdebug-cpp
4817 (scan_translation_unit): Dump location information when
4818 -fdebug-cpp is in effect.
4820 2011-10-15 Tom Tromey <tromey@redhat.com>
4821 Dodji Seketeli <dodji@redhat.com>
4823 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4825 * c-opts.c (c_common_handle_option)<case
4826 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4827 cases. Handle -ftrack-macro-expansion with and without argument.
4829 2011-10-15 Tom Tromey <tromey@redhat.com>
4830 Dodji Seketeli <dodji@redhat.com>
4832 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4833 (print_line, cb_define, do_line_change): Adjust to avoid touching
4834 the internals of struct line_map. Use the public API instead.
4835 * c-pch.c (c_common_read_pch): Likewise.
4836 * c-lex.c (fe_file_change): Likewise.
4838 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4841 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4843 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4846 * c-pretty-print.c (pp_c_floating_constant): Output
4847 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4849 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4851 * c-common.c (def_builtin_1): Delete old interface with two
4852 parallel arrays to hold standard builtin declarations, and replace
4853 it with a function based interface that can support creating
4854 builtins on the fly in the future. Change all uses, and poison
4855 the old names. Make sure 0 is not a legitimate builtin index.
4856 * c-omp.c (c_finish_omp_barrier): Ditto.
4857 (c_finish_omp_taskwait): Ditto.
4858 (c_finish_omp_flush): Ditto.
4860 2011-10-11 Tristan Gingold <gingold@adacore.com>
4862 * c.opt: (fallow-parameterless-variadic-functions): New.
4864 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4866 PR c++/33255 - Support -Wunused-local-typedefs warning
4867 * c-common.h (struct c_language_function::local_typedefs): New
4869 (record_locally_defined_typedef, maybe_record_typedef_use)
4870 (maybe_warn_unused_local_typedefs): Declare new functions.
4871 * c-common.c (record_locally_defined_typedef)
4872 (maybe_record_typedef_use)
4873 (maybe_warn_unused_local_typedefs): Define new functions.
4874 * c.opt: Declare new -Wunused-local-typedefs flag.
4876 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4879 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4882 2011-09-05 Richard Guenther <rguenther@suse.de>
4884 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4885 of integer_minus_one_node for empty array upper bounds.
4887 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4889 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4890 it's the first time it's being called on this main TU.
4892 2011-08-24 Richard Guenther <rguenther@suse.de>
4895 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4897 2011-08-22 Gabriel Charette <gchare@google.com>
4899 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4900 defined in cpp_init_builtins and c_cpp_builtins.
4902 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4904 * c-common.c (c_common_reswords): Add __builtin_complex.
4905 * c-common.h (RID_BUILTIN_COMPLEX): New.
4907 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4909 * c-common.c (c_common_reswords): Add _Noreturn.
4910 (keyword_is_function_specifier): Handle RID_NORETURN.
4911 * c-common.h (RID_NORETURN): New.
4913 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4915 * c-common.c (unsafe_conversion_p): New function. Check if it is
4916 unsafe to convert an expression to the type.
4917 (conversion_warning): Adjust, use unsafe_conversion_p.
4918 * c-common.h (unsafe_conversion_p): New function declaration.
4920 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4922 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4923 (c_finish_omp_taskyield): New prototype.
4924 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4925 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4926 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4927 or RHS1 have side-effects, evaluate those too in the right spot,
4928 if it is a decl and LHS is also a decl, error out if they
4930 (c_finish_omp_taskyield): New function.
4931 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4932 * c-pragma.c (omp_pragmas): Add taskyield.
4933 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4934 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4935 PRAGMA_OMP_CLAUSE_MERGEABLE.
4937 2011-07-25 Dodji Seketeli <dodji@redhat.com>
4939 * c-common.h (set_underlying_type): Remove parm name from
4942 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
4944 * c-pretty-print.h: Search c-common.h in c-family.
4946 2011-07-22 Jason Merrill <jason@redhat.com>
4949 * c.opt (Wnarrowing): New.
4952 * c-common.h: Declare c_linkage_bindings.
4953 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4956 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4957 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4958 as flag_isoc99 for 'restrict'.
4959 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4961 2011-07-21 Ian Lance Taylor <iant@google.com>
4964 * c-common.c (c_disable_warnings): New static function.
4965 (c_enable_warnings): New static function.
4966 (c_fully_fold_internal): Change local unused_p to bool. Call
4967 c_disable_warnings and c_enable_warnings rather than change
4968 c_inhibit_evaluation_warnings.
4970 2011-07-20 Jason Merrill <jason@redhat.com>
4972 PR c++/6709 (DR 743)
4973 PR c++/42603 (DR 950)
4974 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4975 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4976 (CPP_DECLTYPE): New.
4977 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4979 2011-07-19 Richard Guenther <rguenther@suse.de>
4981 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4982 * c-omp.c (c_finish_omp_for): Likewise.
4984 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4986 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4987 body on the next line.
4989 2011-07-08 Jason Merrill <jason@redhat.com>
4992 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4995 * c-common.c (c_apply_type_quals_to_decl): Don't check
4996 TYPE_NEEDS_CONSTRUCTING.
4998 2011-07-06 Richard Guenther <rguenther@suse.de>
5000 * c-common.c (c_common_nodes_and_builtins):
5001 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5003 2011-07-05 Richard Guenther <rguenther@suse.de>
5005 * c-common.c (c_common_nodes_and_builtins): Build all common
5008 2011-06-27 Jakub Jelinek <jakub@redhat.com>
5010 * c-common.h (c_tree_chain_next): New static inline function.
5012 * c-common.c (check_builtin_function_arguments): Handle
5013 BUILT_IN_ASSUME_ALIGNED.
5015 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
5017 * c-common.c: Add sync_ or SYNC__ to builtin names.
5018 * c-omp.c: Add sync_ or SYNC__ to builtin names.
5020 2011-06-20 Pierre Vittet <piervit@pvittet.com>
5022 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5024 (gen_pragma_handler): New union.
5025 (internal_pragma_handler): New type.
5026 (c_register_pragma_with_data)
5027 (c_register_pragma_with_expansion_and_data): New functions.
5029 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5030 (c_register_pragma, c_register_pragma_with_expansion)
5031 (c_invoke_pragma_handler): Changed to work with
5032 internal_pragma_handler.
5033 (c_register_pragma_with_data)
5034 (c_register_pragma_with_expansion_and_data): New functions.
5036 2011-06-14 Joseph Myers <joseph@codesourcery.com>
5038 * c-common.c: Include common/common-target.h.
5039 (handle_section_attribute): Use
5040 targetm_common.have_named_sections.
5041 * c-cppbuiltin.c: Include common/common-target.h.
5042 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5044 2011-06-10 Richard Guenther <rguenther@suse.de>
5046 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5047 to print a IDENTIFIER_NODE.
5049 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5050 Joseph Myers <joseph@codesourcery.com>
5052 * c.opt (fbuilding-libgcc): New option.
5053 * c-cppbuiltin.c (c_cpp_builtins): Define
5054 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5056 2011-06-07 Jason Merrill <jason@redhat.com>
5058 * c-common.c (max_tinst_depth): Lower default to 900.
5060 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5062 2011-06-07 Richard Guenther <rguenther@suse.de>
5064 * c-common.c (c_common_nodes_and_builtins): Do not set
5065 size_type_node or call set_sizetype.
5067 2011-06-07 Dodji Seketeli <dodji@redhat.com>
5070 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
5071 type when using pointer comparison to compare types.
5073 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5075 * c.opt: Add -Wdelete-non-virtual-dtor.
5076 * c-opts.c (c_common_handle_option): Include it in -Wall.
5078 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5083 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5085 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5088 2011-05-27 Jakub Jelinek <jakub@redhat.com>
5091 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5092 C++ don't call c_common_truthvalue_conversion on void type arms.
5094 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5096 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5097 (stmt_list_stack): Define.
5098 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5099 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5101 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5103 * c-common.c (warning_candidate_p): Check for BLOCKs.
5105 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5107 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5110 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5112 * c-common.c (def_fn_type): Remove extra va_end.
5114 2011-05-23 Jason Merrill <jason@redhat.com>
5117 * c-common.c (c_common_get_narrower): New.
5118 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5120 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5122 * c-common.h (check_function_arguments): Tweak prototype of
5123 check_function_arguments.
5124 * c-common.c (check_function_arguments): Likewise. Adjust
5125 calls to check_function_nonnull, check_function_format, and
5126 check_function_sentinel.
5127 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5128 separate attributes and typelist arguments. Use
5129 FOREACH_FUNCTION_ARGS to iterate over argument types.
5131 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5133 * c-common.c (c_common_reswords): Reorder.
5134 * c-common.h (rid): Likewise.
5136 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5138 * c-common.c (def_fn_type): Don't call build_function_type, call
5139 build_function_type_array or build_varargs_function_type_array
5141 (c_common_nodes_and_builtins): Likewise.
5143 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5145 * c-common.c (c_add_case_label): Omit the loc argument to
5147 * c-common.h (build_case_label): Remove.
5148 * c-semantics.c (build_case_label): Remove.
5150 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5152 * c-objc.h (objc_start_method_definition): Update prototype.
5153 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5155 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5157 * c-common.c (check_main_parameter_types): Reindent. Don't use
5158 TYPE_ARG_TYPES directly.
5159 (handle_nonnull_attribute): Likewise.
5160 (sync_resolve_params): Likewise.
5161 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5162 to check_format_string.
5163 (handle_format_attribute): Likewise.
5164 (check_format_string): Take a function type to examine instead of
5165 a type list. Use a function_arg_iterator to step through argument
5168 2011-05-04 Richard Guenther <rguenther@suse.de>
5170 * c-common.c (fix_string_type): Use size_int for index type bounds.
5171 (start_fname_decls): Do not pass NULL to build_int_cst.
5172 (c_init_attributes): Likewise.
5173 * c-lex.c (c_lex_with_flags): Likewise.
5175 2011-04-27 Jason Merrill <jason@redhat.com>
5177 * c-common.c (make_tree_vector_from_list): New.
5178 * c-common.h: Declare it.
5180 2011-04-26 Richard Guenther <rguenther@suse.de>
5182 PR preprocessor/48248
5183 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5184 for output size with -P.
5186 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5188 * c-common.c (struct c_common_resword): Add __underlying_type.
5189 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5191 2011-04-20 Jim Meyering <meyering@redhat.com>
5193 * c-format.c (init_dollar_format_checking): Remove useless
5196 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5198 * c-objc.h (objc_get_interface_ivars): Removed.
5199 (objc_detect_field_duplicates): New.
5200 * stub-objc.c: Likewise.
5202 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5204 * stub-objc.c (objc_declare_protocols): Renamed to
5205 objc_declare_protocol.
5206 * c-objc.h: Likewise.
5208 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5210 * stub-objc.c (objc_declare_class): Updated argument name.
5212 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5214 * c-common.h (c_common_init_ts): Declare.
5215 * c-common.c (c_common_init_ts): Define.
5217 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5219 * c-objc.h (objc_build_message_expr): Updated prototype.
5220 * stub-objc.c (objc_build_message_expr): Likewise.
5222 2011-04-12 Martin Jambor <mjambor@suse.cz>
5224 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5227 2011-04-11 Richard Guenther <rguenther@suse.de>
5229 * c-common.c (complete_array_type): Build a range type of
5232 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5234 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5235 (handle_type_generic_attribute): Likewise.
5237 2011-04-07 Jason Merrill <jason@redhat.com>
5240 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5241 conversion from C++0x scoped enum.
5243 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5245 * c-target-def.h: New file.
5246 * c-target.def: New file.
5247 * c-target.h: New file.
5248 * c-common.c (targetcm): Don't define here.
5249 * c-common.h (default_handle_c_option): Declare.
5250 * c-format.c: Include c-target.h instead of target.h.
5251 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5253 (default_handle_c_option): Move from targhooks.c.
5255 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5257 PR preprocessor/48248
5258 * c-ppoutput.c (print): Add src_file field.
5259 (init_pp_output): Initialize it.
5260 (maybe_print_line): Don't optimize by adding up to 8 newlines
5261 if map->to_file and print.src_file are different file.
5262 (print_line): Update print.src_file.
5264 2011-03-25 Kai Tietz <ktietz@redhat.com>
5266 * c-ada-spec.c (compare_comment): Use filename_cmp
5267 instead of strcmp for filename.
5269 2011-03-25 Jeff Law <law@redhat.com>
5271 * c-common.c (def_fn_type): Add missing va_end.
5273 2011-03-25 Jason Merrill <jason@redhat.com>
5275 * c.opt: Add -std=c++03.
5277 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5279 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5281 2011-03-17 Kai Tietz
5284 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5285 Display allowed attributes for function pointer types.
5286 (pp_c_attributes_display): New function to display
5287 attributes having affects_type_identity flag set to true.
5288 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5290 * c-common.c (c_common_attribute_table):
5292 (c_common_format_attribute_table): Likewise.
5294 2011-03-18 Jason Merrill <jason@redhat.com>
5296 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5297 * c-common.h: Don't declare it here.
5298 * c-common.c: Or define it here.
5299 * c-opts.c (c_common_handle_option): Or set it here.
5302 * c-common.c (handle_transparent_union_attribute): Don't
5303 make a duplicate type in C++.
5305 2011-03-15 Jason Merrill <jason@redhat.com>
5307 * c-common.c (max_constexpr_depth): New.
5308 * c-common.h: Declare it.
5309 * c-opts.c (c_common_handle_option): Set it.
5310 * c.opt (fconstexpr-depth): New option.
5312 2011-03-11 Jason Merrill <jason@redhat.com>
5314 * c-common.c (attribute_takes_identifier_p): Add missing const.
5317 * c-common.c (attribute_takes_identifier_p): Assume that an
5318 unknown attribute takes an identifier.
5320 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5323 * c-common.c (c_type_hash): Call list_length instead of iterating
5324 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5326 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5329 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5331 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5333 * c.opt (fobjc-abi-version=) New.
5334 (fobjc-nilcheck): New.
5336 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5339 * c-common.h (keyword_is_decl_specifier): Declare.
5340 * c-common.c (keyword_is_decl_specifier): Define.
5341 (keyword_is_function_specifier): New function.
5343 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5346 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5347 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5350 2011-01-26 Arnaud Charlet <charlet@adacore.com>
5352 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5354 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5357 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5358 after init_c_lex if pch_file is set.
5360 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5363 * c.opt (-fkeep-inline-dllexport): New switch.
5365 2011-01-12 Richard Guenther <rguenther@suse.de>
5368 * c-common.c (handle_weak_attribute): Warn instead of error
5369 on declaring an inline function weak.
5371 2011-01-05 Tom Tromey <tromey@redhat.com>
5373 * c-common.h (lvalue_error): Update.
5374 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5377 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
5380 * c-objc.h (objc_finish_message_expr): Added argument to
5383 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5385 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5388 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5390 * c-objc.h (objc_maybe_warn_exceptions): New.
5391 * stub-objc.c (objc_maybe_warn_exceptions): New.
5393 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5395 * c-common.h (readonly_error): Declare.
5396 * c-common.c (readonly_error): Define.
5398 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5400 * c-common.h (invalid_indirection_error): Declare.
5401 * c-common.c (invalid_indirection_error): Define.
5403 2010-12-03 Richard Guenther <rguenther@suse.de>
5406 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5407 (pp_c_unary_expression): Likewise.
5408 (pp_c_expression): Likewise.
5410 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5412 * c-common.h (objc_finish_function): New.
5413 (objc_non_volatilized_type): Removed.
5414 (objc_type_quals_match): Removed.
5415 * stub-objc.c (objc_finish_function): New.
5416 (objc_non_volatilized_type): Removed.
5417 (objc_type_quals_match): Removed.
5419 2010-11-30 Joseph Myers <joseph@codesourcery.com>
5421 * c-common.h (parse_optimize_options): Declare.
5422 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5423 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5425 2010-11-29 Joseph Myers <joseph@codesourcery.com>
5427 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5429 * c-pch.c (O_BINARY): Don't define here.
5430 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5432 2010-11-25 Joseph Myers <joseph@codesourcery.com>
5434 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5435 targetm.except_unwind_info.
5437 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5439 * c-opts.c (c_common_handle_option): Pass location to
5440 set_struct_debug_option.
5442 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5444 * c-common.c (visibility_options): Move from ../opts.c.
5445 * c-common.h (struct visibility_flags, visibility_options):
5447 * c-opts.c (finish_options): Rename to c_finish_options.
5448 (c_common_init): Update call to finish_options.
5450 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5453 * c-lex.c (lex_string): Check that each string in an Objective-C
5454 string concat sequence starts with either one or zero '@', and
5455 that there are no spurious '@' signs at the end.
5457 2010-11-20 Joseph Myers <joseph@codesourcery.com>
5459 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5460 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5461 HANDLE_PRAGMA_VISIBILITY.
5462 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5463 HANDLE_PRAGMA_VISIBILITY): Don't define.
5464 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5466 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5471 * c-common.h (keyword_begins_type_specifier): Declare.
5472 (keyword_is_storage_class_specifier): Declare.
5473 (keyword_is_type_qualifier): Declare.
5474 * c-common.c (keyword_begins_type_specifier): New function.
5475 (keyword_is_storage_class_specifier): New function.
5476 (keyword_is_type_qualifier): Declare.
5478 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5481 * c-common.c (in_late_binary_op): Define.
5482 (c_common_truthvalue_conversion): Check in_late_binary_op before
5483 calling c_save_expr.
5484 * c-common.h (in_late_binary_op): Declare.
5486 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5488 * c-opts.c (c_common_handle_option): Update calls to
5489 set_struct_debug_option.
5491 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5493 * c-common.h (objc_declare_protocols): Added additional argument.
5494 * stub-objc.c (objc_declare_protocol): Same change.
5496 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5499 * c-common.h (build_real_imag_expr): Declare.
5500 * c-semantics.c (build_real_imag_expr): Define.
5502 2010-11-17 Joseph Myers <joseph@codesourcery.com>
5504 * c-opts.c (c_common_parse_file): Take no arguments.
5505 * c-common.h (c_common_parse_file): Update prototype.
5507 2010-11-16 Jakub Jelinek <jakub@redhat.com>
5510 * c-common.c (warning_candidate_p): Don't track non-const calls
5513 2010-11-15 Ian Lance Taylor <iant@google.com>
5515 * c-lex.c (init_c_lex): Set macro debug callbacks if
5516 flag_dump_go_spec is set.
5518 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5520 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5521 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5523 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5525 PR preprocessor/45038
5526 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5529 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5531 * c-common.h (c_family_lang_mask): Declare.
5532 * c-opts.c (c_family_lang_mask): Make extern.
5533 * c-pragma.c (handle_pragma_diagnostic): Use
5534 control_warning_option.
5536 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5538 * c-common.c (parse_optimize_options): Update call to
5540 * c-common.h (c_common_handle_option): Update prototype.
5541 * c-opts.c (c_common_handle_option): Take location_t parameter and
5542 pass it to other functions.
5544 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5546 * c-opts.c (warning_as_error_callback): Remove.
5547 (c_common_initialize_diagnostics): Don't call
5548 register_warning_as_error_callback.
5549 (c_common_handle_option): Handle -Werror=normalized= here.
5551 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5553 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5555 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5557 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5558 Remove trailing '.' from diagnostics.
5559 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5561 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5563 * c-common.c (parse_optimize_options): Pass global_dc to
5565 * c-opts.c (c_common_handle_option): Pass &global_options to
5566 set_Wstrict_aliasing.
5567 * c.opt (v): Don't mark Common or document here.
5569 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5572 * c-format.c (format_type): New type gcc_objc_string_format_type.
5573 (valid_stringptr_type_p): New.
5574 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
5575 (check_format_string): Pass expected type, use
5576 valid_stringptr_type_p (), check that the format string types are
5577 consistent with the format specification.
5578 (decode_format_attr): Warn if NSString is used outside objective-c.
5579 (format_types_orig): Add NSString.
5581 (format_flags): New.
5582 (check_format_arg): Handle format strings requiring an external parser.
5583 first_target_format_type: New variable.
5584 (handle_format_attribute): Set up first_target_format_type, pass the
5585 expected format arg string type to check_format_string().
5586 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5587 * stub-objc.c (objc_string_ref_type_p): New.
5588 (objc_check_format_arg): New.
5590 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5592 Fixed using the Objective-C 2.0 dot-syntax with class names.
5593 * c-common.h (objc_build_class_component_ref): New.
5594 * stub-objc.c (objc_build_class_component_ref): New.
5596 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5598 * c.opt (Wproperty-assign-default): New option.
5600 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5602 Implemented -fobjc-std=objc1 flag.
5603 * c.opt (fobjc-std=objc1): New option.
5605 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5607 Implemented format and noreturn attributes for Objective-C methods.
5608 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5609 attribute for Objective-C methods.
5611 2010-10-31 Jason Merrill <jason@redhat.com>
5613 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5616 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5618 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5619 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5620 (objc_add_property_declaration): Removed arguments for copies and
5622 (objc_build_getter_call): Renamed to
5623 objc_maybe_build_component_ref.
5624 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5625 (objc_is_property_ref): New.
5626 * c-common.c (c_common_reswords): Removed copies and ivar.
5627 * stub-objc.c (objc_add_property_declaration): Removed arguments
5628 for copies and ivar.
5629 (objc_build_getter_call): Renamed to
5630 objc_maybe_build_component_ref.
5631 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5632 (objc_is_property_ref): New.
5634 2010-10-29 Arnaud Charlet <charlet@adacore.com>
5635 Matthew Gingell <gingell@adacore.com>
5637 * c-ada-spec.c (separate_class_package): New function.
5638 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5639 name of their enclosing package.
5640 (print_ada_declaration): Use separate_class_package.
5642 2010-10-27 Jason Merrill <jason@redhat.com>
5644 * c-common.c (c_common_reswords): Add __is_literal_type.
5645 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5647 * c-common.c (check_case_value): Remove special C++ code.
5649 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5651 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5652 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5654 (objc_add_property_declaration): Added additional arguments.
5655 (objc_property_attribute_kind): Removed.
5656 (objc_set_property_attr): Removed.
5657 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5659 * stub-objc.c (objc_add_property_declaration): Added additional
5661 (objc_set_property_attr): Removed.
5663 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5665 * c-common.h (objc_add_property_variable): Renamed to
5666 objc_add_property_declaration. Added location argument.
5667 * stub-objc.c (objc_add_property_variable): Same change.
5669 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5671 * c-common.h (objc_maybe_printable_name): New.
5672 * stub-objc.c (objc_maybe_printable_name): New.
5674 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5675 Andrew Pinski <pinskia@gmail.com>
5677 * c-common.h (c_common_mark_addressable_vec): Declare.
5678 * c-common.c (c_common_mark_addressable_vec): New function.
5680 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5682 * c-common.h (objc_set_method_type): Removed.
5683 (objc_add_method_declaration): Added boolean argument.
5684 (objc_start_method_definition): Same change.
5685 (objc_build_method_signature): Same change.
5686 * stub-objc.c (objc_set_method_type): Removed.
5687 (objc_add_method_declaration): Added boolean argument.
5688 (objc_start_method_definition): Same change.
5689 (objc_build_method_signature): Same change.
5691 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5693 * c-common.h (finish_file): Removed.
5694 (objc_write_global_declarations): New.
5695 * c-opts.c (c_common_parse_file): Do not call finish_file.
5696 * stub-objc.c (objc_write_global_declarations): New.
5698 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5700 Implemented parsing @synthesize and @dynamic for
5701 Objective-C/Objective-C++.
5702 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5703 (objc_add_synthesize_declaration): New.
5704 (objc_add_dynamic_declaration): New.
5705 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5706 * stub-objc.c (objc_add_synthesize_declaration): New.
5707 (objc_add_dynamic_declaration): New.
5709 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5712 * c-cppbuiltin.c (mode_has_fma): Move function here from
5713 builtins.c. Don't use the fma optab, instead just use the
5714 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5717 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5719 Merge from 'apple/trunk' branch on FSF servers.
5721 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5724 * c-common.h (objc_non_volatilized_type): New declaration
5725 * stub-objc.c (objc_non_volatilized_type): New stub.
5727 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5729 Merge from 'apple/trunk' branch on FSF servers.
5731 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5734 * c-common.h (objc_diagnose_private_ivar): New decl.
5735 * stub-objc.c (objc_diagnose_private_ivar): New stub.
5737 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5739 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5740 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5741 (objc_ivar_visibility_kind): New enum.
5742 (objc_set_visibility): Adjust prototype to use visibility enum.
5743 * stub-objc.c (objc_set_visibility): Adjust stub to use
5746 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5748 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5749 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5750 has the appropriate fma builtins.
5751 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5753 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5755 merge from FSF apple 'trunk' branch.
5756 2006 Fariborz Jahanian <fjahanian@apple.com>
5758 Radars 4436866, 4505126, 4506903, 4517826
5759 * c-common.c (c_common_resword): Define @property and its attributes.
5760 * c-common.h: Define property attribute enum entries.
5761 (OBJC_IS_PATTR_KEYWORD): New.
5762 (objc_property_attribute_kind): New enum.
5763 Declare objc_set_property_attr (), objc_add_property_variable (),
5764 objc_build_getter_call () and objc_build_setter_call ().
5765 * stub-objc.c (objc_set_property_attr): New stub.
5766 (objc_add_property_variable): Likewise.
5767 (objc_build_getter_call): Likewise.
5768 (objc_build_setter_call) Likewise.
5770 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5772 merge from FSF apple 'trunk' branch.
5773 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5775 Radar 3803157 (method attributes)
5776 * c-common.c (handle_deprecated_attribute): Recognize
5777 objc methods as valid declarations.
5778 * c-common.h: Declare objc_method_decl ().
5779 * stub-objc.c (objc_method_decl): New stub.
5781 2010-10-08 Joseph Myers <joseph@codesourcery.com>
5783 * c-common.c (parse_optimize_options): Call
5784 decode_cmdline_options_to_array_default_mask before
5785 decode_options. Update arguments to decode_options.
5786 * c-common.h (c_common_init_options_struct): Declare.
5787 * c-opts.c (c_common_init_options_struct): New. Split out from
5788 c_common_init_options.
5790 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5792 Implemented fast enumeration for Objective-C.
5793 * c-common.h (objc_finish_foreach_loop): New.
5794 * stub-objc.c (objc_finish_foreach_loop): New.
5796 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5798 * c-common.h (struct diagnostic_context): Don't declare here.
5799 (c_common_initialize_diagnostics): Declare using
5800 diagnostic_context typedef.
5801 * c-opts.c (c_common_handle_option): Pass global_dc to
5802 handle_generated_option.
5804 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5806 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5807 handle_generated_option.
5809 2010-10-03 Ian Lance Taylor <iant@google.com>
5811 * c.opt (-fplan9-extensions): New option.
5813 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5815 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5817 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5818 of duplicating code.
5820 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5822 * c-common.c: Add two new entries for @optional
5823 and @required keywords.
5825 merge from FSF 'apple/trunk' branch.
5826 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5829 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5830 objective-c keywords.
5831 (objc_set_method_opt): New declaration.
5832 * stub-objc.c (objc_set_method_opt): New stub.
5834 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5836 * c-common.c (handle_optimize_attribute): Pass &global_options to
5837 cl_optimization_save and cl_optimization_restore.
5838 * c-opts.c (c_common_handle_option): Pass &global_options to
5839 handle_generated_option.
5840 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5841 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5842 &global_options to cl_optimization_restore.
5844 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5846 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5847 Objective-C/Objective-C++ keywords.
5849 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5851 Merge from 'apple/trunk' branch on FSF servers.
5853 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5856 * c-common.h (objc_check_global_decl): New declaration.
5857 * stub-objc.c (objc_check_global_decl): New stub.
5859 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5861 * c.opt: Don't use VarExists.
5863 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5865 * c-common.c (c_cpp_error): Update names of diagnostic_context
5867 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5868 cl_optimization members.
5869 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5870 sanitize_cpp_opts, finish_options): Update names of cpp_options
5873 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5875 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5876 (objc_is_reserved_word): Removed.
5877 * c-common.c: Updated comments.
5878 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5879 objc_is_reserved_word.
5880 * stub-objc.c (objc_is_reserved_word): Removed.
5882 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5884 * c-common.h (objc_add_method_declaration): Adjust prototype to
5886 (objc_start_method_definition): Likewise.
5887 (objc_build_keyword_decl): Likewise.
5888 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5889 (objc_start_method_definition): Likewise.
5890 (objc_build_keyword_decl): Likewise.
5892 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5894 * c-common.h (objc_start_class_interface): Adjust prototype.
5895 (objc_start_category_interface): Likewise.
5896 (objc_start_protocol): Likewise.
5897 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5898 (objc_start_class_interface): Likewise.
5899 (objc_start_category_interface): Likewise.
5901 2010-09-27 Ian Lance Taylor <iant@google.com>
5903 * c-common.c (c_common_attribute_table): Add no_split_stack.
5904 (handle_no_split_stack_attribute): New static function.
5906 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5908 Merge from 'apple/trunk' branch on FSF servers.
5910 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5913 * c-common.h (objc_have_common_type): New declaration.
5914 * stub-objc.c (objc_have_common_type): New stub.
5916 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5919 * c-common.h (objc_common_type): New prototype.
5920 * stub-objc.c (objc_common_type): New stub.
5922 2010-09-24 Jan Hubicka <jh@suse.cz>
5924 * c-common.c (handle_leaf_attribute): New function.
5925 (struct attribute_spec c_common_att): Add leaf.
5927 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5929 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5930 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5931 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5932 -include-barrier, -include-directory, -include-directory=,
5933 -include-directory-after, -include-directory-after=,
5934 -include-prefix, -include-prefix=, -include-with-prefix,
5935 -include-with-prefix=, -include-with-prefix-after,
5936 -include-with-prefix-after=, -include-with-prefix-before,
5937 -include-with-prefix-before=, -no-integrated-cpp,
5938 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5939 -output=, -pedantic, -pedantic-errors, -preprocess,
5940 -print-missing-file-dependencies, -trace-includes, -traditional,
5941 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5942 -user-dependencies, -verbose, -write-dependencies,
5943 -write-user-dependencies, no-integrated-cpp, traditional): New.
5945 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5948 * c-common.h (objc_start_method_definition): Return bool instead
5950 * stub-objc.c (objc_start_method_definition): Return bool instead
5953 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5956 * c-common.h (objc_get_interface_ivars): New declaration.
5957 * stub-objc.c (objc_get_interface_ivars): New stub.
5959 2010-09-15 Ian Lance Taylor <iant@google.com>
5961 * c-common.c (parse_optimize_options): Do not capitalize warning
5962 messages. Remove period at end of warning message.
5964 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5966 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5967 (handle_alias_attribute): ... here.
5968 (handle_ifunc_attribute): New.
5970 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5972 * c-common.h (do_warn_double_promotion): Declare.
5973 * c-common.c (do_warn_double_promotion): Define.
5975 2010-09-05 Mark Mitchell <mark@codesourcery.com>
5977 * c.opt (Wdouble-promotion): New.
5979 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5981 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5982 fvtable-thunks, fxref): Mark no longer supported in help text.
5984 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5986 * c.opt (Wimport, fall-virtual, falt-external-templates,
5987 fdefault-inline, fenum-int-equiv, fexternal-templates,
5988 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5989 fname-mangling-version-, fnew-abi, fnonnull-objects,
5990 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5991 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5993 (fhandle-exceptions): Mark with Alias and Warn.
5994 * c-opts.c (c_common_handle_option): Don't handle options marked
5997 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5999 * c.opt (Wcomments, Werror-implicit-function-declaration,
6000 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6001 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6003 * c-common.c (option_codes): Use OPT_Wcomment instead of
6005 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6006 Don't handle options marked as aliases.
6008 2010-08-25 Richard Guenther <rguenther@suse.de>
6010 * c-common.c (c_common_get_alias_set): Remove special
6011 handling for pointers.
6013 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6015 * c-common.c: Use FOR_EACH_VEC_ELT.
6016 * c-gimplify.c: Likewise.
6017 * c-pragma.c: Likewise.
6019 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6021 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6023 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6025 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6026 instead of OPT_MDX and OPT_MMDX.
6028 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6030 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6032 2010-08-12 Joseph Myers <joseph@codesourcery.com>
6034 * c.opt (MD, MMD): Change to MDX and MMDX.
6035 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6037 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6039 * c-opts.c (c_common_handle_option): Call handle_generated_option
6040 instead of handle_option.
6042 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6044 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6045 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6047 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6049 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6050 (pending_redefine_extname): Change type to a VEC.
6051 (add_to_renaming_pragma_list): Update for new type of
6052 pending_redefine_extname.
6053 (maybe_apply_renaming_pragma): Likewise.
6055 2010-08-04 Arnaud Charlet <charlet@adacore.com>
6057 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6059 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6060 decide whether a type has already been declared/seen.
6061 Do not go to the original type.
6062 (dump_nested_types): New parameter forward.
6063 Generate forward declaration if needed and mark type as visited.
6064 (print_ada_declaration): Call dump_nested_types if not already done.
6065 Mark types as visited.
6067 2010-08-03 Joseph Myers <joseph@codesourcery.com>
6069 * c.opt (-print-pch-checksum): Remove option.
6070 * c-opts.c (c_common_handle_option): Don't handle
6071 OPT_print_pch_checksum.
6073 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6075 * c-common.h (c_common_handle_option): Update prototype and return
6077 * c-opts.c (c_common_handle_option): Update prototype and return
6078 value type. Update calls to handle_option and
6079 enable_warning_as_error.
6081 2010-07-27 Jakub Jelinek <jakub@redhat.com>
6084 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6086 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6088 * c-common.h (c_common_missing_argument): Remove.
6089 * c-opts.c (c_common_missing_argument): Remove.
6090 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6091 idirafter, imacros, include, isysroot, isystem, iquote): Add
6093 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6095 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6097 * c-common.h (c_common_option_lang_mask,
6098 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6100 (c_common_init_options): Update prototype.
6101 * c-opts.c (c_common_option_lang_mask): New.
6102 (c_common_initialize_diagnostics): Split out of
6103 c_common_init_options.
6104 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6106 (c_common_init_options): Update prototype. Use decoded options in
6107 search for -lang-asm.
6109 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6111 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6112 * c-format.c: Likewise.
6114 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6116 * c-common.h: Include diagnostic-core.h. Error if already
6118 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6120 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6122 * c-common.c (IN_GCC_FRONTEND): Do not undef.
6123 Do not include expr.h
6124 (vector_mode_valid_p): Move here.
6126 2010-06-21 DJ Delorie <dj@redhat.com>
6128 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6129 allow these pragmas anywhere.
6131 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6134 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6135 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6136 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6137 ggc_strdup instead of xstrdup.
6139 2010-06-10 Jakub Jelinek <jakub@redhat.com>
6141 * c-cppbuiltin.c: Include cpp-id-data.h.
6142 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6143 (lazy_hex_fp_value): New function.
6144 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6146 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6148 * c-gimplify.c: Do not include tree-flow.h
6150 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6153 * c-common.c: Rename targetm member:
6154 targetm.enum_va_list -> targetm.enum_va_list_p
6156 2010-06-28 Anatoly Sokolov <aesok@post.ru>
6158 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6160 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6162 * c-cppbuiltin.c: Do not include except.h.
6164 2010-06-24 Andi Kleen <ak@linux.intel.com>
6166 * c-common.c (warn_for_omitted_condop): New.
6167 * c-common.h (warn_for_omitted_condop): Add prototype.
6169 2010-06-21 Joseph Myers <joseph@codesourcery.com>
6171 * c.opt (lang-objc): Remove.
6172 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6174 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6176 * c-opts.c: Include "tm_p.h".
6178 2010-06-20 Joseph Myers <joseph@codesourcery.com>
6180 * c-common.c (parse_optimize_options): Update call to
6183 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6185 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6186 new type of types_used_by_cur_var_decl.
6188 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6191 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6192 for C++ standard compliance.
6194 2010-06-16 Jason Merrill <jason@redhat.com>
6196 * c.opt: Add -Wnoexcept.
6198 2010-06-16 Richard Guenther <rguenther@suse.de>
6201 * c-common.c (c_common_truthvalue_conversion): Remove
6202 premature and wrong optimization concering ADDR_EXPRs.
6204 2010-06-15 Arnaud Charlet <charlet@adacore.com>
6206 * c-ada-spec.c (dump_sloc): Remove column info.
6207 (is_simple_enum): New function.
6208 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6209 enum types when relevant.
6211 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6213 * c-common.c (conversion_warning): Warn at expression
6216 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6218 * c-opts.c (c_common_handle_option): Don't handle
6221 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6223 * c-pragma.c (push_alignment): Use typed GC allocation.
6224 (handle_pragma_push_options): Likewise.
6226 * c-common.c (parse_optimize_options): Likewise.
6228 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6231 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6233 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6234 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6235 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6236 flag_signed_bitfields, warn_strict_null_sentinel,
6237 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6238 flag_gen_declaration, flag_no_gnu_keywords,
6239 flag_implement_inlines, flag_implicit_templates,
6240 flag_implicit_inline_templates, flag_optional_diags,
6241 flag_elide_constructors, flag_default_inline, flag_rtti,
6242 flag_conserve_space, flag_access_control, flag_check_new,
6243 flag_new_for_scope, flag_weak, flag_working_directory,
6244 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6245 flag_enforce_eh_specs, flag_threadsafe_statics,
6246 flag_pretty_templates): Remove.
6247 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6248 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6249 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6250 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6251 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6252 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6253 flag_no_gnu_keywords, flag_implement_inlines,
6254 flag_implicit_templates, flag_implicit_inline_templates,
6255 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6256 flag_rtti, flag_conserve_space, flag_access_control,
6257 flag_check_new, flag_new_for_scope, flag_weak,
6258 flag_working_directory, flag_use_cxa_atexit,
6259 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6260 flag_threadsafe_statics, flag_pretty_templates,
6261 warn_strict_null_sentinel): Remove.
6262 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6263 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6264 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6265 fimplicit-inline-templates, fimplicit-templates,
6266 flax-vector-conversions, fms-extensions, fnil-receivers,
6267 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6268 frtti, fshort-double, fshort-enums, fshort-wchar,
6269 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6270 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6271 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6272 gen-decls, undef): Use Var.
6273 (fdefault-inline, foptional-diags): Document as doing nothing.
6274 * c-opts.c (c_common_handle_option): Remove cases for options now
6275 using Var. Mark ignored options as such.
6277 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6279 * c-common.c: Moved to here from parent directory.
6280 * c-common.def: Likewise.
6281 * c-common.h: Likewise.
6282 * c-cppbuiltin.c: Likewise.
6283 * c-dump.c: Likewise.
6284 * c-format.c: Likewise.
6285 * c-format.h : Likewise.
6286 * c-gimplify.c: Likewise.
6287 * c-lex.c: Likewise.
6288 * c-omp.c: Likewise.
6290 * c-opts.c: Likewise.
6291 * c-pch.c: Likewise.
6292 * c-ppoutput.c: Likewise.
6293 * c-pragma.c: Likewise.
6294 * c-pragma.h: Likewise.
6295 * c-pretty-print.c: Likewise.
6296 * c-pretty-print.h: Likewise.
6297 * c-semantics.c: Likewise.
6298 * stub-objc.c: Likewise.
6300 * c-common.c: Include gt-c-family-c-common.h.
6301 * c-pragma.c: Include gt-c-family-c-pragma.h.
6303 Copyright (C) 2010-2016 Free Software Foundation, Inc.
6305 Copying and distribution of this file, with or without modification,
6306 are permitted in any medium without royalty provided the copyright
6307 notice and this notice are preserved.