1 2016-09-13 Jason Merrill <jason@redhat.com>
3 * c-common.c (check_cxx_fundamental_alignment_constraints): Don't
6 2016-09-12 Jason Merrill <jason@redhat.com>
8 * c-common.c (check_cxx_fundamental_alignment_constraints): Fix
9 bit/byte confusion, allow large alignment for types.
11 2016-09-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
14 * c-common.c (warn_for_omitted_condop): Also warn for boolean data.
16 2016-09-12 David Malcolm <dmalcolm@redhat.com>
19 * c-format.c (argument_parser::check_argument_type): Add params
20 "type_start" and "conversion_char". Use the former to generate
21 offset_to_type_start and pass it and conversion_char to
23 (check_format_info_main): Capture the start of the type
24 information as "type_start", and pass it an format_char
25 to arg_parser.check_argument_type.
26 (check_format_types): Provide an example in the leading comment.
27 Add params "offset_to_type_start" and "conversion_char"; pass
28 them to format_type_warning calls.
29 (test_get_modifier_for_format_len): Likewise.
30 (matching_type_p): New function.
31 (get_format_for_type): Add param "conversion_char" and move
32 implementation into...
33 (get_format_for_type_1): ...new function, called twice.
34 Use new function matching_type_p rather than checking for
35 TYPE_CANONICAL equality.
36 (get_corrected_substring): New function.
37 (format_type_warning): Provide an example in the leading comment.
38 Add params "offset_to_type_start" and "conversion_char". Replace
39 call to get_format_for_type with call to get_corrected_substring
40 and move rejection of hints for widths/precisions there.
41 (assert_format_for_type_streq): Add param "conversion_char".
42 (ASSERT_FORMAT_FOR_TYPE_STREQ): Add param CONVERSION_CHAR.
43 (test_get_format_for_type_printf): Add conversion chars to the
44 tests, adding coverage for various combinations of integer
45 vs double conversions, and for preserving octal and hexadecimal
47 (test_get_format_for_type_scanf): Add conversion chars to the
50 2016-09-10 Tom de Vries <tom@codesourcery.com>
53 * c-common.c (build_va_arg): Handle more strict
54 targetm.canonical_va_list_type. Replace first argument type error with
57 2016-09-09 Martin Sebor <msebor@redhat.com>
61 * c-format.c (argument_parser::find_format_char_info): Use %qc
62 format directive unconditionally.
64 2016-09-09 Jason Merrill <jason@redhat.com>
66 Implement C++17 new of over-aligned types.
67 * c.opt: Add -faligned-new and -Waligned-new.
68 * c-common.c (max_align_t_align): Split out from...
69 (cxx_fundamental_alignment_p): ...here.
70 * c-common.h: Declare it.
71 * c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
73 2016-09-09 Joseph Myers <joseph@codesourcery.com>
75 * c-cppbuiltin.c (builtin_define_type_width): New function.
76 (builtin_define_stdint_macros, c_cpp_builtins): Define type width
79 2016-09-07 David Malcolm <dmalcolm@redhat.com>
81 * c-common.c (get_cpp_ttype_from_string_type): Handle being passed
83 (substring_loc::get_location): Move to substring-locations.c,
84 keeping implementation as...
85 (c_get_substring_location): New function, from the above, reworked
86 to use accessors rather than member lookup.
87 * c-common.h (class substring_loc): Move to substring-locations.h,
88 replacing with a forward decl.
89 (c_get_substring_location): New decl.
90 * c-format.c: Include "substring-locations.h".
91 (format_warning_va): Move to substring-locations.c.
92 (format_warning_at_substring): Likewise.
94 2016-09-06 Martin Sebor <msebor@redhat.com>
97 * c-format.c (check_function_format): Avoid issuing warnings for
98 functions unless they call format functions with non-constant
101 2016-09-06 Richard Biener <rguenther@suse.de>
104 * c-common.c (c_common_mark_addressable_vec): Handle
105 COMPOUND_LITERAL_EXPR.
107 2016-09-05 Marek Polacek <polacek@redhat.com>
110 * c-common.c (bool_promoted_to_int_p): New function.
111 (expr_has_boolean_operands_p): New function.
112 (warn_logical_not_parentheses): Return if expr_has_boolean_operands_p.
113 (maybe_warn_bool_compare): Use bool_promoted_to_int_p.
115 2016-09-04 Tom de Vries <tom@codesourcery.com>
118 2016-08-29 Tom de Vries <tom@codesourcery.com>
120 * c-common.c (build_va_arg): Replace first argument type error
123 2016-09-02 Jakub Jelinek <jakub@redhat.com>
126 * c-omp.c (c_finish_omp_atomic): Reject _Atomic qualified expressions.
127 (c_finish_omp_for): Reject _Atomic qualified iterators.
129 2016-09-01 Martin Sebor <msebor@redhat.com>
131 * c-ada-spec.c (dump_ada_function_declaration): Increase buffer
132 size to guarantee it fits the output of the formatted function
133 regardless of its arguments.
135 2016-09-01 Marek Polacek <polacek@redhat.com>
138 * c-common.c (resolve_overloaded_builtin): Fix formatting. Add
141 2016-08-29 Marek Polacek <polacek@redhat.com>
144 * c-common.c (warn_logical_not_parentheses): Don't warn for
145 a comparison or a logical operator.
147 2016-08-29 Tom de Vries <tom@codesourcery.com>
149 * c-common.c (build_va_arg): Fix type comparison assert.
151 2016-08-29 Tom de Vries <tom@codesourcery.com>
153 * c-common.c (build_va_arg): Replace first argument type error
156 2016-08-29 Tom de Vries <tom@codesourcery.com>
159 * c-common.c (build_va_arg): Add first argument error. Build va_arg
160 with error_mark_node as va_list instead of with illegal va_list.
162 2016-08-25 Marek Polacek <polacek@redhat.com>
163 David Malcolm <dmalcolm@redhat.com>
165 * c-common.c (warn_logical_not_parentheses): Print fixit hints.
166 * c-common.h (warn_logical_not_parentheses): Update declaration.
168 2016-08-22 Marek Polacek <polacek@redhat.com>
171 * c-common.c (warn_for_memset): Check type for null.
173 2016-08-22 Joseph Myers <joseph@codesourcery.com>
175 * c-family/c-cppbuiltin.c (c_cpp_builtins): Check _FloatN and
176 _FloatNx types for suffixes for built-in functions.
178 2016-08-19 Joseph Myers <joseph@codesourcery.com>
181 * c-common.h (RID_FLOAT16, RID_FLOATN_NX_FIRST, RID_FLOAT32)
182 (RID_FLOAT64, RID_FLOAT128, RID_FLOAT32X, RID_FLOAT64X)
183 (RID_FLOAT128X): New enum rid values.
184 (CASE_RID_FLOATN_NX): New macro.
185 * c-common.c (c_common_reswords): Add _FloatN and _FloatNx
187 (c_common_type_for_mode): Check for _FloatN and _FloatNx and
188 corresponding complex types.
189 (c_common_nodes_and_builtins): For non-C++, register _FloatN and
190 _FloatNx and corresponding complex types.
191 (keyword_begins_type_specifier): Use CASE_RID_FLOATN_NX.
192 * c-cppbuiltin.c (builtin_define_float_constants): Check _FloatN
193 and _FloatNx types for the widest type for determining
194 DECIMAL_DIG. Define __LDBL_DECIMAL_DIG__ as well as
195 __DECIMAL_DIG__ for long double. Handle FMA_SUFFIX being NULL.
196 (c_cpp_builtins): Call builtin_define_float_constants for _FloatN
198 * c-lex.c (interpret_float): Handle _FloatN and _FloatNx
200 * c-pretty-print.c (pp_c_floating_constant): Handle _FloatN and
203 2016-08-18 David Malcolm <dmalcolm@redhat.com>
205 * c-opts.c (c_diagnostic_finalizer): Update for change to
206 diagnostic_show_locus.
208 2016-08-18 David Malcolm <dmalcolm@redhat.com>
210 * c-common.c: Include "spellcheck.h".
211 (cb_get_suggestion): New function.
212 * c-common.h (cb_get_suggestion): New decl.
213 * c-lex.c (init_c_lex): Initialize cb->get_suggestion to
216 2016-08-18 Marek Polacek <polacek@redhat.com>
219 * c-common.c (get_atomic_generic_size): Disallow pointer-to-function
222 2016-08-16 David Malcolm <dmalcolm@redhat.com>
225 * c-common.c (substring_loc::get_range): Rename to...
226 (substring_loc::get_location): ...this, converting param from a
227 source_range * to a location_t *. Call
228 get_source_location_for_substring rather than
229 get_source_range_for_substring, and pass in m_caret_idx.
230 * c-common.h (substring_loc::substring_loc): Add param "caret_idx".
231 (substring_loc::get_range): Replace with...
232 (substring_loc::get_location): ...this.
233 (substring_loc::set_caret_index): New method.
234 (substring_loc): Add field m_caret_idx.
235 * c-format.c (format_warning_va): Update for above changes.
236 Rename local "substring_loc" to "fmt_substring_loc" to avoid
237 clashing with type name.
238 (format_warning_at_char): Add caret_idx param to substring_loc ctor.
239 (check_argument_type): Likewise.
240 (format_type_warning): Rename param "fmt_loc" to "whole_fmt_loc"
241 Use a copy when emitting warnings, setting the caret index from TYPE.
243 2016-08-16 Eric Botcazou <ebotcazou@adacore.com>
244 Arnaud Charlet <charlet@adacore.com>
246 * c-ada-spec.c (dump_number): New function.
247 (handle_escape_character): Likewise.
248 (print_ada_macros): Add handling of constant integers and strings.
250 2016-08-12 Marek Polacek <polacek@redhat.com>
253 * c-common.c (scalar_to_vector): Adjust fall through comment.
254 * c-opts.c (c_common_handle_option): Likewise.
255 * c-pragma.c (handle_pragma_pack): Add FALLTHRU.
256 * c-pretty-print.c (c_pretty_printer::postfix_expression): Adjust
257 fall through comment.
258 * cilk.c (extract_free_variables): Add FALLTHRU.
260 2016-08-10 Jason Merrill <jason@redhat.com>
262 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
264 2016-08-09 Jason Merrill <jason@redhat.com>
266 * c-common.c (c_common_attribute_table): vector_size affects type
269 2016-08-09 Marek Polacek <polacek@redhat.com>
272 * c-ada-spec.c (dump_generic_ada_node): Add return.
274 2016-08-09 Jason Merrill <jason@redhat.com>
276 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_constexpr for
277 C++17 constexpr lambdas.
279 2016-08-08 David Malcolm <dmalcolm@redhat.com>
282 * c-common.h (selftest::c_format_c_tests): New declaration.
283 (selftest::run_c_tests): New declaration.
284 * c-format.c: Include "selftest.h.
285 (format_warning_va): Add param "corrected_substring" and use
286 it to add a replacement fix-it hint.
287 (format_warning_at_substring): Likewise.
288 (format_warning_at_char): Update for new param of
290 (argument_parser::check_argument_type): Pass "fki" to
292 (check_format_types): Add param "fki" and pass it to
294 (deref_n_times): New function.
295 (get_modifier_for_format_len): New function.
296 (selftest::test_get_modifier_for_format_len): New function.
297 (get_format_for_type): New function.
298 (format_type_warning): Add param "fki" and use it to attempt
299 to provide hints for argument types when calling
300 format_warning_at_substring.
301 (selftest::get_info): New function.
302 (selftest::assert_format_for_type_streq): New function.
303 (ASSERT_FORMAT_FOR_TYPE_STREQ): New macro.
304 (selftest::test_get_format_for_type_printf): New function.
305 (selftest::test_get_format_for_type_scanf): New function.
306 (selftest::c_format_c_tests): New function.
308 2016-08-08 David Malcolm <dmalcolm@redhat.com>
311 * c-format.c: Include "diagnostic.h".
312 (location_column_from_byte_offset): Delete.
313 (location_from_offset): Delete.
314 (format_warning_va): New function.
315 (format_warning_at_substring): New function.
316 (format_warning_at_char): New function.
317 (check_format_arg): Capture location of format_tree and pass to
318 check_format_info_main.
319 (argument_parser): Add fields "start_of_this_format" and
321 (flag_chars_t::validate): Add param "format_string_cst". Convert
322 warning_at call using location_from_offset to call to
323 format_warning_at_char.
324 (argument_parser::argument_parser): Add param "format_string_cst_"
325 and use use it to initialize field "format_string_cst".
326 Initialize new field "start_of_this_format".
327 (argument_parser::read_format_flags): Convert warning_at call
328 using location_from_offset to a call to format_warning_at_char.
329 (argument_parser::read_any_format_left_precision): Likewise.
330 (argument_parser::read_any_format_precision): Likewise.
331 (argument_parser::read_any_other_modifier): Likewise.
332 (argument_parser::find_format_char_info): Likewise, in three places.
333 (argument_parser::parse_any_scan_set): Likewise, in one place.
334 (argument_parser::handle_conversions): Likewise, in two places.
335 (argument_parser::check_argument_type): Add param "fmt_param_loc"
336 and use it to make a substring_loc. Pass the latter to
338 (check_format_info_main): Add params "fmt_param_loc" and
339 "format_string_cst". Convert warning_at calls using
340 location_from_offset to calls to format_warning_at_char. Pass the
341 new params to the arg_parser ctor. Pass "format_string_cst" to
342 flag_chars.validate. Pass "fmt_param_loc" to
343 arg_parser.check_argument_type.
344 (check_format_types): Convert first param from a location_t
345 to a const substring_loc & and rename to "fmt_loc". Attempt
346 to extract the range of the relevant parameter and pass it
347 to format_type_warning.
348 (format_type_warning): Convert first param from a location_t
349 to a const substring_loc & and rename to "fmt_loc". Add
350 params "param_range" and "type". Replace calls to warning_at
351 with calls to format_warning_at_substring.
353 2016-08-08 David Malcolm <dmalcolm@redhat.com>
355 * c-format.c (class flag_chars_t): New class.
356 (struct length_modifier): New struct.
357 (class argument_parser): New class.
358 (flag_chars_t::flag_chars_t): New ctor.
359 (flag_chars_t::has_char_p): New method.
360 (flag_chars_t::add_char): New method.
361 (flag_chars_t::validate): New method.
362 (flag_chars_t::get_alloc_flag): New method.
363 (flag_chars_t::assignment_suppression_p): New method.
364 (argument_parser::argument_parser): New ctor.
365 (argument_parser::read_any_dollar): New method.
366 (argument_parser::read_format_flags): New method.
367 (argument_parser::read_any_format_width): New method.
368 (argument_parser::read_any_format_left_precision): New method.
369 (argument_parser::read_any_format_precision): New method.
370 (argument_parser::handle_alloc_chars): New method.
371 (argument_parser::read_any_length_modifier): New method.
372 (argument_parser::read_any_other_modifier): New method.
373 (argument_parser::find_format_char_info): New method.
374 (argument_parser::validate_flag_pairs): New method.
375 (argument_parser::give_y2k_warnings): New method.
376 (argument_parser::parse_any_scan_set): New method.
377 (argument_parser::handle_conversions): New method.
378 (argument_parser::check_argument_type): New method.
379 (check_format_info_main): Introduce classes argument_parser
380 and flag_chars_t, moving the code within the loop into methods
381 of these classes. Make various locals "const".
383 2016-08-05 David Malcolm <dmalcolm@redhat.com>
385 * c-common.c: Include "substring-locations.h".
386 (get_cpp_ttype_from_string_type): New function.
387 (g_string_concat_db): New global.
388 (substring_loc::get_range): New method.
389 * c-common.h (g_string_concat_db): New declaration.
390 (class substring_loc): New class.
391 * c-lex.c (lex_string): When concatenating strings, capture the
392 locations of all tokens using a new obstack, and record the
393 concatenation locations within g_string_concat_db.
394 * c-opts.c (c_common_init_options): Construct g_string_concat_db
397 2016-07-29 Marek Polacek <polacek@redhat.com>
400 * c-common.c (c_common_truthvalue_conversion): Use LOCATION for the
404 * c-common.c (handle_alloc_align_attribute): Also check FUNCTION_DECL.
406 2016-07-28 Martin Liska <mliska@suse.cz>
408 PR gcov-profile/68025
409 * c-common.c (handle_no_profile_instrument_function_attribute):
411 2016-07-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
413 * c-common.c (check_user_alignment): Use LOG2_BITS_PER_UNIT instead of
416 2016-07-25 Jason Merrill <jason@redhat.com>
419 * c.opt (fconstexpr-loop-limit): New.
421 2016-07-22 Martin Sebor <msebor@redhat.com>
424 * c-common.c (resolve_overloaded_builtin): Avoid converting
425 __atomic_compare_exchange_n return type to that of what its
426 first argument points to.
428 2016-07-22 Uros Bizjak <ubizjak@gmail.com>
430 * c-common.c: Use HOST_WIDE_INT_M1U instead of
431 ~(unsigned HOST_WIDE_INT) 0.
433 2016-07-22 Martin Liska <mliska@suse.cz>
435 PR gcov-profile/69028
436 PR gcov-profile/62047
437 * cilk.c (create_cilk_helper_decl): Set location of a new decl
438 to the current_function_decl.
440 2016-07-21 Jason Merrill <jason@redhat.com>
443 * c-common.c (c_common_truthvalue_conversion): Check
444 c_inhibit_evaluation_warnings for warning about address of
447 2016-07-20 David Malcolm <dmalcolm@redhat.com>
449 * c-common.h (lookup_name_fuzzy): Convert return type from tree to
452 2016-07-15 Jason Merrill <jason@redhat.com>
454 * c-opts.c (c_common_post_options): Update -fabi-version default to 11.
456 2016-07-15 Jakub Jelinek <jakub@redhat.com>
459 * c-common.h (enum lookup_name_fuzzy_kind): Add
460 FUZZY_LOOKUP_FUNCTION_NAME.
462 2016-07-08 Jason Merrill <jason@redhat.com>
464 P0145: Refining Expression Order for C++.
465 * c.opts (-fargs-in-order): Rename to -fstrong-eval-order.
468 2016-07-05 Markus Trippelsdorf <markus@trippelsdorf.de>
471 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
473 2016-06-29 Thomas Schwinge <thomas@codesourcery.com>
475 * c-pragma.h (enum pragma_kind): Rename
476 PRAGMA_OMP_DECLARE_REDUCTION to PRAGMA_OMP_DECLARE. Adjust all
479 2016-06-29 Richard Biener <rguenther@suse.de>
482 * c-common.c (c_common_get_alias_set): Remove union type punning case.
484 2016-06-24 Jason Merrill <jason@redhat.com>
486 P0145R2: Refining Expression Order for C++.
487 * c-common.c (verify_tree) [COMPOUND_EXPR]: Fix handling on LHS of
490 2016-06-24 Jakub Jelinek <jakub@redhat.com>
492 * c-common.c (check_builtin_function_arguments): Require last
493 argument of BUILT_IN_*_OVERFLOW_P to have INTEGER_TYPE type.
494 Adjust wording of diagnostics for BUILT_IN_*_OVERLFLOW
495 if the last argument is pointer to enumerated or boolean type.
497 2016-06-22 David Malcolm <dmalcolm@redhat.com>
500 * c-common.h (enum lookup_name_fuzzy_kind): New enum.
501 (lookup_name_fuzzy): New prototype.
503 2016-06-21 John David Anglin <danglin@gcc.gnu.org>
505 * c-common.c (get_source_date_epoch): Use int64_t instead of long long.
507 2016-06-14 Jason Merrill <jason@redhat.com>
509 P0145R2: Refining Expression Order for C++.
510 * c.opt (fargs-in-order): New.
511 * c-opts.c (c_common_post_options): Adjust flag_args_in_order.
513 2016-06-13 Jakub Jelinek <jakub@redhat.com>
516 * c-gimplify.c (ubsan_walk_array_refs_r): Set *walk_subtrees = 0 on
517 all BIND_EXPRs, and on all BIND_EXPRs recurse also on BIND_EXPR_BODY.
519 PR preprocessor/71183
520 * c-ppoutput.c (init_pp_output): Set cb->get_source_date_epoch
521 to cb_get_source_date_epoch.
523 2016-06-10 Jakub Jelinek <jakub@redhat.com>
526 * c.opt (Wpsabi): Add Warning flag.
528 2016-06-10 Martin Sebor <msebor@redhat.com>
531 * gcc/c-family/c-common.c (handle_nonnull_attribute): Accept
532 the nonnull attribute in type-generic builtins.
534 2016-06-09 Martin Sebor <msebor@redhat.com>
537 * c-common.c (builtin_function_validate_nargs): Make text of error
538 message consistent with others like it.
540 2016-06-08 Martin Sebor <msebor@redhat.com>
541 Jakub Jelinek <jakub@redhat.com>
545 * c-common.c (check_builtin_function_arguments): Handle
546 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
548 2016-06-08 Richard Biener <rguenther@suse.de>
550 * c-common.c (parse_optimize_options): Improve diagnostic messages.
552 2016-06-07 Richard Biener <rguenther@suse.de>
555 * c-common.c (parse_optimize_options): Only apply CL_OPTIMIZATION
556 options and warn about others.
558 2016-06-01 Eduard Sanou <dhole@openmailbox.org>
560 * c-common.c (get_source_date_epoch): Rename to
561 cb_get_source_date_epoch.
562 * c-common.c (cb_get_source_date_epoch): Use a single generic erorr
563 message when the parsing fails. Use error_at instead of fatal_error.
564 * c-common.h (get_source_date_epoch): Rename to
565 cb_get_source_date_epoch.
566 * c-common.h (cb_get_source_date_epoch): Prototype.
567 * c-common.h (MAX_SOURCE_DATE_EPOCH): Define.
568 * c-common.h (c_omp_region_type): Remove trailing comma.
569 * c-lex.c (init_c_lex): Set cb->get_source_date_epoch callback.
570 * c-lex.c (c_lex_with_flags): Remove initialization of
571 pfile->source_date_epoch.
573 2016-05-30 Jakub Jelinek <jakub@redhat.com>
576 * c-omp.c (c_omp_split_clauses): Put OMP_CLAUSE_DEPEND to
577 C_OMP_CLAUSE_SPLIT_TARGET. Put OMP_CLAUSE_NOWAIT to
578 C_OMP_CLAUSE_SPLIT_TARGET if combined with target construct,
579 instead of C_OMP_CLAUSE_SPLIT_FOR.
581 2016-05-24 Richard Biener <rguenther@suse.de>
585 * c-common.h (convert_vector_to_pointer_for_subscript): Rename to ...
586 (convert_vector_to_array_for_subscript): ... this.
587 * c-common.c (convert_vector_to_pointer_for_subscript): Use a
588 VIEW_CONVERT_EXPR to an array type. Rename to ...
589 (convert_vector_to_array_for_subscript): ... this.
591 2016-05-12 Marek Polacek <polacek@redhat.com>
594 * c-common.c (pointer_int_sum): Call size_in_bytes_loc instead of
595 size_in_bytes and pass LOC to it.
597 2016-05-11 Mikhail Maltsev <maltsevm@gmail.com>
600 * c.opt (Wduplicate-decl-specifier): New option.
602 2016-05-11 Marek Polacek <polacek@redhat.com>
605 * c-common.c (diagnose_mismatched_attributes): New function.
606 * c-common.h (diagnose_mismatched_attributes): Declare.
608 2016-05-04 Marek Polacek <polacek@redhat.com>
610 * c.opt (Wdangling-else): New option.
612 2016-05-03 Marek Polacek <polacek@redhat.com>
615 * c-common.c (builtin_function_validate_nargs): Add location
617 (check_builtin_function_arguments): Add location and arguments
618 parameters. Use them.
619 * c-common.h (check_builtin_function_arguments): Update declaration.
621 2016-05-03 Richard Biener <rguenther@suse.de>
623 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Do not
624 allow call args to gimplify to SSA names.
626 2016-05-03 Marek Polacek <polacek@redhat.com>
628 * c-common.h (enum c_omp_region_type): Remove stray comma.
630 2016-05-02 Cesar Philippidis <cesar@codesourcery.com>
632 * c-common.h (enum c_omp_region_type): Define.
634 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
636 * c-common.c (shorten_compare): Use wi::to_wide.
638 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
641 * c-common.h (c_oacc_split_loop_clauses): Add boolean argument.
642 * c-omp.c (c_oacc_split_loop_clauses): Use it to duplicate
643 reduction clauses in acc parallel loops.
645 2016-04-29 Marek Polacek <polacek@redhat.com>
648 * c-common.c (warn_for_memset): Check domain before accessing it.
650 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
653 * c-common.c (handle_aligned_attribute): Allow 0 as an argument to the
656 2016-04-28 Jason Merrill <jason@redhat.com>
658 * c-lex.c (c_common_has_attribute): Handle nodiscard.
660 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
661 Matthias Klose <doko@debian.org>
663 * c-common.c (get_source_date_epoch): New function, gets the environment
664 variable SOURCE_DATE_EPOCH and parses it as long long with error
666 * c-common.h (get_source_date_epoch): Prototype.
667 * c-lex.c (c_lex_with_flags): set parse_in->source_date_epoch.
669 2015-04-27 Ryan Burn <contact@rnburn.com>
673 * cilk.c (cilk_ignorable_spawn_rhs_op): Change to external linkage.
674 (cilk_recognize_spawn): Renamed from recognize_spawn and change to
676 (cilk_detect_and_unwrap): Corresponding changes.
677 (extract_free_variables): Don't extract free variables from
679 * c-common.h (cilk_ignorable_spawn_rhs_op): Prototype.
680 (cilk_recognize_spawn): Likewise.
682 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
684 * c.opt (Wmemset-elt-size): New option.
685 * c-common.c (warn_for_memset): New function.
686 * c-common.h (warn_for_memset): Declare.
688 2016-04-25 Jason Merrill <jason@redhat.com>
690 * c-common.c (handle_unused_attribute): Accept CONST_DECL.
692 * c-common.h: Declare it.
693 * c-lex.c (c_common_has_attribute): Add maybe_unused.
695 2016-04-22 Jason Merrill <jason@redhat.com>
697 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_range_based_for.
699 2016-04-20 Ilya Verbin <ilya.verbin@intel.com>
702 * c-cilkplus.c (c_finish_cilk_clauses): Remove function.
703 * c-common.h (c_finish_cilk_clauses): Remove declaration.
705 2016-04-18 Michael Matz <matz@suse.de>
707 * c-common.c (handle_aligned_attribute): Use SET_TYPE_ALIGN
710 2016-04-17 Eric Botcazou <ebotcazou@adacore.com>
712 * c-ada-spec.c (get_underlying_decl): Return the typedef, if any.
713 (dump_generic_ada_node) <POINTER_TYPE>: Clean up handling of access
715 (dump_nested_type): Remove redundant tests and tidy up.
716 (print_ada_declaration): Also set TREE_VISITED on the declaration of
717 a type which is the typedef of an original type.
719 2016-04-15 Marek Polacek <polacek@redhat.com>
722 * c-common.c (build_va_arg): Change two asserts into errors and return
725 2016-04-13 Marek Polacek <polacek@redhat.com>
728 * c-indentation.c (should_warn_for_misleading_indentation): Bail out
729 for switch statements, too.
731 2016-03-28 Jason Merrill <jason@redhat.com>
733 * c-cppbuiltin.c (c_cpp_builtins): Update __cpp_range_based_for.
735 2016-03-23 Marek Polacek <polacek@redhat.com>
738 * c.opt (Wignored-attributes): New option.
740 2016-03-22 David Malcolm <dmalcolm@redhat.com>
743 * c-indentation.c (warn_for_misleading_indentation): Rewrite the
744 diagnostic text, reversing the order of the warning and note so
745 that they appear in source order.
747 2016-03-17 Marek Polacek <polacek@redhat.com>
750 * c-common.c (resolve_overloaded_builtin): Set TREE_USED for the fetch
753 2016-03-14 Jason Merrill <jason@redhat.com>
755 * c-cppbuiltin.c (c_cpp_builtins): Set __cpp_hex_float.
757 * c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_range_based_for.
759 2016-03-09 Richard Biener <rguenther@suse.de>
762 * c-common.c (strict_aliasing_warning): Add back
763 alias_sets_conflict_p check.
765 2016-03-08 Jason Merrill <jason@redhat.com>
767 * c-opts.c (set_std_cxx1z): Don't enable concepts.
769 2016-03-04 David Malcolm <dmalcolm@redhat.com>
772 * c-indentation.c (get_visual_column): Move code to determine next
774 (next_tab_stop): ...this new function.
775 (line_contains_hash_if): Delete function.
776 (detect_preprocessor_logic): Delete function.
777 (get_first_nws_vis_column): New function.
778 (detect_intervening_unindent): New function.
779 (should_warn_for_misleading_indentation): Replace call to
780 detect_preprocessor_logic with a call to
781 detect_intervening_unindent.
783 2016-03-04 David Malcolm <dmalcolm@redhat.com>
786 * c-indentation.c (should_warn_for_misleading_indentation): When
787 suppressing warnings about cases where the guard and body are on
788 the same column, only use the first non-whitespace column in place
789 of the guard token column when dealing with "else" clauses.
790 When rejecting aligned BODY and NEXT, loosen the requirement
791 from equality with the first non-whitespace of guard to simply
792 that they not be indented relative to it.
794 2016-03-04 Richard Biener <rguenther@suse.de>
797 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
798 instead of alias_sets_conflict_p.
800 2016-03-01 Marek Polacek <polacek@redhat.com>
803 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
806 2016-02-22 Martin Sebor <msebor@redhat.com>
809 * c-common.c (check_builtin_function_arguments): Validate and
810 reject invalid arguments to __builtin_alloca_with_align.
812 2016-02-20 Mark Wielaard <mjw@redhat.com>
815 * c.opt (Wunused-const-variable): Turn into Alias for...
816 (Wunused-const-variable=): New option.
818 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
821 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
823 (c_common_init_options): ...to here.
824 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
826 2016-02-19 Jakub Jelinek <jakub@redhat.com>
829 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
830 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
831 flag_preprocess_only.
833 2016-02-16 Jakub Jelinek <jakub@redhat.com>
836 * c.opt (Wnonnull-compare): Enable for -Wall.
838 2016-02-15 Jakub Jelinek <jakub@redhat.com>
841 * c-common.c (sync_resolve_size): Diagnose too few arguments
842 even when params is non-NULL empty vector.
844 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
847 * c.opt (fshort-double): Remove.
849 2016-02-05 Martin Sebor <msebor@redhat.com>
852 * c.opt (Warning options): Update -Wplacement-new to take
853 an optional argument.
855 2016-02-01 Jakub Jelinek <jakub@redhat.com>
857 PR preprocessor/69543
859 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
860 instead of loc to control_warning_option.
862 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
864 * c.opt (fopenacc-dim=): New option.
866 2016-01-27 Ryan Burn <contact@rnburn.com>
869 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
870 gimplify_arg. Removed superfluous post_p argument.
871 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
872 superfluous post_p argument.
873 * c-gimplify.c (c_gimplify_expr): Likewise.
875 2016-01-26 David Malcolm <dmalcolm@redhat.com>
878 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
879 pp_newline_and_flush with pp_flush.
881 2016-01-20 Martin Sebor <msebor@redhat.com>
884 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
885 an incompatible argument when the argument isn't a valid tree node.
887 2016-01-18 Jason Merrill <jason@redhat.com>
890 * c-common.c (check_function_arguments_recurse): Fold the whole
891 COND_EXPR, not just the condition.
893 2016-01-18 Tom de Vries <tom@codesourcery.com>
895 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
896 classify as loop clause.
898 2016-01-15 Jakub Jelinek <jakub@redhat.com>
901 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
902 C++ FE no longer has limit on number of pragmas.
904 2015-01-14 Ryan Burn <contact@rnburn.com>
907 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
908 to add missing cleanup point.
910 2016-01-14 David Malcolm <dmalcolm@redhat.com>
913 * c-indentation.c (get_visual_column): Add location_t param.
914 Handle the column number being zero by effectively disabling the
915 warning, with an "inform".
916 (should_warn_for_misleading_indentation): Add location_t argument
917 for all uses of get_visual_column.
919 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
922 * c-indentation.c (should_warn_for_misleading_indentation):
923 Don't warn about do-while statements.
925 2016-01-07 Martin Sebor <msebor@redhat.com>
928 * c-common.c (sync_resolve_size): Reject first argument when it's
931 2016-01-05 David Malcolm <dmalcolm@redhat.com>
934 * c-indentation.c (get_visual_column): Remove default argument.
935 (should_warn_for_misleading_indentation): For the multiline case,
936 update call to get_visual_column for next_stmt_exploc so that it
937 captures the location of the first non-whitespace character in the
938 relevant line. Don't issue warnings if there is non-whitespace
939 before the next statement.
941 2016-01-04 Jakub Jelinek <jakub@redhat.com>
943 Update copyright years.
945 2015-12-21 David Malcolm <dmalcolm@redhat.com>
947 * c-common.c (binary_op_error): Convert first param from
948 location_t to rich_location * and use it when emitting an error.
949 * c-common.h (binary_op_error): Convert first param from
950 location_t to rich_location *.
952 2015-12-16 David Malcolm <dmalcolm@redhat.com>
954 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
955 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
957 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
959 * c-common.c (c_common_attribute_table): Handle "omp declare target
962 2015-12-14 Jakub Jelinek <jakub@redhat.com>
965 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
967 2014-12-12 Tobias Burnus <burnus@net-b.de>
970 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
971 specifiers (%d, %i,%u and %c).
973 2015-12-10 David Malcolm <dmalcolm@redhat.com>
975 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
977 2015-12-08 Jakub Jelinek <jakub@redhat.com>
981 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
982 * c-pragma.c (handle_pragma_diagnostic): Adjust
983 control_warning_option caller.
985 2015-12-07 David Malcolm <dmalcolm@redhat.com>
987 * c-common.c (c_cpp_error): Update for change to
988 rich_location::set_range.
990 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
992 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
993 shifting 1 out of the sign bit.
995 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
997 * c-common.c (c_common_attribute_table[]): Update max arguments
998 count for "simd" attribute.
999 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
1001 2015-12-03 Jakub Jelinek <jakub@redhat.com>
1003 PR preprocessor/57580
1004 * c-ppoutput.c (print): Change printed field to bool.
1005 Move src_file last for smaller padding.
1006 (init_pp_output): Set print.printed to false instead of 0.
1007 (scan_translation_unit): Fix up formatting. Set print.printed
1008 to true after printing something other than newline.
1009 (scan_translation_unit_trad): Set print.printed to true instead of 1.
1010 (maybe_print_line_1): Set print.printed to false instead of 0.
1011 (print_line_1): Likewise.
1012 (do_line_change): Set print.printed to true instead of 1.
1013 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
1014 dump_macro): Set print.printed to false after printing newline.
1016 2015-12-02 Jason Merrill <jason@redhat.com>
1018 * c-common.c (fold_for_warn): New.
1019 (warn_logical_operator, warn_tautological_cmp)
1020 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
1022 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
1023 (c_fully_fold_internal, decl_constant_value_for_optimization):
1025 * c-common.h: Don't declare decl_constant_value_for_optimization.
1027 2015-12-02 Joseph Myers <joseph@codesourcery.com>
1030 * c-common.h (c_build_qualified_type): Add extra default
1033 2015-12-01 Julian Brown <julian@codesourcery.com>
1034 Cesar Philippidis <cesar@codesourcery.com>
1035 James Norris <James_Norris@mentor.com>
1037 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
1038 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
1039 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
1041 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1043 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
1044 (decl_sloc_common): Delete and move bulk of processing to...
1045 (decl_sloc): ...here.
1046 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
1047 (dump_ada_double_name): Remove S parameter and compute the suffix.
1048 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
1049 element type and deal with an anonymous one.
1050 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
1051 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
1052 and remove reference to QUAL_UNION_TYPE.
1053 (dump_nested_types): Make 2 passes on the fields and move bulk to...
1054 (dump_nested_type): ...here. New function extracted from above.
1055 Generate a full declaration for anonymous element type of arrays.
1056 (print_ada_declaration): Really skip anonymous declarations. Remove
1057 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
1058 Clean up processing of declarations of array types and objects.
1059 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
1060 Remove obsolete code and tidy up.
1062 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1065 * c-common.c (handle_transparent_union_attribute): Update
1068 2015-11-27 Martin Liska <mliska@suse.cz>
1071 * array-notation-common.c (cilkplus_extract_an_triplets):
1072 Release vector of vectors.
1073 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
1075 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
1078 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
1079 (print_ada_struct_decl): Likewise.
1081 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
1084 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
1085 * cilk.c (recognize_spawn): Determine location in a more precise
1088 2015-11-19 Jason Merrill <jason@redhat.com>
1090 * c-common.c (shorten_compare): But look through macros from
1093 2015-11-18 Jason Merrill <jason@redhat.com>
1095 * c-common.c (shorten_compare): Don't -Wtype-limits if the
1096 non-constant operand comes from a macro.
1098 2015-11-17 Jason Merrill <jason@redhat.com>
1101 * c-common.c (warn_tautological_cmp): Fold before checking for
1104 2015-11-16 Marek Polacek <polacek@redhat.com>
1107 * c-common.c (check_case_bounds): Fold low and high cases.
1109 2015-11-16 Marek Polacek <polacek@redhat.com>
1111 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
1112 * c-common.c (c_common_get_alias_set): Likewise.
1113 (handle_visibility_attribute): Likewise.
1115 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
1117 * c-common.c (handle_simd_attribute): New.
1118 (struct attribute_spec): Add entry for "simd".
1119 (handle_simd_attribute): New.
1121 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
1123 * c-lex.c (interpret_float): Use fold_convert.
1125 2015-11-13 David Malcolm <dmalcolm@redhat.com>
1127 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
1128 and store it on the result.
1129 * c-opts.c (c_common_init_options): Set
1130 global_dc->colorize_source_p.
1132 2015-11-12 James Norris <jnorris@codesourcery.com>
1133 Joseph Myers <joseph@codesourcery.com>
1135 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
1136 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
1137 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
1138 PRAGMA_OACC_CLAUSE_LINK.
1140 2015-11-11 Marek Polacek <polacek@redhat.com>
1144 * c-common.c (valid_array_size_p): New function.
1145 * c-common.h (valid_array_size_p): Declare.
1147 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
1150 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
1152 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
1154 * array-notation-common.c: Remove unused header files.
1155 * c-ada-spec.c: Likewise.
1156 * c-cilkplus.c: Likewise.
1157 * c-common.c: Likewise.
1158 * c-cppbuiltin.c: Likewise.
1159 * c-dump.c: Likewise.
1160 * c-format.c: Likewise.
1161 * c-gimplify.c: Likewise.
1162 * c-indentation.c: Likewise.
1163 * c-lex.c: Likewise.
1164 * c-omp.c: Likewise.
1165 * c-opts.c: Likewise.
1166 * c-pch.c: Likewise.
1167 * c-ppoutput.c: Likewise.
1168 * c-pragma.c: Likewise.
1169 * c-pretty-print.c: Likewise.
1170 * c-semantics.c: Likewise.
1171 * c-ubsan.c: Likewise.
1173 * stub-objc.c: Likewise.
1175 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
1176 Cesar Philippidis <cesar@codesourcery.com>
1177 James Norris <jnorris@codesourcery.com>
1178 Julian Brown <julian@codesourcery.com>
1179 Nathan Sidwell <nathan@codesourcery.com>
1181 * c-pragma.c (oacc_pragmas): Add "routine".
1182 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
1184 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1186 * c-common.c (c_common_attributes): Add scalar_storage_order.
1187 (handle_scalar_storage_order_attribute): New function.
1188 * c-pragma.c (global_sso): New variable.
1189 (maybe_apply_pragma_scalar_storage_order): New function.
1190 (handle_pragma_scalar_storage_order): Likewise.
1191 (init_pragma): Register scalar_storage_order.
1192 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
1193 * c.opt (Wscalar-storage-order): New warning.
1194 (fsso-struct=): New option.
1196 2015-11-08 Martin Sebor <msebor@redhat.com>
1198 * c.opt (Wplacement-new): Add a period to the end of a sentence.
1200 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
1202 * c-common.c: Don't undef DEF_BUILTIN.
1204 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1206 * c-common.c (c_cpp_error): Convert parameter from location_t to
1207 rich_location *. Eliminate the "column_override" parameter and
1208 the call to diagnostic_override_column.
1209 Update the "done_lexing" clause to set range 0
1210 on the rich_location, rather than overwriting a location_t.
1211 * c-common.h (c_cpp_error): Convert parameter from location_t to
1212 rich_location *. Eliminate the "column_override" parameter.
1214 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1215 Thomas Schwinge <thomas@codesourcery.com>
1216 James Norris <jnorris@codesourcery.com>
1218 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
1219 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
1220 clauses with parallel and kernels and loops.
1221 * c-pragma.h (enum pragma_omp_clause): Add entries for
1222 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
1223 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
1224 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
1226 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
1228 2015-11-05 Martin Sebor <msebor@redhat.com>
1231 * c.opt (-Wplacement-new): New option.
1233 2015-11-05 Jakub Jelinek <jakub@redhat.com>
1235 * c-common.h (c_finish_omp_atomic): Add TEST argument.
1236 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
1237 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
1238 save_expr or create_tmp_var* if TEST is true.
1239 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
1240 Don't call add_stmt here.
1241 (struct c_omp_check_loop_iv_data): New type.
1242 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
1243 c_omp_check_loop_iv_exprs): New functions.
1244 (c_omp_split_clauses): Adjust for lastprivate being allowed on
1246 (c_omp_declare_simd_clauses_to_numbers): Change
1247 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
1248 (c_omp_declare_simd_clauses_to_decls): Similarly change those
1249 from numbers to PARM_DECLs.
1251 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1253 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
1256 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
1259 * c-common.h (fold_offsetof_1): Add argument.
1260 * c-common.c (fold_offsetof_1): Diagnose more invalid
1261 offsetof expressions that reference elements past the end of
1264 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1265 Chung-Lin Tang <cltang@codesourcery.com>
1267 * c-pragma.c (oacc_pragmas): Add "atomic".
1268 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
1270 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1272 * c-common.c (handle_target_clones_attribute): New.
1273 (c_common_attribute_table): Add handle_target_clones_attribute.
1274 (handle_always_inline_attribute): Add check on target_clones attribute.
1275 (handle_target_attribute): Ditto.
1277 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
1279 * array-notation-common.c: Reorder #include's and remove duplicates.
1280 * c-ada-spec.c: Likewise.
1281 * c-cilkplus.c: Likewise.
1282 * c-common.c: Likewise.
1283 * c-cppbuiltin.c: Likewise.
1284 * c-dump.c: Likewise.
1285 * c-format.c: Likewise.
1286 * c-gimplify.c: Likewise.
1287 * c-indentation.c: Likewise.
1288 * c-lex.c: Likewise.
1289 * c-omp.c: Likewise.
1290 * c-opts.c: Likewise.
1291 * c-pch.c: Likewise.
1292 * c-ppoutput.c: Likewise.
1293 * c-pragma.c: Likewise.
1294 * c-pretty-print.c: Likewise.
1295 * c-semantics.c: Likewise.
1296 * c-ubsan.c: Likewise.
1298 * stub-objc.c: Likewise.
1300 2015-10-28 Jason Merrill <jason@redhat.com>
1302 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
1304 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
1305 James Norris <jnorris@codesourcery.com>
1306 Cesar Philippidis <cesar@codesourcery.com>
1310 * c-common.h (c_oacc_split_loop_clauses): Declare function.
1311 * c-omp.c (c_oacc_split_loop_clauses): New function.
1313 2015-10-21 Martin Sebor <msebor@redhat.com>
1316 * c.opt: End each sentence that describes an option with a period.
1318 2015-10-20 Marek Polacek <polacek@redhat.com>
1320 * array-notation-common.c (is_cilkplus_vector_p): Define.
1321 * c-common.h (is_cilkplus_vector_p): Declare.
1323 2015-10-20 Marek Polacek <polacek@redhat.com>
1325 * c.opt (std=gnu++11): Do not describe as experimental.
1326 (std=gnu++14): Likewise.
1328 2015-10-19 Jason Merrill <jason@redhat.com>
1330 * c-cppbuiltin.c (c_cpp_builtins): Define
1331 __cpp_nontype_template_args.
1333 2015-10-19 Jason Merrill <jason@redhat.com>
1335 * c-cppbuiltin.c (c_cpp_builtins): Define
1336 __cpp_enumerator_attributes, __cpp_fold_expressions,
1337 __cpp_unicode_characters.
1339 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1340 Aldy Hernandez <aldyh@redhat.com>
1342 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
1343 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
1344 (c_define_builtins): Likewise.
1345 * c-common.h (enum c_omp_clause_split): Add
1346 C_OMP_CLAUSE_SPLIT_TASKLOOP.
1347 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
1348 (c_finish_omp_for): Add ORIG_DECLV argument.
1349 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
1350 201511 instead of 201307.
1351 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
1352 OMP_CRITICAL_CLAUSES to it.
1353 (c_finish_omp_ordered): Add CLAUSES argument, set
1354 OMP_ORDERED_CLAUSES to it.
1355 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
1356 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
1357 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
1358 constructs and new OpenMP 4.5 clauses. Clear
1359 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
1361 * c-pragma.c (omp_pragmas_simd): Add taskloop.
1362 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
1363 (enum pragma_omp_clause): Add
1364 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
1365 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
1367 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
1369 * c-lex.c (interpret_float): Use real_equal instead of
1372 2015-10-04 Jason Merrill <jason@redhat.com>
1374 Implement N4514, C++ Extensions for Transactional Memory.
1375 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
1376 (c_common_attribute_table): Add transaction_safe_dynamic.
1377 transaction_safe now affects type identity.
1378 (handle_tm_attribute): Handle transaction_safe_dynamic.
1379 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
1380 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
1381 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
1383 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
1384 * c-pretty-print.c (pp_c_attributes_display): Don't print
1385 transaction_safe in C++.
1387 2015-10-02 Marek Polacek <polacek@redhat.com>
1389 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
1391 2015-10-02 Marek Polacek <polacek@redhat.com>
1394 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
1395 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
1396 * c.opt (Wduplicated-cond): New option.
1398 2015-10-01 Joseph Myers <joseph@codesourcery.com>
1400 * c.opt (std=c11): Do not describe as experimental.
1401 (std=gnu11): Likewise.
1402 (std=iso9899:2011): Likewise.
1404 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
1406 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
1407 (DEF_FUNCTION_TYPE_VAR_11): Delete.
1409 2015-09-25 Marek Polacek <polacek@redhat.com>
1411 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
1412 (ubsan_instrument_shift): Likewise.
1414 2015-09-25 Marek Polacek <polacek@redhat.com>
1417 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
1419 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
1421 * c-indentation.c (should_warn_for_misleading_indentation):
1422 Compare next_stmt_vis_column with guard_line_first_nws instead
1423 of with guard_line_vis_column.
1425 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
1429 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
1430 options and options not valid for the current language.
1432 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
1434 * c-indentation.c (should_warn_for_misleading_indentation):
1435 Float out and consolidate the calls to get_visual_column that
1436 are passed guard_exploc as an argument. Compare
1437 next_stmt_vis_column with guard_line_first_nws instead of with
1438 body_line_first_nws.
1440 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
1442 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
1443 Wnamespaces): New C++ warnings.
1445 2015-09-22 Jason Merrill <jason@redhat.com>
1447 * c-common.h (abi_compat_version_crosses): New.
1448 (warn_abi_version): Declare.
1449 * c-common.c: Define it.
1450 * c-opts.c (c_common_post_options): Handle it.
1451 flag_abi_compat_version defaults to 8.
1453 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
1455 Complete the implementation of N4230, Nested namespace definition.
1456 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
1457 __cpp_nested_namespace_definitions.
1459 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1461 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
1463 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1465 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
1467 * c-pragma.h (pragma_lex): Add optional loc argument.
1469 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
1471 * c-format.c (check_format_arg): Adjust to use common block size in all
1474 2015-09-15 David Malcolm <dmalcolm@redhat.com>
1476 * c-format.c (location_from_offset): Update for change in
1477 signature of location_get_source_line.
1478 * c-indentation.c (get_visual_column): Likewise.
1479 (line_contains_hash_if): Likewise.
1481 2015-09-14 Marek Polacek <polacek@redhat.com>
1483 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
1484 setting various warnings.
1486 2015-09-14 Marek Polacek <polacek@redhat.com>
1488 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
1491 2015-09-11 Mark Wielaard <mjw@redhat.com>
1494 * c.opt (Wunused-variable): Option from common.opt.
1495 (Wunused-const-variable): New option.
1497 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
1500 * c.opt ([Wsubobject-linkage]): Add.
1502 2015-09-03 Martin Sebor <msebor@redhat.com>
1505 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
1507 * c-common.c (reject_gcc_builtin): Define.
1509 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
1512 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
1514 * c-gimplify.c (c_gimplify_expr): Added a call to the function
1515 cilk_gimplify_call_params_in_spawned_fn.
1516 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
1517 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
1520 2015-08-25 Marek Polacek <polacek@redhat.com>
1523 * c-common.c (handle_weak_attribute): Don't check whether the
1524 visibility can be changed here.
1526 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1528 * c-lex.c (c_lex_with_flags): Use explicit locations.
1530 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
1532 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
1533 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
1535 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1538 * c-common.c (check_builtin_function_arguments): Add check
1539 for BUILT_IN_SIGNBIT argument.
1541 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
1544 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
1547 2015-08-17 Marek Polacek <polacek@redhat.com>
1549 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
1550 with whitespaces before qualifier names.
1552 2015-08-12 Marek Polacek <polacek@redhat.com>
1555 * c-common.c (maybe_warn_shift_overflow): Properly handle
1556 left-shifting 1 into the sign bit.
1558 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1560 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
1562 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
1563 Braden Obrzut <admin@maniacsvault.net>
1564 Jason Merrill <jason@redhat.com>
1566 Add C++ Concepts TS support.
1567 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
1568 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
1569 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
1570 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
1571 * c-opts.c (set_std_cxx1z): Set flag_concepts.
1572 * c.opt (fconcepts): New.
1574 2015-08-02 Martin Sebor <msebor@redhat.com>
1576 * c.opt (-Wframe-address): New warning option.
1578 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1580 * c-indentation.c (should_warn_for_misleading_indentation):
1583 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1585 * c-indentation.c (get_visual_column): Add parameter first_nws,
1586 use it. Update comment documenting the function.
1587 (is_first_nonwhitespace_on_line): Remove.
1588 (should_warn_for_misleading_indentation): Replace usage of
1589 of is_first_nonwhitespace_on_line with get_visual_column.
1591 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
1593 * c-indentation.h (struct token_indent_info): Define.
1594 (get_token_indent_info): Define.
1595 (warn_for_misleading_information): Declare.
1596 * c-common.h (warn_for_misleading_information): Remove.
1597 * c-identation.c (warn_for_misleading_indentation):
1598 Change declaration to take three token_indent_infos. Adjust
1600 * c-identation.c (should_warn_for_misleading_indentation):
1601 Likewise. Bail out early if the body is a compound statement.
1602 (guard_tinfo_to_string): Define.
1604 2015-07-30 Jason Merrill <jason@redhat.com>
1606 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
1607 '*' for reference decay.
1609 2015-07-30 Marek Polacek <polacek@redhat.com>
1611 * c-common.c (warn_tautological_cmp): Bail for float types.
1613 2015-07-27 Marek Polacek <polacek@redhat.com>
1616 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
1618 2015-07-27 Marek Polacek <polacek@redhat.com>
1622 * c-common.c (find_array_ref_with_const_idx_r): New function.
1623 (warn_tautological_cmp): New function.
1624 * c-common.h (warn_tautological_cmp): Declare.
1625 * c.opt (Wtautological-compare): New option.
1627 2015-07-23 Marek Polacek <polacek@redhat.com>
1629 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
1630 (ubsan_instrument_shift): Likewise.
1632 2015-07-23 Marek Polacek <polacek@redhat.com>
1635 * c-ubsan.c: Include gimplify.h.
1636 (ubsan_instrument_division): Unshare OP0 and OP1.
1637 (ubsan_instrument_shift): Likewise.
1639 2015-07-20 Marek Polacek <polacek@redhat.com>
1640 Richard Sandiford <richard.sandiford@arm.com>
1643 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
1644 Use EXPR_LOC_OR_LOC.
1645 (maybe_warn_shift_overflow): New function.
1646 * c-common.h (maybe_warn_shift_overflow): Declare.
1647 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
1648 * c.opt (Wshift-overflow): New option.
1650 2015-07-16 Martin Liska <mliska@suse.cz>
1652 * c-format.c (static void check_format_info_main): Use
1653 object_allocator instead of pool_allocator.
1654 (check_format_arg): Likewise.
1655 (check_format_info_main): Likewise.
1657 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
1659 * c-opts.c: Remove multiline #include comment.
1661 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
1663 * c-common.c: Fix double word typos.
1665 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
1667 * c-ada-spec.h (cpp_operation): Revert latest change.
1668 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
1669 constructors and destructors.
1671 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
1673 * c-common.h: Adjust includes for flags.h changes.
1674 * stub-objc.c: Likewise.
1676 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
1678 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
1679 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
1681 2015-07-08 Jakub Jelinek <jakub@redhat.com>
1683 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
1684 are to be removed, return NULL rather than original clauses list.
1686 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
1688 * array-notation-common.c: Adjust includes.
1689 * c-ada-spec.c: Likewise.
1690 * c-cilkplus.c: Likewise.
1691 * c-common.h: Likewise.
1692 * c-cppbuiltin.c: Likewise.
1693 * c-dump.c: Likewise.
1694 * c-format.c: Likewise.
1695 * c-gimplify.c: Likewise.
1696 * c-indentation.c: Likewise.
1697 * c-lex.c: Likewise.
1698 * c-omp.c: Likewise.
1699 * c-opts.c: Likewise.
1700 * c-pch.c: Likewise.
1701 * c-ppoutput.c: Likewise.
1702 * c-pragma.c: Likewise.
1703 * c-pretty-print.c: Likewise.
1704 * c-semantics.c: Likewise.
1705 * c-ubsan.c: Likewise.
1707 * stub-objc.c: Likewise.
1709 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
1711 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
1712 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
1714 2015-07-01 Jason Merrill <jason@redhat.com>
1716 * c-common.h (D_CXX11): Rename from D_CXX0X.
1717 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
1718 * c-common.c: Adjust.
1720 * c-opts.c (c_common_post_options): Default to C++14.
1722 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
1724 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
1726 Implement N4197 - Adding u8 character literals
1727 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
1729 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
1730 CPP_UTF8CHAR_USERDEF tokens.
1731 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
1732 and CPP_UTF8CHAR tokens.
1733 (lex_charconst): Treat CPP_UTF8CHAR token.
1735 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1738 * c-common.c (do_warn_unused_parameter): Move here.
1739 * c-common.h (do_warn_unused_parameter): Declare.
1741 2015-06-29 Marek Polacek <polacek@redhat.com>
1744 * c-common.c (check_case_bounds): Add bool * parameter. Set
1746 (c_add_case_label): Add bool * parameter. Pass it down to
1748 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
1750 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
1753 2015-06-27 Marek Polacek <polacek@redhat.com>
1755 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
1756 or VECTOR_INTEGER_TYPE_P throughout.
1757 * c-gimplify.c: Likewise.
1759 2015-06-26 Marek Polacek <polacek@redhat.com>
1761 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1762 * c-common.c (c_fully_fold_internal): Likewise.
1763 (c_alignof_expr): Likewise.
1764 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1765 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
1766 * cilk.c (create_parm_list): Likewise.
1768 2015-06-26 Marek Polacek <polacek@redhat.com>
1770 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1772 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1774 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1775 * c-gimplify.c: Likewise.
1776 * c-pragma.c: Likewise.
1777 * c-ubsan.c: Likewise.
1780 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1782 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1785 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1787 * cilk.c: Move calls.h after tm.h in the include chain.
1789 2015-06-25 Marek Polacek <polacek@redhat.com>
1791 * array-notation-common.c: Use VAR_P throughout.
1792 * c-ada-spec.c: Likewise.
1793 * c-common.c: Likewise.
1794 * c-format.c: Likewise.
1795 * c-gimplify.c: Likewise.
1796 * c-omp.c: Likewise.
1797 * c-pragma.c: Likewise.
1798 * c-pretty-print.c: Likewise.
1801 2015-06-25 Marek Polacek <polacek@redhat.com>
1803 * cilk.c (extract_free_variables): Use is_global_var.
1805 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1807 * c-common.c: Don't include target-def.h.
1809 2015-06-23 Marek Polacek <polacek@redhat.com>
1811 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1812 when comparing INTEGER_CSTs.
1814 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1816 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1817 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1818 (dump_ada_template): Skip partially specialized types.
1820 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1822 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1825 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1827 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1828 * c-ada-spec.c: Likewise.
1829 * c-cilkplus.c: Likewise.
1830 * c-common.c: Likewise.
1831 * c-common.h: Likewise.
1832 * c-cppbuiltin.c: Likewise.
1833 * c-dump.c: Likewise.
1834 * c-format.c: Likewise.
1835 * c-gimplify.c: Likewise.
1836 * c-indentation.c: Likewise.
1837 * c-lex.c: Likewise.
1838 * c-omp.c: Likewise.
1839 * c-opts.c: Likewise.
1840 * c-pch.c: Likewise.
1841 * c-ppoutput.c: Likewise.
1842 * c-pragma.c: Likewise.
1843 * c-pretty-print.c: Likewise.
1844 * c-semantics.c: Likewise.
1845 * c-ubsan.c: Likewise.
1847 * stub-objc.c: Likewise.
1849 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1852 * c-common.c (c_common_truthvalue_conversion): Warn when
1853 converting an address of a reference to a truth value.
1855 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1857 * array-notation-common.c : Adjust include files.
1858 * c-ada-spec.c : Likewise.
1859 * c-cilkplus.c : Likewise.
1860 * c-common.c : Likewise.
1861 * c-common.h : Likewise.
1862 * c-cppbuiltin.c : Likewise.
1863 * c-dump.c : Likewise.
1864 * c-format.c : Likewise.
1865 * c-gimplify.c : Likewise.
1866 * c-indentation.c : Likewise.
1867 * c-lex.c : Likewise.
1868 * c-omp.c : Likewise.
1869 * c-opts.c : Likewise.
1870 * c-pch.c : Likewise.
1871 * c-ppoutput.c : Likewise.
1872 * c-pragma.c : Likewise.
1873 * c-pretty-print.c : Likewise.
1874 * c-semantics.c : Likewise.
1875 * c-ubsan.c : Likewise.
1876 * cilk.c : Likewise.
1877 * stub-objc.c : Likewise.
1879 2015-06-08 Marek Polacek <polacek@redhat.com>
1882 * c-format.c (location_from_offset): Return LOC if LINE is null.
1884 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1886 * c-common.h (c_parse_final_cleanups): New prototype.
1887 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1889 2015-06-04 Sriraman Tallam <tmsriram@google.com>
1891 * c-common.c (noplt): New attribute.
1892 (handle_noplt_attribute): New handler.
1894 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1896 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1897 * c-ada-spec.c: Likewise.
1898 * c-cilkplus.c: Likewise.
1899 * c-common.c: Likewise.
1900 * c-common.h: Likewise.
1901 * c-cppbuiltin.c: Likewise.
1902 * c-dump.c: Likewise.
1903 * c-format.c: Likewise.
1904 * c-gimplify.c: Likewise.
1905 * c-indentation.c: Likewise.
1906 * c-lex.c: Likewise.
1907 * c-omp.c: Likewise.
1908 * c-opts.c: Likewise.
1909 * c-pch.c: Likewise.
1910 * c-ppoutput.c: Likewise.
1911 * c-pragma.c: Likewise.
1912 * c-pretty-print.c: Likewise.
1913 * c-semantics.c: Likewise.
1914 * c-ubsan.c: Likewise.
1916 * stub-objc.c: Likewise.
1918 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1921 * c-indentation.c (should_warn_for_misleading_indentation): Use
1922 expand_location rather than expand_location_to_spelling_point.
1923 Don't warn if the guarding statement is more indented than the
1926 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1928 * c-indentation.c (warn_for_misleading_indentation): Bail out
1929 immediately if -Wmisleading-indentation isn't enabled.
1931 2015-06-01 Martin Liska <mliska@suse.cz>
1933 * c-format.c (check_format_arg):Use new type-based pool allocator.
1934 (check_format_info_main) Likewise.
1936 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1938 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1939 (has_nontrivial_methods): Likewise.
1941 2015-05-25 Marek Polacek <polacek@redhat.com>
1943 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1945 2015-05-22 Marek Polacek <polacek@redhat.com>
1948 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1950 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1952 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1953 STACK_GROWS_DOWNWARD.
1955 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1957 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1958 STACK_GROWS_DOWNWARD rather than if it is defined.
1960 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1963 * c-format.c (location_column_from_byte_offset): New.
1964 (location_from_offset): New.
1965 (struct format_wanted_type): Add offset_loc field.
1966 (check_format_info): Move handling of location for extra arguments
1967 closer to the point of warning.
1968 (check_format_info_main): Pass the result of location_from_offset
1970 (format_type_warning): Pass the result of location_from_offset
1973 2015-05-20 Marek Polacek <polacek@redhat.com>
1975 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1977 2015-05-20 Marek Polacek <polacek@redhat.com>
1979 * c-ada-spec.c (dump_sloc): Use DECL_P.
1981 2015-05-20 Marek Polacek <polacek@redhat.com>
1983 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1984 * c-common.c: Likewise.
1986 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1988 * c-common.h (fe_file_change): Strengthen param from
1989 const line_map * to const line_map_ordinary *.
1990 (pp_file_change): Likewise.
1991 * c-lex.c (fe_file_change): Likewise.
1992 (cb_define): Use linemap_check_ordinary when invoking
1994 (cb_undef): Likewise.
1995 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1996 invoking cb_file_change.
1997 (c_finish_options): Likewise.
1998 (push_command_line_include): Likewise.
1999 (cb_file_change): Strengthen param "new_map" from
2000 const line_map * to const line_map_ordinary *.
2001 * c-ppoutput.c (cb_define): Likewise for local "map".
2002 (pp_file_change): Likewise for param "map" and local "from".
2004 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
2006 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
2008 2015-05-18 Tom de Vries <tom@codesourcery.com>
2010 * c-common.c (build_va_arg_1): New function.
2011 (build_va_arg): Add address operator to va_list operand if necessary.
2013 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
2016 * c-common.c (int_safely_convertible_to_real_p): Define.
2017 (unsafe_conversion_p): Check conversions involving complex types.
2018 (conversion_warning): Add new warning message for conversions which
2019 discard imaginary component.
2020 * c-common.h: (enum conversion_safety): Add new enumerator for such
2023 2015-05-14 Marek Polacek <polacek@redhat.com>
2027 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
2028 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
2029 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
2030 use it. If FOR_INT_CONST, require that all evaluated operands be
2033 2015-05-12 David Malcolm <dmalcolm@redhat.com>
2035 * c-common.h (warn_for_misleading_indentation): New prototype.
2036 * c-indentation.c: New file.
2037 * c.opt (Wmisleading-indentation): New option.
2039 2015-05-12 Tom de Vries <tom@codesourcery.com>
2041 PR tree-optimization/66010
2042 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
2044 2015-05-09 Jason Merrill <jason@redhat.com>
2046 * c-opts.c (c_common_post_options): Also clear
2047 cpp_opts->cpp_warn_cxx11_compat.
2049 * c-common.h (enum cxx_dialect): Add cxx_unset.
2050 * c-common.c (cxx_dialect): Initialize to cxx_unset.
2051 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
2053 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
2054 (std=gnu++0x): Mark as Undocumented.
2055 (std=gnu++1y): Add deprecated message.
2057 2015-05-08 Jason Merrill <jason@redhat.com>
2059 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
2062 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
2064 2015-05-08 Marek Polacek <polacek@redhat.com>
2067 * c.opt (Woverride-init-side-effects): New option.
2069 2015-05-07 Marek Polacek <polacek@redhat.com>
2072 * c-common.c (c_fully_fold_internal): Warn when left shifting a
2074 * c.opt (Wshift-negative-value): New option.
2075 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
2076 when -Wextra and C99/C++11 mode.
2078 2015-05-07 Marek Polacek <polacek@redhat.com>
2079 Martin Uecker <uecker@eecs.berkeley.edu>
2081 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
2082 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
2084 2015-05-05 Jason Merrill <jason@redhat.com>
2086 * c.opt (Wterminate): New.
2088 2015-04-30 Marek Polacek <polacek@redhat.com>
2090 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
2091 require that the non-constant be of a boolean type.
2093 2015-04-29 Josh Triplett <josh@joshtriplett.org>
2095 * c-common.c (handle_section_attribute): Refactor to reduce
2096 nesting and distinguish between error cases.
2098 2015-04-29 Marek Polacek <polacek@redhat.com>
2101 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
2104 2015-04-29 Jakub Jelinek <jakub@redhat.com>
2106 * c-common.h (omp_clause_mask): Unconditionally define as a class.
2107 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
2108 HOST_BITS_PER_WIDE_INT.
2110 2015-04-28 Tom de Vries <tom@codesourcery.com>
2112 PR tree-optimization/65887
2113 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
2115 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
2116 Pierre-Marie de Rodat <derodat@adacore.com>
2118 * c-ada-spec.c (in_function): Delete.
2119 (dump_generic_ada_node): Do not change in_function and remove the
2120 redundant code dealing with it.
2121 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
2122 (print_ada_methods): Output the static member functions in a nested
2123 package after the regular methods as well as associated renamings.
2125 2015-04-24 Marek Polacek <polacek@redhat.com>
2128 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
2129 and OPT_Wshift_count_overflow.
2132 * c-common.c (warn_logical_operator): Warn if the operands have the
2135 2015-04-24 Marek Polacek <polacek@redhat.com>
2138 * c-common.c (warn_logical_operator): Bail if either operand comes
2139 from a macro expansion.
2141 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2144 * c-common.c (c_default_pointer_mode): Add definition.
2145 * c-common.h (c_default_pointer_mode): Add declaration.
2147 2015-03-11 Jakub Jelinek <jakub@redhat.com>
2149 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
2150 on record_builtin_type argument.
2152 2015-03-10 Jakub Jelinek <jakub@redhat.com>
2155 * c-common.c (warn_logical_not_parentheses): Don't warn for
2158 2015-03-07 Marek Polacek <polacek@redhat.com>
2161 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
2162 before trying to figure out whether we have a flexible array member.
2164 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
2165 Jonathan Wakely <jwakely.gcc@gmail.com>
2167 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
2169 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
2172 * c-ada-spec.c (print_destructor): Remove obsolete code.
2174 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
2176 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
2177 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
2178 DECL_TEMPLATE_RESULT emulations.
2179 (dump_ada_template)): Add guard for TYPE_METHODS.
2181 2015-02-27 Marek Polacek <polacek@redhat.com>
2184 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
2186 2015-02-27 Kai Tietz <ktietz@redhat.com>
2189 * c-pragma.c (handle_pragma_weak): Do not try to create
2190 weak/alias of declarations not being function, or variable
2193 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
2196 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2198 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
2200 2015-02-16 Marek Polacek <polacek@redhat.com>
2203 * c-format.c (check_format_types): Handle null param.
2205 2015-02-13 Marek Polacek <polacek@redhat.com>
2208 * c-format.c (check_format_types): Don't warn about different
2209 signedness if the original value is in the range of WANTED_TYPE.
2211 2015-02-12 Jason Merrill <jason@redhat.com>
2214 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
2215 to the current highest version.
2216 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
2218 2015-02-04 Jakub Jelinek <jakub@redhat.com>
2222 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
2223 instead of RDIV_EXPR. Use build_binary_op instead of
2226 2015-01-30 Joseph Myers <joseph@codesourcery.com>
2228 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
2229 to pass input_location as first argument.
2231 2015-01-23 Tom de Vries <tom@codesourcery.com>
2234 * c.opt (fopenacc): Mark as LTO option.
2236 2015-01-23 Tom de Vries <tom@codesourcery.com>
2239 * c.opt (fopenmp): Mark as LTO option.
2241 2015-01-21 Jakub Jelinek <jakub@redhat.com>
2244 * cilk.c (fill_decls_vec): Only put decls into vector v.
2245 (compare_decls): Fix up formatting.
2247 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
2250 * cilk.c: Include vec.h.
2251 (struct cilk_decls): New structure.
2252 (wrapper_parm_cb): Split this function to...
2253 (fill_decls_vec): ...this...
2254 (create_parm_list): ...and this.
2255 (compare_decls): New function.
2256 (for_local_cb): Remove.
2257 (wrapper_local_cb): Ditto.
2258 (build_wrapper_type): For now first traverse and fill vector of
2259 declarations then sort it and then deal with sorted vector.
2260 (cilk_outline): Ditto.
2261 (declare_one_free_variable): Ditto.
2263 2015-01-21 Jason Merrill <jason@redhat.com>
2266 * c-format.c (check_format_arg): Call decl_constant_value.
2268 2015-01-19 Martin Liska <mliska@suse.cz>
2270 * c-common.c (handle_noicf_attribute): New function.
2272 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
2273 Bernd Schmidt <bernds@codesourcery.com>
2274 James Norris <jnorris@codesourcery.com>
2275 Cesar Philippidis <cesar@codesourcery.com>
2276 Ilmir Usmanov <i.usmanov@samsung.com>
2277 Jakub Jelinek <jakub@redhat.com>
2279 * c.opt (fopenacc): New option.
2280 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
2281 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
2283 * c-common.h (c_finish_oacc_wait): New prototype.
2284 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
2285 (c_finish_oacc_wait): New function.
2286 * c-pragma.c (oacc_pragmas): New variable.
2287 (c_pp_lookup_pragma, init_pragma): Handle it.
2288 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
2289 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
2290 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
2291 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
2292 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
2293 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
2294 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
2295 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
2296 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
2297 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
2298 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
2299 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
2300 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
2301 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
2302 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
2303 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
2304 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
2305 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
2306 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
2307 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
2308 PRAGMA_OACC_CLAUSE_WORKER.
2310 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
2312 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
2313 for the new option fstack-protector_explicit.
2314 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
2315 (handle_stack_protect_attribute): New function.
2317 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
2319 * c.opt: New option -Warray-bounds=.
2321 2015-01-09 Michael Collison <michael.collison@linaro.org>
2323 * array-notation-common.c: Include hash-set.h, machmode.h,
2324 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2325 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
2326 * c-ada-spec.c: Ditto.
2327 * c-cilkplus.c: Ditto.
2328 * c-common.c: Include input.h due to flattening of tree.h.
2329 Define macro GCC_C_COMMON_C.
2330 * c-common.h: Flatten tree.h header files into c-common.h.
2331 Remove include of tree-core.h.
2332 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2333 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2334 fold-const.h, wide-int.h, and inchash.h due to
2335 flattening of tree.h.
2337 * c-format.c: Flatten tree.h header files into c-common.h.
2338 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
2339 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2340 fold-const.h, wide-int.h, and inchash.h due to
2341 flattening of tree.h.
2342 * c-dump.c: Include hash-set.h, machmode.h,
2343 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2344 fold-const.h, wide-int.h, and inchash.h due to
2345 flattening of tree.h.
2346 * c-format.c: Include hash-set.h, machmode.h,
2347 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2348 fold-const.h, wide-int.h, inchash.h and real.h due to
2349 flattening of tree.h.
2350 * c-gimplify.c: Include hash-set.h, machmode.h,
2351 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
2352 fold-const.h, wide-int.h, and inchash.h due to
2353 flattening of tree.h.
2359 * c-ppoutput.c: Ditto.
2360 * c-pragma.c: Ditto.
2361 * c-pretty-print.c: Ditto.
2362 * c-semantics.c: Ditto.
2364 * stub-objc.c: Ditto.
2366 2015-01-08 Jason Merrill <jason@redhat.com>
2368 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
2369 do_ubsan_in_current_function.
2370 (ubsan_maybe_instrument_reference_or_call): Likewise.
2371 * c-ubsan.h: Declare it.
2373 2015-01-08 Mike Stump <mikestump@comcast.net>
2375 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
2377 2015-01-07 Marek Polacek <polacek@redhat.com>
2380 * c-common.c (c_fully_fold_internal): Warn for division and modulo
2381 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
2383 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
2386 * c.opt (Wsuggest-override): New option.
2388 2015-01-05 Jakub Jelinek <jakub@redhat.com>
2390 Update copyright years.
2392 2015-01-05 Marek Polacek <polacek@redhat.com>
2395 * c-common.c (warn_array_subscript_with_type_char): Add location_t
2397 * c-common.h (warn_array_subscript_with_type_char): Update
2400 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
2402 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
2403 Control macro with flag_sized_deallocation.
2405 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
2407 * c.opt (Wdiscarded-array-qualifiers): New option.
2409 2014-12-19 Jakub Jelinek <jakub@redhat.com>
2411 PR preprocessor/63831
2412 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
2413 and __has_cpp_attribute here.
2414 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
2415 c_common_has_attribute.
2416 * c-common.h (c_common_has_attribute): New prototype.
2417 * c-lex.c (init_c_lex): Set cb->has_attribute to
2418 c_common_has_attribute instead of cb_has_attribute.
2419 (get_token_no_padding): New function.
2420 (cb_has_attribute): Renamed to ...
2421 (c_common_has_attribute): ... this. No longer static. Use
2422 get_token_no_padding, require ()s, don't build TREE_LIST
2423 unnecessarily, fix up formatting, adjust diagnostics, call
2426 2014-12-15 Jason Merrill <jason@redhat.com>
2428 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
2429 (-Wsized-deallocation): New.
2430 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
2431 to on in C++14 and up.
2433 2014-12-11 Jason Merrill <jason@redhat.com>
2435 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
2437 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
2438 we aren't complaining about VLAs.
2440 2014-12-06 Marek Polacek <polacek@redhat.com>
2442 PR tree-optimization/64183
2443 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
2444 shift-expression if it is integer_type_node. Use types_compatible_p.
2446 2014-11-29 Jakub Jelinek <jakub@redhat.com>
2448 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
2449 last argument from create_tmp_var_raw and create_tmp_var calls.
2450 * cilk.c (gimplify_cilk_spawn): Likewise.
2451 * c-omp.c (c_finish_omp_atomic): Likewise.
2453 2014-11-28 Marek Polacek <polacek@redhat.com>
2455 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
2456 instead of unsigned_type_node.
2458 2014-11-28 Marek Polacek <polacek@redhat.com>
2461 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
2463 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
2464 expression to unsigned_type_node.
2466 2014-11-20 Mark Wielaard <mjw@redhat.com>
2469 * c-opts.c (set_std_c89): Set lang_hooks.name.
2470 (set_std_c99): Likewise.
2471 (set_std_c11): Likewise.
2472 (set_std_cxx98): Likewise.
2473 (set_std_cxx11): Likewise.
2474 (set_std_cxx14): Likewise.
2475 (set_std_cxx1z): Likewise.
2477 2014-11-21 Jakub Jelinek <jakub@redhat.com>
2480 * c-common.h (convert_vector_to_pointer_for_subscript): Change
2481 return type to bool.
2482 * c-common.c: Include gimple-expr.h.
2483 (convert_vector_to_pointer_for_subscript): Change return type to
2484 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
2485 and copy it into a TARGET_EXPR and use that instead of *vecp
2488 2014-11-19 David Malcolm <dmalcolm@redhat.com>
2490 Merger of git branch "gimple-classes-v2-option-3".
2491 * ChangeLog.gimple-classes: New.
2492 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
2493 from being just a vec<gimple> to a vec<gbind *>.
2495 2014-11-18 Jakub Jelinek <jakub@redhat.com>
2498 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
2499 argument to ptype, set type to TREE_TYPE (ptype). Don't call
2500 get_pointer_alignment for non-pointers. Use ptype, or if it is
2501 reference type, corresponding pointer type, as type of kind
2503 (ubsan_maybe_instrument_reference,
2504 ubsan_maybe_instrument_member_call): Adjust callers.
2506 2014-11-15 Marek Polacek <polacek@redhat.com>
2509 * array-notation-common.c (is_sec_implicit_index_fn): Return false
2511 (extract_array_notation_exprs): Return for NULL node.
2513 2014-11-12 Joseph Myers <joseph@codesourcery.com>
2515 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
2516 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
2518 2014-11-12 Jakub Jelinek <jakub@redhat.com>
2521 * c-common.c (check_builtin_function_arguments): Handle
2522 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
2524 2014-11-10 Andi Kleen <ak@linux.intel.com>
2527 * c-common.h (check_no_cilk): Declare.
2528 * cilk.c (get_error_location): New function.
2529 (check_no_cilk): Dito.
2531 2014-11-10 Andi Kleen <ak@linux.intel.com>
2533 * cilk.c (recognize_spawn): Use expression location
2536 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
2538 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
2540 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
2542 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
2543 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
2544 (__cpp_range_based_for, __cpp_initializer_lists,
2545 __cpp_delegating_constructors, __cpp_nsdmi,
2546 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
2547 for C++11; (__cpp_attribute_deprecated): Remove in favor of
2548 __has_cpp_attribute.
2549 * c-lex.c (cb_has_attribute): New callback CPP function;
2550 (init_c_lex): Set has_attribute callback.
2552 2014-11-04 Richard Biener <rguenther@suse.de>
2554 * c-common.c (shorten_compare): Do not shorten mixed
2555 DFP and non-DFP compares.
2557 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2559 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
2560 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
2561 Commentary and rearrangement of tests.
2562 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
2563 Commentary and rearrangement of tests.
2564 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
2565 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
2567 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
2569 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
2570 enum from machine_mode.
2572 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
2574 * c-common.c: Adjust include files.
2575 * c-gimplify.c: Ditto.
2577 * c-pragma.c: Ditto.
2580 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
2582 * c-gimplify.c: Adjust include files.
2584 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
2587 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
2588 c_common_initialize_diagnostics.
2589 * c-common.h: Likewise.
2591 2014-10-24 Marek Polacek <polacek@redhat.com>
2594 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
2595 print "struct"/"union"/"enum" for typedefed names.
2597 2014-10-23 Marek Polacek <polacek@redhat.com>
2599 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
2602 2014-10-22 Jakub Jelinek <jakub@redhat.com>
2603 Yury Gribov <y.gribov@samsung.com>
2605 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2606 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
2607 instead of flag_sanitize_recover as bool flag.
2609 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
2611 * cilk.c: Revert previous change.
2613 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
2616 * cilk.c: Include vec.h.
2617 (struct cilk_decls): New structure.
2618 (wrapper_parm_cb): Split this function to...
2619 (fill_decls_vec): ...this...
2620 (create_parm_list): ...and this.
2621 (compare_decls): New function.
2622 (for_local_cb): Remove.
2623 (wrapper_local_cb): Ditto.
2624 (build_wrapper_type): For now first traverse and fill vector of
2625 declarations then sort it and then deal with sorted vector.
2626 (cilk_outline): Ditto.
2627 (declare_one_free_variable): Ditto.
2629 2014-10-17 Marek Polacek <polacek@redhat.com>
2631 * c-opts.c (c_common_post_options): Set warn_implicit_int.
2632 * c.opt (Wimplicit-int): Initialize to -1.
2634 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
2636 * c-pragma.c: Adjust include files.
2637 * c-semantics.c: Likewise.
2639 2014-10-16 DJ Delorie <dj@redhat.com>
2641 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
2644 2014-10-14 Jason Merrill <jason@redhat.com>
2647 * c-common.h (CPP_PREPARSED_EXPR): New.
2648 (N_CP_TTYPES): Adjust.
2650 2014-10-15 Marek Polacek <polacek@redhat.com>
2652 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
2654 2014-10-14 DJ Delorie <dj@redhat.com>
2656 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
2657 types, not just __int128.
2658 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
2659 types, not just __int128.
2660 (cpp_atomic_builtins): Round pointer sizes up.
2661 (type_suffix): Use type precision, not specific types.
2662 * c-common.c (c_common_reswords): Remove __int128 special case.
2663 (c_common_type_for_size): Check for all __intN types, not just
2665 (c_common_type_for_mode): Likewise.
2666 (c_common_signed_or_unsigned_type): Likewise.
2667 (c_build_bitfield_integer_type): Likewise.
2668 (c_common_nodes_and_builtins): Likewise.
2669 (keyword_begins_type_specifier): Likewise.
2670 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
2673 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2675 * c-common.c: Use hash_table instead of hashtab.
2677 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
2679 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
2682 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2687 * c-common.c (warn_logical_operator): Punt for vectors.
2689 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
2691 Implement SD-6: SG10 Feature Test Recommendations
2692 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
2693 macros and the __has_header macro.
2695 2014-09-30 Jason Merrill <jason@redhat.com>
2697 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
2698 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
2699 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2701 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
2702 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
2704 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
2705 * c-common.c (c_common_reswords): Remove __is_convertible_to.
2707 2014-09-24 Marek Polacek <polacek@redhat.com>
2711 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
2713 2014-09-23 Andi Kleen <ak@linux.intel.com>
2715 * c-common.c (handle_no_reorder_attribute): New function.
2716 (c_common_attribute_table): Add no_reorder attribute.
2718 2014-09-22 Joseph Myers <joseph@codesourcery.com>
2720 * c-cppbuiltin.c (c_cpp_builtins): Define
2721 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
2724 2014-09-18 Joseph Myers <joseph@codesourcery.com>
2726 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
2727 for supported floating-point modes.
2729 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2731 * c.opt (Wpsabi): Use LangEnabledBy.
2732 * c-opts.c (c_common_handle_option): Do not handle here.
2734 2014-09-12 Joseph Myers <joseph@codesourcery.com>
2736 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
2737 macros for floating-point modes.
2739 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
2742 * c-cppbuiltin.c (builtin_define_float_constants): Correct
2743 __*_DENORM_MIN__ without denormals.
2745 2014-09-10 Jakub Jelinek <jakub@redhat.com>
2747 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2748 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2749 ubsan_create_data callers.
2750 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
2751 index is constant or BIT_AND_EXPR with constant mask and is
2752 small enough for the bound.
2753 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
2754 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
2756 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2758 * c.opt: Add CppReason to various flags.
2759 (Wdate-time): Re-sort.
2760 * c-common.c: Include c-common.h earlier.
2761 (struct reason_option_codes_t): Delete.
2762 (c_option_controlling_cpp_error): Prefix global type and struct
2765 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2767 * c.opt (Wnormalized): New.
2768 (Wnormalized=): Use Enum and Reject Negative.
2769 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2771 2014-09-08 Joseph Myers <joseph@codesourcery.com>
2773 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2774 digits of floating-point modes if -fbuilding-libgcc.
2776 2014-09-05 Joseph Myers <joseph@codesourcery.com>
2778 * c-cppbuiltin.c (c_cpp_builtins): Also define
2779 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2780 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2781 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2782 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2783 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2784 __LIBGCC_STACK_GROWS_DOWNWARD__,
2785 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2786 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2787 __LIBGCC_DWARF_FRAME_REGISTERS__,
2788 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2789 __LIBGCC_STACK_POINTER_REGNUM__ and
2790 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2791 (builtin_define_with_value): Handle backslash-escaping in string
2794 2014-09-05 Richard Biener <rguenther@suse.de>
2797 * c-format.c (check_format_arg): Properly handle
2798 effectively signed POINTER_PLUS_EXPR offset.
2800 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2802 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2803 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2804 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2806 * c-opts.c (c_common_handle_option): Do not handle here.
2807 (sanitize_cpp_opts): Likewise.
2808 * c-common.c (struct reason_option_codes_t): Handle
2809 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2811 2014-09-03 Marek Polacek <polacek@redhat.com>
2813 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2815 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2816 Balaji V. Iyer <balaji.v.iyer@intel.com>
2817 Igor Zamyatin <igor.zamyatin@intel.com>
2819 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2820 * c-common.c (c_common_reswords): Added _Cilk_for.
2821 * c-common.h (enum rid): Added RID_CILK_FOR.
2822 (cilk_for_number_of_iterations): Add declaration.
2823 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2825 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2826 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2828 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2830 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2831 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2832 Wundef): Use CPP, Var and Init.
2833 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2835 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2837 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2838 * c-opts.c (c_common_handle_option): Do not handle here.
2840 2014-08-25 Jason Merrill <jason@redhat.com>
2842 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2843 -std=c++14 and -std=gnu++14, rather than the reverse.
2844 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2845 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2846 * c-common.h (cxx_dialect): Remove cxx1y.
2848 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2850 * c-common.h (enum cxx_dialect): Add cxx14.
2851 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2852 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2853 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2855 2014-08-22 Jason Merrill <jason@redhat.com>
2857 * c.opt (std=gnu++17): Fix alias.
2859 2014-08-22 Marek Polacek <polacek@redhat.com>
2862 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2863 check for vector types. Drop LHS argument.
2864 * c-common.h (warn_logical_not_parentheses): Adjust.
2866 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2868 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2869 (Wmultichar): Likewise.
2870 (Wdate-time): Use C-family languages instead of Common. Use CPP
2872 * c-opts.c (c_common_handle_option): Do not handle the above
2874 (sanitize_cpp_opts): Likewise.
2876 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2879 * c-opts.c: Include tree-diagnostics.h.
2880 (c_diagnostic_finalizer): New.
2881 (c_common_initialize_diagnostics): Use it.
2883 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2885 PR preprocessor/51303
2886 * c-common.c (struct reason_option_codes_t option_codes):
2887 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2889 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2893 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2894 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2895 (c_common_post_options): Call init_global_opts_from_cpp.
2896 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2898 2014-08-19 Marek Polacek <polacek@redhat.com>
2901 * c-common.c (maybe_warn_bool_compare): New function.
2902 * c-common.h (maybe_warn_bool_compare): Declare.
2903 * c.opt (Wbool-compare): New option.
2905 2014-08-19 Marek Polacek <polacek@redhat.com>
2907 * c.opt (Wc99-c11-compat): New option.
2909 2014-08-19 Marek Polacek <polacek@redhat.com>
2911 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2912 to warn_c90_c99_compat.
2913 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2916 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2917 Steven Bosscher <steven@gcc.gnu.org>
2920 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2921 format_check_results.
2922 (check_function_format): Use true and add comment for boolean
2924 (finish_dollar_format_checking): Use explicit location when warning.
2925 (check_format_info): Likewise.
2926 (check_format_arg): Set extra_arg_loc and format_string_loc.
2927 (check_format_info_main): Use explicit location when warning.
2928 (check_format_types): Pass explicit location.
2929 (format_type_warning): Likewise.
2931 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2934 * c-format.c: Handle Fortran flags.
2936 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2939 * array-notation-common.c (find_rank): Added handling for other
2940 types of references.
2942 2014-08-10 Marek Polacek <polacek@redhat.com>
2945 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2946 * c.opt (Wc90-c99-compat): Add option.
2948 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2950 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2952 2014-08-03 Marek Polacek <polacek@redhat.com>
2954 * c-common.c (check_case_value): Add location_t parameter. Use it.
2955 (c_add_case_label): Pass loc to check_case_value.
2957 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2959 * cilk.c: Use hash_map instead of pointer_map.
2961 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2963 * c-gimplify.c: Use hash_set instead of pointer_set.
2965 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2968 * array-notation-common.c (extract_array_notation_exprs): Handling
2971 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2973 * c-common.h (min_align_of_type): Removed prototype.
2974 * c-common.c (min_align_of_type): Removed.
2975 * c-ubsan.h (ubsan_maybe_instrument_reference,
2976 ubsan_maybe_instrument_member_call): New prototypes.
2977 * c-ubsan.c: Include stor-layout.h and builtins.h.
2978 (ubsan_maybe_instrument_reference_or_call,
2979 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2982 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
2985 * c.opt (-Wreturn-local-addr): Move to common.opt.
2987 2014-07-30 Jason Merrill <jason@redhat.com>
2992 * c.opt (-fuse-all-virtuals): New.
2994 2014-07-30 Tom Tromey <tromey@redhat.com>
2997 * c.opt (Wdesignated-init): New option.
2998 * c-common.c (c_common_attribute_table): Add "designated_init".
2999 (handle_designated_init): New function.
3001 2014-07-24 Marek Polacek <polacek@redhat.com>
3004 * c-opts.c (c_finish_options): If -imacros is in effect, return.
3006 2014-07-16 Dodji Seketeli <dodji@redhat.com>
3008 PR preprocessor/60723 - missing system-ness marks for macro tokens
3009 * c-ppoutput.c (struct print::prev_was_system_token): New data
3011 (init_pp_output): Initialize it.
3012 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
3013 (do_line_change): Return a flag saying if a line marker was
3015 (scan_translation_unit): Detect if the system-ness of the token we
3016 are about to emit is different from the one of the previously
3017 emitted token. If so, emit a line marker. Avoid emitting useless
3018 adjacent line markers. Avoid emitting line markers for tokens
3019 originating from the expansion of built-in macros.
3020 (scan_translation_unit_directives_only): Adjust.
3022 2014-07-15 Marek Polacek <polacek@redhat.com>
3024 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
3025 TYPE_MAX_VALUE is NULL.
3027 2014-07-14 Jakub Jelinek <jakub@redhat.com>
3030 * c.opt (Wmemset-transposed-args): New warning.
3032 2014-07-10 Jason Merrill <jason@redhat.com>
3036 * c.opt (-fuse-all-virtuals): New.
3038 2014-07-09 Richard Biener <rguenther@suse.de>
3041 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3042 using unsigned arithmetic if overflow does not wrap instead of
3043 if overflow is undefined.
3045 2014-07-06 Marek Polacek <polacek@redhat.com>
3048 * c.opt (Wsizeof-array-argument): New option.
3050 2014-07-03 Jakub Jelinek <jakub@redhat.com>
3052 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
3053 comments->count <= 1, as comments->entries might be NULL.
3055 2014-07-01 Marek Polacek <polacek@redhat.com>
3057 * c.opt (Wint-conversion): New option.
3059 2014-07-01 Marek Polacek <polacek@redhat.com>
3062 * c.opt (Wincompatible-pointer-types): New option.
3064 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
3067 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
3068 Do not discard TYPE_QUALS of type.
3070 2014-06-26 Jason Merrill <jason@redhat.com>
3072 * c-common.h (enum cxx_dialect): Add cxx1z.
3073 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
3074 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
3076 2014-06-26 Teresa Johnson <tejohnson@google.com>
3078 * c-common.h (get_dump_info): Declare.
3079 * c-gimplify.c (c_genericize): Use saved dump files.
3080 * c-opts.c (c_common_parse_file): Begin and end dumps
3081 once around parsing invocation.
3082 (get_dump_info): New function.
3084 2014-06-23 Marek Polacek <polacek@redhat.com>
3085 Andrew MacLeod <amacleod@redhat.com>
3088 * c-common.c (get_atomic_generic_size): Don't segfault if the
3089 type doesn't have a size.
3091 2014-06-20 Marek Polacek <polacek@redhat.com>
3093 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
3094 (ubsan_walk_array_refs_r): New function.
3095 (c_genericize): Instrument array bounds.
3096 * c-ubsan.c: Include "internal-fn.h".
3097 (ubsan_instrument_division): Mark instrumented arrays as having
3098 side effects. Adjust ubsan_type_descriptor call.
3099 (ubsan_instrument_shift): Likewise.
3100 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
3101 (ubsan_instrument_bounds): New function.
3102 (ubsan_array_ref_instrumented_p): New function.
3103 (ubsan_maybe_instrument_array_ref): New function.
3104 * c-ubsan.h (ubsan_instrument_bounds): Declare.
3105 (ubsan_array_ref_instrumented_p): Declare.
3106 (ubsan_maybe_instrument_array_ref): Declare.
3108 2014-06-20 Hale Wang <hale.wang@arm.com>
3111 * c.opt (fshort-enums): Add to LTO.
3112 * c.opt (fshort-wchar): Likewise.
3114 2014-06-16 Marek Polacek <polacek@redhat.com>
3117 * c.opt (Wswitch-bool): Add Var.
3119 2014-06-12 Jakub Jelinek <jakub@redhat.com>
3122 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
3123 #pragma omp target teams or
3124 #pragma omp {,target }teams distribute simd.
3126 2014-06-12 Jason Merrill <jason@redhat.com>
3128 * c.opt (Wabi=, fabi-compat-version): New.
3129 * c-opts.c (c_common_handle_option): Handle -Wabi=.
3130 (c_common_post_options): Handle flag_abi_compat_version default.
3131 Disallow -fabi-compat-version=1.
3132 * c-common.h (abi_version_crosses): New.
3134 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
3136 * c-common.c (handle_section_attribute): Update handling for
3137 section names that are no longer trees.
3139 2014-06-10 Jakub Jelinek <jakub@redhat.com>
3142 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
3143 (omp_pragmas): ... back here.
3145 2014-06-05 Marek Polacek <polacek@redhat.com>
3148 * c-common.c (warn_logical_not_parentheses): New function.
3149 * c-common.h (warn_logical_not_parentheses): Declare.
3150 * c.opt (Wlogical-not-parentheses): New option.
3152 2014-06-04 Marek Polacek <polacek@redhat.com>
3155 * c-common.c (check_case_bounds): Add location parameter.
3157 (c_add_case_label): Pass loc to check_case_bounds.
3159 2014-06-03 Marek Polacek <polacek@redhat.com>
3162 * c.opt (Wswitch-bool): New option.
3164 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
3166 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
3168 (record_types_used_by_current_var_decl): Move prototype to where
3171 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
3172 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
3173 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
3175 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3177 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
3178 * c-common.c (c_common_nodes_and_builtins): Don't initialize
3180 * c-pretty-print.c (pp_c_void_constant): New function.
3181 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
3182 (c_pretty_printer::expression): Handle VOID_CST.
3183 * cilk.c (extract_free_variables): Likewise.
3184 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
3185 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
3187 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
3189 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
3190 * c-pragma.c (push_alignment): Adjust.
3191 (handle_pragma_push_options): Likewise.
3193 2014-05-09 Marek Polacek <polacek@redhat.com>
3196 * c-common.c (check_user_alignment): Return -1 if alignment is error
3198 (handle_aligned_attribute): Don't call default_conversion on
3200 (handle_vector_size_attribute): Likewise.
3201 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
3202 (handle_sentinel_attribute): Call default_conversion and allow even
3203 integral types as an argument.
3205 2014-05-08 Marek Polacek <polacek@redhat.com>
3208 * c-common.c (min_align_of_type): New function factored out from...
3209 (c_sizeof_or_alignof_type): ...here.
3210 * c-common.h (min_align_of_type): Declare.
3212 2014-05-08 Marek Polacek <polacek@redhat.com>
3215 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
3216 parameter type of main.
3218 2014-05-07 DJ Delorie <dj@redhat.com>
3220 * c-cppbuiltin.c (print_bits_of_hex): New.
3221 (builtin_define_type_minmax): Print values using hex so as not to
3222 require a pre-computed list of string values.
3224 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
3225 Mike Stump <mikestump@comcast.net>
3226 Richard Sandiford <rdsandiford@googlemail.com>
3228 * c-ada-spec.c: Include wide-int.h.
3229 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
3230 (dump_generic_ada_node): Use wide-int interfaces.
3231 * c-common.c: Include wide-int-print.h.
3232 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
3233 (pointer_int_sum): Use wide-int interfaces.
3234 (c_common_nodes_and_builtins): Use make_int_cst.
3235 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
3236 (handle_alloc_size_attribute): Use wide-int interfaces.
3237 (get_nonnull_operand): Likewise.
3238 * c-format.c (get_constant): Use tree_fits_uhwi_p.
3239 * c-lex.c: Include wide-int.h.
3240 (narrowest_unsigned_type): Take a widest_int rather than two
3242 (narrowest_signed_type): Likewise.
3243 (interpret_integer): Update accordingly. Use wide-int interfaces.
3244 (lex_charconst): Use wide-int interfaces.
3245 * c-pretty-print.c: Include wide-int.h.
3246 (pp_c_integer_constant): Use wide-int interfaces.
3247 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
3248 INT_CST_LT_UNSIGNED.
3250 2014-05-06 Richard Biener <rguenther@suse.de>
3252 * c-opts.c (c_common_post_options): For -freestanding,
3253 -fno-hosted and -fno-builtin disable pattern recognition
3254 if not enabled explicitely.
3256 2014-05-02 Marek Polacek <polacek@redhat.com>
3258 * c.opt (Wsizeof-pointer-memaccess): Describe option.
3260 2014-05-01 Marek Polacek <polacek@redhat.com>
3263 * c.opt (Wdiscarded-qualifiers): Add.
3265 2014-04-30 Marek Polacek <polacek@redhat.com>
3267 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
3268 INT_MIN / -1 sanitization only for integer types.
3270 2014-04-25 Marek Polacek <polacek@redhat.com>
3273 * c-common.c (handle_noinline_attribute): Warn if the attribute
3274 conflicts with always_inline attribute.
3275 (handle_always_inline_attribute): Warn if the attribute conflicts
3276 with noinline attribute.
3278 2014-04-25 Marek Polacek <polacek@redhat.com>
3281 * c-common.c (check_main_parameter_types): Warn about variadic main.
3283 2014-04-24 Mike Stump <mikestump@comcast.net>
3285 * c.opt (Wshadow-ivar): Default to on.
3287 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
3289 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
3291 2014-04-23 Marek Polacek <polacek@redhat.com>
3293 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
3295 2014-04-22 Jakub Jelinek <jakub@redhat.com>
3298 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
3299 if flag_sanitize_undefined_trap_on_error.
3300 (ubsan_instrument_division, ubsan_instrument_shift,
3301 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
3302 if !flag_sanitize_recover.
3304 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
3307 * c-common.c (registered_builtin_types): Make non-static.
3308 * c-common.h (registered_builtin_types): Declare.
3310 2014-04-14 Richard Biener <rguenther@suse.de>
3311 Marc Glisse <marc.glisse@inria.fr>
3314 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
3315 apply may-alias the scalar pointer type when applicable.
3317 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
3320 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
3321 as possible argument for Cilk_spawn.
3323 2014-04-11 Tobias Burnus <burnus@net-b.de>
3326 * c.opt (Wformat-signedness): Add
3327 * c-format.c(check_format_types): Use it.
3329 2014-04-11 Jason Merrill <jason@redhat.com>
3332 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
3333 default_conversion for an array argument.
3335 2014-04-08 Marek Polacek <polacek@redhat.com>
3338 * c-ubsan.c: Include asan.h.
3339 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
3341 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
3343 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
3345 2014-04-02 Marek Polacek <polacek@redhat.com>
3347 * c-common.h (c_expand_expr): Remove declaration.
3349 2014-03-28 Jakub Jelinek <jakub@redhat.com>
3352 * c-common.c (add_atomic_size_parameter): When creating new
3353 params vector, push the size argument first.
3355 2014-03-26 Jakub Jelinek <jakub@redhat.com>
3357 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
3358 ubsan_instrument_vla, ubsan_instrument_return): Adjust
3359 ubsan_create_data callers.
3361 2014-03-22 Jakub Jelinek <jakub@redhat.com>
3364 * c-opts.c (c_finish_options): Restore cb_file_change call to
3367 2014-03-13 Jakub Jelinek <jakub@redhat.com>
3370 * c-pragma.c (apply_pragma_weak): Only look at
3371 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
3372 DECL_ASSEMBLER_NAME_SET_P (decl).
3373 (maybe_apply_pending_pragma_weaks): Exit early if
3374 vec_safe_is_empty (pending_weaks) rather than only when
3376 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
3377 set assembler name back to NULL afterwards.
3379 2014-03-11 Jason Merrill <jason@redhat.com>
3381 * c.opt: Add -std=gnu++14.
3383 2014-03-11 Ian Bolton <ian.bolton@arm.com>
3385 * c-opts.c (c_common_post_options): Don't override
3386 -ffp-contract=fast if unsafe-math-optimizations is on.
3388 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
3390 * c.opt: Enable LTO FE for fshort-double.
3392 2014-03-07 Jason Merrill <jason@redhat.com>
3394 * c.opt: Add -std=c++14.
3396 2014-03-06 Marek Polacek <polacek@redhat.com>
3399 * cilk.c (contains_cilk_spawn_stmt): New function.
3400 (contains_cilk_spawn_stmt_walker): Likewise.
3401 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
3402 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
3404 2014-03-03 Jakub Jelinek <jakub@redhat.com>
3406 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
3407 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
3408 even when flag_preprocess_only.
3410 2014-02-26 Jason Merrill <jason@redhat.com>
3414 * c-common.c (shorten_compare): Don't check
3415 c_inhibit_evaluation_warnings.
3417 2014-02-19 Jakub Jelinek <jakub@redhat.com>
3420 * c-common.c (c_common_nodes_and_builtins): When initializing
3421 c_uint{16,32,64}_type_node, also set corresponding
3422 uint{16,32,64}_type_node to the same value.
3425 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
3426 for PRAGMA_IVDEP if flag_preprocess_only.
3428 2014-02-12 Jakub Jelinek <jakub@redhat.com>
3431 * c-common.c (merge_tlist): If copy is true, call new_tlist,
3432 if false, add ADD itself, rather than vice versa.
3433 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
3434 copy. For SAVE_EXPR, only call merge_tlist once.
3436 2014-02-08 Jakub Jelinek <jakub@redhat.com>
3439 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
3441 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
3443 (c_common_attribute_table): Add alloc_align and assume_aligned
3446 2014-02-06 Marek Polacek <polacek@redhat.com>
3449 * c-common.c (warn_for_sign_compare): Call warning_at with location
3452 2014-02-05 Marek Polacek <polacek@redhat.com>
3455 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
3458 2014-02-04 Marek Polacek <polacek@redhat.com>
3461 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
3464 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
3468 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
3469 handle_vector_size_attribute, handle_nonnull_attribute): Call
3470 default_conversion on the attribute argument.
3471 (handle_nonnull_attribute): Increment the argument number.
3473 2014-01-31 Marek Polacek <polacek@redhat.com>
3476 * c-common.c (add_atomic_size_parameter): Pass vNULL to
3477 build_function_call_vec.
3478 (resolve_overloaded_builtin): Likewise.
3479 * c-common.h (build_function_call_vec): Adjust declaration.
3481 2014-01-30 Marek Polacek <polacek@redhat.com>
3484 * c-common.h (unsafe_conversion_p): Adjust declaration.
3485 (warnings_for_convert_and_check): Likewise.
3486 (convert_and_check): Likewise.
3487 * c-common.c (unsafe_conversion_p): Add location parameter. Call
3488 expansion_point_location_if_in_system_header on it.
3489 (warnings_for_convert_and_check): Add location parameter. Call
3490 expansion_point_location_if_in_system_header on it. Use it.
3491 (convert_and_check): Add location parameter. Use it.
3492 (conversion_warning): Likewise.
3493 (c_add_case_label): Adjust convert_and_check calls.
3494 (scalar_to_vector): Adjust unsafe_conversion_p calls.
3496 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
3498 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
3500 * c-pragma.c (init_pragma): Likewise.
3503 2014-01-23 Marek Polacek <polacek@redhat.com>
3506 * c-common.c (shorten_compare): Add location_t parameter.
3507 * c-common.h (shorten_binary_op): Adjust declaration.
3509 2014-01-23 Marek Polacek <polacek@redhat.com>
3512 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
3513 * c-common.h: Declare it.
3515 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
3517 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
3518 * c-ada-spec.c (dump_ads): Likewise.
3519 (cpp_check): Likewise.
3520 (dump_ada_specs): Likewise.
3522 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
3525 * c-common.c (handle_no_instrument_function_attribute): Allow
3526 no_instrument_function attribute in class member
3527 definition/declaration.
3529 2014-01-15 Jakub Jelinek <jakub@redhat.com>
3532 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
3533 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
3534 being COMPOUND_EXPR.
3535 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
3536 operand a SAVE_EXPR and second MODIFY_EXPR.
3538 2014-01-09 Jakub Jelinek <jakub@redhat.com>
3541 * c-pch.c (c_common_write_pch): Call
3542 prepare_target_option_nodes_for_pch.
3544 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3546 Update copyright years
3548 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
3550 * array-notation-common.c, c-cilkplus.c: Use the standard form for
3551 the copyright notice.
3553 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
3555 * c-ada-spec.c (print_constructor): New function.
3556 (print_destructor): Retrieve the origin of the destructor.
3557 (print_ada_declaration): Revamp handling of constructors/destructors.
3559 2013-12-23 Stuart Hastings <stuart@apple.com>
3560 Bill Maddox <maddox@google.com>
3561 Jason Merrill <jason@redhat.com>
3563 * c.opt: Add -fdeclone-ctor-dtor.
3564 * c-opts.c (c_common_post_options): Default to on iff -Os.
3566 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
3568 * c-common.c (c_common_attribute_table): Added "cilk simd function"
3570 * c-pragma.h (enum pragma_cilk_clause): Remove.
3571 (enum pragma_omp_clause): Added the following fields:
3572 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
3573 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
3574 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
3575 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
3576 PRAGMA_CILK_CLAUSE_UNIFORM.
3579 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
3581 * cilk.c (cilk_outline): Made this function non-static.
3582 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
3583 (create_cilk_wrapper): Added a new parameter: a function pointer.
3584 (c_install_body_w_frame_cleanup): Remove
3585 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
3586 * c-common.h (cilk_outline): New prototype.
3587 (gimplify_cilk_spawn): Removed two parameters.
3588 (cilk_install_body_with_frame_cleanup): New prototype.
3589 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
3590 CILK_SPAWN_STMT case.
3592 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
3594 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
3596 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
3597 (int_array_type_node): Remove.
3598 * c-common.c (c_common_nodes_and_builtins): Don't build it.
3600 2013-12-05 Marek Polacek <polacek@redhat.com>
3603 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
3604 [ADJUST_FIELD_ALIGN].
3606 2013-12-04 Joseph Myers <joseph@codesourcery.com>
3609 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
3610 and check field alignment if set.
3611 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
3612 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
3614 2013-12-04 Jakub Jelinek <jakub@redhat.com>
3615 Marek Polacek <polacek@redhat.com>
3617 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
3618 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
3620 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
3623 * cilk.c (gimplify_cilk_spawn): Properly handle function without
3626 2013-11-29 Jakub Jelinek <jakub@redhat.com>
3629 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
3630 goto invalid. If it is error_mark_node, don't issue further
3633 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
3635 * c.opt (Wopenmp-simd): New.
3637 2013-11-22 Jakub Jelinek <jakub@redhat.com>
3639 * c-ubsan.h (ubsan_instrument_return): New prototype.
3640 * c-ubsan.c (ubsan_instrument_return): New function.
3642 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
3644 * c-common.c: Add required include files from gimple.h.
3645 * c-gimplify.c: Likewise
3648 2013-11-22 David Malcolm <dmalcolm@redhat.com>
3650 * c-common.c (unsafe_conversion_p): Remove use of
3651 EXPR_LOC_OR_HERE macro.
3652 (conversion_warning): Likewise.
3653 (warnings_for_convert_and_check): Likewise.
3654 (warn_for_collisions_1): Likewise.
3655 (shorten_compare): Likewise, and remove use of in_system_header
3656 macro, using the location from the former.
3657 * c-lex.c (dump_one_header): Remove use of input_filename macro.
3658 (cb_def_pragma): Remove use of in_system_header macro.
3659 (lex_string): Likewise.
3660 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3662 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3663 Mike Stump <mikestump@comcast.net>
3664 Richard Sandiford <rdsandiford@googlemail.com>
3666 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
3667 instead of TREE_INT_CST_LOW, in cases where there is a protecting
3668 tree_fits_shwi_p or tree_fits_uhwi_p.
3669 (dump_generic_ada_node): Likewise.
3670 * c-format.c (check_format_arg): Likewise.
3671 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3673 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3675 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
3677 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
3680 * c-common.c (unsafe_conversion_p): Make this function
3681 return an enumeration with more detail.
3682 (conversion_warning): Use the new return type of
3683 unsafe_conversion_p to separately warn either about conversions
3684 that lower floating point number precision or about the other
3685 kinds of conversions.
3686 * c-common.h (enum conversion_safety): New enumeration.
3687 (unsafe_conversion_p): switching return type to
3688 conversion_safety enumeration.
3689 * c.opt: Adding new warning -Wfloat-conversion and
3690 enabling it with -Wconversion.
3692 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
3694 * c-opts.c: Include plugin.h.
3695 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
3697 2013-11-19 Marek Polacek <polacek@redhat.com>
3699 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
3701 (ubsan_instrument_shift): Likewise.
3702 (ubsan_instrument_vla): Likewise.
3704 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3706 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
3707 cast to unsigned type.
3709 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3711 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
3713 (complete_array_type): Update comment to refer to tree_to_[su]hwi
3714 rather than tree_low_cst.
3716 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3718 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
3719 tree_to_uhwi throughout.
3721 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3723 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
3724 tree_low_cst (..., 0) with tree_to_shwi throughout.
3726 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3728 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
3729 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
3731 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
3733 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
3734 host_integerp (..., 0) with tree_fits_shwi_p throughout.
3736 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
3738 * c-cilkplus.c: New file.
3739 * c-common.c (readonly_error): Add location argument.
3740 * c-common.h (readonly_error): Same.
3741 (c_finish_cilk_clauses): Protoize.
3742 (c_check_cilk_loop): Same.
3743 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
3744 Do not fail on error_mark_node.
3745 Abstract increment canonicalization to here...
3746 (c_omp_for_incr_canonicalize_ptr): New.
3747 c-pragma.c (init_pragma): Register "simd" pragma.
3748 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
3749 (enum pragma_cilk_clause): New.
3751 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
3753 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
3754 wchar_type and host_integerp checks.
3756 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
3758 * c-common.c: Likewise.
3759 * c-gimplify.c: Likewise.
3762 2013-11-14 Diego Novillo <dnovillo@google.com>
3764 * c-common.c: Include fold-const.h.
3765 Include stor-layout.h.
3767 Include stringpool.h.
3770 Include trans-mem.h.
3771 * c-cppbuiltin.c: Include stor-layout.h.
3772 Include stringpool.h.
3773 * c-format.c: Include stringpool.h.
3774 * c-lex.c: Include stringpool.h.
3775 Include stor-layout.h.
3776 * c-pragma.c: Include stringpool.h.
3779 Include gcc-symtab.h.
3780 * c-pretty-print.c: Include stor-layout.h.
3782 * cilk.c: Include stringpool.h.
3785 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3787 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3788 * c-common.c (c_common_reswords): Add __auto_type.
3789 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3791 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3793 * c-common.c: Include gimplify.h.
3794 * c-gimplify.c: Likewise.
3796 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3797 * c-ubsan.c: Don't include gimple.h.
3799 2013-11-12 Joseph Myers <joseph@codesourcery.com>
3801 * c-common.c (c_common_reswords): Add _Thread_local.
3803 2013-11-09 Joseph Myers <joseph@codesourcery.com>
3805 * c-common.c (atomic_size_supported_p): New function.
3806 (resolve_overloaded_atomic_exchange)
3807 (resolve_overloaded_atomic_compare_exchange)
3808 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3809 Use it instead of comparing size with a local list of sizes.
3811 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
3812 Joseph Myers <joseph@codesourcery.com>
3814 * c-common.h (enum rid): Add RID_ATOMIC.
3815 * c-common.c (c_common_reswords): Add _Atomic.
3816 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3817 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3818 * c-format.c (check_format_types): Check for extra _Atomic
3819 qualifiers in format argument.
3820 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3821 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3823 2013-11-06 Tobias Burnus <burnus@net-b.de>
3825 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3827 2013-11-06 Joseph Myers <joseph@codesourcery.com>
3829 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3831 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3832 to mean lack of IEEE 754 support.
3834 2013-11-05 Tobias Burnus <burnus@net-b.de>
3836 * c.opt (-Wdate-time): New option
3837 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3839 2013-11-05 Joseph Myers <joseph@codesourcery.com>
3841 * c-cppbuiltin.c (cpp_iec_559_value): Test
3842 flag_excess_precision_cmdline not flag_excess_precision.
3844 2013-11-05 Tobias Burnus <burnus@net-b.de>
3846 * c.opt (fopenmp-simd): New option.
3847 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3848 (omp_pragmas): ... this new struct.
3849 (c_pp_lookup_pragma): Also walk omp_pragmas.
3850 (init_pragma): Init pragmas for -fopenmp-simd.
3852 2013-11-04 Marek Polacek <polacek@redhat.com>
3855 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3857 2013-11-04 Joseph Myers <joseph@codesourcery.com>
3859 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3861 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3863 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3865 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3866 (dump_ada_specs): Adjust prototype of second callback.
3867 * c-ada-spec.c (cpp_check): New global variable.
3868 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3869 (print_generic_ada_decl): Likewise.
3870 (has_static_fields): Change return type to bool and add guard.
3871 (has_nontrivial_methods): New predicate.
3872 (is_tagged_type): Change return type to bool.
3873 (separate_class_package): Call has_nontrivial_methods.
3874 (pp_ada_tree_identifier): Minor tweaks.
3875 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3876 (dump_ada_array_domains): Likewise.
3877 (dump_ada_array_type): Likewise.
3878 (dump_template_types): Remove cpp_check parameter and do not pass it to
3879 dump_generic_ada_node.
3880 (dump_ada_template): Likewise.
3881 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3883 (print_ada_methods): Change return type to integer. Remove cpp_check
3884 parameter and do not pass it down.
3885 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3886 dump_generic_ada_node.
3887 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3889 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3890 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3891 value of print_ada_methods.
3892 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3893 Set cpp_check to it before invoking dump_ada_nodes.
3894 (dump_ada_specs): Likewise.
3896 2013-11-03 Marek Polacek <polacek@redhat.com>
3898 * c-ubsan.c: Don't include hash-table.h.
3899 (ubsan_instrument_vla): New function.
3900 * c-ubsan.h: Declare it.
3902 2013-10-31 David Malcolm <dmalcolm@redhat.com>
3904 Automated part of renaming of symtab_node_base to symtab_node.
3906 Patch autogenerated by rename_symtab.py from
3907 https://github.com/davidmalcolm/gcc-refactoring-scripts
3908 revision 58bb219cc090b2f4516a9297d868c245495ee622
3910 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3911 symtab_node_base to symtab_node.
3913 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3915 Implement C++14 digit separators.
3916 * c-lex.c (interpret_float): Remove digit separators from scratch string
3917 before building real literal.
3919 2013-10-30 Jakub Jelinek <jakub@redhat.com>
3921 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3923 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3925 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3927 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3929 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3930 (insert_cilk_frame): New prototype.
3931 (cilk_init_builtins): Likewise.
3932 (gimplify_cilk_spawn): Likewise.
3933 (c_cilk_install_body_w_frame_cleanup): Likewise.
3934 (cilk_detect_spawn_and_unwrap): Likewise.
3935 (cilk_set_spawn_marker): Likewise.
3936 (build_cilk_sync): Likewise.
3937 (build_cilk_spawn): Likewise.
3940 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3942 Patch autogenerated by refactor_symtab.py from
3943 https://github.com/davidmalcolm/gcc-refactoring-scripts
3944 revision 58bb219cc090b2f4516a9297d868c245495ee622
3946 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3947 to a true class hierarchy.
3948 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3950 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3952 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3954 2013-10-26 Jeff Law <law@redhat.com>
3956 * c-common.c (c_define_builtins): Remove mudflap support.
3957 * c.opt: Ignore and warn for mudflap options.
3959 2013-10-24 Tobias Burnus <burnus@net-b.de>
3962 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3963 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3965 2013-10-23 Jason Merrill <jason@redhat.com>
3967 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3969 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3971 * c-common.h (omp_clause_mask::operator !=): New method.
3972 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3973 instead of if (mask & something) tests everywhere.
3975 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3976 201307 instead of 201107.
3977 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3978 (c_common_attribute_table): Add "omp declare target" and
3979 "omp declare simd" attributes.
3980 (handle_omp_declare_target_attribute,
3981 handle_omp_declare_simd_attribute): New functions.
3982 * c-omp.c: Include c-pragma.h.
3983 (c_finish_omp_taskgroup): New function.
3984 (c_finish_omp_atomic): Add swapped argument, if true,
3985 build the operation first with rhs, lhs arguments and use NOP_EXPR
3987 (c_finish_omp_for): Add code argument, pass it down to make_code.
3988 (c_omp_split_clauses): New function.
3989 (c_split_parallel_clauses): Removed.
3990 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3991 c_omp_declare_simd_clauses_to_decls): New functions.
3992 * c-common.h (omp_clause_mask): New type.
3993 (OMP_CLAUSE_MASK_1): Define.
3994 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3995 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3996 omp_clause_mask::operator |, omp_clause_mask::operator &,
3997 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3998 omp_clause_mask::operator ==): New methods.
3999 (enum c_omp_clause_split): New.
4000 (c_finish_omp_taskgroup): New prototype.
4001 (c_finish_omp_atomic): Add swapped argument.
4002 (c_finish_omp_for): Add code argument.
4003 (c_omp_split_clauses): New prototype.
4004 (c_split_parallel_clauses): Removed.
4005 (c_omp_declare_simd_clauses_to_numbers,
4006 c_omp_declare_simd_clauses_to_decls): New prototypes.
4007 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
4008 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
4009 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
4010 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
4011 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
4012 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
4013 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
4014 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
4015 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
4016 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
4017 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
4018 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
4019 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
4020 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
4021 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
4022 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
4023 PRAGMA_OMP_CLAUSE_UNIFORM.
4025 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
4027 PR tree-optimization/20318
4028 * c-common.c (handle_returns_nonnull_attribute): New function.
4029 (c_common_attribute_table): Add returns_nonnull.
4031 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
4034 * c.opt (fcheck-new): Move to common.opt.
4036 2013-09-25 Marek Polacek <polacek@redhat.com>
4037 Jakub Jelinek <jakub@redhat.com>
4040 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
4041 an expression if we can prove it is correct.
4042 (ubsan_instrument_division): Likewise. Remove unnecessary
4045 2013-09-18 Marek Polacek <polacek@redhat.com>
4048 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
4050 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
4052 2013-09-14 Iain Sandoe <iain@codesourcery.com>
4055 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
4056 fobjc-gc, freplace-objc-classes): Accept for LTO.
4058 2013-09-13 Jacek Caban <jacek@codeweavers.com>
4060 * c-target.def: New hook
4062 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
4065 * c.opt (Wdelete-incomplete): Add.
4067 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
4069 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
4070 (vector_types_compatible_elements_p): New function.
4071 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
4073 (vector_types_compatible_elements_p): Declare.
4075 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4077 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
4078 a virtual member function.
4079 (pp_simple_type_specifier): Remove.
4080 (pp_c_type_specifier): Likewise.
4081 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
4082 Rename from pp_c_type_specifier. Adjust.
4083 (c_pretty_printer::c_pretty_printer): Do not assign to
4084 simple_type_specifier.
4086 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4088 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
4090 (c_pretty_printer::storage_class_specifier): Likewise.
4091 (c_pretty_printer::initializer): Likewise.
4092 (pp_declaration): Remove.
4093 (pp_declaration_specifiers): Likewise.
4094 (pp_abstract_declarator): Likewise.
4095 (pp_declarator): Likewise.
4096 (pp_type_id): Likewise.
4097 (pp_statement): Likewise.
4098 (pp_constant): Likewise.
4099 (pp_id_expression): Likewise.
4100 (pp_primary_expression): Likewise.
4101 (pp_unary_expression): Likewise.
4102 (pp_multiplicative_expression): Likewise.
4103 (pp_conditional_expression): Likewise.
4104 (pp_assignment_expression): Likewise.
4105 (pp_expression): Likewise.
4106 (pp_c_type_id): Likewise.
4107 (pp_c_storage_class_specifier): Likewise.
4108 * c-pretty-print.c (pp_c_type_cast): Tidy.
4109 (pp_c_pointer): Likewise.
4110 (pp_c_type_specifier): Likewise.
4111 (pp_c_parameter_type_list): Likewise.
4112 (pp_c_function_definition): Likewise.
4113 (pp_c_init_declarator): Likewise.
4114 (pp_c_initializer_list): Likewise.
4115 (pp_c_constructor_elts): Likewise.
4116 (c_pretty_printer::direct_abstract_declarator): Likewise.
4117 (c_pretty_printer::declaration_specifiers): Likewise.
4118 (c_pretty_printer::primary_expression): Likewise.
4119 (c_pretty_printer::postfix_expression): Likewise.
4120 (c_pretty_printer::type_id): Rename from pp_c_type_id.
4121 (c_pretty_printer::storage_class_specifier): Rename from
4122 pp_c_storage_class_specifier.
4123 (c_pretty_printer::initializer): Rename from pp_c_initializer.
4124 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
4125 storage_class_specifier, initializer, offset_list, flags.
4127 2013-08-30 Marek Polacek <polacek@redhat.com>
4129 * c-ubsan.c: New file.
4130 * c-ubsan.h: New file.
4132 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
4134 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
4136 (c_pretty_printer::declaration_specifiers): Likewise.
4137 (c_pretty_printer::declarator): Likewise.
4138 (c_pretty_printer::abstract_declarator): Likewise.
4139 (c_pretty_printer::direct_abstract_declarator): Likewise.
4140 (c_pretty_printer::direct_declarator): Likewise.
4141 (c_pretty_printer::function_specifier): Likewise.
4142 (pp_declaration): Adjust.
4143 (pp_declaration_specifiers): Likewise.
4144 (pp_abstract_declarator): Likewise.
4145 (pp_direct_declarator): Likewise.
4146 (pp_function_specifier): Likewise.
4147 (pp_direct_abstract_declarator): Remove as unused.
4148 (pp_c_declaration): Remove.
4149 (pp_c_declaration_specifiers): Likewise.
4150 (pp_c_declarator): Likewise.
4151 (pp_c_direct_declarator): Likewise.
4152 (pp_c_function_specifier): Likewise.
4153 (pp_c_direct_abstract_declarator): Likewise.
4154 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
4155 from pp_c_abstract_declarator. Adjust.
4156 (c_pretty_printer::direct_abstract_declarator): Rename from
4157 pp_c_direct_abstract_declarator. Adjust.
4158 (c_pretty_printer::function_specifier): Rename from
4159 pp_c_function_specifier. Adjust.
4160 (c_pretty_printer::declaration_specifiers): Rename from
4161 pp_c_declaration_specifiers. Adjust.
4162 (c_pretty_printer::direct_declarator): Rename from
4163 pp_c_direct_declarator. Adjust.
4164 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
4165 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
4166 (c_pretty_printer::c_pretty_printer): Do not assign to
4167 declaration, declaration_specifiers, declarator,
4168 direct_declarator, direct_abstract_declarator, function_specifier.
4170 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
4172 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4173 virtual member function.
4174 (c_pretty_printer::multiplicative_expression): Likewise.
4175 (c_pretty_printer::conditional_expression): Likewise.
4176 (c_pretty_printer::assignment_expression): Likewise.
4177 (c_pretty_printer::expression): Likewise.
4178 (pp_unary_expression): Adjust.
4179 (pp_multiplicative_expression): Likewise.
4180 (pp_assignment_expression): Likewise.
4181 (pp_conditional_expression): Likewise.
4182 (pp_expression): Likewise.
4183 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
4184 from pp_c_unary_expression. Adjust.
4185 (c_pretty_printer::multiplicative_expression): Rename from
4186 pp_c_multiplicative_expression. Adjust.
4187 (c_pretty_printer::conditional_expression): Rename from
4188 pp_c_conditional_expression. Adjust.
4189 (c_pretty_printer::assignment_expression): Rename from
4190 pp_c_assignment_expression. Adjust.
4191 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
4192 (c_pretty_printer::c_pretty_printer): Do not assign to
4193 unary_expression, multiplicative_expression,
4194 conditional_expression, expression.
4196 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4198 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
4199 virtual member function.
4200 (pp_postfix_expression): Adjust.
4201 (pp_c_postfix_expression): Remove.
4202 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
4203 from pp_c_postfix_expression. Adjust.
4204 (c_pretty_printer::c_pretty_printer): Do not assign to
4207 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4209 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
4210 virtua member function.
4211 (pp_primary_expression): Adjust.
4212 (pp_c_primary_expression): Remove.
4213 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
4214 from pp_c_primary_expression. Adjust.
4215 (pp_c_initializer_list): Use pp_primary_expression.
4216 (c_pretty_printer::c_pretty_printer): Do not assign to
4219 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
4221 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
4222 * c-pretty-print.c (M_): Remove.
4223 (c_pretty_printer::translate_string): Define.
4224 (pp_c_type_specifier): Use it.
4225 (pp_c_primary_expression): Likewise.
4226 (pp_c_expression): Likewise.
4228 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4230 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
4232 (pp_c_id_expression): Remove.
4233 (pp_id_expression): Adjust.
4234 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
4235 pp_c_id_expression. Adjust.
4236 (pp_c_postfix_expression): Use pp_id_expression.
4237 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
4239 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4241 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
4243 (pp_constant): Adjust.
4244 (pp_c_constant): Remove.
4245 * c-pretty-print.c (c_pretty_printer::constant): Rename from
4246 pp_c_constant. Adjust.
4248 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
4249 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
4251 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4253 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
4254 (c_pretty_printer::c_pretty_printer): Declare.
4255 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
4256 c_pretty_printer_init. Adjust.
4257 (print_c_tree): Do not call c_pretty_printer_init.
4258 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
4260 2013-08-09 Arnaud Charlet <charlet@adacore.com>
4262 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
4264 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
4267 * c-common.c (pointer_int_sum): Add bool parameter.
4268 * c-common.h (pointer_int_sum): Adjust declaration.
4270 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4272 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
4273 c_pretty_printer variable.
4275 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
4277 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
4279 (pp_c_base): Likewise. Adjust users.
4280 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
4281 (pp_c_whitespace): Do not call pp_base.
4282 (pp_c_left_paren): Likewise.
4283 (pp_c_right_paren): Likewise.
4284 (pp_c_left_brace): Likewise.
4285 (pp_c_right_brace): Likewise.
4286 (pp_c_left_bracket): Likewise.
4287 (pp_c_right_bracket): Likewise.
4288 (pp_c_dot): Likewise.
4289 (pp_c_ampersand): Likewise.
4290 (pp_c_star): Likewise.
4291 (pp_c_arrow): Likewise.
4292 (pp_c_semicolon): Likewise.
4293 (pp_c_complement): Likewise.
4294 (pp_c_exclamation): Likewise.
4295 (pp_c_direct_declarator): Likewise.
4296 (pp_c_ws_string): Likewise.
4297 (pp_c_identifier): Likewise.
4298 (pp_c_statement): Likewise.
4299 (print_c_tree): Likewise.
4301 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
4304 * c-common.c (c_parse_error): Catch user-defined literal tokens and
4305 provide useful error strings.
4307 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4309 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
4310 printer functions instead of pp_string or operators and punctuators.
4311 (dump_generic_ada_node): Likewise.
4312 * c-pretty-print.c (pp_c_type_specifier): Likewise.
4313 (pp_c_relational_expression): Likewise.
4314 (pp_c_logical_or_expression): Likewise.
4316 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4318 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
4319 functions instead of pp_character.
4320 (pp_ada_tree_identifier): Likewise.
4321 (dump_ada_double_name): Likewise.
4322 (dump_ada_function_declaration): Likewise.
4323 (dump_ada_array_domains): Likewise.
4324 (dump_template_types): Likewise.
4325 (dump_generic_ada_node): Likewise.
4326 (print_ada_declaration): Likewise.
4327 (print_ada_struct_decl): Likewise.
4328 * c-pretty-print.c (pp_c_integer_constant): Likewise.
4330 2013-07-23 Tom Tromey <tromey@redhat.com>
4332 * c-common.h (enum rid) <RID_GENERIC>: New constant.
4333 * c-common.c (c_common_reswords): Add _Generic.
4335 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
4337 * c-common.c: Fix typos.
4338 * c-common.h: Likewise.
4340 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
4343 * c-common.c (c_common_attribute_table): Add warn_unused.
4344 (handle_warn_unused_attribute): New.
4346 2013-07-10 Jakub Jelinek <jakub@redhat.com>
4348 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
4349 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
4351 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
4354 * c.opt: Add Wconditionally-supported.
4356 2013-07-08 Graham Stott <graham.stott@btinternet.com>
4358 * array-notation-common.c (length_mismatch_in_expr_p): Delete
4359 unused variables l_length and l_node.
4361 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
4364 * c-common.c (complete_array_type): Delay folding first index
4365 like other indices. When folding, check for index overflow.
4367 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
4370 * c-common.h (c_build_vec_perm_expr): New complain argument.
4371 * c-common.c (c_build_vec_perm_expr): Likewise.
4372 Use save_expr also in C++.
4374 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
4376 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
4377 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4378 * c-opts.c (c_common_post_options): Likewise.
4380 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4382 * array-notation-common.c (length_mismatch_in_expr): Changed the
4383 parameter type's from a dynamic array to a vec_tree. Also removed
4384 the size parameters.
4385 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
4388 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
4390 * c-common.h (struct cilkplus_an_parts): New structure.
4391 (struct cilkplus_an_loop_parts): Likewise.
4392 (cilkplus_extract_an_triplets): New prototype.
4393 (fix_sec_implicit_args): Likewise.
4394 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
4395 (fix_sec_implicit_args): Likewise.
4397 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
4399 * array-notation-common.c (find_inv_trees): Removed an unwanted
4401 * c-common.h (struct inv_list::additional_tcodes): Changed type from
4402 enum rid to enum tree_code.
4404 2013-06-11 Jan Hubicka <jh@suse.cz>
4406 * c-common.c (handle_alias_ifunc_attribute): Do not set
4407 DECL_EXTERNAL for weakref variables.
4408 * c-pragma.c (handle_pragma_weak): Make sure aliases
4409 are not declared as external.
4411 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
4413 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
4414 function from c/c-array-notation.c.
4415 (is_cilkplus_reduce_builtin): Likewise.
4416 (find_rank): Likewise.
4417 (extract_array_notation_exprs): Likewise.
4418 (replace_array_notations): Likewise.
4419 (find_inv_trees): Likewise.
4420 (replace_inv_trees): Likewise.
4421 (contains_array_notation_expr): Likewise.
4422 (find_correct_array_notation_type): Likewise.
4423 * c-common.h (struct inv_list): Moved this struct from the file
4424 c/c-array-notation.c and added a new field called additional tcodes.
4425 (length_mismatch_in_expr_p): New prototype.
4426 (is_cilkplus_reduce_builtin): Likewise.
4427 (find_rank): Likewise.
4428 (extract_array_notation_exprs): Likewise.
4429 (replace_array_notation): Likewise.
4430 (find_inv_trees): Likewise.
4431 (replace_inv_trees): Likewise.
4432 (find_correct_array_notation_type): Likewise.
4434 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4436 * c-common.c (c_define_builtins): When cilkplus is enabled, the
4437 function array_notation_init_builtins is called.
4438 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
4439 * c-common.def (ARRAY_NOTATION_REF): New tree.
4440 * c-common.h (build_array_notation_expr): New function declaration.
4441 (build_array_notation_ref): Likewise.
4442 (extract_sec_implicit_index_arg): New extern declaration.
4443 (is_sec_implicit_index_fn): Likewise.
4444 (ARRAY_NOTATION_CHECK): New define.
4445 (ARRAY_NOTATION_ARRAY): Likewise.
4446 (ARRAY_NOTATION_START): Likewise.
4447 (ARRAY_NOTATION_LENGTH): Likewise.
4448 (ARRAY_NOTATION_STRIDE): Likewise.
4449 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
4451 (pp_c_expression): Likewise.
4452 * c.opt (flag_enable_cilkplus): New flag.
4453 * array-notation-common.c: New file.
4455 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4458 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
4460 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
4462 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
4465 2013-05-07 Han Shen <shenhan@google.com>
4467 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
4469 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4471 * c-common.c (check_user_alignment): Emit error for negative values.
4473 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4475 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
4477 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4479 * c-cppbuiltin.c (c_cpp_builtins): Do not define
4480 __GXX_EXPERIMENTAL_CXX1Y__.
4482 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4483 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4485 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
4486 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
4487 to simply use OPT_Wpointer_arith.
4488 (c_sizeof_or_alignof_type): Likewise.
4490 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4492 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
4494 2013-04-12 Jakub Jelinek <jakub@redhat.com>
4496 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
4497 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
4500 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
4502 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
4504 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
4506 * c-common.c (pointer_int_sum): Remove dead code.
4508 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
4511 * c-common.c (handle_optimize_attribute): Don't call
4512 save_optabs_if_changed.
4514 2013-03-05 Jakub Jelinek <jakub@redhat.com>
4517 * c-pch.c (pch_init): Free target_validity at the end.
4519 2013-03-04 Jakub Jelinek <jakub@redhat.com>
4521 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
4523 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
4524 Jakub Jelinek <jakub@redhat.com>
4527 * c-common.c (handle_no_sanitize_address_attribute): New function.
4528 (c_common_attribute_table): Add no_sanitize_address attribute.
4529 (handle_no_address_safety_analysis_attribute): Add
4530 no_sanitize_address attribute, not no_address_safety_analysis
4533 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
4536 * c-common.c (handle_optimize_attribute): Call
4537 save_optabs_if_changed.
4539 2013-02-18 Jakub Jelinek <jakub@redhat.com>
4540 Steven Bosscher <steven@gcc.gnu.org>
4543 * c-opts.c (c_common_post_options): If debug info is enabled
4544 and non-dwarf*, refuse to load PCH files and when writing PCH
4547 2013-02-05 Jakub Jelinek <jakub@redhat.com>
4550 * c-common.c (handle_error_attribute): Fix condition.
4552 2013-01-30 Jakub Jelinek <jakub@redhat.com>
4555 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
4557 2013-01-18 Jason Merrill <jason@redhat.com>
4560 * c.opt (-fextern-tls-init): New.
4561 * c-opts.c (c_common_post_options): Handle it.
4563 2013-01-09 Jakub Jelinek <jakub@redhat.com>
4566 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
4567 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
4568 and is either negative or bigger or equal to type precision
4569 of the first operand.
4571 2012-12-03 Marek Polacek <polacek@redhat.com>
4574 * c-common.c (check_user_alignment): Swap order of tests,
4575 check TREE_CODE first.
4577 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
4580 * c-common.h (overflow_type): New enum.
4581 (build_userdef_literal): Add overflow_type argument.
4582 (tree_userdef_literal): Add overflow_type.
4583 (USERDEF_LITERAL_OVERFLOW): New access macro.
4584 * c-common.c (build_userdef_literal): Add overflow_type
4586 * c-lex.c (c_lex_with_flags): Add overflow_type to
4587 build_userdef_literal calls.
4588 (interpret_integer, interpret_float): Add overflow_type argument.
4590 2012-11-28 Richard Biener <rguenther@suse.de>
4593 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
4594 here and use a type with proper overflow behavior for types that would
4595 need to be promoted for the arithmetic.
4597 2012-11-23 Jakub Jelinek <jakub@redhat.com>
4600 * c-common.c (handle_no_address_safety_analysis_attribute): New
4602 (c_common_attribute_table): Add no_address_safety_analysis.
4604 2012-11-16 Simon Baldwin <simonb@google.com>
4606 * c.opt: Add f[no-]canonical-system-headers.
4607 * c-opts.c (c_common_handle_option): Handle
4608 OPT_fcanonical_system_headers.
4610 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
4613 * c-opts.c (c_common_handle_option): Set new flags.
4614 * c.opt: Describe new flags.
4616 2012-11-09 Jason Merrill <jason@redhat.com>
4618 * c.opt (Wabi-tag): New.
4620 2012-11-09 Andi Kleen <ak@linux.intel.com>
4623 * c-common.c (get_atomic_generic_size): Mask with
4626 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4629 * c.opt (Wformat): Make it Alias Wformat=1.
4630 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
4631 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
4633 (Wformat=): RejectNegative. Use LangEnabledBy.
4634 (Wnonnull): Use LangEnabledBy.
4635 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
4636 * c-format.c (set_Wformat): Delete.
4637 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
4638 (maybe_read_dollar_number): Likewise.
4639 (avoid_dollar_number): Likewise.
4640 (finish_dollar_format_checking): Likewise.
4641 (check_format_info): Likewise.
4642 (check_format_info_main): Likewise.
4643 (check_format_types): Likewise.
4644 (format_type_warning): Likewise.
4645 * c-common.c (int): Likewise.
4646 (check_function_sentinel): Likewise.
4647 * c-common.h (warn_format,set_Wformat): Do not declare here.
4649 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4652 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
4653 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
4655 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
4657 (Wvariadic-macros): Init(1).
4658 * c-opts.c (c_common_handle_option): Do not handle them
4660 (c_common_post_options): Likewise.
4661 (sanitize_cpp_opts): warn_unused_macros is now
4662 cpp_warn_unused_macros.
4663 (push_command_line_include): Likewise.
4664 * c-common.c (warn_unknown_pragmas): Do not define.
4665 * c-common.h (warn_unknown_pragmas): Do not declare.
4667 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
4670 * c-common.c (conversion_warning): Handle conditional expressions.
4672 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
4675 * c.opt (Wreturn_local_addr): Define new option.
4677 2012-10-25 Jason Merrill <jason@redhat.com>
4679 * c.opt (Wvirtual-move-assign): New.
4681 * c.opt (Winherited-variadic-ctor): New.
4683 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
4686 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
4688 2012-10-23 Joseph Myers <joseph@codesourcery.com>
4690 * c-common.h (pch_cpp_save_state): Declare.
4691 * c-target.def (c_preinclude): New hook.
4692 * c-opts.c (done_preinclude): New.
4693 (push_command_line_include): Handle default preincluded header.
4694 (cb_file_change): Call pch_cpp_save_state when calling
4695 push_command_line_include.
4696 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
4697 (pch_cpp_save_state): New.
4698 (pch_init): Call pch_cpp_save_state conditionally, instead of
4699 calling cpp_save_state.
4701 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4705 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
4706 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
4707 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
4708 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
4709 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
4710 * c-opts.c (c_common_handle_option): Remove explicit handling from
4712 (c_common_post_options): Likewise.
4714 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4716 * c-ada-spec.c (LOCATION_COL): Delete.
4717 (compare_location): New function.
4718 (compare_node): Use it.
4719 (compare_comment): Likewise.
4721 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
4725 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
4726 * c-opts.c (c_common_handle_option): Do not set them here. Add
4728 (c_common_post_options): Likewise.
4730 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
4732 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
4733 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
4734 Remove POINTER_TYPE handling, add large unsigned handling and use
4735 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
4737 2012-10-12 Jakub Jelinek <jakub@redhat.com>
4740 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
4741 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
4742 locs and array of 3 trees instead of just single loc and single
4743 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
4744 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
4745 For *cmp* builtins that take two sources strings report warnings
4746 about first and second source, not about destination and source.
4748 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
4751 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
4753 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
4755 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
4756 declaring something coming from another file.
4758 2012-10-10 Arnaud Charlet <charlet@adacore.com>
4761 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4763 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4766 * c-common.c (warn_about_parentheses): Add location_t parameter;
4767 use EXPR_LOC_OR_LOC.
4768 * c-common.h: Update declaration.
4770 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
4773 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4774 more operations. Make error messages optional.
4775 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4776 (scalar_to_vector): Declare.
4778 2012-10-08 Jason Merrill <jason@redhat.com>
4780 * c-common.c (c_common_reswords): Add thread_local.
4782 2012-10-08 Dodji Seketeli <dodji@redhat.com>
4784 PR c++/53528 C++11 attribute support
4785 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4787 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4789 (handle_aligned_attribute): In choose strictest alignment
4790 among many. Use new check_cxx_fundamental_alignment_constraints.
4791 (handle_transparent_union_attribute): In c++11 attribute syntax,
4792 don't look through typedefs.
4794 2012-10-04 Arnaud Charlet <charlet@adacore.com>
4796 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4797 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4800 2012-09-25 Dehao Chen <dehao@google.com>
4803 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
4804 map when read in the pch.
4806 2012-09-18 Arnaud Charlet <charlet@adacore.com>
4808 * c-ada-spec.c: Style fixes.
4810 2012-09-18 Thomas Quinot <quinot@adacore.com>
4812 * c.opt (-fada-spec-parent): Define new command line switch.
4813 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4814 is specified, generate binding spec as a child of the specified unit.
4816 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4817 Manuel López-Ibáñez <manu@gcc.gnu.org>
4820 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4822 2012-08-23 Arnaud Charlet <charlet@adacore.com>
4824 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4825 for pointers, and add missing Convention C pragma.
4826 (print_ada_struct_decl): Add missing aliased keyword.
4827 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4829 2012-08-17 Jakub Jelinek <jakub@redhat.com>
4831 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4832 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4833 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4834 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4835 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4837 2012-08-10 Richard Guenther <rguenther@suse.de>
4839 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4841 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4843 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4844 instead of separate pp_newline and pp_flush.
4845 (print_c_tree): Likewise.
4847 2012-07-26 Richard Henderson <rth@redhat.com>
4849 * c-common.c (handle_hot_attribute): Allow labels.
4850 (handle_cold_attribute): Likewise.
4852 2012-07-20 Jakub Jelinek <jakub@redhat.com>
4855 * c-common.c (check_function_nonnull): Handle multiple nonnull
4856 attributes properly.
4858 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4860 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4861 * c-ada-spec.c: Likewise.
4862 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4864 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4866 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4867 Remove code conditional on it.
4869 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4871 * c-gimplify.c: Do not include basic-block.h.
4872 * c-common.c: Do not include linfuncs.h.
4874 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4876 * c-common.h: Include tree.h.
4878 2012-07-02 Jason Merrill <jason@redhat.com>
4881 * c-common.c (get_priority): Call default_conversion.
4883 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
4885 * c-pch.c (c_common_write_pch): Remove unused variables.
4887 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4889 * cppspec.c: Moved from gcc/ to here.
4891 2012-06-27 Kai Tietz <ktietz@redhat.com>
4893 PR preprocessor/37215
4894 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4896 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4898 * c-common.h (c_common_print_pch_checksum): Remove.
4899 * c-pch.c: Do not include output.h.
4900 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4901 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4902 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4903 (struct c_pch_header): Remove.
4904 (get_ident): Update gpch version.
4905 (pch_init): Do not print executable_checksum to asm_out_file.
4906 Do not fail if there is no asm_out_file to read back from. Set
4907 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4908 (c_common_write_pch): Verify that nothing was written to asm_out_file
4909 since pch_init was called. Do not write a c_pch_header, and do not
4910 copy from asm_out_file to the PCH.
4911 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4912 the content of asm_out_file from the PCH.
4913 (c_common_print_pch_checksum): Remove.
4914 * c-opts.c (c_common_init): Print out executable_checksum directly.
4916 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4918 * c-target.def (objc_declare_unresolved_class_reference,
4919 objc_declare_class_definition): Add new hooks.
4921 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4923 * c-lex.c: Do not include output.h.
4924 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4925 Remove uses of ASM_OUTPUT_IDENT.
4927 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
4930 * c-common.h (c_build_vec_perm_expr): Move decl here.
4931 * c-common.c (c_build_vec_perm_expr): Move definition
4934 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4936 * c.opt (fconserve-space): Turn into a no-op.
4938 2012-06-04 Sterling Augustine <saugustine@google.com>
4940 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4941 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4942 both the start and end of the function.
4944 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4946 * c-common.c: Do not include output.h.
4947 * c-pragma.c: Likewise.
4949 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4951 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4952 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4953 (lang_decl_name): Handle namespace decls.
4955 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4957 * c-ada-spec.c: Do not include output.h.
4958 * c-semantics.c: Likewise.
4960 2012-05-29 Joseph Myers <joseph@codesourcery.com>
4962 * c-common.c: Fix typo.
4964 2012-05-29 Michael Matz <matz@suse.de>
4966 * c-common.h (c_expand_decl): Remove prototype.
4968 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4970 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4971 * c-opts.c (c_common_handle_option): Remove code handling
4972 warn_missing_braces.
4974 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4977 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4980 2012-05-22 Dodji Seketeli <dodji@redhat.com>
4983 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4985 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4987 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4988 * c-opts.c (c_common_handle_option): Do not handle explicitly
4989 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4991 2012-05-16 Dodji Seketeli <dodji@redhat.com>
4993 PR preprocessor/7263
4994 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4995 to cpp_classify_number. For diagnostics, use the precise location
4996 instead of the global input_location.
4998 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5001 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
5003 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
5005 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
5007 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5010 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
5011 Wreorder): Use LangEnabledBy.
5012 * c-opts.c (c_common_handle_option): Do not enable them
5013 explicitly. Call lang-specific generated functions.
5014 (c_common_post_options): Do not set them here.
5016 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
5018 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
5019 Wmissing-field-initializers,Wmissing-parameter-type,
5020 Wold-style-declaration,Woverride-init): Use EnabledBy.
5021 * c-opts.c (c_common_post_options): Do not set here explicitly.
5023 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5026 * c-opts.c (c_common_handle_option): Use handle_generated_option
5027 to enable sub-options.
5029 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
5032 * c-common.c (warnings_for_convert_and_check): Use warning_at.
5034 2012-05-10 Richard Guenther <rguenther@suse.de>
5036 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
5037 adjust commentary about TYPE_IS_SIZETYPE types.
5039 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5042 * c-common.c (warn_logical_operator): Check that argument of
5043 integer_zerop is not NULL.
5045 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
5048 * c-common.c (warn_logical_operator): Do not warn if either side
5049 is already true or false.
5051 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5054 * c-common.c (expr_original_type): New.
5055 (shorten_compare): Do not warn for enumeration types.
5057 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5059 * c.opt (fpermissive): Add Var(flag_permissive).
5061 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
5064 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
5065 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
5067 2012-04-30 Dodji Seketeli <dodji@redhat.com>
5069 Add -Wvarargs option
5070 * c.opt (Wvarargs): Define new option.
5072 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5074 * c-common.c (check_function_arguments): Replace
5075 Wmissing-format-attribute with Wsuggest-attribute=format.
5077 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5079 * c.opt (Wsuggest-attribute=format): New. Alias of
5080 Wmissing-format-attribute.
5081 * c-format.c (decode_format_type): Replace
5082 Wmissing-format-attribute with Wsuggest-attribute=format.
5083 (check_function_format): Likewise.
5085 2012-04-27 Ollie Wild <aaw@google.com>
5087 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
5088 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
5089 * c.opt: Add Wliteral-suffix.
5091 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
5094 * c.opt (Wpedantic): New.
5095 (pedantic): Alias Wpedantic.
5096 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
5097 (c_common_post_options): Likewise.
5098 (sanitize_cpp_opts): Likewise.
5099 * c-lex.c (interpret_float): Likewise.
5100 * c-format.c (check_format_types): Likewise.
5101 * c-common.c (pointer_int_sum): Likewise.
5102 (c_sizeof_or_alignof_type): Likewise.
5103 (c_add_case_label): Likewise.
5104 (c_do_switch_warnings): Likewise.
5105 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
5107 2012-04-15 Jason Merrill <jason@redhat.com>
5110 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
5111 (C_STD_NAME): Distinguish between C++98 and C++11.
5113 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
5116 * c-common.h (uint16_type_node): Rename into...
5117 (c_uint16_type_node): ...this.
5118 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
5119 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
5121 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
5123 * c-common.c (warn_if_unused_value): Move definition to here.
5124 * c-common.h (warn_if_unused_value): Move declaration to here.
5126 2012-03-23 William Bader <williambader@hotmail.com>
5128 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
5130 2012-03-20 Jason Merrill <jason@redhat.com>
5132 * c-common.h (enum cxx_dialect): Add cxx1y.
5133 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
5135 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
5136 * c-opts.c (c_common_post_options): Likewise.
5137 (set_std_cxx1y): New.
5138 (c_common_handle_option): Call it.
5139 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
5141 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
5144 * c.opt ([Wuseless-cast]): Add.
5146 2012-03-16 Richard Guenther <rguenther@suse.de>
5148 * c-pretty-print.c (pp_c_initializer_list): Adjust.
5150 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
5153 * c.opt (ftemplate-backtrace-limit) Add.
5155 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5157 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
5159 * c-pragma.c (handle_pragma_extern_prefix): Remove.
5160 (init_pragma): Don't register extern_prefix.
5162 2012-03-12 Richard Guenther <rguenther@suse.de>
5164 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
5165 (builtin_type_for_size): Likewise.
5167 2012-02-13 Jakub Jelinek <jakub@redhat.com>
5170 * c-common.c (sync_resolve_params): Don't decide whether to convert
5171 or not based on TYPE_SIZE comparison, convert whenever arg_type
5172 is unsigned INTEGER_TYPE.
5174 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
5177 * c.opt ([Wunused-local-typedefs]): Fix description.
5179 2012-01-24 Mike Stump <mikestump@comcast.net>
5181 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
5184 2012-01-18 Richard Guenther <rguenther@suse.de>
5186 * c-opts.c (c_common_post_options): Reset LTO flags if
5187 we are about to generate a PCH.
5189 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
5192 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
5193 use pp_unsigned_wide_integer.
5195 2012-01-10 Richard Guenther <rguenther@suse.de>
5198 * c-opts.c (c_common_handle_option): Move -Werror handling
5199 to language independent code.
5201 2012-01-05 Richard Guenther <rguenther@suse.de>
5204 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
5207 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
5210 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
5211 of array types with an unknown bound.
5213 2011-12-20 Joseph Myers <joseph@codesourcery.com>
5215 * c-common.c (flag_isoc99): Update comment to refer to C11.
5216 (flag_isoc1x): Change to flag_isoc11.
5217 * c-common.h (flag_isoc99): Update comment to refer to C11.
5218 (flag_isoc1x): Change to flag_isoc11.
5219 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
5221 * c-opts.c (set_std_c1x): Change to set_std_c11.
5222 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
5224 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
5225 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
5226 * c.opt (std=c1x): Change to std=c11. Document as non-draft
5228 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
5229 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
5230 (std=gnu1x): Make alias of std=gnu11.
5232 2011-12-19 Jason Merrill <jason@redhat.com>
5235 * c-common.c (handle_transparent_union_attribute): Check the first
5236 field if the type is complete.
5238 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
5241 * c-common.c (RID_IS_FINAL): Add.
5242 * c-common.h (RID_IS_FINAL): Add.
5244 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
5246 * c.opt (fgnu-runtime): Provide full description.
5247 (fnext-runtime): Likewise.
5248 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
5250 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
5252 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
5253 predefines in one place. Add LOCK_FREE predefines.
5254 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
5257 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
5260 * c-common.c (get_atomic_generic_size): Check for various error
5262 (resolve_overloaded_atomic_exchange,
5263 resolve_overloaded_atomic_compare_exchange,
5264 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
5265 error_mark_node for error conditions.
5267 2011-11-08 Richard Guenther <rguenther@suse.de>
5272 2011-11-07 Richard Henderson <rth@redhat.com>
5273 Aldy Hernandez <aldyh@redhat.com>
5274 Torvald Riegel <triegel@redhat.com>
5276 Merged from transactional-memory.
5278 * c-common.c (handle_tm_wrap_attribute,
5279 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
5280 (struct c_common_reswords): Added __transaction* keywords.
5281 (struct c_common_attribute_table): Added transaction* and tm_regparm
5283 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
5285 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
5286 find_tm_attribute): Declare.
5288 2011-11-07 Jason Merrill <jason@redhat.com>
5291 * c-common.c, c-common.h: Revert yesterday's changes.
5293 2011-11-06 Jason Merrill <jason@redhat.com>
5296 * c-common.c (decl_has_visibility_attr): Split out from...
5297 (c_determine_visibility): ...here.
5298 * c-common.h: Declare it.
5300 2011-11-06 Joseph Myers <joseph@codesourcery.com>
5302 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
5303 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
5305 (check_user_alignment): New. Split out of
5306 handle_aligned_attribute. Disallow integer constants with
5307 noninteger types. Conditionally allow zero.
5308 (handle_aligned_attribute): Use check_user_alignment.
5309 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
5311 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
5312 Richard Henderson <rth@redhat.com>
5314 Merged from cxx-mem-model.
5316 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
5317 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
5318 parameters that are the same type size.
5319 (get_atomic_generic_size): New. Find size of generic
5320 atomic function parameters and do typechecking.
5321 (add_atomic_size_parameter): New. Insert size into parameter list.
5322 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
5323 either __atomic_exchange_n or external library call.
5324 (resolve_overloaded_atomic_compare_exchange): Restructure
5325 __atomic_compare_exchange to either _n variant or external library call.
5326 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
5327 __atomic_load_n or an external library call.
5328 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
5329 __atomic_store_n or an external library call.
5330 (resolve_overloaded_builtin): Handle new __atomic builtins.
5332 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
5335 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
5336 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
5337 <INDIRECT_REF>: Return the argument.
5338 <ARRAY_REF>: Remove special code for negative offset.
5339 Call fold_build_pointer_plus instead of size_binop.
5340 (fold_offsetof): Remove STOP_REF argument and adjust.
5341 * c-common.h (fold_offsetof_1): Declare.
5342 (fold_offsetof): Remove STOP_REF argument.
5344 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
5347 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5348 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5349 Wnarrowing for C++0x and C++98.
5350 * c.opt ([Wnarrowing]): Update.
5352 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
5355 * c.opt: Add Wzero-as-null-pointer-constant.
5357 2011-10-31 Jason Merrill <jason@redhat.com>
5359 * c.opt (-fdeduce-init-list): Off by default.
5362 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
5363 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
5365 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
5367 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
5370 * c.opt (fvisibility-inlines-hidden): Description change.
5372 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
5374 Implement C++11 user-defined literals.
5375 * c-common.c (build_userdef_literal): New.
5376 * c-common.def: New tree code.
5377 * c-common.h (tree_userdef_literal): New tree struct and accessors.
5378 * c-lex.c (interpret_float): Add suffix parm.
5379 (c_lex_with_flags): Build literal tokens.
5381 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5385 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5388 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5389 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5390 Wnarrowing for C++0x and C++98.
5391 * c.opt ([Wnarrowing]): Update.
5393 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
5396 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
5397 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
5398 Wnarrowing for C++0x and C++98.
5399 * c.opt ([Wnarrowing]): Update.
5401 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
5404 * c-common.c (conversion_warning): Remove code looking for
5405 artificial operands.
5407 2011-10-18 Dodji Seketeli <dodji@redhat.com>
5410 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
5411 !NO_IMPLICIT_EXTERN_C.
5413 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
5415 * c-common.c (c_common_reswords): Add __bases,
5417 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
5419 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
5422 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
5424 2011-10-15 Tom Tromey <tromey@redhat.com>
5425 Dodji Seketeli <dodji@redhat.com>
5427 * c.opt (fdebug-cpp): New option.
5428 * c-opts.c (c_common_handle_option): Handle the option.
5429 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
5430 output stream in parameter. Factorized from ...
5431 (maybe_print_line): ... this. Dump location debug information when
5432 -fdebug-cpp is in effect.
5433 (print_line_1): New static function. Takes an output stream in
5434 parameter. Factorized from ...
5435 (print_line): ... here. Dump location information when -fdebug-cpp
5437 (scan_translation_unit): Dump location information when
5438 -fdebug-cpp is in effect.
5440 2011-10-15 Tom Tromey <tromey@redhat.com>
5441 Dodji Seketeli <dodji@redhat.com>
5443 * c.opt (ftrack-macro-expansion): New option. Handle it with and
5445 * c-opts.c (c_common_handle_option)<case
5446 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
5447 cases. Handle -ftrack-macro-expansion with and without argument.
5449 2011-10-15 Tom Tromey <tromey@redhat.com>
5450 Dodji Seketeli <dodji@redhat.com>
5452 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
5453 (print_line, cb_define, do_line_change): Adjust to avoid touching
5454 the internals of struct line_map. Use the public API instead.
5455 * c-pch.c (c_common_read_pch): Likewise.
5456 * c-lex.c (fe_file_change): Likewise.
5458 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
5461 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
5463 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
5466 * c-pretty-print.c (pp_c_floating_constant): Output
5467 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
5469 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
5471 * c-common.c (def_builtin_1): Delete old interface with two
5472 parallel arrays to hold standard builtin declarations, and replace
5473 it with a function based interface that can support creating
5474 builtins on the fly in the future. Change all uses, and poison
5475 the old names. Make sure 0 is not a legitimate builtin index.
5476 * c-omp.c (c_finish_omp_barrier): Ditto.
5477 (c_finish_omp_taskwait): Ditto.
5478 (c_finish_omp_flush): Ditto.
5480 2011-10-11 Tristan Gingold <gingold@adacore.com>
5482 * c.opt: (fallow-parameterless-variadic-functions): New.
5484 2011-09-08 Dodji Seketeli <dodji@redhat.com>
5486 PR c++/33255 - Support -Wunused-local-typedefs warning
5487 * c-common.h (struct c_language_function::local_typedefs): New
5489 (record_locally_defined_typedef, maybe_record_typedef_use)
5490 (maybe_warn_unused_local_typedefs): Declare new functions.
5491 * c-common.c (record_locally_defined_typedef)
5492 (maybe_record_typedef_use)
5493 (maybe_warn_unused_local_typedefs): Define new functions.
5494 * c.opt: Declare new -Wunused-local-typedefs flag.
5496 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
5499 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
5502 2011-09-05 Richard Guenther <rguenther@suse.de>
5504 * c-common.c (complete_array_type): Use ssize_int (-1) instead
5505 of integer_minus_one_node for empty array upper bounds.
5507 2011-08-28 Dodji Seketeli <dodji@redhat.com>
5509 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
5510 it's the first time it's being called on this main TU.
5512 2011-08-24 Richard Guenther <rguenther@suse.de>
5515 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
5517 2011-08-22 Gabriel Charette <gchare@google.com>
5519 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
5520 defined in cpp_init_builtins and c_cpp_builtins.
5522 2011-08-19 Joseph Myers <joseph@codesourcery.com>
5524 * c-common.c (c_common_reswords): Add __builtin_complex.
5525 * c-common.h (RID_BUILTIN_COMPLEX): New.
5527 2011-08-18 Joseph Myers <joseph@codesourcery.com>
5529 * c-common.c (c_common_reswords): Add _Noreturn.
5530 (keyword_is_function_specifier): Handle RID_NORETURN.
5531 * c-common.h (RID_NORETURN): New.
5533 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5535 * c-common.c (unsafe_conversion_p): New function. Check if it is
5536 unsafe to convert an expression to the type.
5537 (conversion_warning): Adjust, use unsafe_conversion_p.
5538 * c-common.h (unsafe_conversion_p): New function declaration.
5540 2011-08-02 Jakub Jelinek <jakub@redhat.com>
5542 * c-common.h (c_finish_omp_atomic): Adjust prototype.
5543 (c_finish_omp_taskyield): New prototype.
5544 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
5545 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
5546 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
5547 or RHS1 have side-effects, evaluate those too in the right spot,
5548 if it is a decl and LHS is also a decl, error out if they
5550 (c_finish_omp_taskyield): New function.
5551 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
5552 * c-pragma.c (omp_pragmas): Add taskyield.
5553 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
5554 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
5555 PRAGMA_OMP_CLAUSE_MERGEABLE.
5557 2011-07-25 Dodji Seketeli <dodji@redhat.com>
5559 * c-common.h (set_underlying_type): Remove parm name from
5562 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
5564 * c-pretty-print.h: Search c-common.h in c-family.
5566 2011-07-22 Jason Merrill <jason@redhat.com>
5569 * c.opt (Wnarrowing): New.
5572 * c-common.h: Declare c_linkage_bindings.
5573 * c-pragma.c (handle_pragma_redefine_extname): Use it.
5576 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
5577 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
5578 as flag_isoc99 for 'restrict'.
5579 (pp_c_specifier_qualifier_list): Likewise for _Complex.
5581 2011-07-21 Ian Lance Taylor <iant@google.com>
5584 * c-common.c (c_disable_warnings): New static function.
5585 (c_enable_warnings): New static function.
5586 (c_fully_fold_internal): Change local unused_p to bool. Call
5587 c_disable_warnings and c_enable_warnings rather than change
5588 c_inhibit_evaluation_warnings.
5590 2011-07-20 Jason Merrill <jason@redhat.com>
5592 PR c++/6709 (DR 743)
5593 PR c++/42603 (DR 950)
5594 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
5595 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
5596 (CPP_DECLTYPE): New.
5597 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
5599 2011-07-19 Richard Guenther <rguenther@suse.de>
5601 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
5602 * c-omp.c (c_finish_omp_for): Likewise.
5604 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
5606 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
5607 body on the next line.
5609 2011-07-08 Jason Merrill <jason@redhat.com>
5612 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
5615 * c-common.c (c_apply_type_quals_to_decl): Don't check
5616 TYPE_NEEDS_CONSTRUCTING.
5618 2011-07-06 Richard Guenther <rguenther@suse.de>
5620 * c-common.c (c_common_nodes_and_builtins):
5621 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
5623 2011-07-05 Richard Guenther <rguenther@suse.de>
5625 * c-common.c (c_common_nodes_and_builtins): Build all common
5628 2011-06-27 Jakub Jelinek <jakub@redhat.com>
5630 * c-common.h (c_tree_chain_next): New static inline function.
5632 * c-common.c (check_builtin_function_arguments): Handle
5633 BUILT_IN_ASSUME_ALIGNED.
5635 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
5637 * c-common.c: Add sync_ or SYNC__ to builtin names.
5638 * c-omp.c: Add sync_ or SYNC__ to builtin names.
5640 2011-06-20 Pierre Vittet <piervit@pvittet.com>
5642 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
5644 (gen_pragma_handler): New union.
5645 (internal_pragma_handler): New type.
5646 (c_register_pragma_with_data)
5647 (c_register_pragma_with_expansion_and_data): New functions.
5649 * c-pragma.c (registered_pragmas, c_register_pragma_1)
5650 (c_register_pragma, c_register_pragma_with_expansion)
5651 (c_invoke_pragma_handler): Changed to work with
5652 internal_pragma_handler.
5653 (c_register_pragma_with_data)
5654 (c_register_pragma_with_expansion_and_data): New functions.
5656 2011-06-14 Joseph Myers <joseph@codesourcery.com>
5658 * c-common.c: Include common/common-target.h.
5659 (handle_section_attribute): Use
5660 targetm_common.have_named_sections.
5661 * c-cppbuiltin.c: Include common/common-target.h.
5662 (c_cpp_builtins): Use targetm_common.except_unwind_info.
5664 2011-06-10 Richard Guenther <rguenther@suse.de>
5666 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
5667 to print a IDENTIFIER_NODE.
5669 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5670 Joseph Myers <joseph@codesourcery.com>
5672 * c.opt (fbuilding-libgcc): New option.
5673 * c-cppbuiltin.c (c_cpp_builtins): Define
5674 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
5676 2011-06-07 Jason Merrill <jason@redhat.com>
5678 * c-common.c (max_tinst_depth): Lower default to 900.
5680 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
5682 2011-06-07 Richard Guenther <rguenther@suse.de>
5684 * c-common.c (c_common_nodes_and_builtins): Do not set
5685 size_type_node or call set_sizetype.
5687 2011-06-07 Dodji Seketeli <dodji@redhat.com>
5690 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
5691 type when using pointer comparison to compare types.
5693 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
5695 * c.opt: Add -Wdelete-non-virtual-dtor.
5696 * c-opts.c (c_common_handle_option): Include it in -Wall.
5698 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
5703 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5705 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5708 2011-05-27 Jakub Jelinek <jakub@redhat.com>
5711 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
5712 C++ don't call c_common_truthvalue_conversion on void type arms.
5714 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
5716 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
5717 (stmt_list_stack): Define.
5718 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
5719 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
5721 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5723 * c-common.c (warning_candidate_p): Check for BLOCKs.
5725 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5727 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
5730 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5732 * c-common.c (def_fn_type): Remove extra va_end.
5734 2011-05-23 Jason Merrill <jason@redhat.com>
5737 * c-common.c (c_common_get_narrower): New.
5738 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
5740 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5742 * c-common.h (check_function_arguments): Tweak prototype of
5743 check_function_arguments.
5744 * c-common.c (check_function_arguments): Likewise. Adjust
5745 calls to check_function_nonnull, check_function_format, and
5746 check_function_sentinel.
5747 (check_function_sentinel): Take a FUNCTION_TYPE rather than
5748 separate attributes and typelist arguments. Use
5749 FOREACH_FUNCTION_ARGS to iterate over argument types.
5751 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
5753 * c-common.c (c_common_reswords): Reorder.
5754 * c-common.h (rid): Likewise.
5756 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5758 * c-common.c (def_fn_type): Don't call build_function_type, call
5759 build_function_type_array or build_varargs_function_type_array
5761 (c_common_nodes_and_builtins): Likewise.
5763 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5765 * c-common.c (c_add_case_label): Omit the loc argument to
5767 * c-common.h (build_case_label): Remove.
5768 * c-semantics.c (build_case_label): Remove.
5770 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5772 * c-objc.h (objc_start_method_definition): Update prototype.
5773 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5775 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5777 * c-common.c (check_main_parameter_types): Reindent. Don't use
5778 TYPE_ARG_TYPES directly.
5779 (handle_nonnull_attribute): Likewise.
5780 (sync_resolve_params): Likewise.
5781 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5782 to check_format_string.
5783 (handle_format_attribute): Likewise.
5784 (check_format_string): Take a function type to examine instead of
5785 a type list. Use a function_arg_iterator to step through argument
5788 2011-05-04 Richard Guenther <rguenther@suse.de>
5790 * c-common.c (fix_string_type): Use size_int for index type bounds.
5791 (start_fname_decls): Do not pass NULL to build_int_cst.
5792 (c_init_attributes): Likewise.
5793 * c-lex.c (c_lex_with_flags): Likewise.
5795 2011-04-27 Jason Merrill <jason@redhat.com>
5797 * c-common.c (make_tree_vector_from_list): New.
5798 * c-common.h: Declare it.
5800 2011-04-26 Richard Guenther <rguenther@suse.de>
5802 PR preprocessor/48248
5803 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5804 for output size with -P.
5806 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5808 * c-common.c (struct c_common_resword): Add __underlying_type.
5809 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5811 2011-04-20 Jim Meyering <meyering@redhat.com>
5813 * c-format.c (init_dollar_format_checking): Remove useless
5816 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5818 * c-objc.h (objc_get_interface_ivars): Removed.
5819 (objc_detect_field_duplicates): New.
5820 * stub-objc.c: Likewise.
5822 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5824 * stub-objc.c (objc_declare_protocols): Renamed to
5825 objc_declare_protocol.
5826 * c-objc.h: Likewise.
5828 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5830 * stub-objc.c (objc_declare_class): Updated argument name.
5832 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5834 * c-common.h (c_common_init_ts): Declare.
5835 * c-common.c (c_common_init_ts): Define.
5837 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5839 * c-objc.h (objc_build_message_expr): Updated prototype.
5840 * stub-objc.c (objc_build_message_expr): Likewise.
5842 2011-04-12 Martin Jambor <mjambor@suse.cz>
5844 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5847 2011-04-11 Richard Guenther <rguenther@suse.de>
5849 * c-common.c (complete_array_type): Build a range type of
5852 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5854 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5855 (handle_type_generic_attribute): Likewise.
5857 2011-04-07 Jason Merrill <jason@redhat.com>
5860 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5861 conversion from C++0x scoped enum.
5863 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5865 * c-target-def.h: New file.
5866 * c-target.def: New file.
5867 * c-target.h: New file.
5868 * c-common.c (targetcm): Don't define here.
5869 * c-common.h (default_handle_c_option): Declare.
5870 * c-format.c: Include c-target.h instead of target.h.
5871 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5873 (default_handle_c_option): Move from targhooks.c.
5875 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5877 PR preprocessor/48248
5878 * c-ppoutput.c (print): Add src_file field.
5879 (init_pp_output): Initialize it.
5880 (maybe_print_line): Don't optimize by adding up to 8 newlines
5881 if map->to_file and print.src_file are different file.
5882 (print_line): Update print.src_file.
5884 2011-03-25 Kai Tietz <ktietz@redhat.com>
5886 * c-ada-spec.c (compare_comment): Use filename_cmp
5887 instead of strcmp for filename.
5889 2011-03-25 Jeff Law <law@redhat.com>
5891 * c-common.c (def_fn_type): Add missing va_end.
5893 2011-03-25 Jason Merrill <jason@redhat.com>
5895 * c.opt: Add -std=c++03.
5897 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5899 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5901 2011-03-17 Kai Tietz <ktietz@redhat.com>
5904 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5905 Display allowed attributes for function pointer types.
5906 (pp_c_attributes_display): New function to display
5907 attributes having affects_type_identity flag set to true.
5908 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5910 * c-common.c (c_common_attribute_table):
5912 (c_common_format_attribute_table): Likewise.
5914 2011-03-18 Jason Merrill <jason@redhat.com>
5916 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5917 * c-common.h: Don't declare it here.
5918 * c-common.c: Or define it here.
5919 * c-opts.c (c_common_handle_option): Or set it here.
5922 * c-common.c (handle_transparent_union_attribute): Don't
5923 make a duplicate type in C++.
5925 2011-03-15 Jason Merrill <jason@redhat.com>
5927 * c-common.c (max_constexpr_depth): New.
5928 * c-common.h: Declare it.
5929 * c-opts.c (c_common_handle_option): Set it.
5930 * c.opt (fconstexpr-depth): New option.
5932 2011-03-11 Jason Merrill <jason@redhat.com>
5934 * c-common.c (attribute_takes_identifier_p): Add missing const.
5937 * c-common.c (attribute_takes_identifier_p): Assume that an
5938 unknown attribute takes an identifier.
5940 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5943 * c-common.c (c_type_hash): Call list_length instead of iterating
5944 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5946 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5949 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5951 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5953 * c.opt (fobjc-abi-version=) New.
5954 (fobjc-nilcheck): New.
5956 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5959 * c-common.h (keyword_is_decl_specifier): Declare.
5960 * c-common.c (keyword_is_decl_specifier): Define.
5961 (keyword_is_function_specifier): New function.
5963 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5966 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5967 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5970 2011-01-26 Arnaud Charlet <charlet@adacore.com>
5972 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5974 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5977 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5978 after init_c_lex if pch_file is set.
5980 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5983 * c.opt (-fkeep-inline-dllexport): New switch.
5985 2011-01-12 Richard Guenther <rguenther@suse.de>
5988 * c-common.c (handle_weak_attribute): Warn instead of error
5989 on declaring an inline function weak.
5991 2011-01-05 Tom Tromey <tromey@redhat.com>
5993 * c-common.h (lvalue_error): Update.
5994 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5997 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
6000 * c-objc.h (objc_finish_message_expr): Added argument to
6003 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
6005 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
6008 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
6010 * c-objc.h (objc_maybe_warn_exceptions): New.
6011 * stub-objc.c (objc_maybe_warn_exceptions): New.
6013 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
6015 * c-common.h (readonly_error): Declare.
6016 * c-common.c (readonly_error): Define.
6018 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
6020 * c-common.h (invalid_indirection_error): Declare.
6021 * c-common.c (invalid_indirection_error): Define.
6023 2010-12-03 Richard Guenther <rguenther@suse.de>
6026 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
6027 (pp_c_unary_expression): Likewise.
6028 (pp_c_expression): Likewise.
6030 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
6032 * c-common.h (objc_finish_function): New.
6033 (objc_non_volatilized_type): Removed.
6034 (objc_type_quals_match): Removed.
6035 * stub-objc.c (objc_finish_function): New.
6036 (objc_non_volatilized_type): Removed.
6037 (objc_type_quals_match): Removed.
6039 2010-11-30 Joseph Myers <joseph@codesourcery.com>
6041 * c-common.h (parse_optimize_options): Declare.
6042 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
6043 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
6045 2010-11-29 Joseph Myers <joseph@codesourcery.com>
6047 * c-opts.c (check_deps_environment_vars): Use getenv instead of
6049 * c-pch.c (O_BINARY): Don't define here.
6050 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
6052 2010-11-25 Joseph Myers <joseph@codesourcery.com>
6054 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
6055 targetm.except_unwind_info.
6057 2010-11-23 Joseph Myers <joseph@codesourcery.com>
6059 * c-opts.c (c_common_handle_option): Pass location to
6060 set_struct_debug_option.
6062 2010-11-23 Joseph Myers <joseph@codesourcery.com>
6064 * c-common.c (visibility_options): Move from ../opts.c.
6065 * c-common.h (struct visibility_flags, visibility_options):
6067 * c-opts.c (finish_options): Rename to c_finish_options.
6068 (c_common_init): Update call to finish_options.
6070 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
6073 * c-lex.c (lex_string): Check that each string in an Objective-C
6074 string concat sequence starts with either one or zero '@', and
6075 that there are no spurious '@' signs at the end.
6077 2010-11-20 Joseph Myers <joseph@codesourcery.com>
6079 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
6080 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
6081 HANDLE_PRAGMA_VISIBILITY.
6082 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
6083 HANDLE_PRAGMA_VISIBILITY): Don't define.
6084 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
6086 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
6091 * c-common.h (keyword_begins_type_specifier): Declare.
6092 (keyword_is_storage_class_specifier): Declare.
6093 (keyword_is_type_qualifier): Declare.
6094 * c-common.c (keyword_begins_type_specifier): New function.
6095 (keyword_is_storage_class_specifier): New function.
6096 (keyword_is_type_qualifier): Declare.
6098 2010-11-19 Joseph Myers <joseph@codesourcery.com>
6101 * c-common.c (in_late_binary_op): Define.
6102 (c_common_truthvalue_conversion): Check in_late_binary_op before
6103 calling c_save_expr.
6104 * c-common.h (in_late_binary_op): Declare.
6106 2010-11-19 Joseph Myers <joseph@codesourcery.com>
6108 * c-opts.c (c_common_handle_option): Update calls to
6109 set_struct_debug_option.
6111 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
6113 * c-common.h (objc_declare_protocols): Added additional argument.
6114 * stub-objc.c (objc_declare_protocol): Same change.
6116 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
6119 * c-common.h (build_real_imag_expr): Declare.
6120 * c-semantics.c (build_real_imag_expr): Define.
6122 2010-11-17 Joseph Myers <joseph@codesourcery.com>
6124 * c-opts.c (c_common_parse_file): Take no arguments.
6125 * c-common.h (c_common_parse_file): Update prototype.
6127 2010-11-16 Jakub Jelinek <jakub@redhat.com>
6130 * c-common.c (warning_candidate_p): Don't track non-const calls
6133 2010-11-15 Ian Lance Taylor <iant@google.com>
6135 * c-lex.c (init_c_lex): Set macro debug callbacks if
6136 flag_dump_go_spec is set.
6138 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
6140 * c-common.h (objc_build_incr_expr_for_property_ref): New.
6141 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
6143 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
6145 PR preprocessor/45038
6146 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
6149 2010-11-12 Joseph Myers <joseph@codesourcery.com>
6151 * c-common.h (c_family_lang_mask): Declare.
6152 * c-opts.c (c_family_lang_mask): Make extern.
6153 * c-pragma.c (handle_pragma_diagnostic): Use
6154 control_warning_option.
6156 2010-11-12 Joseph Myers <joseph@codesourcery.com>
6158 * c-common.c (parse_optimize_options): Update call to
6160 * c-common.h (c_common_handle_option): Update prototype.
6161 * c-opts.c (c_common_handle_option): Take location_t parameter and
6162 pass it to other functions.
6164 2010-11-11 Joseph Myers <joseph@codesourcery.com>
6166 * c-opts.c (warning_as_error_callback): Remove.
6167 (c_common_initialize_diagnostics): Don't call
6168 register_warning_as_error_callback.
6169 (c_common_handle_option): Handle -Werror=normalized= here.
6171 2010-11-10 Joseph Myers <joseph@codesourcery.com>
6173 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
6175 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
6177 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
6178 Remove trailing '.' from diagnostics.
6179 * c.opt (Wwrite-strings_: Avoid '`' in help text.
6181 2010-11-10 Joseph Myers <joseph@codesourcery.com>
6183 * c-common.c (parse_optimize_options): Pass global_dc to
6185 * c-opts.c (c_common_handle_option): Pass &global_options to
6186 set_Wstrict_aliasing.
6187 * c.opt (v): Don't mark Common or document here.
6189 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
6192 * c-format.c (format_type): New type gcc_objc_string_format_type.
6193 (valid_stringptr_type_p): New.
6194 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
6195 (check_format_string): Pass expected type, use
6196 valid_stringptr_type_p (), check that the format string types are
6197 consistent with the format specification.
6198 (decode_format_attr): Warn if NSString is used outside objective-c.
6199 (format_types_orig): Add NSString.
6201 (format_flags): New.
6202 (check_format_arg): Handle format strings requiring an external parser.
6203 first_target_format_type: New variable.
6204 (handle_format_attribute): Set up first_target_format_type, pass the
6205 expected format arg string type to check_format_string().
6206 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
6207 * stub-objc.c (objc_string_ref_type_p): New.
6208 (objc_check_format_arg): New.
6210 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
6212 Fixed using the Objective-C 2.0 dot-syntax with class names.
6213 * c-common.h (objc_build_class_component_ref): New.
6214 * stub-objc.c (objc_build_class_component_ref): New.
6216 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6218 * c.opt (Wproperty-assign-default): New option.
6220 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
6222 Implemented -fobjc-std=objc1 flag.
6223 * c.opt (fobjc-std=objc1): New option.
6225 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
6227 Implemented format and noreturn attributes for Objective-C methods.
6228 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
6229 attribute for Objective-C methods.
6231 2010-10-31 Jason Merrill <jason@redhat.com>
6233 * c-common.c (conversion_warning, warn_for_collisions_1): Use
6236 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
6238 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
6239 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
6240 (objc_add_property_declaration): Removed arguments for copies and
6242 (objc_build_getter_call): Renamed to
6243 objc_maybe_build_component_ref.
6244 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6245 (objc_is_property_ref): New.
6246 * c-common.c (c_common_reswords): Removed copies and ivar.
6247 * stub-objc.c (objc_add_property_declaration): Removed arguments
6248 for copies and ivar.
6249 (objc_build_getter_call): Renamed to
6250 objc_maybe_build_component_ref.
6251 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
6252 (objc_is_property_ref): New.
6254 2010-10-29 Arnaud Charlet <charlet@adacore.com>
6255 Matthew Gingell <gingell@adacore.com>
6257 * c-ada-spec.c (separate_class_package): New function.
6258 (pp_ada_tree_identifier): Prefix references to C++ classes with the
6259 name of their enclosing package.
6260 (print_ada_declaration): Use separate_class_package.
6262 2010-10-27 Jason Merrill <jason@redhat.com>
6264 * c-common.c (c_common_reswords): Add __is_literal_type.
6265 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
6267 * c-common.c (check_case_value): Remove special C++ code.
6269 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6271 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
6272 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
6274 (objc_add_property_declaration): Added additional arguments.
6275 (objc_property_attribute_kind): Removed.
6276 (objc_set_property_attr): Removed.
6277 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
6279 * stub-objc.c (objc_add_property_declaration): Added additional
6281 (objc_set_property_attr): Removed.
6283 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
6285 * c-common.h (objc_add_property_variable): Renamed to
6286 objc_add_property_declaration. Added location argument.
6287 * stub-objc.c (objc_add_property_variable): Same change.
6289 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
6291 * c-common.h (objc_maybe_printable_name): New.
6292 * stub-objc.c (objc_maybe_printable_name): New.
6294 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
6295 Andrew Pinski <pinskia@gmail.com>
6297 * c-common.h (c_common_mark_addressable_vec): Declare.
6298 * c-common.c (c_common_mark_addressable_vec): New function.
6300 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6302 * c-common.h (objc_set_method_type): Removed.
6303 (objc_add_method_declaration): Added boolean argument.
6304 (objc_start_method_definition): Same change.
6305 (objc_build_method_signature): Same change.
6306 * stub-objc.c (objc_set_method_type): Removed.
6307 (objc_add_method_declaration): Added boolean argument.
6308 (objc_start_method_definition): Same change.
6309 (objc_build_method_signature): Same change.
6311 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6313 * c-common.h (finish_file): Removed.
6314 (objc_write_global_declarations): New.
6315 * c-opts.c (c_common_parse_file): Do not call finish_file.
6316 * stub-objc.c (objc_write_global_declarations): New.
6318 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6320 Implemented parsing @synthesize and @dynamic for
6321 Objective-C/Objective-C++.
6322 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6323 (objc_add_synthesize_declaration): New.
6324 (objc_add_dynamic_declaration): New.
6325 * c-common.c (c_common_reswords): Add synthesize and dynamic.
6326 * stub-objc.c (objc_add_synthesize_declaration): New.
6327 (objc_add_dynamic_declaration): New.
6329 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6332 * c-cppbuiltin.c (mode_has_fma): Move function here from
6333 builtins.c. Don't use the fma optab, instead just use the
6334 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
6337 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6339 Merge from 'apple/trunk' branch on FSF servers.
6341 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
6344 * c-common.h (objc_non_volatilized_type): New declaration
6345 * stub-objc.c (objc_non_volatilized_type): New stub.
6347 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6349 Merge from 'apple/trunk' branch on FSF servers.
6351 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
6354 * c-common.h (objc_diagnose_private_ivar): New decl.
6355 * stub-objc.c (objc_diagnose_private_ivar): New stub.
6357 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6359 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
6360 * c-common.h (enum rid): Add RID_AT_PACKAGE.
6361 (objc_ivar_visibility_kind): New enum.
6362 (objc_set_visibility): Adjust prototype to use visibility enum.
6363 * stub-objc.c (objc_set_visibility): Adjust stub to use
6366 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6368 * c-cppbuiltin.c (builtin_define_float_constants): Emit
6369 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
6370 has the appropriate fma builtins.
6371 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
6373 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6375 merge from FSF apple 'trunk' branch.
6376 2006 Fariborz Jahanian <fjahanian@apple.com>
6378 Radars 4436866, 4505126, 4506903, 4517826
6379 * c-common.c (c_common_resword): Define @property and its attributes.
6380 * c-common.h: Define property attribute enum entries.
6381 (OBJC_IS_PATTR_KEYWORD): New.
6382 (objc_property_attribute_kind): New enum.
6383 Declare objc_set_property_attr (), objc_add_property_variable (),
6384 objc_build_getter_call () and objc_build_setter_call ().
6385 * stub-objc.c (objc_set_property_attr): New stub.
6386 (objc_add_property_variable): Likewise.
6387 (objc_build_getter_call): Likewise.
6388 (objc_build_setter_call) Likewise.
6390 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
6392 merge from FSF apple 'trunk' branch.
6393 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
6395 Radar 3803157 (method attributes)
6396 * c-common.c (handle_deprecated_attribute): Recognize
6397 objc methods as valid declarations.
6398 * c-common.h: Declare objc_method_decl ().
6399 * stub-objc.c (objc_method_decl): New stub.
6401 2010-10-08 Joseph Myers <joseph@codesourcery.com>
6403 * c-common.c (parse_optimize_options): Call
6404 decode_cmdline_options_to_array_default_mask before
6405 decode_options. Update arguments to decode_options.
6406 * c-common.h (c_common_init_options_struct): Declare.
6407 * c-opts.c (c_common_init_options_struct): New. Split out from
6408 c_common_init_options.
6410 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
6412 Implemented fast enumeration for Objective-C.
6413 * c-common.h (objc_finish_foreach_loop): New.
6414 * stub-objc.c (objc_finish_foreach_loop): New.
6416 2010-10-05 Joseph Myers <joseph@codesourcery.com>
6418 * c-common.h (struct diagnostic_context): Don't declare here.
6419 (c_common_initialize_diagnostics): Declare using
6420 diagnostic_context typedef.
6421 * c-opts.c (c_common_handle_option): Pass global_dc to
6422 handle_generated_option.
6424 2010-10-04 Joseph Myers <joseph@codesourcery.com>
6426 * c-opts.c (c_common_handle_option): Pass &global_options_set to
6427 handle_generated_option.
6429 2010-10-03 Ian Lance Taylor <iant@google.com>
6431 * c.opt (-fplan9-extensions): New option.
6433 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6435 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
6437 (c_cpp_builtins): Call functions from cppbuiltin.c instead
6438 of duplicating code.
6440 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
6442 * c-common.c: Add two new entries for @optional
6443 and @required keywords.
6445 merge from FSF 'apple/trunk' branch.
6446 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
6449 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
6450 objective-c keywords.
6451 (objc_set_method_opt): New declaration.
6452 * stub-objc.c (objc_set_method_opt): New stub.
6454 2010-09-30 Joseph Myers <joseph@codesourcery.com>
6456 * c-common.c (handle_optimize_attribute): Pass &global_options to
6457 cl_optimization_save and cl_optimization_restore.
6458 * c-opts.c (c_common_handle_option): Pass &global_options to
6459 handle_generated_option.
6460 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
6461 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
6462 &global_options to cl_optimization_restore.
6464 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
6466 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
6467 Objective-C/Objective-C++ keywords.
6469 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6471 Merge from 'apple/trunk' branch on FSF servers.
6473 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
6476 * c-common.h (objc_check_global_decl): New declaration.
6477 * stub-objc.c (objc_check_global_decl): New stub.
6479 2010-09-29 Joseph Myers <joseph@codesourcery.com>
6481 * c.opt: Don't use VarExists.
6483 2010-09-29 Joseph Myers <joseph@codesourcery.com>
6485 * c-common.c (c_cpp_error): Update names of diagnostic_context
6487 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
6488 cl_optimization members.
6489 * c-opts.c (warning_as_error_callback, c_common_handle_option,
6490 sanitize_cpp_opts, finish_options): Update names of cpp_options
6493 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6495 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
6496 (objc_is_reserved_word): Removed.
6497 * c-common.c: Updated comments.
6498 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
6499 objc_is_reserved_word.
6500 * stub-objc.c (objc_is_reserved_word): Removed.
6502 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6504 * c-common.h (objc_add_method_declaration): Adjust prototype to
6506 (objc_start_method_definition): Likewise.
6507 (objc_build_keyword_decl): Likewise.
6508 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
6509 (objc_start_method_definition): Likewise.
6510 (objc_build_keyword_decl): Likewise.
6512 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6514 * c-common.h (objc_start_class_interface): Adjust prototype.
6515 (objc_start_category_interface): Likewise.
6516 (objc_start_protocol): Likewise.
6517 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
6518 (objc_start_class_interface): Likewise.
6519 (objc_start_category_interface): Likewise.
6521 2010-09-27 Ian Lance Taylor <iant@google.com>
6523 * c-common.c (c_common_attribute_table): Add no_split_stack.
6524 (handle_no_split_stack_attribute): New static function.
6526 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6528 Merge from 'apple/trunk' branch on FSF servers.
6530 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
6533 * c-common.h (objc_have_common_type): New declaration.
6534 * stub-objc.c (objc_have_common_type): New stub.
6536 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6539 * c-common.h (objc_common_type): New prototype.
6540 * stub-objc.c (objc_common_type): New stub.
6542 2010-09-24 Jan Hubicka <jh@suse.cz>
6544 * c-common.c (handle_leaf_attribute): New function.
6545 (struct attribute_spec c_common_att): Add leaf.
6547 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6549 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
6550 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
6551 -dump, -dump=, -imacros, -imacros=, -include, -include=,
6552 -include-barrier, -include-directory, -include-directory=,
6553 -include-directory-after, -include-directory-after=,
6554 -include-prefix, -include-prefix=, -include-with-prefix,
6555 -include-with-prefix=, -include-with-prefix-after,
6556 -include-with-prefix-after=, -include-with-prefix-before,
6557 -include-with-prefix-before=, -no-integrated-cpp,
6558 -no-line-commands, -no-standard-includes, -no-warnings, -output,
6559 -output=, -pedantic, -pedantic-errors, -preprocess,
6560 -print-missing-file-dependencies, -trace-includes, -traditional,
6561 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
6562 -user-dependencies, -verbose, -write-dependencies,
6563 -write-user-dependencies, no-integrated-cpp, traditional): New.
6565 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6568 * c-common.h (objc_start_method_definition): Return bool instead
6570 * stub-objc.c (objc_start_method_definition): Return bool instead
6573 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6576 * c-common.h (objc_get_interface_ivars): New declaration.
6577 * stub-objc.c (objc_get_interface_ivars): New stub.
6579 2010-09-15 Ian Lance Taylor <iant@google.com>
6581 * c-common.c (parse_optimize_options): Do not capitalize warning
6582 messages. Remove period at end of warning message.
6584 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
6586 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
6587 (handle_alias_attribute): ... here.
6588 (handle_ifunc_attribute): New.
6590 2010-09-06 Mark Mitchell <mark@codesourcery.com>
6592 * c-common.h (do_warn_double_promotion): Declare.
6593 * c-common.c (do_warn_double_promotion): Define.
6595 2010-09-05 Mark Mitchell <mark@codesourcery.com>
6597 * c.opt (Wdouble-promotion): New.
6599 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6601 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
6602 fvtable-thunks, fxref): Mark no longer supported in help text.
6604 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6606 * c.opt (Wimport, fall-virtual, falt-external-templates,
6607 fdefault-inline, fenum-int-equiv, fexternal-templates,
6608 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
6609 fname-mangling-version-, fnew-abi, fnonnull-objects,
6610 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
6611 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
6613 (fhandle-exceptions): Mark with Alias and Warn.
6614 * c-opts.c (c_common_handle_option): Don't handle options marked
6617 2010-09-02 Joseph Myers <joseph@codesourcery.com>
6619 * c.opt (Wcomments, Werror-implicit-function-declaration,
6620 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
6621 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
6623 * c-common.c (option_codes): Use OPT_Wcomment instead of
6625 * c-opts.c (warning_as_error_callback, c_common_handle_option):
6626 Don't handle options marked as aliases.
6628 2010-08-25 Richard Guenther <rguenther@suse.de>
6630 * c-common.c (c_common_get_alias_set): Remove special
6631 handling for pointers.
6633 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
6635 * c-common.c: Use FOR_EACH_VEC_ELT.
6636 * c-gimplify.c: Likewise.
6637 * c-pragma.c: Likewise.
6639 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6641 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
6643 (MMDX): Change back to MMD. Mark NoDriverArg instead of
6645 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
6646 instead of OPT_MDX and OPT_MMDX.
6648 2010-08-16 Joseph Myers <joseph@codesourcery.com>
6650 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
6652 2010-08-12 Joseph Myers <joseph@codesourcery.com>
6654 * c.opt (MD, MMD): Change to MDX and MMDX.
6655 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
6657 2010-08-11 Joseph Myers <joseph@codesourcery.com>
6659 * c-opts.c (c_common_handle_option): Call handle_generated_option
6660 instead of handle_option.
6662 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6664 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
6665 (maybe_apply_renaming_pragma): Delete unneeded declarations.
6667 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
6669 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
6670 (pending_redefine_extname): Change type to a VEC.
6671 (add_to_renaming_pragma_list): Update for new type of
6672 pending_redefine_extname.
6673 (maybe_apply_renaming_pragma): Likewise.
6675 2010-08-04 Arnaud Charlet <charlet@adacore.com>
6677 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
6679 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
6680 decide whether a type has already been declared/seen.
6681 Do not go to the original type.
6682 (dump_nested_types): New parameter forward.
6683 Generate forward declaration if needed and mark type as visited.
6684 (print_ada_declaration): Call dump_nested_types if not already done.
6685 Mark types as visited.
6687 2010-08-03 Joseph Myers <joseph@codesourcery.com>
6689 * c.opt (-print-pch-checksum): Remove option.
6690 * c-opts.c (c_common_handle_option): Don't handle
6691 OPT_print_pch_checksum.
6693 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6695 * c-common.h (c_common_handle_option): Update prototype and return
6697 * c-opts.c (c_common_handle_option): Update prototype and return
6698 value type. Update calls to handle_option and
6699 enable_warning_as_error.
6701 2010-07-27 Jakub Jelinek <jakub@redhat.com>
6704 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
6706 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6708 * c-common.h (c_common_missing_argument): Remove.
6709 * c-opts.c (c_common_missing_argument): Remove.
6710 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
6711 idirafter, imacros, include, isysroot, isystem, iquote): Add
6713 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
6715 2010-07-27 Joseph Myers <joseph@codesourcery.com>
6717 * c-common.h (c_common_option_lang_mask,
6718 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
6720 (c_common_init_options): Update prototype.
6721 * c-opts.c (c_common_option_lang_mask): New.
6722 (c_common_initialize_diagnostics): Split out of
6723 c_common_init_options.
6724 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
6726 (c_common_init_options): Update prototype. Use decoded options in
6727 search for -lang-asm.
6729 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
6731 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6732 * c-format.c: Likewise.
6734 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
6736 * c-common.h: Include diagnostic-core.h. Error if already
6738 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
6740 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6742 * c-common.c (IN_GCC_FRONTEND): Do not undef.
6743 Do not include expr.h
6744 (vector_mode_valid_p): Move here.
6746 2010-06-21 DJ Delorie <dj@redhat.com>
6748 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
6749 allow these pragmas anywhere.
6751 2010-06-14 Jakub Jelinek <jakub@redhat.com>
6754 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
6755 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
6756 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
6757 ggc_strdup instead of xstrdup.
6759 2010-06-10 Jakub Jelinek <jakub@redhat.com>
6761 * c-cppbuiltin.c: Include cpp-id-data.h.
6762 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6763 (lazy_hex_fp_value): New function.
6764 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6766 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6768 * c-gimplify.c: Do not include tree-flow.h
6770 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6773 * c-common.c: Rename targetm member:
6774 targetm.enum_va_list -> targetm.enum_va_list_p
6776 2010-06-28 Anatoly Sokolov <aesok@post.ru>
6778 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6780 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6782 * c-cppbuiltin.c: Do not include except.h.
6784 2010-06-24 Andi Kleen <ak@linux.intel.com>
6786 * c-common.c (warn_for_omitted_condop): New.
6787 * c-common.h (warn_for_omitted_condop): Add prototype.
6789 2010-06-21 Joseph Myers <joseph@codesourcery.com>
6791 * c.opt (lang-objc): Remove.
6792 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6794 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6796 * c-opts.c: Include "tm_p.h".
6798 2010-06-20 Joseph Myers <joseph@codesourcery.com>
6800 * c-common.c (parse_optimize_options): Update call to
6803 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6805 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6806 new type of types_used_by_cur_var_decl.
6808 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6811 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6812 for C++ standard compliance.
6814 2010-06-16 Jason Merrill <jason@redhat.com>
6816 * c.opt: Add -Wnoexcept.
6818 2010-06-16 Richard Guenther <rguenther@suse.de>
6821 * c-common.c (c_common_truthvalue_conversion): Remove
6822 premature and wrong optimization concering ADDR_EXPRs.
6824 2010-06-15 Arnaud Charlet <charlet@adacore.com>
6826 * c-ada-spec.c (dump_sloc): Remove column info.
6827 (is_simple_enum): New function.
6828 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6829 enum types when relevant.
6831 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6833 * c-common.c (conversion_warning): Warn at expression
6836 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6838 * c-opts.c (c_common_handle_option): Don't handle
6841 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6843 * c-pragma.c (push_alignment): Use typed GC allocation.
6844 (handle_pragma_push_options): Likewise.
6846 * c-common.c (parse_optimize_options): Likewise.
6848 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6851 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6853 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6854 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6855 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6856 flag_signed_bitfields, warn_strict_null_sentinel,
6857 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6858 flag_gen_declaration, flag_no_gnu_keywords,
6859 flag_implement_inlines, flag_implicit_templates,
6860 flag_implicit_inline_templates, flag_optional_diags,
6861 flag_elide_constructors, flag_default_inline, flag_rtti,
6862 flag_conserve_space, flag_access_control, flag_check_new,
6863 flag_new_for_scope, flag_weak, flag_working_directory,
6864 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6865 flag_enforce_eh_specs, flag_threadsafe_statics,
6866 flag_pretty_templates): Remove.
6867 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6868 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6869 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6870 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6871 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6872 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6873 flag_no_gnu_keywords, flag_implement_inlines,
6874 flag_implicit_templates, flag_implicit_inline_templates,
6875 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6876 flag_rtti, flag_conserve_space, flag_access_control,
6877 flag_check_new, flag_new_for_scope, flag_weak,
6878 flag_working_directory, flag_use_cxa_atexit,
6879 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6880 flag_threadsafe_statics, flag_pretty_templates,
6881 warn_strict_null_sentinel): Remove.
6882 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6883 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6884 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6885 fimplicit-inline-templates, fimplicit-templates,
6886 flax-vector-conversions, fms-extensions, fnil-receivers,
6887 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6888 frtti, fshort-double, fshort-enums, fshort-wchar,
6889 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6890 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6891 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6892 gen-decls, undef): Use Var.
6893 (fdefault-inline, foptional-diags): Document as doing nothing.
6894 * c-opts.c (c_common_handle_option): Remove cases for options now
6895 using Var. Mark ignored options as such.
6897 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6899 * c-common.c: Moved to here from parent directory.
6900 * c-common.def: Likewise.
6901 * c-common.h: Likewise.
6902 * c-cppbuiltin.c: Likewise.
6903 * c-dump.c: Likewise.
6904 * c-format.c: Likewise.
6905 * c-format.h : Likewise.
6906 * c-gimplify.c: Likewise.
6907 * c-lex.c: Likewise.
6908 * c-omp.c: Likewise.
6910 * c-opts.c: Likewise.
6911 * c-pch.c: Likewise.
6912 * c-ppoutput.c: Likewise.
6913 * c-pragma.c: Likewise.
6914 * c-pragma.h: Likewise.
6915 * c-pretty-print.c: Likewise.
6916 * c-pretty-print.h: Likewise.
6917 * c-semantics.c: Likewise.
6918 * stub-objc.c: Likewise.
6920 * c-common.c: Include gt-c-family-c-common.h.
6921 * c-pragma.c: Include gt-c-family-c-pragma.h.
6923 Copyright (C) 2010-2016 Free Software Foundation, Inc.
6925 Copying and distribution of this file, with or without modification,
6926 are permitted in any medium without royalty provided the copyright
6927 notice and this notice are preserved.