1 2016-08-29 Tom de Vries <tom@codesourcery.com>
3 * c-common.c (build_va_arg): Replace first argument type error
6 2016-08-29 Tom de Vries <tom@codesourcery.com>
9 * c-common.c (build_va_arg): Add first argument error. Build va_arg
10 with error_mark_node as va_list instead of with illegal va_list.
12 2016-08-25 Marek Polacek <polacek@redhat.com>
13 David Malcolm <dmalcolm@redhat.com>
15 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
16 * c-common.h (warn_logical_not_parentheses): Update declaration.
18 2016-08-22 Marek Polacek <polacek@redhat.com>
21 * c-common.c (warn_for_memset): Check type for null.
23 2016-08-22 Joseph Myers <joseph@codesourcery.com>
25 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
26 _FloatNx types for suffixes for built-in functions.
28 2016-08-19 Joseph Myers <joseph@codesourcery.com>
31 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
32 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
33 (RID_FLOAT128X): New enum rid values.
34 (CASE_RID_FLOATN_NX): New macro.
35 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
37 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
38 corresponding complex types.
39 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
40 _FloatNx and corresponding complex types.
41 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
42 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
43 and _FloatNx types for the widest type for determining
44 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
45 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
46 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
48 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
50 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
53 2016-08-18 David Malcolm <dmalcolm@redhat.com>
55 * c-opts.c (c_diagnostic_finalizer): Update for change to
56 diagnostic_show_locus.
58 2016-08-18 David Malcolm <dmalcolm@redhat.com>
60 * c-common.c: Include "spellcheck.h".
61 (cb_get_suggestion): New function.
62 * c-common.h (cb_get_suggestion): New decl.
63 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
66 2016-08-18 Marek Polacek <polacek@redhat.com>
69 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
72 2016-08-16 David Malcolm <dmalcolm@redhat.com>
75 * c-common.c (substring_loc::get_range): Rename to...
76 (substring_loc::get_location): ...this, converting param from a
77 source_range * to a location_t *. Call
78 get_source_location_for_substring rather than
79 get_source_range_for_substring, and pass in m_caret_idx.
80 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
81 (substring_loc::get_range): Replace with...
82 (substring_loc::get_location): ...this.
83 (substring_loc::set_caret_index): New method.
84 (substring_loc): Add field m_caret_idx.
85 * c-format.c (format_warning_va): Update for above changes.
86 Rename local "substring_loc" to "fmt_substring_loc" to avoid
87 clashing with type name.
88 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
89 (check_argument_type): Likewise.
90 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
91 Use a copy when emitting warnings, setting the caret index from TYPE.
93 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
94 Arnaud Charlet <charlet@adacore.com>
96 * c-ada-spec.c (dump_number): New function.
97 (handle_escape_character): Likewise.
98 (print_ada_macros): Add handling of constant integers and strings.
100 2016-08-12 Marek Polacek <polacek@redhat.com>
103 * c-common.c (scalar_to_vector): Adjust fall through comment.
104 * c-opts.c (c_common_handle_option): Likewise.
105 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
106 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
107 fall through comment.
108 * cilk.c (extract_free_variables): Add FALLTHRU.
110 2016-08-10 Jason Merrill <jason@redhat.com>
112 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
114 2016-08-09 Jason Merrill <jason@redhat.com>
116 * c-common.c (c_common_attribute_table): vector_size affects type
119 2016-08-09 Marek Polacek <polacek@redhat.com>
122 * c-ada-spec.c (dump_generic_ada_node): Add return.
124 2016-08-09 Jason Merrill <jason@redhat.com>
126 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
127 C++17 constexpr lambdas.
129 2016-08-08 David Malcolm <dmalcolm@redhat.com>
132 * c-common.h (selftest::c_format_c_tests): New declaration.
133 (selftest::run_c_tests): New declaration.
134 * c-format.c: Include "selftest.h.
135 (format_warning_va): Add param "corrected_substring" and use
136 it to add a replacement fix-it hint.
137 (format_warning_at_substring): Likewise.
138 (format_warning_at_char): Update for new param of
140 (argument_parser::check_argument_type): Pass "fki" to
142 (check_format_types): Add param "fki" and pass it to
144 (deref_n_times): New function.
145 (get_modifier_for_format_len): New function.
146 (selftest::test_get_modifier_for_format_len): New function.
147 (get_format_for_type): New function.
148 (format_type_warning): Add param "fki" and use it to attempt
149 to provide hints for argument types when calling
150 format_warning_at_substring.
151 (selftest::get_info): New function.
152 (selftest::assert_format_for_type_streq): New function.
153 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
154 (selftest::test_get_format_for_type_printf): New function.
155 (selftest::test_get_format_for_type_scanf): New function.
156 (selftest::c_format_c_tests): New function.
158 2016-08-08 David Malcolm <dmalcolm@redhat.com>
161 * c-format.c: Include "diagnostic.h".
162 (location_column_from_byte_offset): Delete.
163 (location_from_offset): Delete.
164 (format_warning_va): New function.
165 (format_warning_at_substring): New function.
166 (format_warning_at_char): New function.
167 (check_format_arg): Capture location of format_tree and pass to
168 check_format_info_main.
169 (argument_parser): Add fields "start_of_this_format" and
171 (flag_chars_t::validate): Add param "format_string_cst". Convert
172 warning_at call using location_from_offset to call to
173 format_warning_at_char.
174 (argument_parser::argument_parser): Add param "format_string_cst_"
175 and use use it to initialize field "format_string_cst".
176 Initialize new field "start_of_this_format".
177 (argument_parser::read_format_flags): Convert warning_at call
178 using location_from_offset to a call to format_warning_at_char.
179 (argument_parser::read_any_format_left_precision): Likewise.
180 (argument_parser::read_any_format_precision): Likewise.
181 (argument_parser::read_any_other_modifier): Likewise.
182 (argument_parser::find_format_char_info): Likewise, in three places.
183 (argument_parser::parse_any_scan_set): Likewise, in one place.
184 (argument_parser::handle_conversions): Likewise, in two places.
185 (argument_parser::check_argument_type): Add param "fmt_param_loc"
186 and use it to make a substring_loc. Pass the latter to
188 (check_format_info_main): Add params "fmt_param_loc" and
189 "format_string_cst". Convert warning_at calls using
190 location_from_offset to calls to format_warning_at_char. Pass the
191 new params to the arg_parser ctor. Pass "format_string_cst" to
192 flag_chars.validate. Pass "fmt_param_loc" to
193 arg_parser.check_argument_type.
194 (check_format_types): Convert first param from a location_t
195 to a const substring_loc & and rename to "fmt_loc". Attempt
196 to extract the range of the relevant parameter and pass it
197 to format_type_warning.
198 (format_type_warning): Convert first param from a location_t
199 to a const substring_loc & and rename to "fmt_loc". Add
200 params "param_range" and "type". Replace calls to warning_at
201 with calls to format_warning_at_substring.
203 2016-08-08 David Malcolm <dmalcolm@redhat.com>
205 * c-format.c (class flag_chars_t): New class.
206 (struct length_modifier): New struct.
207 (class argument_parser): New class.
208 (flag_chars_t::flag_chars_t): New ctor.
209 (flag_chars_t::has_char_p): New method.
210 (flag_chars_t::add_char): New method.
211 (flag_chars_t::validate): New method.
212 (flag_chars_t::get_alloc_flag): New method.
213 (flag_chars_t::assignment_suppression_p): New method.
214 (argument_parser::argument_parser): New ctor.
215 (argument_parser::read_any_dollar): New method.
216 (argument_parser::read_format_flags): New method.
217 (argument_parser::read_any_format_width): New method.
218 (argument_parser::read_any_format_left_precision): New method.
219 (argument_parser::read_any_format_precision): New method.
220 (argument_parser::handle_alloc_chars): New method.
221 (argument_parser::read_any_length_modifier): New method.
222 (argument_parser::read_any_other_modifier): New method.
223 (argument_parser::find_format_char_info): New method.
224 (argument_parser::validate_flag_pairs): New method.
225 (argument_parser::give_y2k_warnings): New method.
226 (argument_parser::parse_any_scan_set): New method.
227 (argument_parser::handle_conversions): New method.
228 (argument_parser::check_argument_type): New method.
229 (check_format_info_main): Introduce classes argument_parser
230 and flag_chars_t, moving the code within the loop into methods
231 of these classes. Make various locals "const".
233 2016-08-05 David Malcolm <dmalcolm@redhat.com>
235 * c-common.c: Include "substring-locations.h".
236 (get_cpp_ttype_from_string_type): New function.
237 (g_string_concat_db): New global.
238 (substring_loc::get_range): New method.
239 * c-common.h (g_string_concat_db): New declaration.
240 (class substring_loc): New class.
241 * c-lex.c (lex_string): When concatenating strings, capture the
242 locations of all tokens using a new obstack, and record the
243 concatenation locations within g_string_concat_db.
244 * c-opts.c (c_common_init_options): Construct g_string_concat_db
247 2016-07-29 Marek Polacek <polacek@redhat.com>
250 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
254 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
256 2016-07-28 Martin Liska <mliska@suse.cz>
258 PR gcov-profile/68025
259 * c-common.c (handle_no_profile_instrument_function_attribute):
261 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
263 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
266 2016-07-25 Jason Merrill <jason@redhat.com>
269 * c.opt (fconstexpr-loop-limit): New.
271 2016-07-22 Martin Sebor <msebor@redhat.com>
274 * c-common.c (resolve_overloaded_builtin): Avoid converting
275 __atomic_compare_exchange_n return type to that of what its
276 first argument points to.
278 2016-07-22 Uros Bizjak <ubizjak@gmail.com>
280 * c-common.c: Use HOST_WIDE_INT_M1U instead of
281 ~(unsigned HOST_WIDE_INT) 0.
283 2016-07-22 Martin Liska <mliska@suse.cz>
285 PR gcov-profile/69028
286 PR gcov-profile/62047
287 * cilk.c (create_cilk_helper_decl): Set location of a new decl
288 to the current_function_decl.
290 2016-07-21 Jason Merrill <jason@redhat.com>
293 * c-common.c (c_common_truthvalue_conversion): Check
294 c_inhibit_evaluation_warnings for warning about address of
297 2016-07-20 David Malcolm <dmalcolm@redhat.com>
299 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
302 2016-07-15 Jason Merrill <jason@redhat.com>
304 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
306 2016-07-15 Jakub Jelinek <jakub@redhat.com>
309 * c-common.h (enum lookup_name_fuzzy_kind): Add
310 FUZZY_LOOKUP_FUNCTION_NAME.
312 2016-07-08 Jason Merrill <jason@redhat.com>
314 P0145: Refining Expression Order for C++.
315 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
318 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
321 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
323 2016-06-29 Thomas Schwinge <thomas@codesourcery.com>
325 * c-pragma.h (enum pragma_kind): Rename
326 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
329 2016-06-29 Richard Biener <rguenther@suse.de>
332 * c-common.c (c_common_get_alias_set): Remove union type punning case.
334 2016-06-24 Jason Merrill <jason@redhat.com>
336 P0145R2: Refining Expression Order for C++.
337 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
340 2016-06-24 Jakub Jelinek <jakub@redhat.com>
342 * c-common.c (check_builtin_function_arguments): Require last
343 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
344 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
345 if the last argument is pointer to enumerated or boolean type.
347 2016-06-22 David Malcolm <dmalcolm@redhat.com>
350 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
351 (lookup_name_fuzzy): New prototype.
353 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
355 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
357 2016-06-14 Jason Merrill <jason@redhat.com>
359 P0145R2: Refining Expression Order for C++.
360 * c.opt (fargs-in-order): New.
361 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
363 2016-06-13 Jakub Jelinek <jakub@redhat.com>
366 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
367 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
369 PR preprocessor/71183
370 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
371 to cb_get_source_date_epoch.
373 2016-06-10 Jakub Jelinek <jakub@redhat.com>
376 * c.opt (Wpsabi): Add Warning flag.
378 2016-06-10 Martin Sebor <msebor@redhat.com>
381 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
382 the nonnull attribute in type-generic builtins.
384 2016-06-09 Martin Sebor <msebor@redhat.com>
387 * c-common.c (builtin_function_validate_nargs): Make text of error
388 message consistent with others like it.
390 2016-06-08 Martin Sebor <msebor@redhat.com>
391 Jakub Jelinek <jakub@redhat.com>
395 * c-common.c (check_builtin_function_arguments): Handle
396 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
398 2016-06-08 Richard Biener <rguenther@suse.de>
400 * c-common.c (parse_optimize_options): Improve diagnostic messages.
402 2016-06-07 Richard Biener <rguenther@suse.de>
405 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
406 options and warn about others.
408 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
410 * c-common.c (get_source_date_epoch): Rename to
411 cb_get_source_date_epoch.
412 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
413 message when the parsing fails. Use error_at instead of fatal_error.
414 * c-common.h (get_source_date_epoch): Rename to
415 cb_get_source_date_epoch.
416 * c-common.h (cb_get_source_date_epoch): Prototype.
417 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
418 * c-common.h (c_omp_region_type): Remove trailing comma.
419 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
420 * c-lex.c (c_lex_with_flags): Remove initialization of
421 pfile->source_date_epoch.
423 2016-05-30 Jakub Jelinek <jakub@redhat.com>
426 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
427 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
428 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
429 instead of C_OMP_CLAUSE_SPLIT_FOR.
431 2016-05-24 Richard Biener <rguenther@suse.de>
435 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
436 (convert_vector_to_array_for_subscript): ... this.
437 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
438 VIEW_CONVERT_EXPR to an array type. Rename to ...
439 (convert_vector_to_array_for_subscript): ... this.
441 2016-05-12 Marek Polacek <polacek@redhat.com>
444 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
445 size_in_bytes and pass LOC to it.
447 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
450 * c.opt (Wduplicate-decl-specifier): New option.
452 2016-05-11 Marek Polacek <polacek@redhat.com>
455 * c-common.c (diagnose_mismatched_attributes): New function.
456 * c-common.h (diagnose_mismatched_attributes): Declare.
458 2016-05-04 Marek Polacek <polacek@redhat.com>
460 * c.opt (Wdangling-else): New option.
462 2016-05-03 Marek Polacek <polacek@redhat.com>
465 * c-common.c (builtin_function_validate_nargs): Add location
467 (check_builtin_function_arguments): Add location and arguments
468 parameters. Use them.
469 * c-common.h (check_builtin_function_arguments): Update declaration.
471 2016-05-03 Richard Biener <rguenther@suse.de>
473 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
474 allow call args to gimplify to SSA names.
476 2016-05-03 Marek Polacek <polacek@redhat.com>
478 * c-common.h (enum c_omp_region_type): Remove stray comma.
480 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
482 * c-common.h (enum c_omp_region_type): Define.
484 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
486 * c-common.c (shorten_compare): Use wi::to_wide.
488 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
491 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
492 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
493 reduction clauses in acc parallel loops.
495 2016-04-29 Marek Polacek <polacek@redhat.com>
498 * c-common.c (warn_for_memset): Check domain before accessing it.
500 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
503 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
506 2016-04-28 Jason Merrill <jason@redhat.com>
508 * c-lex.c (c_common_has_attribute): Handle nodiscard.
510 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
511 Matthias Klose <doko@debian.org>
513 * c-common.c (get_source_date_epoch): New function, gets the environment
514 variable SOURCE_DATE_EPOCH and parses it as long long with error
516 * c-common.h (get_source_date_epoch): Prototype.
517 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
519 2015-04-27 Ryan Burn <contact@rnburn.com>
523 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
524 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
526 (cilk_detect_and_unwrap): Corresponding changes.
527 (extract_free_variables): Don't extract free variables from
529 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
530 (cilk_recognize_spawn): Likewise.
532 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
534 * c.opt (Wmemset-elt-size): New option.
535 * c-common.c (warn_for_memset): New function.
536 * c-common.h (warn_for_memset): Declare.
538 2016-04-25 Jason Merrill <jason@redhat.com>
540 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
542 * c-common.h: Declare it.
543 * c-lex.c (c_common_has_attribute): Add maybe_unused.
545 2016-04-22 Jason Merrill <jason@redhat.com>
547 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
549 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
552 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
553 * c-common.h (c_finish_cilk_clauses): Remove declaration.
555 2016-04-18 Michael Matz <matz@suse.de>
557 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
560 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
562 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
563 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
565 (dump_nested_type): Remove redundant tests and tidy up.
566 (print_ada_declaration): Also set TREE_VISITED on the declaration of
567 a type which is the typedef of an original type.
569 2016-04-15 Marek Polacek <polacek@redhat.com>
572 * c-common.c (build_va_arg): Change two asserts into errors and return
575 2016-04-13 Marek Polacek <polacek@redhat.com>
578 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
579 for switch statements, too.
581 2016-03-28 Jason Merrill <jason@redhat.com>
583 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
585 2016-03-23 Marek Polacek <polacek@redhat.com>
588 * c.opt (Wignored-attributes): New option.
590 2016-03-22 David Malcolm <dmalcolm@redhat.com>
593 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
594 diagnostic text, reversing the order of the warning and note so
595 that they appear in source order.
597 2016-03-17 Marek Polacek <polacek@redhat.com>
600 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
603 2016-03-14 Jason Merrill <jason@redhat.com>
605 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
607 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
609 2016-03-09 Richard Biener <rguenther@suse.de>
612 * c-common.c (strict_aliasing_warning): Add back
613 alias_sets_conflict_p check.
615 2016-03-08 Jason Merrill <jason@redhat.com>
617 * c-opts.c (set_std_cxx1z): Don't enable concepts.
619 2016-03-04 David Malcolm <dmalcolm@redhat.com>
622 * c-indentation.c (get_visual_column): Move code to determine next
624 (next_tab_stop): ...this new function.
625 (line_contains_hash_if): Delete function.
626 (detect_preprocessor_logic): Delete function.
627 (get_first_nws_vis_column): New function.
628 (detect_intervening_unindent): New function.
629 (should_warn_for_misleading_indentation): Replace call to
630 detect_preprocessor_logic with a call to
631 detect_intervening_unindent.
633 2016-03-04 David Malcolm <dmalcolm@redhat.com>
636 * c-indentation.c (should_warn_for_misleading_indentation): When
637 suppressing warnings about cases where the guard and body are on
638 the same column, only use the first non-whitespace column in place
639 of the guard token column when dealing with "else" clauses.
640 When rejecting aligned BODY and NEXT, loosen the requirement
641 from equality with the first non-whitespace of guard to simply
642 that they not be indented relative to it.
644 2016-03-04 Richard Biener <rguenther@suse.de>
647 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
648 instead of alias_sets_conflict_p.
650 2016-03-01 Marek Polacek <polacek@redhat.com>
653 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
656 2016-02-22 Martin Sebor <msebor@redhat.com>
659 * c-common.c (check_builtin_function_arguments): Validate and
660 reject invalid arguments to __builtin_alloca_with_align.
662 2016-02-20 Mark Wielaard <mjw@redhat.com>
665 * c.opt (Wunused-const-variable): Turn into Alias for...
666 (Wunused-const-variable=): New option.
668 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
671 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
673 (c_common_init_options): ...to here.
674 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
676 2016-02-19 Jakub Jelinek <jakub@redhat.com>
679 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
680 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
681 flag_preprocess_only.
683 2016-02-16 Jakub Jelinek <jakub@redhat.com>
686 * c.opt (Wnonnull-compare): Enable for -Wall.
688 2016-02-15 Jakub Jelinek <jakub@redhat.com>
691 * c-common.c (sync_resolve_size): Diagnose too few arguments
692 even when params is non-NULL empty vector.
694 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
697 * c.opt (fshort-double): Remove.
699 2016-02-05 Martin Sebor <msebor@redhat.com>
702 * c.opt (Warning options): Update -Wplacement-new to take
703 an optional argument.
705 2016-02-01 Jakub Jelinek <jakub@redhat.com>
707 PR preprocessor/69543
709 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
710 instead of loc to control_warning_option.
712 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
714 * c.opt (fopenacc-dim=): New option.
716 2016-01-27 Ryan Burn <contact@rnburn.com>
719 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
720 gimplify_arg. Removed superfluous post_p argument.
721 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
722 superfluous post_p argument.
723 * c-gimplify.c (c_gimplify_expr): Likewise.
725 2016-01-26 David Malcolm <dmalcolm@redhat.com>
728 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
729 pp_newline_and_flush with pp_flush.
731 2016-01-20 Martin Sebor <msebor@redhat.com>
734 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
735 an incompatible argument when the argument isn't a valid tree node.
737 2016-01-18 Jason Merrill <jason@redhat.com>
740 * c-common.c (check_function_arguments_recurse): Fold the whole
741 COND_EXPR, not just the condition.
743 2016-01-18 Tom de Vries <tom@codesourcery.com>
745 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
746 classify as loop clause.
748 2016-01-15 Jakub Jelinek <jakub@redhat.com>
751 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
752 C++ FE no longer has limit on number of pragmas.
754 2015-01-14 Ryan Burn <contact@rnburn.com>
757 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
758 to add missing cleanup point.
760 2016-01-14 David Malcolm <dmalcolm@redhat.com>
763 * c-indentation.c (get_visual_column): Add location_t param.
764 Handle the column number being zero by effectively disabling the
765 warning, with an "inform".
766 (should_warn_for_misleading_indentation): Add location_t argument
767 for all uses of get_visual_column.
769 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
772 * c-indentation.c (should_warn_for_misleading_indentation):
773 Don't warn about do-while statements.
775 2016-01-07 Martin Sebor <msebor@redhat.com>
778 * c-common.c (sync_resolve_size): Reject first argument when it's
781 2016-01-05 David Malcolm <dmalcolm@redhat.com>
784 * c-indentation.c (get_visual_column): Remove default argument.
785 (should_warn_for_misleading_indentation): For the multiline case,
786 update call to get_visual_column for next_stmt_exploc so that it
787 captures the location of the first non-whitespace character in the
788 relevant line. Don't issue warnings if there is non-whitespace
789 before the next statement.
791 2016-01-04 Jakub Jelinek <jakub@redhat.com>
793 Update copyright years.
795 2015-12-21 David Malcolm <dmalcolm@redhat.com>
797 * c-common.c (binary_op_error): Convert first param from
798 location_t to rich_location * and use it when emitting an error.
799 * c-common.h (binary_op_error): Convert first param from
800 location_t to rich_location *.
802 2015-12-16 David Malcolm <dmalcolm@redhat.com>
804 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
805 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
807 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
809 * c-common.c (c_common_attribute_table): Handle "omp declare target
812 2015-12-14 Jakub Jelinek <jakub@redhat.com>
815 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
817 2014-12-12 Tobias Burnus <burnus@net-b.de>
820 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
821 specifiers (%d, %i,%u and %c).
823 2015-12-10 David Malcolm <dmalcolm@redhat.com>
825 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
827 2015-12-08 Jakub Jelinek <jakub@redhat.com>
831 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
832 * c-pragma.c (handle_pragma_diagnostic): Adjust
833 control_warning_option caller.
835 2015-12-07 David Malcolm <dmalcolm@redhat.com>
837 * c-common.c (c_cpp_error): Update for change to
838 rich_location::set_range.
840 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
842 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
843 shifting 1 out of the sign bit.
845 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
847 * c-common.c (c_common_attribute_table[]): Update max arguments
848 count for "simd" attribute.
849 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
851 2015-12-03 Jakub Jelinek <jakub@redhat.com>
853 PR preprocessor/57580
854 * c-ppoutput.c (print): Change printed field to bool.
855 Move src_file last for smaller padding.
856 (init_pp_output): Set print.printed to false instead of 0.
857 (scan_translation_unit): Fix up formatting. Set print.printed
858 to true after printing something other than newline.
859 (scan_translation_unit_trad): Set print.printed to true instead of 1.
860 (maybe_print_line_1): Set print.printed to false instead of 0.
861 (print_line_1): Likewise.
862 (do_line_change): Set print.printed to true instead of 1.
863 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
864 dump_macro): Set print.printed to false after printing newline.
866 2015-12-02 Jason Merrill <jason@redhat.com>
868 * c-common.c (fold_for_warn): New.
869 (warn_logical_operator, warn_tautological_cmp)
870 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
872 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
873 (c_fully_fold_internal, decl_constant_value_for_optimization):
875 * c-common.h: Don't declare decl_constant_value_for_optimization.
877 2015-12-02 Joseph Myers <joseph@codesourcery.com>
880 * c-common.h (c_build_qualified_type): Add extra default
883 2015-12-01 Julian Brown <julian@codesourcery.com>
884 Cesar Philippidis <cesar@codesourcery.com>
885 James Norris <James_Norris@mentor.com>
887 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
888 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
889 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
891 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
893 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
894 (decl_sloc_common): Delete and move bulk of processing to...
895 (decl_sloc): ...here.
896 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
897 (dump_ada_double_name): Remove S parameter and compute the suffix.
898 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
899 element type and deal with an anonymous one.
900 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
901 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
902 and remove reference to QUAL_UNION_TYPE.
903 (dump_nested_types): Make 2 passes on the fields and move bulk to...
904 (dump_nested_type): ...here. New function extracted from above.
905 Generate a full declaration for anonymous element type of arrays.
906 (print_ada_declaration): Really skip anonymous declarations. Remove
907 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
908 Clean up processing of declarations of array types and objects.
909 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
910 Remove obsolete code and tidy up.
912 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
915 * c-common.c (handle_transparent_union_attribute): Update
918 2015-11-27 Martin Liska <mliska@suse.cz>
921 * array-notation-common.c (cilkplus_extract_an_triplets):
922 Release vector of vectors.
923 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
925 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
928 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
929 (print_ada_struct_decl): Likewise.
931 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
934 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
935 * cilk.c (recognize_spawn): Determine location in a more precise
938 2015-11-19 Jason Merrill <jason@redhat.com>
940 * c-common.c (shorten_compare): But look through macros from
943 2015-11-18 Jason Merrill <jason@redhat.com>
945 * c-common.c (shorten_compare): Don't -Wtype-limits if the
946 non-constant operand comes from a macro.
948 2015-11-17 Jason Merrill <jason@redhat.com>
951 * c-common.c (warn_tautological_cmp): Fold before checking for
954 2015-11-16 Marek Polacek <polacek@redhat.com>
957 * c-common.c (check_case_bounds): Fold low and high cases.
959 2015-11-16 Marek Polacek <polacek@redhat.com>
961 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
962 * c-common.c (c_common_get_alias_set): Likewise.
963 (handle_visibility_attribute): Likewise.
965 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
967 * c-common.c (handle_simd_attribute): New.
968 (struct attribute_spec): Add entry for "simd".
969 (handle_simd_attribute): New.
971 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
973 * c-lex.c (interpret_float): Use fold_convert.
975 2015-11-13 David Malcolm <dmalcolm@redhat.com>
977 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
978 and store it on the result.
979 * c-opts.c (c_common_init_options): Set
980 global_dc->colorize_source_p.
982 2015-11-12 James Norris <jnorris@codesourcery.com>
983 Joseph Myers <joseph@codesourcery.com>
985 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
986 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
987 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
988 PRAGMA_OACC_CLAUSE_LINK.
990 2015-11-11 Marek Polacek <polacek@redhat.com>
994 * c-common.c (valid_array_size_p): New function.
995 * c-common.h (valid_array_size_p): Declare.
997 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
1000 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1002 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
1004 * array-notation-common.c: Remove unused header files.
1005 * c-ada-spec.c: Likewise.
1006 * c-cilkplus.c: Likewise.
1007 * c-common.c: Likewise.
1008 * c-cppbuiltin.c: Likewise.
1009 * c-dump.c: Likewise.
1010 * c-format.c: Likewise.
1011 * c-gimplify.c: Likewise.
1012 * c-indentation.c: Likewise.
1013 * c-lex.c: Likewise.
1014 * c-omp.c: Likewise.
1015 * c-opts.c: Likewise.
1016 * c-pch.c: Likewise.
1017 * c-ppoutput.c: Likewise.
1018 * c-pragma.c: Likewise.
1019 * c-pretty-print.c: Likewise.
1020 * c-semantics.c: Likewise.
1021 * c-ubsan.c: Likewise.
1023 * stub-objc.c: Likewise.
1025 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1026 Cesar Philippidis <cesar@codesourcery.com>
1027 James Norris <jnorris@codesourcery.com>
1028 Julian Brown <julian@codesourcery.com>
1029 Nathan Sidwell <nathan@codesourcery.com>
1031 * c-pragma.c (oacc_pragmas): Add "routine".
1032 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1034 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1036 * c-common.c (c_common_attributes): Add scalar_storage_order.
1037 (handle_scalar_storage_order_attribute): New function.
1038 * c-pragma.c (global_sso): New variable.
1039 (maybe_apply_pragma_scalar_storage_order): New function.
1040 (handle_pragma_scalar_storage_order): Likewise.
1041 (init_pragma): Register scalar_storage_order.
1042 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1043 * c.opt (Wscalar-storage-order): New warning.
1044 (fsso-struct=): New option.
1046 2015-11-08 Martin Sebor <msebor@redhat.com>
1048 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1050 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1052 * c-common.c: Don't undef DEF_BUILTIN.
1054 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1056 * c-common.c (c_cpp_error): Convert parameter from location_t to
1057 rich_location *. Eliminate the "column_override" parameter and
1058 the call to diagnostic_override_column.
1059 Update the "done_lexing" clause to set range 0
1060 on the rich_location, rather than overwriting a location_t.
1061 * c-common.h (c_cpp_error): Convert parameter from location_t to
1062 rich_location *. Eliminate the "column_override" parameter.
1064 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1065 Thomas Schwinge <thomas@codesourcery.com>
1066 James Norris <jnorris@codesourcery.com>
1068 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1069 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1070 clauses with parallel and kernels and loops.
1071 * c-pragma.h (enum pragma_omp_clause): Add entries for
1072 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1073 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1074 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1076 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1078 2015-11-05 Martin Sebor <msebor@redhat.com>
1081 * c.opt (-Wplacement-new): New option.
1083 2015-11-05 Jakub Jelinek <jakub@redhat.com>
1085 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1086 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1087 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1088 save_expr or create_tmp_var* if TEST is true.
1089 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1090 Don't call add_stmt here.
1091 (struct c_omp_check_loop_iv_data): New type.
1092 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1093 c_omp_check_loop_iv_exprs): New functions.
1094 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1096 (c_omp_declare_simd_clauses_to_numbers): Change
1097 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1098 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1099 from numbers to PARM_DECLs.
1101 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1103 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1106 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
1109 * c-common.h (fold_offsetof_1): Add argument.
1110 * c-common.c (fold_offsetof_1): Diagnose more invalid
1111 offsetof expressions that reference elements past the end of
1114 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1115 Chung-Lin Tang <cltang@codesourcery.com>
1117 * c-pragma.c (oacc_pragmas): Add "atomic".
1118 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1120 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1122 * c-common.c (handle_target_clones_attribute): New.
1123 (c_common_attribute_table): Add handle_target_clones_attribute.
1124 (handle_always_inline_attribute): Add check on target_clones attribute.
1125 (handle_target_attribute): Ditto.
1127 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
1129 * array-notation-common.c: Reorder #include's and remove duplicates.
1130 * c-ada-spec.c: Likewise.
1131 * c-cilkplus.c: Likewise.
1132 * c-common.c: Likewise.
1133 * c-cppbuiltin.c: Likewise.
1134 * c-dump.c: Likewise.
1135 * c-format.c: Likewise.
1136 * c-gimplify.c: Likewise.
1137 * c-indentation.c: Likewise.
1138 * c-lex.c: Likewise.
1139 * c-omp.c: Likewise.
1140 * c-opts.c: Likewise.
1141 * c-pch.c: Likewise.
1142 * c-ppoutput.c: Likewise.
1143 * c-pragma.c: Likewise.
1144 * c-pretty-print.c: Likewise.
1145 * c-semantics.c: Likewise.
1146 * c-ubsan.c: Likewise.
1148 * stub-objc.c: Likewise.
1150 2015-10-28 Jason Merrill <jason@redhat.com>
1152 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1154 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1155 James Norris <jnorris@codesourcery.com>
1156 Cesar Philippidis <cesar@codesourcery.com>
1160 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1161 * c-omp.c (c_oacc_split_loop_clauses): New function.
1163 2015-10-21 Martin Sebor <msebor@redhat.com>
1166 * c.opt: End each sentence that describes an option with a period.
1168 2015-10-20 Marek Polacek <polacek@redhat.com>
1170 * array-notation-common.c (is_cilkplus_vector_p): Define.
1171 * c-common.h (is_cilkplus_vector_p): Declare.
1173 2015-10-20 Marek Polacek <polacek@redhat.com>
1175 * c.opt (std=gnu++11): Do not describe as experimental.
1176 (std=gnu++14): Likewise.
1178 2015-10-19 Jason Merrill <jason@redhat.com>
1180 * c-cppbuiltin.c (c_cpp_builtins): Define
1181 __cpp_nontype_template_args.
1183 2015-10-19 Jason Merrill <jason@redhat.com>
1185 * c-cppbuiltin.c (c_cpp_builtins): Define
1186 __cpp_enumerator_attributes, __cpp_fold_expressions,
1187 __cpp_unicode_characters.
1189 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1190 Aldy Hernandez <aldyh@redhat.com>
1192 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1193 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1194 (c_define_builtins): Likewise.
1195 * c-common.h (enum c_omp_clause_split): Add
1196 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1197 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1198 (c_finish_omp_for): Add ORIG_DECLV argument.
1199 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1200 201511 instead of 201307.
1201 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1202 OMP_CRITICAL_CLAUSES to it.
1203 (c_finish_omp_ordered): Add CLAUSES argument, set
1204 OMP_ORDERED_CLAUSES to it.
1205 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1206 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1207 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1208 constructs and new OpenMP 4.5 clauses. Clear
1209 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1211 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1212 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1213 (enum pragma_omp_clause): Add
1214 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1215 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1217 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1219 * c-lex.c (interpret_float): Use real_equal instead of
1222 2015-10-04 Jason Merrill <jason@redhat.com>
1224 Implement N4514, C++ Extensions for Transactional Memory.
1225 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1226 (c_common_attribute_table): Add transaction_safe_dynamic.
1227 transaction_safe now affects type identity.
1228 (handle_tm_attribute): Handle transaction_safe_dynamic.
1229 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1230 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1231 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1233 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1234 * c-pretty-print.c (pp_c_attributes_display): Don't print
1235 transaction_safe in C++.
1237 2015-10-02 Marek Polacek <polacek@redhat.com>
1239 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1241 2015-10-02 Marek Polacek <polacek@redhat.com>
1244 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1245 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1246 * c.opt (Wduplicated-cond): New option.
1248 2015-10-01 Joseph Myers <joseph@codesourcery.com>
1250 * c.opt (std=c11): Do not describe as experimental.
1251 (std=gnu11): Likewise.
1252 (std=iso9899:2011): Likewise.
1254 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1256 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1257 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1259 2015-09-25 Marek Polacek <polacek@redhat.com>
1261 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1262 (ubsan_instrument_shift): Likewise.
1264 2015-09-25 Marek Polacek <polacek@redhat.com>
1267 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1269 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1271 * c-indentation.c (should_warn_for_misleading_indentation):
1272 Compare next_stmt_vis_column with guard_line_first_nws instead
1273 of with guard_line_vis_column.
1275 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1279 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1280 options and options not valid for the current language.
1282 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1284 * c-indentation.c (should_warn_for_misleading_indentation):
1285 Float out and consolidate the calls to get_visual_column that
1286 are passed guard_exploc as an argument. Compare
1287 next_stmt_vis_column with guard_line_first_nws instead of with
1288 body_line_first_nws.
1290 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1292 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1293 Wnamespaces): New C++ warnings.
1295 2015-09-22 Jason Merrill <jason@redhat.com>
1297 * c-common.h (abi_compat_version_crosses): New.
1298 (warn_abi_version): Declare.
1299 * c-common.c: Define it.
1300 * c-opts.c (c_common_post_options): Handle it.
1301 flag_abi_compat_version defaults to 8.
1303 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1305 Complete the implementation of N4230, Nested namespace definition.
1306 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1307 __cpp_nested_namespace_definitions.
1309 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1311 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1313 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1315 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1317 * c-pragma.h (pragma_lex): Add optional loc argument.
1319 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1321 * c-format.c (check_format_arg): Adjust to use common block size in all
1324 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1326 * c-format.c (location_from_offset): Update for change in
1327 signature of location_get_source_line.
1328 * c-indentation.c (get_visual_column): Likewise.
1329 (line_contains_hash_if): Likewise.
1331 2015-09-14 Marek Polacek <polacek@redhat.com>
1333 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1334 setting various warnings.
1336 2015-09-14 Marek Polacek <polacek@redhat.com>
1338 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1341 2015-09-11 Mark Wielaard <mjw@redhat.com>
1344 * c.opt (Wunused-variable): Option from common.opt.
1345 (Wunused-const-variable): New option.
1347 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1350 * c.opt ([Wsubobject-linkage]): Add.
1352 2015-09-03 Martin Sebor <msebor@redhat.com>
1355 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1357 * c-common.c (reject_gcc_builtin): Define.
1359 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1362 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1364 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1365 cilk_gimplify_call_params_in_spawned_fn.
1366 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1367 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1370 2015-08-25 Marek Polacek <polacek@redhat.com>
1373 * c-common.c (handle_weak_attribute): Don't check whether the
1374 visibility can be changed here.
1376 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1378 * c-lex.c (c_lex_with_flags): Use explicit locations.
1380 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1382 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1383 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1385 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1388 * c-common.c (check_builtin_function_arguments): Add check
1389 for BUILT_IN_SIGNBIT argument.
1391 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1394 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1397 2015-08-17 Marek Polacek <polacek@redhat.com>
1399 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1400 with whitespaces before qualifier names.
1402 2015-08-12 Marek Polacek <polacek@redhat.com>
1405 * c-common.c (maybe_warn_shift_overflow): Properly handle
1406 left-shifting 1 into the sign bit.
1408 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1410 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1412 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1413 Braden Obrzut <admin@maniacsvault.net>
1414 Jason Merrill <jason@redhat.com>
1416 Add C++ Concepts TS support.
1417 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1418 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1419 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1420 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1421 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1422 * c.opt (fconcepts): New.
1424 2015-08-02 Martin Sebor <msebor@redhat.com>
1426 * c.opt (-Wframe-address): New warning option.
1428 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1430 * c-indentation.c (should_warn_for_misleading_indentation):
1433 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1435 * c-indentation.c (get_visual_column): Add parameter first_nws,
1436 use it. Update comment documenting the function.
1437 (is_first_nonwhitespace_on_line): Remove.
1438 (should_warn_for_misleading_indentation): Replace usage of
1439 of is_first_nonwhitespace_on_line with get_visual_column.
1441 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1443 * c-indentation.h (struct token_indent_info): Define.
1444 (get_token_indent_info): Define.
1445 (warn_for_misleading_information): Declare.
1446 * c-common.h (warn_for_misleading_information): Remove.
1447 * c-identation.c (warn_for_misleading_indentation):
1448 Change declaration to take three token_indent_infos. Adjust
1450 * c-identation.c (should_warn_for_misleading_indentation):
1451 Likewise. Bail out early if the body is a compound statement.
1452 (guard_tinfo_to_string): Define.
1454 2015-07-30 Jason Merrill <jason@redhat.com>
1456 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1457 '*' for reference decay.
1459 2015-07-30 Marek Polacek <polacek@redhat.com>
1461 * c-common.c (warn_tautological_cmp): Bail for float types.
1463 2015-07-27 Marek Polacek <polacek@redhat.com>
1466 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1468 2015-07-27 Marek Polacek <polacek@redhat.com>
1472 * c-common.c (find_array_ref_with_const_idx_r): New function.
1473 (warn_tautological_cmp): New function.
1474 * c-common.h (warn_tautological_cmp): Declare.
1475 * c.opt (Wtautological-compare): New option.
1477 2015-07-23 Marek Polacek <polacek@redhat.com>
1479 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1480 (ubsan_instrument_shift): Likewise.
1482 2015-07-23 Marek Polacek <polacek@redhat.com>
1485 * c-ubsan.c: Include gimplify.h.
1486 (ubsan_instrument_division): Unshare OP0 and OP1.
1487 (ubsan_instrument_shift): Likewise.
1489 2015-07-20 Marek Polacek <polacek@redhat.com>
1490 Richard Sandiford <richard.sandiford@arm.com>
1493 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1494 Use EXPR_LOC_OR_LOC.
1495 (maybe_warn_shift_overflow): New function.
1496 * c-common.h (maybe_warn_shift_overflow): Declare.
1497 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1498 * c.opt (Wshift-overflow): New option.
1500 2015-07-16 Martin Liska <mliska@suse.cz>
1502 * c-format.c (static void check_format_info_main): Use
1503 object_allocator instead of pool_allocator.
1504 (check_format_arg): Likewise.
1505 (check_format_info_main): Likewise.
1507 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1509 * c-opts.c: Remove multiline #include comment.
1511 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1513 * c-common.c: Fix double word typos.
1515 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1517 * c-ada-spec.h (cpp_operation): Revert latest change.
1518 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1519 constructors and destructors.
1521 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
1523 * c-common.h: Adjust includes for flags.h changes.
1524 * stub-objc.c: Likewise.
1526 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1528 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1529 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1531 2015-07-08 Jakub Jelinek <jakub@redhat.com>
1533 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1534 are to be removed, return NULL rather than original clauses list.
1536 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1538 * array-notation-common.c: Adjust includes.
1539 * c-ada-spec.c: Likewise.
1540 * c-cilkplus.c: Likewise.
1541 * c-common.h: Likewise.
1542 * c-cppbuiltin.c: Likewise.
1543 * c-dump.c: Likewise.
1544 * c-format.c: Likewise.
1545 * c-gimplify.c: Likewise.
1546 * c-indentation.c: Likewise.
1547 * c-lex.c: Likewise.
1548 * c-omp.c: Likewise.
1549 * c-opts.c: Likewise.
1550 * c-pch.c: Likewise.
1551 * c-ppoutput.c: Likewise.
1552 * c-pragma.c: Likewise.
1553 * c-pretty-print.c: Likewise.
1554 * c-semantics.c: Likewise.
1555 * c-ubsan.c: Likewise.
1557 * stub-objc.c: Likewise.
1559 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1561 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1562 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1564 2015-07-01 Jason Merrill <jason@redhat.com>
1566 * c-common.h (D_CXX11): Rename from D_CXX0X.
1567 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1568 * c-common.c: Adjust.
1570 * c-opts.c (c_common_post_options): Default to C++14.
1572 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1574 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1576 Implement N4197 - Adding u8 character literals
1577 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
1579 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
1580 CPP_UTF8CHAR_USERDEF tokens.
1581 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
1582 and CPP_UTF8CHAR tokens.
1583 (lex_charconst): Treat CPP_UTF8CHAR token.
1585 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1588 * c-common.c (do_warn_unused_parameter): Move here.
1589 * c-common.h (do_warn_unused_parameter): Declare.
1591 2015-06-29 Marek Polacek <polacek@redhat.com>
1594 * c-common.c (check_case_bounds): Add bool * parameter. Set
1596 (c_add_case_label): Add bool * parameter. Pass it down to
1598 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1600 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1603 2015-06-27 Marek Polacek <polacek@redhat.com>
1605 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1606 or VECTOR_INTEGER_TYPE_P throughout.
1607 * c-gimplify.c: Likewise.
1609 2015-06-26 Marek Polacek <polacek@redhat.com>
1611 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1612 * c-common.c (c_fully_fold_internal): Likewise.
1613 (c_alignof_expr): Likewise.
1614 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1615 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
1616 * cilk.c (create_parm_list): Likewise.
1618 2015-06-26 Marek Polacek <polacek@redhat.com>
1620 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1622 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1624 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1625 * c-gimplify.c: Likewise.
1626 * c-pragma.c: Likewise.
1627 * c-ubsan.c: Likewise.
1630 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1632 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1635 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1637 * cilk.c: Move calls.h after tm.h in the include chain.
1639 2015-06-25 Marek Polacek <polacek@redhat.com>
1641 * array-notation-common.c: Use VAR_P throughout.
1642 * c-ada-spec.c: Likewise.
1643 * c-common.c: Likewise.
1644 * c-format.c: Likewise.
1645 * c-gimplify.c: Likewise.
1646 * c-omp.c: Likewise.
1647 * c-pragma.c: Likewise.
1648 * c-pretty-print.c: Likewise.
1651 2015-06-25 Marek Polacek <polacek@redhat.com>
1653 * cilk.c (extract_free_variables): Use is_global_var.
1655 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1657 * c-common.c: Don't include target-def.h.
1659 2015-06-23 Marek Polacek <polacek@redhat.com>
1661 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1662 when comparing INTEGER_CSTs.
1664 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1666 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1667 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1668 (dump_ada_template): Skip partially specialized types.
1670 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1672 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1675 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1677 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1678 * c-ada-spec.c: Likewise.
1679 * c-cilkplus.c: Likewise.
1680 * c-common.c: Likewise.
1681 * c-common.h: Likewise.
1682 * c-cppbuiltin.c: Likewise.
1683 * c-dump.c: Likewise.
1684 * c-format.c: Likewise.
1685 * c-gimplify.c: Likewise.
1686 * c-indentation.c: Likewise.
1687 * c-lex.c: Likewise.
1688 * c-omp.c: Likewise.
1689 * c-opts.c: Likewise.
1690 * c-pch.c: Likewise.
1691 * c-ppoutput.c: Likewise.
1692 * c-pragma.c: Likewise.
1693 * c-pretty-print.c: Likewise.
1694 * c-semantics.c: Likewise.
1695 * c-ubsan.c: Likewise.
1697 * stub-objc.c: Likewise.
1699 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1702 * c-common.c (c_common_truthvalue_conversion): Warn when
1703 converting an address of a reference to a truth value.
1705 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1707 * array-notation-common.c : Adjust include files.
1708 * c-ada-spec.c : Likewise.
1709 * c-cilkplus.c : Likewise.
1710 * c-common.c : Likewise.
1711 * c-common.h : Likewise.
1712 * c-cppbuiltin.c : Likewise.
1713 * c-dump.c : Likewise.
1714 * c-format.c : Likewise.
1715 * c-gimplify.c : Likewise.
1716 * c-indentation.c : Likewise.
1717 * c-lex.c : Likewise.
1718 * c-omp.c : Likewise.
1719 * c-opts.c : Likewise.
1720 * c-pch.c : Likewise.
1721 * c-ppoutput.c : Likewise.
1722 * c-pragma.c : Likewise.
1723 * c-pretty-print.c : Likewise.
1724 * c-semantics.c : Likewise.
1725 * c-ubsan.c : Likewise.
1726 * cilk.c : Likewise.
1727 * stub-objc.c : Likewise.
1729 2015-06-08 Marek Polacek <polacek@redhat.com>
1732 * c-format.c (location_from_offset): Return LOC if LINE is null.
1734 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1736 * c-common.h (c_parse_final_cleanups): New prototype.
1737 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1739 2015-06-04 Sriraman Tallam <tmsriram@google.com>
1741 * c-common.c (noplt): New attribute.
1742 (handle_noplt_attribute): New handler.
1744 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1746 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1747 * c-ada-spec.c: Likewise.
1748 * c-cilkplus.c: Likewise.
1749 * c-common.c: Likewise.
1750 * c-common.h: Likewise.
1751 * c-cppbuiltin.c: Likewise.
1752 * c-dump.c: Likewise.
1753 * c-format.c: Likewise.
1754 * c-gimplify.c: Likewise.
1755 * c-indentation.c: Likewise.
1756 * c-lex.c: Likewise.
1757 * c-omp.c: Likewise.
1758 * c-opts.c: Likewise.
1759 * c-pch.c: Likewise.
1760 * c-ppoutput.c: Likewise.
1761 * c-pragma.c: Likewise.
1762 * c-pretty-print.c: Likewise.
1763 * c-semantics.c: Likewise.
1764 * c-ubsan.c: Likewise.
1766 * stub-objc.c: Likewise.
1768 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1771 * c-indentation.c (should_warn_for_misleading_indentation): Use
1772 expand_location rather than expand_location_to_spelling_point.
1773 Don't warn if the guarding statement is more indented than the
1776 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1778 * c-indentation.c (warn_for_misleading_indentation): Bail out
1779 immediately if -Wmisleading-indentation isn't enabled.
1781 2015-06-01 Martin Liska <mliska@suse.cz>
1783 * c-format.c (check_format_arg):Use new type-based pool allocator.
1784 (check_format_info_main) Likewise.
1786 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1788 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1789 (has_nontrivial_methods): Likewise.
1791 2015-05-25 Marek Polacek <polacek@redhat.com>
1793 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1795 2015-05-22 Marek Polacek <polacek@redhat.com>
1798 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1800 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1802 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1803 STACK_GROWS_DOWNWARD.
1805 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1807 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1808 STACK_GROWS_DOWNWARD rather than if it is defined.
1810 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1813 * c-format.c (location_column_from_byte_offset): New.
1814 (location_from_offset): New.
1815 (struct format_wanted_type): Add offset_loc field.
1816 (check_format_info): Move handling of location for extra arguments
1817 closer to the point of warning.
1818 (check_format_info_main): Pass the result of location_from_offset
1820 (format_type_warning): Pass the result of location_from_offset
1823 2015-05-20 Marek Polacek <polacek@redhat.com>
1825 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1827 2015-05-20 Marek Polacek <polacek@redhat.com>
1829 * c-ada-spec.c (dump_sloc): Use DECL_P.
1831 2015-05-20 Marek Polacek <polacek@redhat.com>
1833 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1834 * c-common.c: Likewise.
1836 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1838 * c-common.h (fe_file_change): Strengthen param from
1839 const line_map * to const line_map_ordinary *.
1840 (pp_file_change): Likewise.
1841 * c-lex.c (fe_file_change): Likewise.
1842 (cb_define): Use linemap_check_ordinary when invoking
1844 (cb_undef): Likewise.
1845 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1846 invoking cb_file_change.
1847 (c_finish_options): Likewise.
1848 (push_command_line_include): Likewise.
1849 (cb_file_change): Strengthen param "new_map" from
1850 const line_map * to const line_map_ordinary *.
1851 * c-ppoutput.c (cb_define): Likewise for local "map".
1852 (pp_file_change): Likewise for param "map" and local "from".
1854 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1856 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1858 2015-05-18 Tom de Vries <tom@codesourcery.com>
1860 * c-common.c (build_va_arg_1): New function.
1861 (build_va_arg): Add address operator to va_list operand if necessary.
1863 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1866 * c-common.c (int_safely_convertible_to_real_p): Define.
1867 (unsafe_conversion_p): Check conversions involving complex types.
1868 (conversion_warning): Add new warning message for conversions which
1869 discard imaginary component.
1870 * c-common.h: (enum conversion_safety): Add new enumerator for such
1873 2015-05-14 Marek Polacek <polacek@redhat.com>
1877 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1878 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1879 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1880 use it. If FOR_INT_CONST, require that all evaluated operands be
1883 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1885 * c-common.h (warn_for_misleading_indentation): New prototype.
1886 * c-indentation.c: New file.
1887 * c.opt (Wmisleading-indentation): New option.
1889 2015-05-12 Tom de Vries <tom@codesourcery.com>
1891 PR tree-optimization/66010
1892 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1894 2015-05-09 Jason Merrill <jason@redhat.com>
1896 * c-opts.c (c_common_post_options): Also clear
1897 cpp_opts->cpp_warn_cxx11_compat.
1899 * c-common.h (enum cxx_dialect): Add cxx_unset.
1900 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1901 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1903 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1904 (std=gnu++0x): Mark as Undocumented.
1905 (std=gnu++1y): Add deprecated message.
1907 2015-05-08 Jason Merrill <jason@redhat.com>
1909 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1912 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1914 2015-05-08 Marek Polacek <polacek@redhat.com>
1917 * c.opt (Woverride-init-side-effects): New option.
1919 2015-05-07 Marek Polacek <polacek@redhat.com>
1922 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1924 * c.opt (Wshift-negative-value): New option.
1925 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1926 when -Wextra and C99/C++11 mode.
1928 2015-05-07 Marek Polacek <polacek@redhat.com>
1929 Martin Uecker <uecker@eecs.berkeley.edu>
1931 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1932 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1934 2015-05-05 Jason Merrill <jason@redhat.com>
1936 * c.opt (Wterminate): New.
1938 2015-04-30 Marek Polacek <polacek@redhat.com>
1940 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1941 require that the non-constant be of a boolean type.
1943 2015-04-29 Josh Triplett <josh@joshtriplett.org>
1945 * c-common.c (handle_section_attribute): Refactor to reduce
1946 nesting and distinguish between error cases.
1948 2015-04-29 Marek Polacek <polacek@redhat.com>
1951 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1954 2015-04-29 Jakub Jelinek <jakub@redhat.com>
1956 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1957 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1958 HOST_BITS_PER_WIDE_INT.
1960 2015-04-28 Tom de Vries <tom@codesourcery.com>
1962 PR tree-optimization/65887
1963 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1965 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
1966 Pierre-Marie de Rodat <derodat@adacore.com>
1968 * c-ada-spec.c (in_function): Delete.
1969 (dump_generic_ada_node): Do not change in_function and remove the
1970 redundant code dealing with it.
1971 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1972 (print_ada_methods): Output the static member functions in a nested
1973 package after the regular methods as well as associated renamings.
1975 2015-04-24 Marek Polacek <polacek@redhat.com>
1978 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1979 and OPT_Wshift_count_overflow.
1982 * c-common.c (warn_logical_operator): Warn if the operands have the
1985 2015-04-24 Marek Polacek <polacek@redhat.com>
1988 * c-common.c (warn_logical_operator): Bail if either operand comes
1989 from a macro expansion.
1991 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1994 * c-common.c (c_default_pointer_mode): Add definition.
1995 * c-common.h (c_default_pointer_mode): Add declaration.
1997 2015-03-11 Jakub Jelinek <jakub@redhat.com>
1999 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2000 on record_builtin_type argument.
2002 2015-03-10 Jakub Jelinek <jakub@redhat.com>
2005 * c-common.c (warn_logical_not_parentheses): Don't warn for
2008 2015-03-07 Marek Polacek <polacek@redhat.com>
2011 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2012 before trying to figure out whether we have a flexible array member.
2014 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2015 Jonathan Wakely <jwakely.gcc@gmail.com>
2017 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2019 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2022 * c-ada-spec.c (print_destructor): Remove obsolete code.
2024 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2026 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2027 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2028 DECL_TEMPLATE_RESULT emulations.
2029 (dump_ada_template)): Add guard for TYPE_METHODS.
2031 2015-02-27 Marek Polacek <polacek@redhat.com>
2034 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2036 2015-02-27 Kai Tietz <ktietz@redhat.com>
2039 * c-pragma.c (handle_pragma_weak): Do not try to create
2040 weak/alias of declarations not being function, or variable
2043 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2046 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2048 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2050 2015-02-16 Marek Polacek <polacek@redhat.com>
2053 * c-format.c (check_format_types): Handle null param.
2055 2015-02-13 Marek Polacek <polacek@redhat.com>
2058 * c-format.c (check_format_types): Don't warn about different
2059 signedness if the original value is in the range of WANTED_TYPE.
2061 2015-02-12 Jason Merrill <jason@redhat.com>
2064 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2065 to the current highest version.
2066 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2068 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2072 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2073 instead of RDIV_EXPR. Use build_binary_op instead of
2076 2015-01-30 Joseph Myers <joseph@codesourcery.com>
2078 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2079 to pass input_location as first argument.
2081 2015-01-23 Tom de Vries <tom@codesourcery.com>
2084 * c.opt (fopenacc): Mark as LTO option.
2086 2015-01-23 Tom de Vries <tom@codesourcery.com>
2089 * c.opt (fopenmp): Mark as LTO option.
2091 2015-01-21 Jakub Jelinek <jakub@redhat.com>
2094 * cilk.c (fill_decls_vec): Only put decls into vector v.
2095 (compare_decls): Fix up formatting.
2097 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2100 * cilk.c: Include vec.h.
2101 (struct cilk_decls): New structure.
2102 (wrapper_parm_cb): Split this function to...
2103 (fill_decls_vec): ...this...
2104 (create_parm_list): ...and this.
2105 (compare_decls): New function.
2106 (for_local_cb): Remove.
2107 (wrapper_local_cb): Ditto.
2108 (build_wrapper_type): For now first traverse and fill vector of
2109 declarations then sort it and then deal with sorted vector.
2110 (cilk_outline): Ditto.
2111 (declare_one_free_variable): Ditto.
2113 2015-01-21 Jason Merrill <jason@redhat.com>
2116 * c-format.c (check_format_arg): Call decl_constant_value.
2118 2015-01-19 Martin Liska <mliska@suse.cz>
2120 * c-common.c (handle_noicf_attribute): New function.
2122 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2123 Bernd Schmidt <bernds@codesourcery.com>
2124 James Norris <jnorris@codesourcery.com>
2125 Cesar Philippidis <cesar@codesourcery.com>
2126 Ilmir Usmanov <i.usmanov@samsung.com>
2127 Jakub Jelinek <jakub@redhat.com>
2129 * c.opt (fopenacc): New option.
2130 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2131 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2133 * c-common.h (c_finish_oacc_wait): New prototype.
2134 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2135 (c_finish_oacc_wait): New function.
2136 * c-pragma.c (oacc_pragmas): New variable.
2137 (c_pp_lookup_pragma, init_pragma): Handle it.
2138 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2139 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2140 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2141 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2142 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2143 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2144 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2145 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2146 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2147 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2148 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2149 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2150 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2151 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2152 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2153 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2154 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2155 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2156 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2157 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2158 PRAGMA_OACC_CLAUSE_WORKER.
2160 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
2162 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2163 for the new option fstack-protector_explicit.
2164 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2165 (handle_stack_protect_attribute): New function.
2167 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
2169 * c.opt: New option -Warray-bounds=.
2171 2015-01-09 Michael Collison <michael.collison@linaro.org>
2173 * array-notation-common.c: Include hash-set.h, machmode.h,
2174 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2175 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2176 * c-ada-spec.c: Ditto.
2177 * c-cilkplus.c: Ditto.
2178 * c-common.c: Include input.h due to flattening of tree.h.
2179 Define macro GCC_C_COMMON_C.
2180 * c-common.h: Flatten tree.h header files into c-common.h.
2181 Remove include of tree-core.h.
2182 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2183 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2184 fold-const.h, wide-int.h, and inchash.h due to
2185 flattening of tree.h.
2187 * c-format.c: Flatten tree.h header files into c-common.h.
2188 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2189 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2190 fold-const.h, wide-int.h, and inchash.h due to
2191 flattening of tree.h.
2192 * c-dump.c: Include hash-set.h, machmode.h,
2193 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2194 fold-const.h, wide-int.h, and inchash.h due to
2195 flattening of tree.h.
2196 * c-format.c: Include hash-set.h, machmode.h,
2197 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2198 fold-const.h, wide-int.h, inchash.h and real.h due to
2199 flattening of tree.h.
2200 * c-gimplify.c: Include hash-set.h, machmode.h,
2201 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2202 fold-const.h, wide-int.h, and inchash.h due to
2203 flattening of tree.h.
2209 * c-ppoutput.c: Ditto.
2210 * c-pragma.c: Ditto.
2211 * c-pretty-print.c: Ditto.
2212 * c-semantics.c: Ditto.
2214 * stub-objc.c: Ditto.
2216 2015-01-08 Jason Merrill <jason@redhat.com>
2218 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2219 do_ubsan_in_current_function.
2220 (ubsan_maybe_instrument_reference_or_call): Likewise.
2221 * c-ubsan.h: Declare it.
2223 2015-01-08 Mike Stump <mikestump@comcast.net>
2225 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2227 2015-01-07 Marek Polacek <polacek@redhat.com>
2230 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2231 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2233 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2236 * c.opt (Wsuggest-override): New option.
2238 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2240 Update copyright years.
2242 2015-01-05 Marek Polacek <polacek@redhat.com>
2245 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2247 * c-common.h (warn_array_subscript_with_type_char): Update
2250 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2252 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2253 Control macro with flag_sized_deallocation.
2255 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
2257 * c.opt (Wdiscarded-array-qualifiers): New option.
2259 2014-12-19 Jakub Jelinek <jakub@redhat.com>
2261 PR preprocessor/63831
2262 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2263 and __has_cpp_attribute here.
2264 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2265 c_common_has_attribute.
2266 * c-common.h (c_common_has_attribute): New prototype.
2267 * c-lex.c (init_c_lex): Set cb->has_attribute to
2268 c_common_has_attribute instead of cb_has_attribute.
2269 (get_token_no_padding): New function.
2270 (cb_has_attribute): Renamed to ...
2271 (c_common_has_attribute): ... this. No longer static. Use
2272 get_token_no_padding, require ()s, don't build TREE_LIST
2273 unnecessarily, fix up formatting, adjust diagnostics, call
2276 2014-12-15 Jason Merrill <jason@redhat.com>
2278 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2279 (-Wsized-deallocation): New.
2280 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2281 to on in C++14 and up.
2283 2014-12-11 Jason Merrill <jason@redhat.com>
2285 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2287 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2288 we aren't complaining about VLAs.
2290 2014-12-06 Marek Polacek <polacek@redhat.com>
2292 PR tree-optimization/64183
2293 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2294 shift-expression if it is integer_type_node. Use types_compatible_p.
2296 2014-11-29 Jakub Jelinek <jakub@redhat.com>
2298 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2299 last argument from create_tmp_var_raw and create_tmp_var calls.
2300 * cilk.c (gimplify_cilk_spawn): Likewise.
2301 * c-omp.c (c_finish_omp_atomic): Likewise.
2303 2014-11-28 Marek Polacek <polacek@redhat.com>
2305 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2306 instead of unsigned_type_node.
2308 2014-11-28 Marek Polacek <polacek@redhat.com>
2311 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2313 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2314 expression to unsigned_type_node.
2316 2014-11-20 Mark Wielaard <mjw@redhat.com>
2319 * c-opts.c (set_std_c89): Set lang_hooks.name.
2320 (set_std_c99): Likewise.
2321 (set_std_c11): Likewise.
2322 (set_std_cxx98): Likewise.
2323 (set_std_cxx11): Likewise.
2324 (set_std_cxx14): Likewise.
2325 (set_std_cxx1z): Likewise.
2327 2014-11-21 Jakub Jelinek <jakub@redhat.com>
2330 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2331 return type to bool.
2332 * c-common.c: Include gimple-expr.h.
2333 (convert_vector_to_pointer_for_subscript): Change return type to
2334 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2335 and copy it into a TARGET_EXPR and use that instead of *vecp
2338 2014-11-19 David Malcolm <dmalcolm@redhat.com>
2340 Merger of git branch "gimple-classes-v2-option-3".
2341 * ChangeLog.gimple-classes: New.
2342 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2343 from being just a vec<gimple> to a vec<gbind *>.
2345 2014-11-18 Jakub Jelinek <jakub@redhat.com>
2348 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2349 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2350 get_pointer_alignment for non-pointers. Use ptype, or if it is
2351 reference type, corresponding pointer type, as type of kind
2353 (ubsan_maybe_instrument_reference,
2354 ubsan_maybe_instrument_member_call): Adjust callers.
2356 2014-11-15 Marek Polacek <polacek@redhat.com>
2359 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2361 (extract_array_notation_exprs): Return for NULL node.
2363 2014-11-12 Joseph Myers <joseph@codesourcery.com>
2365 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2366 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2368 2014-11-12 Jakub Jelinek <jakub@redhat.com>
2371 * c-common.c (check_builtin_function_arguments): Handle
2372 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2374 2014-11-10 Andi Kleen <ak@linux.intel.com>
2377 * c-common.h (check_no_cilk): Declare.
2378 * cilk.c (get_error_location): New function.
2379 (check_no_cilk): Dito.
2381 2014-11-10 Andi Kleen <ak@linux.intel.com>
2383 * cilk.c (recognize_spawn): Use expression location
2386 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2388 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2390 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2392 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2393 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2394 (__cpp_range_based_for, __cpp_initializer_lists,
2395 __cpp_delegating_constructors, __cpp_nsdmi,
2396 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2397 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2398 __has_cpp_attribute.
2399 * c-lex.c (cb_has_attribute): New callback CPP function;
2400 (init_c_lex): Set has_attribute callback.
2402 2014-11-04 Richard Biener <rguenther@suse.de>
2404 * c-common.c (shorten_compare): Do not shorten mixed
2405 DFP and non-DFP compares.
2407 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2409 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2410 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2411 Commentary and rearrangement of tests.
2412 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2413 Commentary and rearrangement of tests.
2414 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2415 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2417 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2419 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2420 enum from machine_mode.
2422 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
2424 * c-common.c: Adjust include files.
2425 * c-gimplify.c: Ditto.
2427 * c-pragma.c: Ditto.
2430 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
2432 * c-gimplify.c: Adjust include files.
2434 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2437 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2438 c_common_initialize_diagnostics.
2439 * c-common.h: Likewise.
2441 2014-10-24 Marek Polacek <polacek@redhat.com>
2444 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2445 print "struct"/"union"/"enum" for typedefed names.
2447 2014-10-23 Marek Polacek <polacek@redhat.com>
2449 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2452 2014-10-22 Jakub Jelinek <jakub@redhat.com>
2453 Yury Gribov <y.gribov@samsung.com>
2455 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2456 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2457 instead of flag_sanitize_recover as bool flag.
2459 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2461 * cilk.c: Revert previous change.
2463 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2466 * cilk.c: Include vec.h.
2467 (struct cilk_decls): New structure.
2468 (wrapper_parm_cb): Split this function to...
2469 (fill_decls_vec): ...this...
2470 (create_parm_list): ...and this.
2471 (compare_decls): New function.
2472 (for_local_cb): Remove.
2473 (wrapper_local_cb): Ditto.
2474 (build_wrapper_type): For now first traverse and fill vector of
2475 declarations then sort it and then deal with sorted vector.
2476 (cilk_outline): Ditto.
2477 (declare_one_free_variable): Ditto.
2479 2014-10-17 Marek Polacek <polacek@redhat.com>
2481 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2482 * c.opt (Wimplicit-int): Initialize to -1.
2484 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
2486 * c-pragma.c: Adjust include files.
2487 * c-semantics.c: Likewise.
2489 2014-10-16 DJ Delorie <dj@redhat.com>
2491 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2494 2014-10-14 Jason Merrill <jason@redhat.com>
2497 * c-common.h (CPP_PREPARSED_EXPR): New.
2498 (N_CP_TTYPES): Adjust.
2500 2014-10-15 Marek Polacek <polacek@redhat.com>
2502 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2504 2014-10-14 DJ Delorie <dj@redhat.com>
2506 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2507 types, not just __int128.
2508 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2509 types, not just __int128.
2510 (cpp_atomic_builtins): Round pointer sizes up.
2511 (type_suffix): Use type precision, not specific types.
2512 * c-common.c (c_common_reswords): Remove __int128 special case.
2513 (c_common_type_for_size): Check for all __intN types, not just
2515 (c_common_type_for_mode): Likewise.
2516 (c_common_signed_or_unsigned_type): Likewise.
2517 (c_build_bitfield_integer_type): Likewise.
2518 (c_common_nodes_and_builtins): Likewise.
2519 (keyword_begins_type_specifier): Likewise.
2520 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2523 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2525 * c-common.c: Use hash_table instead of hashtab.
2527 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2529 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2532 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2537 * c-common.c (warn_logical_operator): Punt for vectors.
2539 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2541 Implement SD-6: SG10 Feature Test Recommendations
2542 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2543 macros and the __has_header macro.
2545 2014-09-30 Jason Merrill <jason@redhat.com>
2547 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2548 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2549 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2551 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2552 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2554 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2555 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2557 2014-09-24 Marek Polacek <polacek@redhat.com>
2561 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2563 2014-09-23 Andi Kleen <ak@linux.intel.com>
2565 * c-common.c (handle_no_reorder_attribute): New function.
2566 (c_common_attribute_table): Add no_reorder attribute.
2568 2014-09-22 Joseph Myers <joseph@codesourcery.com>
2570 * c-cppbuiltin.c (c_cpp_builtins): Define
2571 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2574 2014-09-18 Joseph Myers <joseph@codesourcery.com>
2576 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2577 for supported floating-point modes.
2579 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2581 * c.opt (Wpsabi): Use LangEnabledBy.
2582 * c-opts.c (c_common_handle_option): Do not handle here.
2584 2014-09-12 Joseph Myers <joseph@codesourcery.com>
2586 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2587 macros for floating-point modes.
2589 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
2592 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2593 __*_DENORM_MIN__ without denormals.
2595 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2597 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2598 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2599 ubsan_create_data callers.
2600 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2601 index is constant or BIT_AND_EXPR with constant mask and is
2602 small enough for the bound.
2603 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2604 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2606 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2608 * c.opt: Add CppReason to various flags.
2609 (Wdate-time): Re-sort.
2610 * c-common.c: Include c-common.h earlier.
2611 (struct reason_option_codes_t): Delete.
2612 (c_option_controlling_cpp_error): Prefix global type and struct
2615 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2617 * c.opt (Wnormalized): New.
2618 (Wnormalized=): Use Enum and Reject Negative.
2619 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2621 2014-09-08 Joseph Myers <joseph@codesourcery.com>
2623 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2624 digits of floating-point modes if -fbuilding-libgcc.
2626 2014-09-05 Joseph Myers <joseph@codesourcery.com>
2628 * c-cppbuiltin.c (c_cpp_builtins): Also define
2629 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2630 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2631 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2632 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2633 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2634 __LIBGCC_STACK_GROWS_DOWNWARD__,
2635 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2636 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2637 __LIBGCC_DWARF_FRAME_REGISTERS__,
2638 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2639 __LIBGCC_STACK_POINTER_REGNUM__ and
2640 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2641 (builtin_define_with_value): Handle backslash-escaping in string
2644 2014-09-05 Richard Biener <rguenther@suse.de>
2647 * c-format.c (check_format_arg): Properly handle
2648 effectively signed POINTER_PLUS_EXPR offset.
2650 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2652 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2653 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2654 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2656 * c-opts.c (c_common_handle_option): Do not handle here.
2657 (sanitize_cpp_opts): Likewise.
2658 * c-common.c (struct reason_option_codes_t): Handle
2659 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2661 2014-09-03 Marek Polacek <polacek@redhat.com>
2663 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2665 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2666 Balaji V. Iyer <balaji.v.iyer@intel.com>
2667 Igor Zamyatin <igor.zamyatin@intel.com>
2669 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2670 * c-common.c (c_common_reswords): Added _Cilk_for.
2671 * c-common.h (enum rid): Added RID_CILK_FOR.
2672 (cilk_for_number_of_iterations): Add declaration.
2673 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2675 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2676 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2678 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2680 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2681 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2682 Wundef): Use CPP, Var and Init.
2683 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2685 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2687 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2688 * c-opts.c (c_common_handle_option): Do not handle here.
2690 2014-08-25 Jason Merrill <jason@redhat.com>
2692 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2693 -std=c++14 and -std=gnu++14, rather than the reverse.
2694 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2695 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2696 * c-common.h (cxx_dialect): Remove cxx1y.
2698 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2700 * c-common.h (enum cxx_dialect): Add cxx14.
2701 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2702 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2703 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2705 2014-08-22 Jason Merrill <jason@redhat.com>
2707 * c.opt (std=gnu++17): Fix alias.
2709 2014-08-22 Marek Polacek <polacek@redhat.com>
2712 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2713 check for vector types. Drop LHS argument.
2714 * c-common.h (warn_logical_not_parentheses): Adjust.
2716 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2718 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2719 (Wmultichar): Likewise.
2720 (Wdate-time): Use C-family languages instead of Common. Use CPP
2722 * c-opts.c (c_common_handle_option): Do not handle the above
2724 (sanitize_cpp_opts): Likewise.
2726 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2729 * c-opts.c: Include tree-diagnostics.h.
2730 (c_diagnostic_finalizer): New.
2731 (c_common_initialize_diagnostics): Use it.
2733 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2735 PR preprocessor/51303
2736 * c-common.c (struct reason_option_codes_t option_codes):
2737 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2739 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2743 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2744 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2745 (c_common_post_options): Call init_global_opts_from_cpp.
2746 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2748 2014-08-19 Marek Polacek <polacek@redhat.com>
2751 * c-common.c (maybe_warn_bool_compare): New function.
2752 * c-common.h (maybe_warn_bool_compare): Declare.
2753 * c.opt (Wbool-compare): New option.
2755 2014-08-19 Marek Polacek <polacek@redhat.com>
2757 * c.opt (Wc99-c11-compat): New option.
2759 2014-08-19 Marek Polacek <polacek@redhat.com>
2761 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2762 to warn_c90_c99_compat.
2763 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2766 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2767 Steven Bosscher <steven@gcc.gnu.org>
2770 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2771 format_check_results.
2772 (check_function_format): Use true and add comment for boolean
2774 (finish_dollar_format_checking): Use explicit location when warning.
2775 (check_format_info): Likewise.
2776 (check_format_arg): Set extra_arg_loc and format_string_loc.
2777 (check_format_info_main): Use explicit location when warning.
2778 (check_format_types): Pass explicit location.
2779 (format_type_warning): Likewise.
2781 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2784 * c-format.c: Handle Fortran flags.
2786 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2789 * array-notation-common.c (find_rank): Added handling for other
2790 types of references.
2792 2014-08-10 Marek Polacek <polacek@redhat.com>
2795 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2796 * c.opt (Wc90-c99-compat): Add option.
2798 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2800 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2802 2014-08-03 Marek Polacek <polacek@redhat.com>
2804 * c-common.c (check_case_value): Add location_t parameter. Use it.
2805 (c_add_case_label): Pass loc to check_case_value.
2807 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2809 * cilk.c: Use hash_map instead of pointer_map.
2811 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2813 * c-gimplify.c: Use hash_set instead of pointer_set.
2815 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2818 * array-notation-common.c (extract_array_notation_exprs): Handling
2821 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2823 * c-common.h (min_align_of_type): Removed prototype.
2824 * c-common.c (min_align_of_type): Removed.
2825 * c-ubsan.h (ubsan_maybe_instrument_reference,
2826 ubsan_maybe_instrument_member_call): New prototypes.
2827 * c-ubsan.c: Include stor-layout.h and builtins.h.
2828 (ubsan_maybe_instrument_reference_or_call,
2829 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2832 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
2835 * c.opt (-Wreturn-local-addr): Move to common.opt.
2837 2014-07-30 Jason Merrill <jason@redhat.com>
2842 * c.opt (-fuse-all-virtuals): New.
2844 2014-07-30 Tom Tromey <tromey@redhat.com>
2847 * c.opt (Wdesignated-init): New option.
2848 * c-common.c (c_common_attribute_table): Add "designated_init".
2849 (handle_designated_init): New function.
2851 2014-07-24 Marek Polacek <polacek@redhat.com>
2854 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2856 2014-07-16 Dodji Seketeli <dodji@redhat.com>
2858 PR preprocessor/60723 - missing system-ness marks for macro tokens
2859 * c-ppoutput.c (struct print::prev_was_system_token): New data
2861 (init_pp_output): Initialize it.
2862 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2863 (do_line_change): Return a flag saying if a line marker was
2865 (scan_translation_unit): Detect if the system-ness of the token we
2866 are about to emit is different from the one of the previously
2867 emitted token. If so, emit a line marker. Avoid emitting useless
2868 adjacent line markers. Avoid emitting line markers for tokens
2869 originating from the expansion of built-in macros.
2870 (scan_translation_unit_directives_only): Adjust.
2872 2014-07-15 Marek Polacek <polacek@redhat.com>
2874 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2875 TYPE_MAX_VALUE is NULL.
2877 2014-07-14 Jakub Jelinek <jakub@redhat.com>
2880 * c.opt (Wmemset-transposed-args): New warning.
2882 2014-07-10 Jason Merrill <jason@redhat.com>
2886 * c.opt (-fuse-all-virtuals): New.
2888 2014-07-09 Richard Biener <rguenther@suse.de>
2891 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2892 using unsigned arithmetic if overflow does not wrap instead of
2893 if overflow is undefined.
2895 2014-07-06 Marek Polacek <polacek@redhat.com>
2898 * c.opt (Wsizeof-array-argument): New option.
2900 2014-07-03 Jakub Jelinek <jakub@redhat.com>
2902 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
2903 comments->count <= 1, as comments->entries might be NULL.
2905 2014-07-01 Marek Polacek <polacek@redhat.com>
2907 * c.opt (Wint-conversion): New option.
2909 2014-07-01 Marek Polacek <polacek@redhat.com>
2912 * c.opt (Wincompatible-pointer-types): New option.
2914 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2917 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2918 Do not discard TYPE_QUALS of type.
2920 2014-06-26 Jason Merrill <jason@redhat.com>
2922 * c-common.h (enum cxx_dialect): Add cxx1z.
2923 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2924 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2926 2014-06-26 Teresa Johnson <tejohnson@google.com>
2928 * c-common.h (get_dump_info): Declare.
2929 * c-gimplify.c (c_genericize): Use saved dump files.
2930 * c-opts.c (c_common_parse_file): Begin and end dumps
2931 once around parsing invocation.
2932 (get_dump_info): New function.
2934 2014-06-23 Marek Polacek <polacek@redhat.com>
2935 Andrew MacLeod <amacleod@redhat.com>
2938 * c-common.c (get_atomic_generic_size): Don't segfault if the
2939 type doesn't have a size.
2941 2014-06-20 Marek Polacek <polacek@redhat.com>
2943 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2944 (ubsan_walk_array_refs_r): New function.
2945 (c_genericize): Instrument array bounds.
2946 * c-ubsan.c: Include "internal-fn.h".
2947 (ubsan_instrument_division): Mark instrumented arrays as having
2948 side effects. Adjust ubsan_type_descriptor call.
2949 (ubsan_instrument_shift): Likewise.
2950 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2951 (ubsan_instrument_bounds): New function.
2952 (ubsan_array_ref_instrumented_p): New function.
2953 (ubsan_maybe_instrument_array_ref): New function.
2954 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2955 (ubsan_array_ref_instrumented_p): Declare.
2956 (ubsan_maybe_instrument_array_ref): Declare.
2958 2014-06-20 Hale Wang <hale.wang@arm.com>
2961 * c.opt (fshort-enums): Add to LTO.
2962 * c.opt (fshort-wchar): Likewise.
2964 2014-06-16 Marek Polacek <polacek@redhat.com>
2967 * c.opt (Wswitch-bool): Add Var.
2969 2014-06-12 Jakub Jelinek <jakub@redhat.com>
2972 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2973 #pragma omp target teams or
2974 #pragma omp {,target }teams distribute simd.
2976 2014-06-12 Jason Merrill <jason@redhat.com>
2978 * c.opt (Wabi=, fabi-compat-version): New.
2979 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2980 (c_common_post_options): Handle flag_abi_compat_version default.
2981 Disallow -fabi-compat-version=1.
2982 * c-common.h (abi_version_crosses): New.
2984 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
2986 * c-common.c (handle_section_attribute): Update handling for
2987 section names that are no longer trees.
2989 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2992 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2993 (omp_pragmas): ... back here.
2995 2014-06-05 Marek Polacek <polacek@redhat.com>
2998 * c-common.c (warn_logical_not_parentheses): New function.
2999 * c-common.h (warn_logical_not_parentheses): Declare.
3000 * c.opt (Wlogical-not-parentheses): New option.
3002 2014-06-04 Marek Polacek <polacek@redhat.com>
3005 * c-common.c (check_case_bounds): Add location parameter.
3007 (c_add_case_label): Pass loc to check_case_bounds.
3009 2014-06-03 Marek Polacek <polacek@redhat.com>
3012 * c.opt (Wswitch-bool): New option.
3014 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3016 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3018 (record_types_used_by_current_var_decl): Move prototype to where
3021 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3022 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3023 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3025 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3027 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3028 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3030 * c-pretty-print.c (pp_c_void_constant): New function.
3031 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3032 (c_pretty_printer::expression): Handle VOID_CST.
3033 * cilk.c (extract_free_variables): Likewise.
3034 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3035 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3037 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3039 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3040 * c-pragma.c (push_alignment): Adjust.
3041 (handle_pragma_push_options): Likewise.
3043 2014-05-09 Marek Polacek <polacek@redhat.com>
3046 * c-common.c (check_user_alignment): Return -1 if alignment is error
3048 (handle_aligned_attribute): Don't call default_conversion on
3050 (handle_vector_size_attribute): Likewise.
3051 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3052 (handle_sentinel_attribute): Call default_conversion and allow even
3053 integral types as an argument.
3055 2014-05-08 Marek Polacek <polacek@redhat.com>
3058 * c-common.c (min_align_of_type): New function factored out from...
3059 (c_sizeof_or_alignof_type): ...here.
3060 * c-common.h (min_align_of_type): Declare.
3062 2014-05-08 Marek Polacek <polacek@redhat.com>
3065 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3066 parameter type of main.
3068 2014-05-07 DJ Delorie <dj@redhat.com>
3070 * c-cppbuiltin.c (print_bits_of_hex): New.
3071 (builtin_define_type_minmax): Print values using hex so as not to
3072 require a pre-computed list of string values.
3074 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3075 Mike Stump <mikestump@comcast.net>
3076 Richard Sandiford <rdsandiford@googlemail.com>
3078 * c-ada-spec.c: Include wide-int.h.
3079 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3080 (dump_generic_ada_node): Use wide-int interfaces.
3081 * c-common.c: Include wide-int-print.h.
3082 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3083 (pointer_int_sum): Use wide-int interfaces.
3084 (c_common_nodes_and_builtins): Use make_int_cst.
3085 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3086 (handle_alloc_size_attribute): Use wide-int interfaces.
3087 (get_nonnull_operand): Likewise.
3088 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3089 * c-lex.c: Include wide-int.h.
3090 (narrowest_unsigned_type): Take a widest_int rather than two
3092 (narrowest_signed_type): Likewise.
3093 (interpret_integer): Update accordingly. Use wide-int interfaces.
3094 (lex_charconst): Use wide-int interfaces.
3095 * c-pretty-print.c: Include wide-int.h.
3096 (pp_c_integer_constant): Use wide-int interfaces.
3097 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3098 INT_CST_LT_UNSIGNED.
3100 2014-05-06 Richard Biener <rguenther@suse.de>
3102 * c-opts.c (c_common_post_options): For -freestanding,
3103 -fno-hosted and -fno-builtin disable pattern recognition
3104 if not enabled explicitely.
3106 2014-05-02 Marek Polacek <polacek@redhat.com>
3108 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3110 2014-05-01 Marek Polacek <polacek@redhat.com>
3113 * c.opt (Wdiscarded-qualifiers): Add.
3115 2014-04-30 Marek Polacek <polacek@redhat.com>
3117 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3118 INT_MIN / -1 sanitization only for integer types.
3120 2014-04-25 Marek Polacek <polacek@redhat.com>
3123 * c-common.c (handle_noinline_attribute): Warn if the attribute
3124 conflicts with always_inline attribute.
3125 (handle_always_inline_attribute): Warn if the attribute conflicts
3126 with noinline attribute.
3128 2014-04-25 Marek Polacek <polacek@redhat.com>
3131 * c-common.c (check_main_parameter_types): Warn about variadic main.
3133 2014-04-24 Mike Stump <mikestump@comcast.net>
3135 * c.opt (Wshadow-ivar): Default to on.
3137 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3139 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3141 2014-04-23 Marek Polacek <polacek@redhat.com>
3143 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3145 2014-04-22 Jakub Jelinek <jakub@redhat.com>
3148 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3149 if flag_sanitize_undefined_trap_on_error.
3150 (ubsan_instrument_division, ubsan_instrument_shift,
3151 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3152 if !flag_sanitize_recover.
3154 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
3157 * c-common.c (registered_builtin_types): Make non-static.
3158 * c-common.h (registered_builtin_types): Declare.
3160 2014-04-14 Richard Biener <rguenther@suse.de>
3161 Marc Glisse <marc.glisse@inria.fr>
3164 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3165 apply may-alias the scalar pointer type when applicable.
3167 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3170 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3171 as possible argument for Cilk_spawn.
3173 2014-04-11 Tobias Burnus <burnus@net-b.de>
3176 * c.opt (Wformat-signedness): Add
3177 * c-format.c(check_format_types): Use it.
3179 2014-04-11 Jason Merrill <jason@redhat.com>
3182 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3183 default_conversion for an array argument.
3185 2014-04-08 Marek Polacek <polacek@redhat.com>
3188 * c-ubsan.c: Include asan.h.
3189 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3191 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3193 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3195 2014-04-02 Marek Polacek <polacek@redhat.com>
3197 * c-common.h (c_expand_expr): Remove declaration.
3199 2014-03-28 Jakub Jelinek <jakub@redhat.com>
3202 * c-common.c (add_atomic_size_parameter): When creating new
3203 params vector, push the size argument first.
3205 2014-03-26 Jakub Jelinek <jakub@redhat.com>
3207 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3208 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3209 ubsan_create_data callers.
3211 2014-03-22 Jakub Jelinek <jakub@redhat.com>
3214 * c-opts.c (c_finish_options): Restore cb_file_change call to
3217 2014-03-13 Jakub Jelinek <jakub@redhat.com>
3220 * c-pragma.c (apply_pragma_weak): Only look at
3221 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3222 DECL_ASSEMBLER_NAME_SET_P (decl).
3223 (maybe_apply_pending_pragma_weaks): Exit early if
3224 vec_safe_is_empty (pending_weaks) rather than only when
3226 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3227 set assembler name back to NULL afterwards.
3229 2014-03-11 Jason Merrill <jason@redhat.com>
3231 * c.opt: Add -std=gnu++14.
3233 2014-03-11 Ian Bolton <ian.bolton@arm.com>
3235 * c-opts.c (c_common_post_options): Don't override
3236 -ffp-contract=fast if unsafe-math-optimizations is on.
3238 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
3240 * c.opt: Enable LTO FE for fshort-double.
3242 2014-03-07 Jason Merrill <jason@redhat.com>
3244 * c.opt: Add -std=c++14.
3246 2014-03-06 Marek Polacek <polacek@redhat.com>
3249 * cilk.c (contains_cilk_spawn_stmt): New function.
3250 (contains_cilk_spawn_stmt_walker): Likewise.
3251 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3252 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3254 2014-03-03 Jakub Jelinek <jakub@redhat.com>
3256 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3257 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3258 even when flag_preprocess_only.
3260 2014-02-26 Jason Merrill <jason@redhat.com>
3264 * c-common.c (shorten_compare): Don't check
3265 c_inhibit_evaluation_warnings.
3267 2014-02-19 Jakub Jelinek <jakub@redhat.com>
3270 * c-common.c (c_common_nodes_and_builtins): When initializing
3271 c_uint{16,32,64}_type_node, also set corresponding
3272 uint{16,32,64}_type_node to the same value.
3275 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3276 for PRAGMA_IVDEP if flag_preprocess_only.
3278 2014-02-12 Jakub Jelinek <jakub@redhat.com>
3281 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3282 if false, add ADD itself, rather than vice versa.
3283 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3284 copy. For SAVE_EXPR, only call merge_tlist once.
3286 2014-02-08 Jakub Jelinek <jakub@redhat.com>
3289 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3291 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3293 (c_common_attribute_table): Add alloc_align and assume_aligned
3296 2014-02-06 Marek Polacek <polacek@redhat.com>
3299 * c-common.c (warn_for_sign_compare): Call warning_at with location
3302 2014-02-05 Marek Polacek <polacek@redhat.com>
3305 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3308 2014-02-04 Marek Polacek <polacek@redhat.com>
3311 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3314 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
3318 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3319 handle_vector_size_attribute, handle_nonnull_attribute): Call
3320 default_conversion on the attribute argument.
3321 (handle_nonnull_attribute): Increment the argument number.
3323 2014-01-31 Marek Polacek <polacek@redhat.com>
3326 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3327 build_function_call_vec.
3328 (resolve_overloaded_builtin): Likewise.
3329 * c-common.h (build_function_call_vec): Adjust declaration.
3331 2014-01-30 Marek Polacek <polacek@redhat.com>
3334 * c-common.h (unsafe_conversion_p): Adjust declaration.
3335 (warnings_for_convert_and_check): Likewise.
3336 (convert_and_check): Likewise.
3337 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3338 expansion_point_location_if_in_system_header on it.
3339 (warnings_for_convert_and_check): Add location parameter. Call
3340 expansion_point_location_if_in_system_header on it. Use it.
3341 (convert_and_check): Add location parameter. Use it.
3342 (conversion_warning): Likewise.
3343 (c_add_case_label): Adjust convert_and_check calls.
3344 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3346 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3348 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3350 * c-pragma.c (init_pragma): Likewise.
3353 2014-01-23 Marek Polacek <polacek@redhat.com>
3356 * c-common.c (shorten_compare): Add location_t parameter.
3357 * c-common.h (shorten_binary_op): Adjust declaration.
3359 2014-01-23 Marek Polacek <polacek@redhat.com>
3362 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3363 * c-common.h: Declare it.
3365 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3367 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3368 * c-ada-spec.c (dump_ads): Likewise.
3369 (cpp_check): Likewise.
3370 (dump_ada_specs): Likewise.
3372 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
3375 * c-common.c (handle_no_instrument_function_attribute): Allow
3376 no_instrument_function attribute in class member
3377 definition/declaration.
3379 2014-01-15 Jakub Jelinek <jakub@redhat.com>
3382 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3383 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3384 being COMPOUND_EXPR.
3385 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3386 operand a SAVE_EXPR and second MODIFY_EXPR.
3388 2014-01-09 Jakub Jelinek <jakub@redhat.com>
3391 * c-pch.c (c_common_write_pch): Call
3392 prepare_target_option_nodes_for_pch.
3394 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3396 Update copyright years
3398 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3400 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3401 the copyright notice.
3403 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3405 * c-ada-spec.c (print_constructor): New function.
3406 (print_destructor): Retrieve the origin of the destructor.
3407 (print_ada_declaration): Revamp handling of constructors/destructors.
3409 2013-12-23 Stuart Hastings <stuart@apple.com>
3410 Bill Maddox <maddox@google.com>
3411 Jason Merrill <jason@redhat.com>
3413 * c.opt: Add -fdeclone-ctor-dtor.
3414 * c-opts.c (c_common_post_options): Default to on iff -Os.
3416 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3418 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3420 * c-pragma.h (enum pragma_cilk_clause): Remove.
3421 (enum pragma_omp_clause): Added the following fields:
3422 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3423 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3424 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3425 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3426 PRAGMA_CILK_CLAUSE_UNIFORM.
3429 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3431 * cilk.c (cilk_outline): Made this function non-static.
3432 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3433 (create_cilk_wrapper): Added a new parameter: a function pointer.
3434 (c_install_body_w_frame_cleanup): Remove
3435 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3436 * c-common.h (cilk_outline): New prototype.
3437 (gimplify_cilk_spawn): Removed two parameters.
3438 (cilk_install_body_with_frame_cleanup): New prototype.
3439 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3440 CILK_SPAWN_STMT case.
3442 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3444 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3446 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3447 (int_array_type_node): Remove.
3448 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3450 2013-12-05 Marek Polacek <polacek@redhat.com>
3453 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3454 [ADJUST_FIELD_ALIGN].
3456 2013-12-04 Joseph Myers <joseph@codesourcery.com>
3459 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3460 and check field alignment if set.
3461 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3462 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3464 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3465 Marek Polacek <polacek@redhat.com>
3467 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3468 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3470 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3473 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3476 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3479 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3480 goto invalid. If it is error_mark_node, don't issue further
3483 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3485 * c.opt (Wopenmp-simd): New.
3487 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3489 * c-ubsan.h (ubsan_instrument_return): New prototype.
3490 * c-ubsan.c (ubsan_instrument_return): New function.
3492 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3494 * c-common.c: Add required include files from gimple.h.
3495 * c-gimplify.c: Likewise
3498 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3500 * c-common.c (unsafe_conversion_p): Remove use of
3501 EXPR_LOC_OR_HERE macro.
3502 (conversion_warning): Likewise.
3503 (warnings_for_convert_and_check): Likewise.
3504 (warn_for_collisions_1): Likewise.
3505 (shorten_compare): Likewise, and remove use of in_system_header
3506 macro, using the location from the former.
3507 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3508 (cb_def_pragma): Remove use of in_system_header macro.
3509 (lex_string): Likewise.
3510 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3512 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3513 Mike Stump <mikestump@comcast.net>
3514 Richard Sandiford <rdsandiford@googlemail.com>
3516 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3517 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3518 tree_fits_shwi_p or tree_fits_uhwi_p.
3519 (dump_generic_ada_node): Likewise.
3520 * c-format.c (check_format_arg): Likewise.
3521 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3523 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3525 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3527 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3530 * c-common.c (unsafe_conversion_p): Make this function
3531 return an enumeration with more detail.
3532 (conversion_warning): Use the new return type of
3533 unsafe_conversion_p to separately warn either about conversions
3534 that lower floating point number precision or about the other
3535 kinds of conversions.
3536 * c-common.h (enum conversion_safety): New enumeration.
3537 (unsafe_conversion_p): switching return type to
3538 conversion_safety enumeration.
3539 * c.opt: Adding new warning -Wfloat-conversion and
3540 enabling it with -Wconversion.
3542 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3544 * c-opts.c: Include plugin.h.
3545 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3547 2013-11-19 Marek Polacek <polacek@redhat.com>
3549 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3551 (ubsan_instrument_shift): Likewise.
3552 (ubsan_instrument_vla): Likewise.
3554 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3556 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3557 cast to unsigned type.
3559 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3561 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3563 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3564 rather than tree_low_cst.
3566 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3568 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3569 tree_to_uhwi throughout.
3571 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3573 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3574 tree_low_cst (..., 0) with tree_to_shwi throughout.
3576 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3578 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3579 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3581 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3583 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3584 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3586 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3588 * c-cilkplus.c: New file.
3589 * c-common.c (readonly_error): Add location argument.
3590 * c-common.h (readonly_error): Same.
3591 (c_finish_cilk_clauses): Protoize.
3592 (c_check_cilk_loop): Same.
3593 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3594 Do not fail on error_mark_node.
3595 Abstract increment canonicalization to here...
3596 (c_omp_for_incr_canonicalize_ptr): New.
3597 c-pragma.c (init_pragma): Register "simd" pragma.
3598 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3599 (enum pragma_cilk_clause): New.
3601 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3603 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3604 wchar_type and host_integerp checks.
3606 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
3608 * c-common.c: Likewise.
3609 * c-gimplify.c: Likewise.
3612 2013-11-14 Diego Novillo <dnovillo@google.com>
3614 * c-common.c: Include fold-const.h.
3615 Include stor-layout.h.
3617 Include stringpool.h.
3620 Include trans-mem.h.
3621 * c-cppbuiltin.c: Include stor-layout.h.
3622 Include stringpool.h.
3623 * c-format.c: Include stringpool.h.
3624 * c-lex.c: Include stringpool.h.
3625 Include stor-layout.h.
3626 * c-pragma.c: Include stringpool.h.
3629 Include gcc-symtab.h.
3630 * c-pretty-print.c: Include stor-layout.h.
3632 * cilk.c: Include stringpool.h.
3635 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3637 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3638 * c-common.c (c_common_reswords): Add __auto_type.
3639 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3641 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3643 * c-common.c: Include gimplify.h.
3644 * c-gimplify.c: Likewise.
3646 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3647 * c-ubsan.c: Don't include gimple.h.
3649 2013-11-12 Joseph Myers <joseph@codesourcery.com>
3651 * c-common.c (c_common_reswords): Add _Thread_local.
3653 2013-11-09 Joseph Myers <joseph@codesourcery.com>
3655 * c-common.c (atomic_size_supported_p): New function.
3656 (resolve_overloaded_atomic_exchange)
3657 (resolve_overloaded_atomic_compare_exchange)
3658 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3659 Use it instead of comparing size with a local list of sizes.
3661 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
3662 Joseph Myers <joseph@codesourcery.com>
3664 * c-common.h (enum rid): Add RID_ATOMIC.
3665 * c-common.c (c_common_reswords): Add _Atomic.
3666 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3667 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3668 * c-format.c (check_format_types): Check for extra _Atomic
3669 qualifiers in format argument.
3670 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3671 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3673 2013-11-06 Tobias Burnus <burnus@net-b.de>
3675 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3677 2013-11-06 Joseph Myers <joseph@codesourcery.com>
3679 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3681 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3682 to mean lack of IEEE 754 support.
3684 2013-11-05 Tobias Burnus <burnus@net-b.de>
3686 * c.opt (-Wdate-time): New option
3687 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3689 2013-11-05 Joseph Myers <joseph@codesourcery.com>
3691 * c-cppbuiltin.c (cpp_iec_559_value): Test
3692 flag_excess_precision_cmdline not flag_excess_precision.
3694 2013-11-05 Tobias Burnus <burnus@net-b.de>
3696 * c.opt (fopenmp-simd): New option.
3697 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3698 (omp_pragmas): ... this new struct.
3699 (c_pp_lookup_pragma): Also walk omp_pragmas.
3700 (init_pragma): Init pragmas for -fopenmp-simd.
3702 2013-11-04 Marek Polacek <polacek@redhat.com>
3705 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3707 2013-11-04 Joseph Myers <joseph@codesourcery.com>
3709 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3711 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3713 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3715 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3716 (dump_ada_specs): Adjust prototype of second callback.
3717 * c-ada-spec.c (cpp_check): New global variable.
3718 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3719 (print_generic_ada_decl): Likewise.
3720 (has_static_fields): Change return type to bool and add guard.
3721 (has_nontrivial_methods): New predicate.
3722 (is_tagged_type): Change return type to bool.
3723 (separate_class_package): Call has_nontrivial_methods.
3724 (pp_ada_tree_identifier): Minor tweaks.
3725 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3726 (dump_ada_array_domains): Likewise.
3727 (dump_ada_array_type): Likewise.
3728 (dump_template_types): Remove cpp_check parameter and do not pass it to
3729 dump_generic_ada_node.
3730 (dump_ada_template): Likewise.
3731 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3733 (print_ada_methods): Change return type to integer. Remove cpp_check
3734 parameter and do not pass it down.
3735 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3736 dump_generic_ada_node.
3737 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3739 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3740 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3741 value of print_ada_methods.
3742 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3743 Set cpp_check to it before invoking dump_ada_nodes.
3744 (dump_ada_specs): Likewise.
3746 2013-11-03 Marek Polacek <polacek@redhat.com>
3748 * c-ubsan.c: Don't include hash-table.h.
3749 (ubsan_instrument_vla): New function.
3750 * c-ubsan.h: Declare it.
3752 2013-10-31 David Malcolm <dmalcolm@redhat.com>
3754 Automated part of renaming of symtab_node_base to symtab_node.
3756 Patch autogenerated by rename_symtab.py from
3757 https://github.com/davidmalcolm/gcc-refactoring-scripts
3758 revision 58bb219cc090b2f4516a9297d868c245495ee622
3760 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3761 symtab_node_base to symtab_node.
3763 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3765 Implement C++14 digit separators.
3766 * c-lex.c (interpret_float): Remove digit separators from scratch string
3767 before building real literal.
3769 2013-10-30 Jakub Jelinek <jakub@redhat.com>
3771 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3773 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3775 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3777 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3779 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3780 (insert_cilk_frame): New prototype.
3781 (cilk_init_builtins): Likewise.
3782 (gimplify_cilk_spawn): Likewise.
3783 (c_cilk_install_body_w_frame_cleanup): Likewise.
3784 (cilk_detect_spawn_and_unwrap): Likewise.
3785 (cilk_set_spawn_marker): Likewise.
3786 (build_cilk_sync): Likewise.
3787 (build_cilk_spawn): Likewise.
3790 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3792 Patch autogenerated by refactor_symtab.py from
3793 https://github.com/davidmalcolm/gcc-refactoring-scripts
3794 revision 58bb219cc090b2f4516a9297d868c245495ee622
3796 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3797 to a true class hierarchy.
3798 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3800 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3802 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3804 2013-10-26 Jeff Law <law@redhat.com>
3806 * c-common.c (c_define_builtins): Remove mudflap support.
3807 * c.opt: Ignore and warn for mudflap options.
3809 2013-10-24 Tobias Burnus <burnus@net-b.de>
3812 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3813 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3815 2013-10-23 Jason Merrill <jason@redhat.com>
3817 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3819 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3821 * c-common.h (omp_clause_mask::operator !=): New method.
3822 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3823 instead of if (mask & something) tests everywhere.
3825 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3826 201307 instead of 201107.
3827 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3828 (c_common_attribute_table): Add "omp declare target" and
3829 "omp declare simd" attributes.
3830 (handle_omp_declare_target_attribute,
3831 handle_omp_declare_simd_attribute): New functions.
3832 * c-omp.c: Include c-pragma.h.
3833 (c_finish_omp_taskgroup): New function.
3834 (c_finish_omp_atomic): Add swapped argument, if true,
3835 build the operation first with rhs, lhs arguments and use NOP_EXPR
3837 (c_finish_omp_for): Add code argument, pass it down to make_code.
3838 (c_omp_split_clauses): New function.
3839 (c_split_parallel_clauses): Removed.
3840 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3841 c_omp_declare_simd_clauses_to_decls): New functions.
3842 * c-common.h (omp_clause_mask): New type.
3843 (OMP_CLAUSE_MASK_1): Define.
3844 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3845 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3846 omp_clause_mask::operator |, omp_clause_mask::operator &,
3847 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3848 omp_clause_mask::operator ==): New methods.
3849 (enum c_omp_clause_split): New.
3850 (c_finish_omp_taskgroup): New prototype.
3851 (c_finish_omp_atomic): Add swapped argument.
3852 (c_finish_omp_for): Add code argument.
3853 (c_omp_split_clauses): New prototype.
3854 (c_split_parallel_clauses): Removed.
3855 (c_omp_declare_simd_clauses_to_numbers,
3856 c_omp_declare_simd_clauses_to_decls): New prototypes.
3857 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3858 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3859 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3860 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3861 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3862 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3863 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3864 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3865 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3866 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3867 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3868 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3869 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3870 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3871 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3872 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3873 PRAGMA_OMP_CLAUSE_UNIFORM.
3875 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
3877 PR tree-optimization/20318
3878 * c-common.c (handle_returns_nonnull_attribute): New function.
3879 (c_common_attribute_table): Add returns_nonnull.
3881 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
3884 * c.opt (fcheck-new): Move to common.opt.
3886 2013-09-25 Marek Polacek <polacek@redhat.com>
3887 Jakub Jelinek <jakub@redhat.com>
3890 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3891 an expression if we can prove it is correct.
3892 (ubsan_instrument_division): Likewise. Remove unnecessary
3895 2013-09-18 Marek Polacek <polacek@redhat.com>
3898 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3900 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3902 2013-09-14 Iain Sandoe <iain@codesourcery.com>
3905 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3906 fobjc-gc, freplace-objc-classes): Accept for LTO.
3908 2013-09-13 Jacek Caban <jacek@codeweavers.com>
3910 * c-target.def: New hook
3912 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3915 * c.opt (Wdelete-incomplete): Add.
3917 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3919 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3920 (vector_types_compatible_elements_p): New function.
3921 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3923 (vector_types_compatible_elements_p): Declare.
3925 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3927 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3928 a virtual member function.
3929 (pp_simple_type_specifier): Remove.
3930 (pp_c_type_specifier): Likewise.
3931 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3932 Rename from pp_c_type_specifier. Adjust.
3933 (c_pretty_printer::c_pretty_printer): Do not assign to
3934 simple_type_specifier.
3936 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3938 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3940 (c_pretty_printer::storage_class_specifier): Likewise.
3941 (c_pretty_printer::initializer): Likewise.
3942 (pp_declaration): Remove.
3943 (pp_declaration_specifiers): Likewise.
3944 (pp_abstract_declarator): Likewise.
3945 (pp_declarator): Likewise.
3946 (pp_type_id): Likewise.
3947 (pp_statement): Likewise.
3948 (pp_constant): Likewise.
3949 (pp_id_expression): Likewise.
3950 (pp_primary_expression): Likewise.
3951 (pp_unary_expression): Likewise.
3952 (pp_multiplicative_expression): Likewise.
3953 (pp_conditional_expression): Likewise.
3954 (pp_assignment_expression): Likewise.
3955 (pp_expression): Likewise.
3956 (pp_c_type_id): Likewise.
3957 (pp_c_storage_class_specifier): Likewise.
3958 * c-pretty-print.c (pp_c_type_cast): Tidy.
3959 (pp_c_pointer): Likewise.
3960 (pp_c_type_specifier): Likewise.
3961 (pp_c_parameter_type_list): Likewise.
3962 (pp_c_function_definition): Likewise.
3963 (pp_c_init_declarator): Likewise.
3964 (pp_c_initializer_list): Likewise.
3965 (pp_c_constructor_elts): Likewise.
3966 (c_pretty_printer::direct_abstract_declarator): Likewise.
3967 (c_pretty_printer::declaration_specifiers): Likewise.
3968 (c_pretty_printer::primary_expression): Likewise.
3969 (c_pretty_printer::postfix_expression): Likewise.
3970 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3971 (c_pretty_printer::storage_class_specifier): Rename from
3972 pp_c_storage_class_specifier.
3973 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3974 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3975 storage_class_specifier, initializer, offset_list, flags.
3977 2013-08-30 Marek Polacek <polacek@redhat.com>
3979 * c-ubsan.c: New file.
3980 * c-ubsan.h: New file.
3982 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3984 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3986 (c_pretty_printer::declaration_specifiers): Likewise.
3987 (c_pretty_printer::declarator): Likewise.
3988 (c_pretty_printer::abstract_declarator): Likewise.
3989 (c_pretty_printer::direct_abstract_declarator): Likewise.
3990 (c_pretty_printer::direct_declarator): Likewise.
3991 (c_pretty_printer::function_specifier): Likewise.
3992 (pp_declaration): Adjust.
3993 (pp_declaration_specifiers): Likewise.
3994 (pp_abstract_declarator): Likewise.
3995 (pp_direct_declarator): Likewise.
3996 (pp_function_specifier): Likewise.
3997 (pp_direct_abstract_declarator): Remove as unused.
3998 (pp_c_declaration): Remove.
3999 (pp_c_declaration_specifiers): Likewise.
4000 (pp_c_declarator): Likewise.
4001 (pp_c_direct_declarator): Likewise.
4002 (pp_c_function_specifier): Likewise.
4003 (pp_c_direct_abstract_declarator): Likewise.
4004 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4005 from pp_c_abstract_declarator. Adjust.
4006 (c_pretty_printer::direct_abstract_declarator): Rename from
4007 pp_c_direct_abstract_declarator. Adjust.
4008 (c_pretty_printer::function_specifier): Rename from
4009 pp_c_function_specifier. Adjust.
4010 (c_pretty_printer::declaration_specifiers): Rename from
4011 pp_c_declaration_specifiers. Adjust.
4012 (c_pretty_printer::direct_declarator): Rename from
4013 pp_c_direct_declarator. Adjust.
4014 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4015 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4016 (c_pretty_printer::c_pretty_printer): Do not assign to
4017 declaration, declaration_specifiers, declarator,
4018 direct_declarator, direct_abstract_declarator, function_specifier.
4020 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4022 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4023 virtual member function.
4024 (c_pretty_printer::multiplicative_expression): Likewise.
4025 (c_pretty_printer::conditional_expression): Likewise.
4026 (c_pretty_printer::assignment_expression): Likewise.
4027 (c_pretty_printer::expression): Likewise.
4028 (pp_unary_expression): Adjust.
4029 (pp_multiplicative_expression): Likewise.
4030 (pp_assignment_expression): Likewise.
4031 (pp_conditional_expression): Likewise.
4032 (pp_expression): Likewise.
4033 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4034 from pp_c_unary_expression. Adjust.
4035 (c_pretty_printer::multiplicative_expression): Rename from
4036 pp_c_multiplicative_expression. Adjust.
4037 (c_pretty_printer::conditional_expression): Rename from
4038 pp_c_conditional_expression. Adjust.
4039 (c_pretty_printer::assignment_expression): Rename from
4040 pp_c_assignment_expression. Adjust.
4041 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4042 (c_pretty_printer::c_pretty_printer): Do not assign to
4043 unary_expression, multiplicative_expression,
4044 conditional_expression, expression.
4046 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4048 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4049 virtual member function.
4050 (pp_postfix_expression): Adjust.
4051 (pp_c_postfix_expression): Remove.
4052 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4053 from pp_c_postfix_expression. Adjust.
4054 (c_pretty_printer::c_pretty_printer): Do not assign to
4057 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4059 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4060 virtua member function.
4061 (pp_primary_expression): Adjust.
4062 (pp_c_primary_expression): Remove.
4063 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4064 from pp_c_primary_expression. Adjust.
4065 (pp_c_initializer_list): Use pp_primary_expression.
4066 (c_pretty_printer::c_pretty_printer): Do not assign to
4069 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4071 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4072 * c-pretty-print.c (M_): Remove.
4073 (c_pretty_printer::translate_string): Define.
4074 (pp_c_type_specifier): Use it.
4075 (pp_c_primary_expression): Likewise.
4076 (pp_c_expression): Likewise.
4078 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4080 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4082 (pp_c_id_expression): Remove.
4083 (pp_id_expression): Adjust.
4084 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4085 pp_c_id_expression. Adjust.
4086 (pp_c_postfix_expression): Use pp_id_expression.
4087 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4089 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4091 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4093 (pp_constant): Adjust.
4094 (pp_c_constant): Remove.
4095 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4096 pp_c_constant. Adjust.
4098 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4099 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4101 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4103 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4104 (c_pretty_printer::c_pretty_printer): Declare.
4105 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4106 c_pretty_printer_init. Adjust.
4107 (print_c_tree): Do not call c_pretty_printer_init.
4108 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4110 2013-08-09 Arnaud Charlet <charlet@adacore.com>
4112 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4114 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4117 * c-common.c (pointer_int_sum): Add bool parameter.
4118 * c-common.h (pointer_int_sum): Adjust declaration.
4120 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4122 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4123 c_pretty_printer variable.
4125 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4127 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4129 (pp_c_base): Likewise. Adjust users.
4130 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4131 (pp_c_whitespace): Do not call pp_base.
4132 (pp_c_left_paren): Likewise.
4133 (pp_c_right_paren): Likewise.
4134 (pp_c_left_brace): Likewise.
4135 (pp_c_right_brace): Likewise.
4136 (pp_c_left_bracket): Likewise.
4137 (pp_c_right_bracket): Likewise.
4138 (pp_c_dot): Likewise.
4139 (pp_c_ampersand): Likewise.
4140 (pp_c_star): Likewise.
4141 (pp_c_arrow): Likewise.
4142 (pp_c_semicolon): Likewise.
4143 (pp_c_complement): Likewise.
4144 (pp_c_exclamation): Likewise.
4145 (pp_c_direct_declarator): Likewise.
4146 (pp_c_ws_string): Likewise.
4147 (pp_c_identifier): Likewise.
4148 (pp_c_statement): Likewise.
4149 (print_c_tree): Likewise.
4151 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4154 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4155 provide useful error strings.
4157 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4159 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4160 printer functions instead of pp_string or operators and punctuators.
4161 (dump_generic_ada_node): Likewise.
4162 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4163 (pp_c_relational_expression): Likewise.
4164 (pp_c_logical_or_expression): Likewise.
4166 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4168 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4169 functions instead of pp_character.
4170 (pp_ada_tree_identifier): Likewise.
4171 (dump_ada_double_name): Likewise.
4172 (dump_ada_function_declaration): Likewise.
4173 (dump_ada_array_domains): Likewise.
4174 (dump_template_types): Likewise.
4175 (dump_generic_ada_node): Likewise.
4176 (print_ada_declaration): Likewise.
4177 (print_ada_struct_decl): Likewise.
4178 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4180 2013-07-23 Tom Tromey <tromey@redhat.com>
4182 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4183 * c-common.c (c_common_reswords): Add _Generic.
4185 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
4187 * c-common.c: Fix typos.
4188 * c-common.h: Likewise.
4190 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
4193 * c-common.c (c_common_attribute_table): Add warn_unused.
4194 (handle_warn_unused_attribute): New.
4196 2013-07-10 Jakub Jelinek <jakub@redhat.com>
4198 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4199 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4201 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4204 * c.opt: Add Wconditionally-supported.
4206 2013-07-08 Graham Stott <graham.stott@btinternet.com>
4208 * array-notation-common.c (length_mismatch_in_expr_p): Delete
4209 unused variables l_length and l_node.
4211 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
4214 * c-common.c (complete_array_type): Delay folding first index
4215 like other indices. When folding, check for index overflow.
4217 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
4220 * c-common.h (c_build_vec_perm_expr): New complain argument.
4221 * c-common.c (c_build_vec_perm_expr): Likewise.
4222 Use save_expr also in C++.
4224 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4226 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4227 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4228 * c-opts.c (c_common_post_options): Likewise.
4230 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4232 * array-notation-common.c (length_mismatch_in_expr): Changed the
4233 parameter type's from a dynamic array to a vec_tree. Also removed
4234 the size parameters.
4235 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4238 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4240 * c-common.h (struct cilkplus_an_parts): New structure.
4241 (struct cilkplus_an_loop_parts): Likewise.
4242 (cilkplus_extract_an_triplets): New prototype.
4243 (fix_sec_implicit_args): Likewise.
4244 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4245 (fix_sec_implicit_args): Likewise.
4247 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4249 * array-notation-common.c (find_inv_trees): Removed an unwanted
4251 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4252 enum rid to enum tree_code.
4254 2013-06-11 Jan Hubicka <jh@suse.cz>
4256 * c-common.c (handle_alias_ifunc_attribute): Do not set
4257 DECL_EXTERNAL for weakref variables.
4258 * c-pragma.c (handle_pragma_weak): Make sure aliases
4259 are not declared as external.
4261 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4263 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4264 function from c/c-array-notation.c.
4265 (is_cilkplus_reduce_builtin): Likewise.
4266 (find_rank): Likewise.
4267 (extract_array_notation_exprs): Likewise.
4268 (replace_array_notations): Likewise.
4269 (find_inv_trees): Likewise.
4270 (replace_inv_trees): Likewise.
4271 (contains_array_notation_expr): Likewise.
4272 (find_correct_array_notation_type): Likewise.
4273 * c-common.h (struct inv_list): Moved this struct from the file
4274 c/c-array-notation.c and added a new field called additional tcodes.
4275 (length_mismatch_in_expr_p): New prototype.
4276 (is_cilkplus_reduce_builtin): Likewise.
4277 (find_rank): Likewise.
4278 (extract_array_notation_exprs): Likewise.
4279 (replace_array_notation): Likewise.
4280 (find_inv_trees): Likewise.
4281 (replace_inv_trees): Likewise.
4282 (find_correct_array_notation_type): Likewise.
4284 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4286 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4287 function array_notation_init_builtins is called.
4288 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4289 * c-common.def (ARRAY_NOTATION_REF): New tree.
4290 * c-common.h (build_array_notation_expr): New function declaration.
4291 (build_array_notation_ref): Likewise.
4292 (extract_sec_implicit_index_arg): New extern declaration.
4293 (is_sec_implicit_index_fn): Likewise.
4294 (ARRAY_NOTATION_CHECK): New define.
4295 (ARRAY_NOTATION_ARRAY): Likewise.
4296 (ARRAY_NOTATION_START): Likewise.
4297 (ARRAY_NOTATION_LENGTH): Likewise.
4298 (ARRAY_NOTATION_STRIDE): Likewise.
4299 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4301 (pp_c_expression): Likewise.
4302 * c.opt (flag_enable_cilkplus): New flag.
4303 * array-notation-common.c: New file.
4305 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4308 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4310 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
4312 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4315 2013-05-07 Han Shen <shenhan@google.com>
4317 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4319 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4321 * c-common.c (check_user_alignment): Emit error for negative values.
4323 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4325 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4327 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4329 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4330 __GXX_EXPERIMENTAL_CXX1Y__.
4332 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4333 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4335 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4336 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4337 to simply use OPT_Wpointer_arith.
4338 (c_sizeof_or_alignof_type): Likewise.
4340 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4342 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4344 2013-04-12 Jakub Jelinek <jakub@redhat.com>
4346 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4347 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4350 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4352 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4354 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4356 * c-common.c (pointer_int_sum): Remove dead code.
4358 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4361 * c-common.c (handle_optimize_attribute): Don't call
4362 save_optabs_if_changed.
4364 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4367 * c-pch.c (pch_init): Free target_validity at the end.
4369 2013-03-04 Jakub Jelinek <jakub@redhat.com>
4371 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4373 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4374 Jakub Jelinek <jakub@redhat.com>
4377 * c-common.c (handle_no_sanitize_address_attribute): New function.
4378 (c_common_attribute_table): Add no_sanitize_address attribute.
4379 (handle_no_address_safety_analysis_attribute): Add
4380 no_sanitize_address attribute, not no_address_safety_analysis
4383 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
4386 * c-common.c (handle_optimize_attribute): Call
4387 save_optabs_if_changed.
4389 2013-02-18 Jakub Jelinek <jakub@redhat.com>
4390 Steven Bosscher <steven@gcc.gnu.org>
4393 * c-opts.c (c_common_post_options): If debug info is enabled
4394 and non-dwarf*, refuse to load PCH files and when writing PCH
4397 2013-02-05 Jakub Jelinek <jakub@redhat.com>
4400 * c-common.c (handle_error_attribute): Fix condition.
4402 2013-01-30 Jakub Jelinek <jakub@redhat.com>
4405 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4407 2013-01-18 Jason Merrill <jason@redhat.com>
4410 * c.opt (-fextern-tls-init): New.
4411 * c-opts.c (c_common_post_options): Handle it.
4413 2013-01-09 Jakub Jelinek <jakub@redhat.com>
4416 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4417 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4418 and is either negative or bigger or equal to type precision
4419 of the first operand.
4421 2012-12-03 Marek Polacek <polacek@redhat.com>
4424 * c-common.c (check_user_alignment): Swap order of tests,
4425 check TREE_CODE first.
4427 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4430 * c-common.h (overflow_type): New enum.
4431 (build_userdef_literal): Add overflow_type argument.
4432 (tree_userdef_literal): Add overflow_type.
4433 (USERDEF_LITERAL_OVERFLOW): New access macro.
4434 * c-common.c (build_userdef_literal): Add overflow_type
4436 * c-lex.c (c_lex_with_flags): Add overflow_type to
4437 build_userdef_literal calls.
4438 (interpret_integer, interpret_float): Add overflow_type argument.
4440 2012-11-28 Richard Biener <rguenther@suse.de>
4443 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4444 here and use a type with proper overflow behavior for types that would
4445 need to be promoted for the arithmetic.
4447 2012-11-23 Jakub Jelinek <jakub@redhat.com>
4450 * c-common.c (handle_no_address_safety_analysis_attribute): New
4452 (c_common_attribute_table): Add no_address_safety_analysis.
4454 2012-11-16 Simon Baldwin <simonb@google.com>
4456 * c.opt: Add f[no-]canonical-system-headers.
4457 * c-opts.c (c_common_handle_option): Handle
4458 OPT_fcanonical_system_headers.
4460 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4463 * c-opts.c (c_common_handle_option): Set new flags.
4464 * c.opt: Describe new flags.
4466 2012-11-09 Jason Merrill <jason@redhat.com>
4468 * c.opt (Wabi-tag): New.
4470 2012-11-09 Andi Kleen <ak@linux.intel.com>
4473 * c-common.c (get_atomic_generic_size): Mask with
4476 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4479 * c.opt (Wformat): Make it Alias Wformat=1.
4480 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4481 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4483 (Wformat=): RejectNegative. Use LangEnabledBy.
4484 (Wnonnull): Use LangEnabledBy.
4485 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4486 * c-format.c (set_Wformat): Delete.
4487 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4488 (maybe_read_dollar_number): Likewise.
4489 (avoid_dollar_number): Likewise.
4490 (finish_dollar_format_checking): Likewise.
4491 (check_format_info): Likewise.
4492 (check_format_info_main): Likewise.
4493 (check_format_types): Likewise.
4494 (format_type_warning): Likewise.
4495 * c-common.c (int): Likewise.
4496 (check_function_sentinel): Likewise.
4497 * c-common.h (warn_format,set_Wformat): Do not declare here.
4499 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4502 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4503 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4505 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4507 (Wvariadic-macros): Init(1).
4508 * c-opts.c (c_common_handle_option): Do not handle them
4510 (c_common_post_options): Likewise.
4511 (sanitize_cpp_opts): warn_unused_macros is now
4512 cpp_warn_unused_macros.
4513 (push_command_line_include): Likewise.
4514 * c-common.c (warn_unknown_pragmas): Do not define.
4515 * c-common.h (warn_unknown_pragmas): Do not declare.
4517 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4520 * c-common.c (conversion_warning): Handle conditional expressions.
4522 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4525 * c.opt (Wreturn_local_addr): Define new option.
4527 2012-10-25 Jason Merrill <jason@redhat.com>
4529 * c.opt (Wvirtual-move-assign): New.
4531 * c.opt (Winherited-variadic-ctor): New.
4533 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
4536 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4538 2012-10-23 Joseph Myers <joseph@codesourcery.com>
4540 * c-common.h (pch_cpp_save_state): Declare.
4541 * c-target.def (c_preinclude): New hook.
4542 * c-opts.c (done_preinclude): New.
4543 (push_command_line_include): Handle default preincluded header.
4544 (cb_file_change): Call pch_cpp_save_state when calling
4545 push_command_line_include.
4546 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4547 (pch_cpp_save_state): New.
4548 (pch_init): Call pch_cpp_save_state conditionally, instead of
4549 calling cpp_save_state.
4551 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4555 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4556 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4557 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4558 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4559 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4560 * c-opts.c (c_common_handle_option): Remove explicit handling from
4562 (c_common_post_options): Likewise.
4564 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4566 * c-ada-spec.c (LOCATION_COL): Delete.
4567 (compare_location): New function.
4568 (compare_node): Use it.
4569 (compare_comment): Likewise.
4571 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4575 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4576 * c-opts.c (c_common_handle_option): Do not set them here. Add
4578 (c_common_post_options): Likewise.
4580 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4582 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4583 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4584 Remove POINTER_TYPE handling, add large unsigned handling and use
4585 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4587 2012-10-12 Jakub Jelinek <jakub@redhat.com>
4590 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4591 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4592 locs and array of 3 trees instead of just single loc and single
4593 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4594 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4595 For *cmp* builtins that take two sources strings report warnings
4596 about first and second source, not about destination and source.
4598 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
4601 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4603 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4605 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4606 declaring something coming from another file.
4608 2012-10-10 Arnaud Charlet <charlet@adacore.com>
4611 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4613 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4616 * c-common.c (warn_about_parentheses): Add location_t parameter;
4617 use EXPR_LOC_OR_LOC.
4618 * c-common.h: Update declaration.
4620 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
4623 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4624 more operations. Make error messages optional.
4625 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4626 (scalar_to_vector): Declare.
4628 2012-10-08 Jason Merrill <jason@redhat.com>
4630 * c-common.c (c_common_reswords): Add thread_local.
4632 2012-10-08 Dodji Seketeli <dodji@redhat.com>
4634 PR c++/53528 C++11 attribute support
4635 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4637 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4639 (handle_aligned_attribute): In choose strictest alignment
4640 among many. Use new check_cxx_fundamental_alignment_constraints.
4641 (handle_transparent_union_attribute): In c++11 attribute syntax,
4642 don't look through typedefs.
4644 2012-10-04 Arnaud Charlet <charlet@adacore.com>
4646 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4647 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4650 2012-09-25 Dehao Chen <dehao@google.com>
4653 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
4654 map when read in the pch.
4656 2012-09-18 Arnaud Charlet <charlet@adacore.com>
4658 * c-ada-spec.c: Style fixes.
4660 2012-09-18 Thomas Quinot <quinot@adacore.com>
4662 * c.opt (-fada-spec-parent): Define new command line switch.
4663 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4664 is specified, generate binding spec as a child of the specified unit.
4666 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4667 Manuel López-Ibáñez <manu@gcc.gnu.org>
4670 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4672 2012-08-23 Arnaud Charlet <charlet@adacore.com>
4674 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4675 for pointers, and add missing Convention C pragma.
4676 (print_ada_struct_decl): Add missing aliased keyword.
4677 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4679 2012-08-17 Jakub Jelinek <jakub@redhat.com>
4681 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4682 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4683 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4684 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4685 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4687 2012-08-10 Richard Guenther <rguenther@suse.de>
4689 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4691 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4693 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4694 instead of separate pp_newline and pp_flush.
4695 (print_c_tree): Likewise.
4697 2012-07-26 Richard Henderson <rth@redhat.com>
4699 * c-common.c (handle_hot_attribute): Allow labels.
4700 (handle_cold_attribute): Likewise.
4702 2012-07-20 Jakub Jelinek <jakub@redhat.com>
4705 * c-common.c (check_function_nonnull): Handle multiple nonnull
4706 attributes properly.
4708 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4710 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4711 * c-ada-spec.c: Likewise.
4712 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4714 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4716 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4717 Remove code conditional on it.
4719 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4721 * c-gimplify.c: Do not include basic-block.h.
4722 * c-common.c: Do not include linfuncs.h.
4724 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4726 * c-common.h: Include tree.h.
4728 2012-07-02 Jason Merrill <jason@redhat.com>
4731 * c-common.c (get_priority): Call default_conversion.
4733 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
4735 * c-pch.c (c_common_write_pch): Remove unused variables.
4737 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4739 * cppspec.c: Moved from gcc/ to here.
4741 2012-06-27 Kai Tietz <ktietz@redhat.com>
4743 PR preprocessor/37215
4744 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4746 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4748 * c-common.h (c_common_print_pch_checksum): Remove.
4749 * c-pch.c: Do not include output.h.
4750 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4751 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4752 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4753 (struct c_pch_header): Remove.
4754 (get_ident): Update gpch version.
4755 (pch_init): Do not print executable_checksum to asm_out_file.
4756 Do not fail if there is no asm_out_file to read back from. Set
4757 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4758 (c_common_write_pch): Verify that nothing was written to asm_out_file
4759 since pch_init was called. Do not write a c_pch_header, and do not
4760 copy from asm_out_file to the PCH.
4761 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4762 the content of asm_out_file from the PCH.
4763 (c_common_print_pch_checksum): Remove.
4764 * c-opts.c (c_common_init): Print out executable_checksum directly.
4766 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4768 * c-target.def (objc_declare_unresolved_class_reference,
4769 objc_declare_class_definition): Add new hooks.
4771 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4773 * c-lex.c: Do not include output.h.
4774 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4775 Remove uses of ASM_OUTPUT_IDENT.
4777 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
4780 * c-common.h (c_build_vec_perm_expr): Move decl here.
4781 * c-common.c (c_build_vec_perm_expr): Move definition
4784 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4786 * c.opt (fconserve-space): Turn into a no-op.
4788 2012-06-04 Sterling Augustine <saugustine@google.com>
4790 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4791 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4792 both the start and end of the function.
4794 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4796 * c-common.c: Do not include output.h.
4797 * c-pragma.c: Likewise.
4799 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4801 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4802 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4803 (lang_decl_name): Handle namespace decls.
4805 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4807 * c-ada-spec.c: Do not include output.h.
4808 * c-semantics.c: Likewise.
4810 2012-05-29 Joseph Myers <joseph@codesourcery.com>
4812 * c-common.c: Fix typo.
4814 2012-05-29 Michael Matz <matz@suse.de>
4816 * c-common.h (c_expand_decl): Remove prototype.
4818 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4820 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4821 * c-opts.c (c_common_handle_option): Remove code handling
4822 warn_missing_braces.
4824 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4827 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4830 2012-05-22 Dodji Seketeli <dodji@redhat.com>
4833 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4835 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4837 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4838 * c-opts.c (c_common_handle_option): Do not handle explicitly
4839 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4841 2012-05-16 Dodji Seketeli <dodji@redhat.com>
4843 PR preprocessor/7263
4844 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4845 to cpp_classify_number. For diagnostics, use the precise location
4846 instead of the global input_location.
4848 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4851 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4853 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4855 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
4857 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4860 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4861 Wreorder): Use LangEnabledBy.
4862 * c-opts.c (c_common_handle_option): Do not enable them
4863 explicitly. Call lang-specific generated functions.
4864 (c_common_post_options): Do not set them here.
4866 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4868 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4869 Wmissing-field-initializers,Wmissing-parameter-type,
4870 Wold-style-declaration,Woverride-init): Use EnabledBy.
4871 * c-opts.c (c_common_post_options): Do not set here explicitly.
4873 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4876 * c-opts.c (c_common_handle_option): Use handle_generated_option
4877 to enable sub-options.
4879 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4882 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4884 2012-05-10 Richard Guenther <rguenther@suse.de>
4886 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4887 adjust commentary about TYPE_IS_SIZETYPE types.
4889 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4892 * c-common.c (warn_logical_operator): Check that argument of
4893 integer_zerop is not NULL.
4895 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4898 * c-common.c (warn_logical_operator): Do not warn if either side
4899 is already true or false.
4901 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4904 * c-common.c (expr_original_type): New.
4905 (shorten_compare): Do not warn for enumeration types.
4907 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4909 * c.opt (fpermissive): Add Var(flag_permissive).
4911 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
4914 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4915 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4917 2012-04-30 Dodji Seketeli <dodji@redhat.com>
4919 Add -Wvarargs option
4920 * c.opt (Wvarargs): Define new option.
4922 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4924 * c-common.c (check_function_arguments): Replace
4925 Wmissing-format-attribute with Wsuggest-attribute=format.
4927 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4929 * c.opt (Wsuggest-attribute=format): New. Alias of
4930 Wmissing-format-attribute.
4931 * c-format.c (decode_format_type): Replace
4932 Wmissing-format-attribute with Wsuggest-attribute=format.
4933 (check_function_format): Likewise.
4935 2012-04-27 Ollie Wild <aaw@google.com>
4937 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4938 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4939 * c.opt: Add Wliteral-suffix.
4941 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4944 * c.opt (Wpedantic): New.
4945 (pedantic): Alias Wpedantic.
4946 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4947 (c_common_post_options): Likewise.
4948 (sanitize_cpp_opts): Likewise.
4949 * c-lex.c (interpret_float): Likewise.
4950 * c-format.c (check_format_types): Likewise.
4951 * c-common.c (pointer_int_sum): Likewise.
4952 (c_sizeof_or_alignof_type): Likewise.
4953 (c_add_case_label): Likewise.
4954 (c_do_switch_warnings): Likewise.
4955 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4957 2012-04-15 Jason Merrill <jason@redhat.com>
4960 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4961 (C_STD_NAME): Distinguish between C++98 and C++11.
4963 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4966 * c-common.h (uint16_type_node): Rename into...
4967 (c_uint16_type_node): ...this.
4968 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4969 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4971 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4973 * c-common.c (warn_if_unused_value): Move definition to here.
4974 * c-common.h (warn_if_unused_value): Move declaration to here.
4976 2012-03-23 William Bader <williambader@hotmail.com>
4978 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4980 2012-03-20 Jason Merrill <jason@redhat.com>
4982 * c-common.h (enum cxx_dialect): Add cxx1y.
4983 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4985 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4986 * c-opts.c (c_common_post_options): Likewise.
4987 (set_std_cxx1y): New.
4988 (c_common_handle_option): Call it.
4989 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4991 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4994 * c.opt ([Wuseless-cast]): Add.
4996 2012-03-16 Richard Guenther <rguenther@suse.de>
4998 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5000 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5003 * c.opt (ftemplate-backtrace-limit) Add.
5005 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5007 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5009 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5010 (init_pragma): Don't register extern_prefix.
5012 2012-03-12 Richard Guenther <rguenther@suse.de>
5014 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5015 (builtin_type_for_size): Likewise.
5017 2012-02-13 Jakub Jelinek <jakub@redhat.com>
5020 * c-common.c (sync_resolve_params): Don't decide whether to convert
5021 or not based on TYPE_SIZE comparison, convert whenever arg_type
5022 is unsigned INTEGER_TYPE.
5024 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5027 * c.opt ([Wunused-local-typedefs]): Fix description.
5029 2012-01-24 Mike Stump <mikestump@comcast.net>
5031 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5034 2012-01-18 Richard Guenther <rguenther@suse.de>
5036 * c-opts.c (c_common_post_options): Reset LTO flags if
5037 we are about to generate a PCH.
5039 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5042 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5043 use pp_unsigned_wide_integer.
5045 2012-01-10 Richard Guenther <rguenther@suse.de>
5048 * c-opts.c (c_common_handle_option): Move -Werror handling
5049 to language independent code.
5051 2012-01-05 Richard Guenther <rguenther@suse.de>
5054 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5057 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5060 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5061 of array types with an unknown bound.
5063 2011-12-20 Joseph Myers <joseph@codesourcery.com>
5065 * c-common.c (flag_isoc99): Update comment to refer to C11.
5066 (flag_isoc1x): Change to flag_isoc11.
5067 * c-common.h (flag_isoc99): Update comment to refer to C11.
5068 (flag_isoc1x): Change to flag_isoc11.
5069 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5071 * c-opts.c (set_std_c1x): Change to set_std_c11.
5072 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5074 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5075 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5076 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5078 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5079 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5080 (std=gnu1x): Make alias of std=gnu11.
5082 2011-12-19 Jason Merrill <jason@redhat.com>
5085 * c-common.c (handle_transparent_union_attribute): Check the first
5086 field if the type is complete.
5088 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5091 * c-common.c (RID_IS_FINAL): Add.
5092 * c-common.h (RID_IS_FINAL): Add.
5094 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5096 * c.opt (fgnu-runtime): Provide full description.
5097 (fnext-runtime): Likewise.
5098 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5100 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
5102 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5103 predefines in one place. Add LOCK_FREE predefines.
5104 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5107 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
5110 * c-common.c (get_atomic_generic_size): Check for various error
5112 (resolve_overloaded_atomic_exchange,
5113 resolve_overloaded_atomic_compare_exchange,
5114 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5115 error_mark_node for error conditions.
5117 2011-11-08 Richard Guenther <rguenther@suse.de>
5122 2011-11-07 Richard Henderson <rth@redhat.com>
5123 Aldy Hernandez <aldyh@redhat.com>
5124 Torvald Riegel <triegel@redhat.com>
5126 Merged from transactional-memory.
5128 * c-common.c (handle_tm_wrap_attribute,
5129 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5130 (struct c_common_reswords): Added __transaction* keywords.
5131 (struct c_common_attribute_table): Added transaction* and tm_regparm
5133 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5135 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5136 find_tm_attribute): Declare.
5138 2011-11-07 Jason Merrill <jason@redhat.com>
5141 * c-common.c, c-common.h: Revert yesterday's changes.
5143 2011-11-06 Jason Merrill <jason@redhat.com>
5146 * c-common.c (decl_has_visibility_attr): Split out from...
5147 (c_determine_visibility): ...here.
5148 * c-common.h: Declare it.
5150 2011-11-06 Joseph Myers <joseph@codesourcery.com>
5152 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5153 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5155 (check_user_alignment): New. Split out of
5156 handle_aligned_attribute. Disallow integer constants with
5157 noninteger types. Conditionally allow zero.
5158 (handle_aligned_attribute): Use check_user_alignment.
5159 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5161 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
5162 Richard Henderson <rth@redhat.com>
5164 Merged from cxx-mem-model.
5166 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
5167 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
5168 parameters that are the same type size.
5169 (get_atomic_generic_size): New. Find size of generic
5170 atomic function parameters and do typechecking.
5171 (add_atomic_size_parameter): New. Insert size into parameter list.
5172 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5173 either __atomic_exchange_n or external library call.
5174 (resolve_overloaded_atomic_compare_exchange): Restructure
5175 __atomic_compare_exchange to either _n variant or external library call.
5176 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
5177 __atomic_load_n or an external library call.
5178 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5179 __atomic_store_n or an external library call.
5180 (resolve_overloaded_builtin): Handle new __atomic builtins.
5182 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5185 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5186 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5187 <INDIRECT_REF>: Return the argument.
5188 <ARRAY_REF>: Remove special code for negative offset.
5189 Call fold_build_pointer_plus instead of size_binop.
5190 (fold_offsetof): Remove STOP_REF argument and adjust.
5191 * c-common.h (fold_offsetof_1): Declare.
5192 (fold_offsetof): Remove STOP_REF argument.
5194 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5197 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5198 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5199 Wnarrowing for C++0x and C++98.
5200 * c.opt ([Wnarrowing]): Update.
5202 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5205 * c.opt: Add Wzero-as-null-pointer-constant.
5207 2011-10-31 Jason Merrill <jason@redhat.com>
5209 * c.opt (-fdeduce-init-list): Off by default.
5212 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5213 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5215 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5217 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5220 * c.opt (fvisibility-inlines-hidden): Description change.
5222 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5224 Implement C++11 user-defined literals.
5225 * c-common.c (build_userdef_literal): New.
5226 * c-common.def: New tree code.
5227 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5228 * c-lex.c (interpret_float): Add suffix parm.
5229 (c_lex_with_flags): Build literal tokens.
5231 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5235 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5238 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5239 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5240 Wnarrowing for C++0x and C++98.
5241 * c.opt ([Wnarrowing]): Update.
5243 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5246 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5247 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5248 Wnarrowing for C++0x and C++98.
5249 * c.opt ([Wnarrowing]): Update.
5251 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5254 * c-common.c (conversion_warning): Remove code looking for
5255 artificial operands.
5257 2011-10-18 Dodji Seketeli <dodji@redhat.com>
5260 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
5261 !NO_IMPLICIT_EXTERN_C.
5263 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
5265 * c-common.c (c_common_reswords): Add __bases,
5267 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5269 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5272 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5274 2011-10-15 Tom Tromey <tromey@redhat.com>
5275 Dodji Seketeli <dodji@redhat.com>
5277 * c.opt (fdebug-cpp): New option.
5278 * c-opts.c (c_common_handle_option): Handle the option.
5279 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5280 output stream in parameter. Factorized from ...
5281 (maybe_print_line): ... this. Dump location debug information when
5282 -fdebug-cpp is in effect.
5283 (print_line_1): New static function. Takes an output stream in
5284 parameter. Factorized from ...
5285 (print_line): ... here. Dump location information when -fdebug-cpp
5287 (scan_translation_unit): Dump location information when
5288 -fdebug-cpp is in effect.
5290 2011-10-15 Tom Tromey <tromey@redhat.com>
5291 Dodji Seketeli <dodji@redhat.com>
5293 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5295 * c-opts.c (c_common_handle_option)<case
5296 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5297 cases. Handle -ftrack-macro-expansion with and without argument.
5299 2011-10-15 Tom Tromey <tromey@redhat.com>
5300 Dodji Seketeli <dodji@redhat.com>
5302 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5303 (print_line, cb_define, do_line_change): Adjust to avoid touching
5304 the internals of struct line_map. Use the public API instead.
5305 * c-pch.c (c_common_read_pch): Likewise.
5306 * c-lex.c (fe_file_change): Likewise.
5308 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5311 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5313 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5316 * c-pretty-print.c (pp_c_floating_constant): Output
5317 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5319 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5321 * c-common.c (def_builtin_1): Delete old interface with two
5322 parallel arrays to hold standard builtin declarations, and replace
5323 it with a function based interface that can support creating
5324 builtins on the fly in the future. Change all uses, and poison
5325 the old names. Make sure 0 is not a legitimate builtin index.
5326 * c-omp.c (c_finish_omp_barrier): Ditto.
5327 (c_finish_omp_taskwait): Ditto.
5328 (c_finish_omp_flush): Ditto.
5330 2011-10-11 Tristan Gingold <gingold@adacore.com>
5332 * c.opt: (fallow-parameterless-variadic-functions): New.
5334 2011-09-08 Dodji Seketeli <dodji@redhat.com>
5336 PR c++/33255 - Support -Wunused-local-typedefs warning
5337 * c-common.h (struct c_language_function::local_typedefs): New
5339 (record_locally_defined_typedef, maybe_record_typedef_use)
5340 (maybe_warn_unused_local_typedefs): Declare new functions.
5341 * c-common.c (record_locally_defined_typedef)
5342 (maybe_record_typedef_use)
5343 (maybe_warn_unused_local_typedefs): Define new functions.
5344 * c.opt: Declare new -Wunused-local-typedefs flag.
5346 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5349 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5352 2011-09-05 Richard Guenther <rguenther@suse.de>
5354 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5355 of integer_minus_one_node for empty array upper bounds.
5357 2011-08-28 Dodji Seketeli <dodji@redhat.com>
5359 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5360 it's the first time it's being called on this main TU.
5362 2011-08-24 Richard Guenther <rguenther@suse.de>
5365 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5367 2011-08-22 Gabriel Charette <gchare@google.com>
5369 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5370 defined in cpp_init_builtins and c_cpp_builtins.
5372 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5374 * c-common.c (c_common_reswords): Add __builtin_complex.
5375 * c-common.h (RID_BUILTIN_COMPLEX): New.
5377 2011-08-18 Joseph Myers <joseph@codesourcery.com>
5379 * c-common.c (c_common_reswords): Add _Noreturn.
5380 (keyword_is_function_specifier): Handle RID_NORETURN.
5381 * c-common.h (RID_NORETURN): New.
5383 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5385 * c-common.c (unsafe_conversion_p): New function. Check if it is
5386 unsafe to convert an expression to the type.
5387 (conversion_warning): Adjust, use unsafe_conversion_p.
5388 * c-common.h (unsafe_conversion_p): New function declaration.
5390 2011-08-02 Jakub Jelinek <jakub@redhat.com>
5392 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5393 (c_finish_omp_taskyield): New prototype.
5394 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5395 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5396 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5397 or RHS1 have side-effects, evaluate those too in the right spot,
5398 if it is a decl and LHS is also a decl, error out if they
5400 (c_finish_omp_taskyield): New function.
5401 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5402 * c-pragma.c (omp_pragmas): Add taskyield.
5403 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5404 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5405 PRAGMA_OMP_CLAUSE_MERGEABLE.
5407 2011-07-25 Dodji Seketeli <dodji@redhat.com>
5409 * c-common.h (set_underlying_type): Remove parm name from
5412 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
5414 * c-pretty-print.h: Search c-common.h in c-family.
5416 2011-07-22 Jason Merrill <jason@redhat.com>
5419 * c.opt (Wnarrowing): New.
5422 * c-common.h: Declare c_linkage_bindings.
5423 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5426 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5427 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5428 as flag_isoc99 for 'restrict'.
5429 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5431 2011-07-21 Ian Lance Taylor <iant@google.com>
5434 * c-common.c (c_disable_warnings): New static function.
5435 (c_enable_warnings): New static function.
5436 (c_fully_fold_internal): Change local unused_p to bool. Call
5437 c_disable_warnings and c_enable_warnings rather than change
5438 c_inhibit_evaluation_warnings.
5440 2011-07-20 Jason Merrill <jason@redhat.com>
5442 PR c++/6709 (DR 743)
5443 PR c++/42603 (DR 950)
5444 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5445 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5446 (CPP_DECLTYPE): New.
5447 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5449 2011-07-19 Richard Guenther <rguenther@suse.de>
5451 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5452 * c-omp.c (c_finish_omp_for): Likewise.
5454 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5456 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5457 body on the next line.
5459 2011-07-08 Jason Merrill <jason@redhat.com>
5462 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5465 * c-common.c (c_apply_type_quals_to_decl): Don't check
5466 TYPE_NEEDS_CONSTRUCTING.
5468 2011-07-06 Richard Guenther <rguenther@suse.de>
5470 * c-common.c (c_common_nodes_and_builtins):
5471 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5473 2011-07-05 Richard Guenther <rguenther@suse.de>
5475 * c-common.c (c_common_nodes_and_builtins): Build all common
5478 2011-06-27 Jakub Jelinek <jakub@redhat.com>
5480 * c-common.h (c_tree_chain_next): New static inline function.
5482 * c-common.c (check_builtin_function_arguments): Handle
5483 BUILT_IN_ASSUME_ALIGNED.
5485 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
5487 * c-common.c: Add sync_ or SYNC__ to builtin names.
5488 * c-omp.c: Add sync_ or SYNC__ to builtin names.
5490 2011-06-20 Pierre Vittet <piervit@pvittet.com>
5492 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5494 (gen_pragma_handler): New union.
5495 (internal_pragma_handler): New type.
5496 (c_register_pragma_with_data)
5497 (c_register_pragma_with_expansion_and_data): New functions.
5499 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5500 (c_register_pragma, c_register_pragma_with_expansion)
5501 (c_invoke_pragma_handler): Changed to work with
5502 internal_pragma_handler.
5503 (c_register_pragma_with_data)
5504 (c_register_pragma_with_expansion_and_data): New functions.
5506 2011-06-14 Joseph Myers <joseph@codesourcery.com>
5508 * c-common.c: Include common/common-target.h.
5509 (handle_section_attribute): Use
5510 targetm_common.have_named_sections.
5511 * c-cppbuiltin.c: Include common/common-target.h.
5512 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5514 2011-06-10 Richard Guenther <rguenther@suse.de>
5516 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5517 to print a IDENTIFIER_NODE.
5519 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5520 Joseph Myers <joseph@codesourcery.com>
5522 * c.opt (fbuilding-libgcc): New option.
5523 * c-cppbuiltin.c (c_cpp_builtins): Define
5524 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5526 2011-06-07 Jason Merrill <jason@redhat.com>
5528 * c-common.c (max_tinst_depth): Lower default to 900.
5530 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5532 2011-06-07 Richard Guenther <rguenther@suse.de>
5534 * c-common.c (c_common_nodes_and_builtins): Do not set
5535 size_type_node or call set_sizetype.
5537 2011-06-07 Dodji Seketeli <dodji@redhat.com>
5540 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
5541 type when using pointer comparison to compare types.
5543 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5545 * c.opt: Add -Wdelete-non-virtual-dtor.
5546 * c-opts.c (c_common_handle_option): Include it in -Wall.
5548 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5553 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5555 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5558 2011-05-27 Jakub Jelinek <jakub@redhat.com>
5561 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5562 C++ don't call c_common_truthvalue_conversion on void type arms.
5564 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5566 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5567 (stmt_list_stack): Define.
5568 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5569 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5571 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5573 * c-common.c (warning_candidate_p): Check for BLOCKs.
5575 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5577 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5580 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5582 * c-common.c (def_fn_type): Remove extra va_end.
5584 2011-05-23 Jason Merrill <jason@redhat.com>
5587 * c-common.c (c_common_get_narrower): New.
5588 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5590 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5592 * c-common.h (check_function_arguments): Tweak prototype of
5593 check_function_arguments.
5594 * c-common.c (check_function_arguments): Likewise. Adjust
5595 calls to check_function_nonnull, check_function_format, and
5596 check_function_sentinel.
5597 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5598 separate attributes and typelist arguments. Use
5599 FOREACH_FUNCTION_ARGS to iterate over argument types.
5601 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5603 * c-common.c (c_common_reswords): Reorder.
5604 * c-common.h (rid): Likewise.
5606 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5608 * c-common.c (def_fn_type): Don't call build_function_type, call
5609 build_function_type_array or build_varargs_function_type_array
5611 (c_common_nodes_and_builtins): Likewise.
5613 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5615 * c-common.c (c_add_case_label): Omit the loc argument to
5617 * c-common.h (build_case_label): Remove.
5618 * c-semantics.c (build_case_label): Remove.
5620 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5622 * c-objc.h (objc_start_method_definition): Update prototype.
5623 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5625 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5627 * c-common.c (check_main_parameter_types): Reindent. Don't use
5628 TYPE_ARG_TYPES directly.
5629 (handle_nonnull_attribute): Likewise.
5630 (sync_resolve_params): Likewise.
5631 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5632 to check_format_string.
5633 (handle_format_attribute): Likewise.
5634 (check_format_string): Take a function type to examine instead of
5635 a type list. Use a function_arg_iterator to step through argument
5638 2011-05-04 Richard Guenther <rguenther@suse.de>
5640 * c-common.c (fix_string_type): Use size_int for index type bounds.
5641 (start_fname_decls): Do not pass NULL to build_int_cst.
5642 (c_init_attributes): Likewise.
5643 * c-lex.c (c_lex_with_flags): Likewise.
5645 2011-04-27 Jason Merrill <jason@redhat.com>
5647 * c-common.c (make_tree_vector_from_list): New.
5648 * c-common.h: Declare it.
5650 2011-04-26 Richard Guenther <rguenther@suse.de>
5652 PR preprocessor/48248
5653 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5654 for output size with -P.
5656 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5658 * c-common.c (struct c_common_resword): Add __underlying_type.
5659 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5661 2011-04-20 Jim Meyering <meyering@redhat.com>
5663 * c-format.c (init_dollar_format_checking): Remove useless
5666 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5668 * c-objc.h (objc_get_interface_ivars): Removed.
5669 (objc_detect_field_duplicates): New.
5670 * stub-objc.c: Likewise.
5672 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5674 * stub-objc.c (objc_declare_protocols): Renamed to
5675 objc_declare_protocol.
5676 * c-objc.h: Likewise.
5678 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5680 * stub-objc.c (objc_declare_class): Updated argument name.
5682 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5684 * c-common.h (c_common_init_ts): Declare.
5685 * c-common.c (c_common_init_ts): Define.
5687 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5689 * c-objc.h (objc_build_message_expr): Updated prototype.
5690 * stub-objc.c (objc_build_message_expr): Likewise.
5692 2011-04-12 Martin Jambor <mjambor@suse.cz>
5694 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5697 2011-04-11 Richard Guenther <rguenther@suse.de>
5699 * c-common.c (complete_array_type): Build a range type of
5702 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5704 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5705 (handle_type_generic_attribute): Likewise.
5707 2011-04-07 Jason Merrill <jason@redhat.com>
5710 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5711 conversion from C++0x scoped enum.
5713 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5715 * c-target-def.h: New file.
5716 * c-target.def: New file.
5717 * c-target.h: New file.
5718 * c-common.c (targetcm): Don't define here.
5719 * c-common.h (default_handle_c_option): Declare.
5720 * c-format.c: Include c-target.h instead of target.h.
5721 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5723 (default_handle_c_option): Move from targhooks.c.
5725 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5727 PR preprocessor/48248
5728 * c-ppoutput.c (print): Add src_file field.
5729 (init_pp_output): Initialize it.
5730 (maybe_print_line): Don't optimize by adding up to 8 newlines
5731 if map->to_file and print.src_file are different file.
5732 (print_line): Update print.src_file.
5734 2011-03-25 Kai Tietz <ktietz@redhat.com>
5736 * c-ada-spec.c (compare_comment): Use filename_cmp
5737 instead of strcmp for filename.
5739 2011-03-25 Jeff Law <law@redhat.com>
5741 * c-common.c (def_fn_type): Add missing va_end.
5743 2011-03-25 Jason Merrill <jason@redhat.com>
5745 * c.opt: Add -std=c++03.
5747 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5749 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5751 2011-03-17 Kai Tietz
5754 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5755 Display allowed attributes for function pointer types.
5756 (pp_c_attributes_display): New function to display
5757 attributes having affects_type_identity flag set to true.
5758 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5760 * c-common.c (c_common_attribute_table):
5762 (c_common_format_attribute_table): Likewise.
5764 2011-03-18 Jason Merrill <jason@redhat.com>
5766 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5767 * c-common.h: Don't declare it here.
5768 * c-common.c: Or define it here.
5769 * c-opts.c (c_common_handle_option): Or set it here.
5772 * c-common.c (handle_transparent_union_attribute): Don't
5773 make a duplicate type in C++.
5775 2011-03-15 Jason Merrill <jason@redhat.com>
5777 * c-common.c (max_constexpr_depth): New.
5778 * c-common.h: Declare it.
5779 * c-opts.c (c_common_handle_option): Set it.
5780 * c.opt (fconstexpr-depth): New option.
5782 2011-03-11 Jason Merrill <jason@redhat.com>
5784 * c-common.c (attribute_takes_identifier_p): Add missing const.
5787 * c-common.c (attribute_takes_identifier_p): Assume that an
5788 unknown attribute takes an identifier.
5790 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5793 * c-common.c (c_type_hash): Call list_length instead of iterating
5794 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5796 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5799 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5801 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5803 * c.opt (fobjc-abi-version=) New.
5804 (fobjc-nilcheck): New.
5806 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5809 * c-common.h (keyword_is_decl_specifier): Declare.
5810 * c-common.c (keyword_is_decl_specifier): Define.
5811 (keyword_is_function_specifier): New function.
5813 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5816 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5817 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5820 2011-01-26 Arnaud Charlet <charlet@adacore.com>
5822 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5824 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5827 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5828 after init_c_lex if pch_file is set.
5830 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5833 * c.opt (-fkeep-inline-dllexport): New switch.
5835 2011-01-12 Richard Guenther <rguenther@suse.de>
5838 * c-common.c (handle_weak_attribute): Warn instead of error
5839 on declaring an inline function weak.
5841 2011-01-05 Tom Tromey <tromey@redhat.com>
5843 * c-common.h (lvalue_error): Update.
5844 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5847 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
5850 * c-objc.h (objc_finish_message_expr): Added argument to
5853 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5855 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5858 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5860 * c-objc.h (objc_maybe_warn_exceptions): New.
5861 * stub-objc.c (objc_maybe_warn_exceptions): New.
5863 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5865 * c-common.h (readonly_error): Declare.
5866 * c-common.c (readonly_error): Define.
5868 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5870 * c-common.h (invalid_indirection_error): Declare.
5871 * c-common.c (invalid_indirection_error): Define.
5873 2010-12-03 Richard Guenther <rguenther@suse.de>
5876 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5877 (pp_c_unary_expression): Likewise.
5878 (pp_c_expression): Likewise.
5880 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5882 * c-common.h (objc_finish_function): New.
5883 (objc_non_volatilized_type): Removed.
5884 (objc_type_quals_match): Removed.
5885 * stub-objc.c (objc_finish_function): New.
5886 (objc_non_volatilized_type): Removed.
5887 (objc_type_quals_match): Removed.
5889 2010-11-30 Joseph Myers <joseph@codesourcery.com>
5891 * c-common.h (parse_optimize_options): Declare.
5892 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5893 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5895 2010-11-29 Joseph Myers <joseph@codesourcery.com>
5897 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5899 * c-pch.c (O_BINARY): Don't define here.
5900 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5902 2010-11-25 Joseph Myers <joseph@codesourcery.com>
5904 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5905 targetm.except_unwind_info.
5907 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5909 * c-opts.c (c_common_handle_option): Pass location to
5910 set_struct_debug_option.
5912 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5914 * c-common.c (visibility_options): Move from ../opts.c.
5915 * c-common.h (struct visibility_flags, visibility_options):
5917 * c-opts.c (finish_options): Rename to c_finish_options.
5918 (c_common_init): Update call to finish_options.
5920 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5923 * c-lex.c (lex_string): Check that each string in an Objective-C
5924 string concat sequence starts with either one or zero '@', and
5925 that there are no spurious '@' signs at the end.
5927 2010-11-20 Joseph Myers <joseph@codesourcery.com>
5929 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5930 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5931 HANDLE_PRAGMA_VISIBILITY.
5932 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5933 HANDLE_PRAGMA_VISIBILITY): Don't define.
5934 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5936 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5941 * c-common.h (keyword_begins_type_specifier): Declare.
5942 (keyword_is_storage_class_specifier): Declare.
5943 (keyword_is_type_qualifier): Declare.
5944 * c-common.c (keyword_begins_type_specifier): New function.
5945 (keyword_is_storage_class_specifier): New function.
5946 (keyword_is_type_qualifier): Declare.
5948 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5951 * c-common.c (in_late_binary_op): Define.
5952 (c_common_truthvalue_conversion): Check in_late_binary_op before
5953 calling c_save_expr.
5954 * c-common.h (in_late_binary_op): Declare.
5956 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5958 * c-opts.c (c_common_handle_option): Update calls to
5959 set_struct_debug_option.
5961 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5963 * c-common.h (objc_declare_protocols): Added additional argument.
5964 * stub-objc.c (objc_declare_protocol): Same change.
5966 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5969 * c-common.h (build_real_imag_expr): Declare.
5970 * c-semantics.c (build_real_imag_expr): Define.
5972 2010-11-17 Joseph Myers <joseph@codesourcery.com>
5974 * c-opts.c (c_common_parse_file): Take no arguments.
5975 * c-common.h (c_common_parse_file): Update prototype.
5977 2010-11-16 Jakub Jelinek <jakub@redhat.com>
5980 * c-common.c (warning_candidate_p): Don't track non-const calls
5983 2010-11-15 Ian Lance Taylor <iant@google.com>
5985 * c-lex.c (init_c_lex): Set macro debug callbacks if
5986 flag_dump_go_spec is set.
5988 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5990 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5991 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5993 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5995 PR preprocessor/45038
5996 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5999 2010-11-12 Joseph Myers <joseph@codesourcery.com>
6001 * c-common.h (c_family_lang_mask): Declare.
6002 * c-opts.c (c_family_lang_mask): Make extern.
6003 * c-pragma.c (handle_pragma_diagnostic): Use
6004 control_warning_option.
6006 2010-11-12 Joseph Myers <joseph@codesourcery.com>
6008 * c-common.c (parse_optimize_options): Update call to
6010 * c-common.h (c_common_handle_option): Update prototype.
6011 * c-opts.c (c_common_handle_option): Take location_t parameter and
6012 pass it to other functions.
6014 2010-11-11 Joseph Myers <joseph@codesourcery.com>
6016 * c-opts.c (warning_as_error_callback): Remove.
6017 (c_common_initialize_diagnostics): Don't call
6018 register_warning_as_error_callback.
6019 (c_common_handle_option): Handle -Werror=normalized= here.
6021 2010-11-10 Joseph Myers <joseph@codesourcery.com>
6023 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6025 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6027 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6028 Remove trailing '.' from diagnostics.
6029 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6031 2010-11-10 Joseph Myers <joseph@codesourcery.com>
6033 * c-common.c (parse_optimize_options): Pass global_dc to
6035 * c-opts.c (c_common_handle_option): Pass &global_options to
6036 set_Wstrict_aliasing.
6037 * c.opt (v): Don't mark Common or document here.
6039 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6042 * c-format.c (format_type): New type gcc_objc_string_format_type.
6043 (valid_stringptr_type_p): New.
6044 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
6045 (check_format_string): Pass expected type, use
6046 valid_stringptr_type_p (), check that the format string types are
6047 consistent with the format specification.
6048 (decode_format_attr): Warn if NSString is used outside objective-c.
6049 (format_types_orig): Add NSString.
6051 (format_flags): New.
6052 (check_format_arg): Handle format strings requiring an external parser.
6053 first_target_format_type: New variable.
6054 (handle_format_attribute): Set up first_target_format_type, pass the
6055 expected format arg string type to check_format_string().
6056 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6057 * stub-objc.c (objc_string_ref_type_p): New.
6058 (objc_check_format_arg): New.
6060 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6062 Fixed using the Objective-C 2.0 dot-syntax with class names.
6063 * c-common.h (objc_build_class_component_ref): New.
6064 * stub-objc.c (objc_build_class_component_ref): New.
6066 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6068 * c.opt (Wproperty-assign-default): New option.
6070 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6072 Implemented -fobjc-std=objc1 flag.
6073 * c.opt (fobjc-std=objc1): New option.
6075 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6077 Implemented format and noreturn attributes for Objective-C methods.
6078 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6079 attribute for Objective-C methods.
6081 2010-10-31 Jason Merrill <jason@redhat.com>
6083 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6086 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6088 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6089 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6090 (objc_add_property_declaration): Removed arguments for copies and
6092 (objc_build_getter_call): Renamed to
6093 objc_maybe_build_component_ref.
6094 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6095 (objc_is_property_ref): New.
6096 * c-common.c (c_common_reswords): Removed copies and ivar.
6097 * stub-objc.c (objc_add_property_declaration): Removed arguments
6098 for copies and ivar.
6099 (objc_build_getter_call): Renamed to
6100 objc_maybe_build_component_ref.
6101 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6102 (objc_is_property_ref): New.
6104 2010-10-29 Arnaud Charlet <charlet@adacore.com>
6105 Matthew Gingell <gingell@adacore.com>
6107 * c-ada-spec.c (separate_class_package): New function.
6108 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6109 name of their enclosing package.
6110 (print_ada_declaration): Use separate_class_package.
6112 2010-10-27 Jason Merrill <jason@redhat.com>
6114 * c-common.c (c_common_reswords): Add __is_literal_type.
6115 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6117 * c-common.c (check_case_value): Remove special C++ code.
6119 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6121 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6122 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6124 (objc_add_property_declaration): Added additional arguments.
6125 (objc_property_attribute_kind): Removed.
6126 (objc_set_property_attr): Removed.
6127 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6129 * stub-objc.c (objc_add_property_declaration): Added additional
6131 (objc_set_property_attr): Removed.
6133 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6135 * c-common.h (objc_add_property_variable): Renamed to
6136 objc_add_property_declaration. Added location argument.
6137 * stub-objc.c (objc_add_property_variable): Same change.
6139 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6141 * c-common.h (objc_maybe_printable_name): New.
6142 * stub-objc.c (objc_maybe_printable_name): New.
6144 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6145 Andrew Pinski <pinskia@gmail.com>
6147 * c-common.h (c_common_mark_addressable_vec): Declare.
6148 * c-common.c (c_common_mark_addressable_vec): New function.
6150 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6152 * c-common.h (objc_set_method_type): Removed.
6153 (objc_add_method_declaration): Added boolean argument.
6154 (objc_start_method_definition): Same change.
6155 (objc_build_method_signature): Same change.
6156 * stub-objc.c (objc_set_method_type): Removed.
6157 (objc_add_method_declaration): Added boolean argument.
6158 (objc_start_method_definition): Same change.
6159 (objc_build_method_signature): Same change.
6161 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6163 * c-common.h (finish_file): Removed.
6164 (objc_write_global_declarations): New.
6165 * c-opts.c (c_common_parse_file): Do not call finish_file.
6166 * stub-objc.c (objc_write_global_declarations): New.
6168 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6170 Implemented parsing @synthesize and @dynamic for
6171 Objective-C/Objective-C++.
6172 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6173 (objc_add_synthesize_declaration): New.
6174 (objc_add_dynamic_declaration): New.
6175 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6176 * stub-objc.c (objc_add_synthesize_declaration): New.
6177 (objc_add_dynamic_declaration): New.
6179 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6182 * c-cppbuiltin.c (mode_has_fma): Move function here from
6183 builtins.c. Don't use the fma optab, instead just use the
6184 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6187 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6189 Merge from 'apple/trunk' branch on FSF servers.
6191 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
6194 * c-common.h (objc_non_volatilized_type): New declaration
6195 * stub-objc.c (objc_non_volatilized_type): New stub.
6197 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6199 Merge from 'apple/trunk' branch on FSF servers.
6201 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
6204 * c-common.h (objc_diagnose_private_ivar): New decl.
6205 * stub-objc.c (objc_diagnose_private_ivar): New stub.
6207 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6209 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6210 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6211 (objc_ivar_visibility_kind): New enum.
6212 (objc_set_visibility): Adjust prototype to use visibility enum.
6213 * stub-objc.c (objc_set_visibility): Adjust stub to use
6216 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6218 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6219 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6220 has the appropriate fma builtins.
6221 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6223 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6225 merge from FSF apple 'trunk' branch.
6226 2006 Fariborz Jahanian <fjahanian@apple.com>
6228 Radars 4436866, 4505126, 4506903, 4517826
6229 * c-common.c (c_common_resword): Define @property and its attributes.
6230 * c-common.h: Define property attribute enum entries.
6231 (OBJC_IS_PATTR_KEYWORD): New.
6232 (objc_property_attribute_kind): New enum.
6233 Declare objc_set_property_attr (), objc_add_property_variable (),
6234 objc_build_getter_call () and objc_build_setter_call ().
6235 * stub-objc.c (objc_set_property_attr): New stub.
6236 (objc_add_property_variable): Likewise.
6237 (objc_build_getter_call): Likewise.
6238 (objc_build_setter_call) Likewise.
6240 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6242 merge from FSF apple 'trunk' branch.
6243 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
6245 Radar 3803157 (method attributes)
6246 * c-common.c (handle_deprecated_attribute): Recognize
6247 objc methods as valid declarations.
6248 * c-common.h: Declare objc_method_decl ().
6249 * stub-objc.c (objc_method_decl): New stub.
6251 2010-10-08 Joseph Myers <joseph@codesourcery.com>
6253 * c-common.c (parse_optimize_options): Call
6254 decode_cmdline_options_to_array_default_mask before
6255 decode_options. Update arguments to decode_options.
6256 * c-common.h (c_common_init_options_struct): Declare.
6257 * c-opts.c (c_common_init_options_struct): New. Split out from
6258 c_common_init_options.
6260 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6262 Implemented fast enumeration for Objective-C.
6263 * c-common.h (objc_finish_foreach_loop): New.
6264 * stub-objc.c (objc_finish_foreach_loop): New.
6266 2010-10-05 Joseph Myers <joseph@codesourcery.com>
6268 * c-common.h (struct diagnostic_context): Don't declare here.
6269 (c_common_initialize_diagnostics): Declare using
6270 diagnostic_context typedef.
6271 * c-opts.c (c_common_handle_option): Pass global_dc to
6272 handle_generated_option.
6274 2010-10-04 Joseph Myers <joseph@codesourcery.com>
6276 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6277 handle_generated_option.
6279 2010-10-03 Ian Lance Taylor <iant@google.com>
6281 * c.opt (-fplan9-extensions): New option.
6283 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6285 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6287 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6288 of duplicating code.
6290 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6292 * c-common.c: Add two new entries for @optional
6293 and @required keywords.
6295 merge from FSF 'apple/trunk' branch.
6296 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
6299 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6300 objective-c keywords.
6301 (objc_set_method_opt): New declaration.
6302 * stub-objc.c (objc_set_method_opt): New stub.
6304 2010-09-30 Joseph Myers <joseph@codesourcery.com>
6306 * c-common.c (handle_optimize_attribute): Pass &global_options to
6307 cl_optimization_save and cl_optimization_restore.
6308 * c-opts.c (c_common_handle_option): Pass &global_options to
6309 handle_generated_option.
6310 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6311 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6312 &global_options to cl_optimization_restore.
6314 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6316 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6317 Objective-C/Objective-C++ keywords.
6319 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6321 Merge from 'apple/trunk' branch on FSF servers.
6323 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
6326 * c-common.h (objc_check_global_decl): New declaration.
6327 * stub-objc.c (objc_check_global_decl): New stub.
6329 2010-09-29 Joseph Myers <joseph@codesourcery.com>
6331 * c.opt: Don't use VarExists.
6333 2010-09-29 Joseph Myers <joseph@codesourcery.com>
6335 * c-common.c (c_cpp_error): Update names of diagnostic_context
6337 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6338 cl_optimization members.
6339 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6340 sanitize_cpp_opts, finish_options): Update names of cpp_options
6343 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6345 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6346 (objc_is_reserved_word): Removed.
6347 * c-common.c: Updated comments.
6348 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6349 objc_is_reserved_word.
6350 * stub-objc.c (objc_is_reserved_word): Removed.
6352 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6354 * c-common.h (objc_add_method_declaration): Adjust prototype to
6356 (objc_start_method_definition): Likewise.
6357 (objc_build_keyword_decl): Likewise.
6358 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6359 (objc_start_method_definition): Likewise.
6360 (objc_build_keyword_decl): Likewise.
6362 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6364 * c-common.h (objc_start_class_interface): Adjust prototype.
6365 (objc_start_category_interface): Likewise.
6366 (objc_start_protocol): Likewise.
6367 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6368 (objc_start_class_interface): Likewise.
6369 (objc_start_category_interface): Likewise.
6371 2010-09-27 Ian Lance Taylor <iant@google.com>
6373 * c-common.c (c_common_attribute_table): Add no_split_stack.
6374 (handle_no_split_stack_attribute): New static function.
6376 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6378 Merge from 'apple/trunk' branch on FSF servers.
6380 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
6383 * c-common.h (objc_have_common_type): New declaration.
6384 * stub-objc.c (objc_have_common_type): New stub.
6386 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6389 * c-common.h (objc_common_type): New prototype.
6390 * stub-objc.c (objc_common_type): New stub.
6392 2010-09-24 Jan Hubicka <jh@suse.cz>
6394 * c-common.c (handle_leaf_attribute): New function.
6395 (struct attribute_spec c_common_att): Add leaf.
6397 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6399 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6400 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6401 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6402 -include-barrier, -include-directory, -include-directory=,
6403 -include-directory-after, -include-directory-after=,
6404 -include-prefix, -include-prefix=, -include-with-prefix,
6405 -include-with-prefix=, -include-with-prefix-after,
6406 -include-with-prefix-after=, -include-with-prefix-before,
6407 -include-with-prefix-before=, -no-integrated-cpp,
6408 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6409 -output=, -pedantic, -pedantic-errors, -preprocess,
6410 -print-missing-file-dependencies, -trace-includes, -traditional,
6411 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6412 -user-dependencies, -verbose, -write-dependencies,
6413 -write-user-dependencies, no-integrated-cpp, traditional): New.
6415 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6418 * c-common.h (objc_start_method_definition): Return bool instead
6420 * stub-objc.c (objc_start_method_definition): Return bool instead
6423 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6426 * c-common.h (objc_get_interface_ivars): New declaration.
6427 * stub-objc.c (objc_get_interface_ivars): New stub.
6429 2010-09-15 Ian Lance Taylor <iant@google.com>
6431 * c-common.c (parse_optimize_options): Do not capitalize warning
6432 messages. Remove period at end of warning message.
6434 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6436 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6437 (handle_alias_attribute): ... here.
6438 (handle_ifunc_attribute): New.
6440 2010-09-06 Mark Mitchell <mark@codesourcery.com>
6442 * c-common.h (do_warn_double_promotion): Declare.
6443 * c-common.c (do_warn_double_promotion): Define.
6445 2010-09-05 Mark Mitchell <mark@codesourcery.com>
6447 * c.opt (Wdouble-promotion): New.
6449 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6451 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6452 fvtable-thunks, fxref): Mark no longer supported in help text.
6454 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6456 * c.opt (Wimport, fall-virtual, falt-external-templates,
6457 fdefault-inline, fenum-int-equiv, fexternal-templates,
6458 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6459 fname-mangling-version-, fnew-abi, fnonnull-objects,
6460 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6461 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6463 (fhandle-exceptions): Mark with Alias and Warn.
6464 * c-opts.c (c_common_handle_option): Don't handle options marked
6467 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6469 * c.opt (Wcomments, Werror-implicit-function-declaration,
6470 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6471 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6473 * c-common.c (option_codes): Use OPT_Wcomment instead of
6475 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6476 Don't handle options marked as aliases.
6478 2010-08-25 Richard Guenther <rguenther@suse.de>
6480 * c-common.c (c_common_get_alias_set): Remove special
6481 handling for pointers.
6483 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6485 * c-common.c: Use FOR_EACH_VEC_ELT.
6486 * c-gimplify.c: Likewise.
6487 * c-pragma.c: Likewise.
6489 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6491 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6493 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6495 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6496 instead of OPT_MDX and OPT_MMDX.
6498 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6500 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6502 2010-08-12 Joseph Myers <joseph@codesourcery.com>
6504 * c.opt (MD, MMD): Change to MDX and MMDX.
6505 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6507 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6509 * c-opts.c (c_common_handle_option): Call handle_generated_option
6510 instead of handle_option.
6512 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6514 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6515 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6517 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6519 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6520 (pending_redefine_extname): Change type to a VEC.
6521 (add_to_renaming_pragma_list): Update for new type of
6522 pending_redefine_extname.
6523 (maybe_apply_renaming_pragma): Likewise.
6525 2010-08-04 Arnaud Charlet <charlet@adacore.com>
6527 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6529 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6530 decide whether a type has already been declared/seen.
6531 Do not go to the original type.
6532 (dump_nested_types): New parameter forward.
6533 Generate forward declaration if needed and mark type as visited.
6534 (print_ada_declaration): Call dump_nested_types if not already done.
6535 Mark types as visited.
6537 2010-08-03 Joseph Myers <joseph@codesourcery.com>
6539 * c.opt (-print-pch-checksum): Remove option.
6540 * c-opts.c (c_common_handle_option): Don't handle
6541 OPT_print_pch_checksum.
6543 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6545 * c-common.h (c_common_handle_option): Update prototype and return
6547 * c-opts.c (c_common_handle_option): Update prototype and return
6548 value type. Update calls to handle_option and
6549 enable_warning_as_error.
6551 2010-07-27 Jakub Jelinek <jakub@redhat.com>
6554 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6556 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6558 * c-common.h (c_common_missing_argument): Remove.
6559 * c-opts.c (c_common_missing_argument): Remove.
6560 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6561 idirafter, imacros, include, isysroot, isystem, iquote): Add
6563 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6565 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6567 * c-common.h (c_common_option_lang_mask,
6568 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6570 (c_common_init_options): Update prototype.
6571 * c-opts.c (c_common_option_lang_mask): New.
6572 (c_common_initialize_diagnostics): Split out of
6573 c_common_init_options.
6574 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6576 (c_common_init_options): Update prototype. Use decoded options in
6577 search for -lang-asm.
6579 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6581 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6582 * c-format.c: Likewise.
6584 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6586 * c-common.h: Include diagnostic-core.h. Error if already
6588 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6590 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6592 * c-common.c (IN_GCC_FRONTEND): Do not undef.
6593 Do not include expr.h
6594 (vector_mode_valid_p): Move here.
6596 2010-06-21 DJ Delorie <dj@redhat.com>
6598 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6599 allow these pragmas anywhere.
6601 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6604 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6605 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6606 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6607 ggc_strdup instead of xstrdup.
6609 2010-06-10 Jakub Jelinek <jakub@redhat.com>
6611 * c-cppbuiltin.c: Include cpp-id-data.h.
6612 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6613 (lazy_hex_fp_value): New function.
6614 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6616 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6618 * c-gimplify.c: Do not include tree-flow.h
6620 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6623 * c-common.c: Rename targetm member:
6624 targetm.enum_va_list -> targetm.enum_va_list_p
6626 2010-06-28 Anatoly Sokolov <aesok@post.ru>
6628 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6630 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6632 * c-cppbuiltin.c: Do not include except.h.
6634 2010-06-24 Andi Kleen <ak@linux.intel.com>
6636 * c-common.c (warn_for_omitted_condop): New.
6637 * c-common.h (warn_for_omitted_condop): Add prototype.
6639 2010-06-21 Joseph Myers <joseph@codesourcery.com>
6641 * c.opt (lang-objc): Remove.
6642 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6644 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6646 * c-opts.c: Include "tm_p.h".
6648 2010-06-20 Joseph Myers <joseph@codesourcery.com>
6650 * c-common.c (parse_optimize_options): Update call to
6653 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6655 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6656 new type of types_used_by_cur_var_decl.
6658 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6661 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6662 for C++ standard compliance.
6664 2010-06-16 Jason Merrill <jason@redhat.com>
6666 * c.opt: Add -Wnoexcept.
6668 2010-06-16 Richard Guenther <rguenther@suse.de>
6671 * c-common.c (c_common_truthvalue_conversion): Remove
6672 premature and wrong optimization concering ADDR_EXPRs.
6674 2010-06-15 Arnaud Charlet <charlet@adacore.com>
6676 * c-ada-spec.c (dump_sloc): Remove column info.
6677 (is_simple_enum): New function.
6678 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6679 enum types when relevant.
6681 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6683 * c-common.c (conversion_warning): Warn at expression
6686 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6688 * c-opts.c (c_common_handle_option): Don't handle
6691 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6693 * c-pragma.c (push_alignment): Use typed GC allocation.
6694 (handle_pragma_push_options): Likewise.
6696 * c-common.c (parse_optimize_options): Likewise.
6698 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6701 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6703 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6704 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6705 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6706 flag_signed_bitfields, warn_strict_null_sentinel,
6707 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6708 flag_gen_declaration, flag_no_gnu_keywords,
6709 flag_implement_inlines, flag_implicit_templates,
6710 flag_implicit_inline_templates, flag_optional_diags,
6711 flag_elide_constructors, flag_default_inline, flag_rtti,
6712 flag_conserve_space, flag_access_control, flag_check_new,
6713 flag_new_for_scope, flag_weak, flag_working_directory,
6714 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6715 flag_enforce_eh_specs, flag_threadsafe_statics,
6716 flag_pretty_templates): Remove.
6717 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6718 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6719 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6720 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6721 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6722 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6723 flag_no_gnu_keywords, flag_implement_inlines,
6724 flag_implicit_templates, flag_implicit_inline_templates,
6725 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6726 flag_rtti, flag_conserve_space, flag_access_control,
6727 flag_check_new, flag_new_for_scope, flag_weak,
6728 flag_working_directory, flag_use_cxa_atexit,
6729 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6730 flag_threadsafe_statics, flag_pretty_templates,
6731 warn_strict_null_sentinel): Remove.
6732 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6733 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6734 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6735 fimplicit-inline-templates, fimplicit-templates,
6736 flax-vector-conversions, fms-extensions, fnil-receivers,
6737 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6738 frtti, fshort-double, fshort-enums, fshort-wchar,
6739 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6740 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6741 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6742 gen-decls, undef): Use Var.
6743 (fdefault-inline, foptional-diags): Document as doing nothing.
6744 * c-opts.c (c_common_handle_option): Remove cases for options now
6745 using Var. Mark ignored options as such.
6747 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6749 * c-common.c: Moved to here from parent directory.
6750 * c-common.def: Likewise.
6751 * c-common.h: Likewise.
6752 * c-cppbuiltin.c: Likewise.
6753 * c-dump.c: Likewise.
6754 * c-format.c: Likewise.
6755 * c-format.h : Likewise.
6756 * c-gimplify.c: Likewise.
6757 * c-lex.c: Likewise.
6758 * c-omp.c: Likewise.
6760 * c-opts.c: Likewise.
6761 * c-pch.c: Likewise.
6762 * c-ppoutput.c: Likewise.
6763 * c-pragma.c: Likewise.
6764 * c-pragma.h: Likewise.
6765 * c-pretty-print.c: Likewise.
6766 * c-pretty-print.h: Likewise.
6767 * c-semantics.c: Likewise.
6768 * stub-objc.c: Likewise.
6770 * c-common.c: Include gt-c-family-c-common.h.
6771 * c-pragma.c: Include gt-c-family-c-pragma.h.
6773 Copyright (C) 2010-2016 Free Software Foundation, Inc.
6775 Copying and distribution of this file, with or without modification,
6776 are permitted in any medium without royalty provided the copyright
6777 notice and this notice are preserved.