1 2016-03-09 Richard Biener <rguenther@suse.de>
4 * c-common.c (strict_aliasing_warning): Add back
5 alias_sets_conflict_p check.
7 2016-03-08 Jason Merrill <jason@redhat.com>
9 * c-opts.c (set_std_cxx1z): Don't enable concepts.
11 2016-03-04 David Malcolm <dmalcolm@redhat.com>
14 * c-indentation.c (get_visual_column): Move code to determine next
16 (next_tab_stop): ...this new function.
17 (line_contains_hash_if): Delete function.
18 (detect_preprocessor_logic): Delete function.
19 (get_first_nws_vis_column): New function.
20 (detect_intervening_unindent): New function.
21 (should_warn_for_misleading_indentation): Replace call to
22 detect_preprocessor_logic with a call to
23 detect_intervening_unindent.
25 2016-03-04 David Malcolm <dmalcolm@redhat.com>
28 * c-indentation.c (should_warn_for_misleading_indentation): When
29 suppressing warnings about cases where the guard and body are on
30 the same column, only use the first non-whitespace column in place
31 of the guard token column when dealing with "else" clauses.
32 When rejecting aligned BODY and NEXT, loosen the requirement
33 from equality with the first non-whitespace of guard to simply
34 that they not be indented relative to it.
36 2016-03-04 Richard Biener <rguenther@suse.de>
39 * c-common.c (strict_aliasing_warning): Use alias_set_subset_of
40 instead of alias_sets_conflict_p.
42 2016-03-01 Marek Polacek <polacek@redhat.com>
45 * c-common.c (reject_gcc_builtin): Check for FUNCTION_DECL rather than
48 2016-02-22 Martin Sebor <msebor@redhat.com>
51 * c-common.c (check_builtin_function_arguments): Validate and
52 reject invalid arguments to __builtin_alloca_with_align.
54 2016-02-20 Mark Wielaard <mjw@redhat.com>
57 * c.opt (Wunused-const-variable): Turn into Alias for...
58 (Wunused-const-variable=): New option.
60 2016-02-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
63 * c-opts.c (c_common_post_options): Move call to set_std_cxx14 from
65 (c_common_init_options): ...to here.
66 (set_std_cxx98): Initialize flag_isoc94 and flag_isoc99.
68 2016-02-19 Jakub Jelinek <jakub@redhat.com>
71 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_GRAINSIZE.
72 (init_pragma): Register PRAGMA_CILK_GRAINSIZE even for
75 2016-02-16 Jakub Jelinek <jakub@redhat.com>
78 * c.opt (Wnonnull-compare): Enable for -Wall.
80 2016-02-15 Jakub Jelinek <jakub@redhat.com>
83 * c-common.c (sync_resolve_size): Diagnose too few arguments
84 even when params is non-NULL empty vector.
86 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
89 * c.opt (fshort-double): Remove.
91 2016-02-05 Martin Sebor <msebor@redhat.com>
94 * c.opt (Warning options): Update -Wplacement-new to take
97 2016-02-01 Jakub Jelinek <jakub@redhat.com>
101 * c-pragma.c (handle_pragma_diagnostic): Pass input_location
102 instead of loc to control_warning_option.
104 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
106 * c.opt (fopenacc-dim=): New option.
108 2016-01-27 Ryan Burn <contact@rnburn.com>
111 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): Change to use
112 gimplify_arg. Removed superfluous post_p argument.
113 * c-family.h (cilk_gimplify_call_params_in_spawned_fn): Removed
114 superfluous post_p argument.
115 * c-gimplify.c (c_gimplify_expr): Likewise.
117 2016-01-26 David Malcolm <dmalcolm@redhat.com>
120 * c-opts.c (c_diagnostic_finalizer): Replace invocation of
121 pp_newline_and_flush with pp_flush.
123 2016-01-20 Martin Sebor <msebor@redhat.com>
126 * c-common.c (sync_resolve_size): Avoid printing diagnostic about
127 an incompatible argument when the argument isn't a valid tree node.
129 2016-01-18 Jason Merrill <jason@redhat.com>
132 * c-common.c (check_function_arguments_recurse): Fold the whole
133 COND_EXPR, not just the condition.
135 2016-01-18 Tom de Vries <tom@codesourcery.com>
137 * c-omp.c (c_oacc_split_loop_clauses): Don't copy OMP_CLAUSE_REDUCTION,
138 classify as loop clause.
140 2016-01-15 Jakub Jelinek <jakub@redhat.com>
143 * c-pragma.c (c_register_pragma_1): Adjust comment to note that
144 C++ FE no longer has limit on number of pragmas.
146 2015-01-14 Ryan Burn <contact@rnburn.com>
149 * cilk.c (create_cilk_wrapper_body): Call fold_build_cleanup_point_expr
150 to add missing cleanup point.
152 2016-01-14 David Malcolm <dmalcolm@redhat.com>
155 * c-indentation.c (get_visual_column): Add location_t param.
156 Handle the column number being zero by effectively disabling the
157 warning, with an "inform".
158 (should_warn_for_misleading_indentation): Add location_t argument
159 for all uses of get_visual_column.
161 2016-01-10 Patrick Palka <ppalka@gcc.gnu.org>
164 * c-indentation.c (should_warn_for_misleading_indentation):
165 Don't warn about do-while statements.
167 2016-01-07 Martin Sebor <msebor@redhat.com>
170 * c-common.c (sync_resolve_size): Reject first argument when it's
173 2016-01-05 David Malcolm <dmalcolm@redhat.com>
176 * c-indentation.c (get_visual_column): Remove default argument.
177 (should_warn_for_misleading_indentation): For the multiline case,
178 update call to get_visual_column for next_stmt_exploc so that it
179 captures the location of the first non-whitespace character in the
180 relevant line. Don't issue warnings if there is non-whitespace
181 before the next statement.
183 2016-01-04 Jakub Jelinek <jakub@redhat.com>
185 Update copyright years.
187 2015-12-21 David Malcolm <dmalcolm@redhat.com>
189 * c-common.c (binary_op_error): Convert first param from
190 location_t to rich_location * and use it when emitting an error.
191 * c-common.h (binary_op_error): Convert first param from
192 location_t to rich_location *.
194 2015-12-16 David Malcolm <dmalcolm@redhat.com>
196 * c-common.h (conflict_marker_get_final_tok_kind): New prototype.
197 * c-lex.c (conflict_marker_get_final_tok_kind): New function.
199 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
201 * c-common.c (c_common_attribute_table): Handle "omp declare target
204 2015-12-14 Jakub Jelinek <jakub@redhat.com>
207 * c.opt (Wmissing-format-attribute, Wnormalized): Add Warning option.
209 2014-12-12 Tobias Burnus <burnus@net-b.de>
212 * c-format.c (gcc_gfc_char_table): Add 'q' flag to remaining
213 specifiers (%d, %i,%u and %c).
215 2015-12-10 David Malcolm <dmalcolm@redhat.com>
217 * c.opt (Wmisleading-indentation): Add to -Wall for C and C++.
219 2015-12-08 Jakub Jelinek <jakub@redhat.com>
223 * c.opt (Wfloat-conversion, Wsign-conversion): Add Warning.
224 * c-pragma.c (handle_pragma_diagnostic): Adjust
225 control_warning_option caller.
227 2015-12-07 David Malcolm <dmalcolm@redhat.com>
229 * c-common.c (c_cpp_error): Update for change to
230 rich_location::set_range.
232 2015-12-04 Paolo Bonzini <bonzini@gnu.org>
234 * c-common.c (maybe_warn_shift_overflow): Warn on all overflows if
235 shifting 1 out of the sign bit.
237 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
239 * c-common.c (c_common_attribute_table[]): Update max arguments
240 count for "simd" attribute.
241 (handle_simd_attribute): Parse "notinbranch" and "inbranch" arguments.
243 2015-12-03 Jakub Jelinek <jakub@redhat.com>
245 PR preprocessor/57580
246 * c-ppoutput.c (print): Change printed field to bool.
247 Move src_file last for smaller padding.
248 (init_pp_output): Set print.printed to false instead of 0.
249 (scan_translation_unit): Fix up formatting. Set print.printed
250 to true after printing something other than newline.
251 (scan_translation_unit_trad): Set print.printed to true instead of 1.
252 (maybe_print_line_1): Set print.printed to false instead of 0.
253 (print_line_1): Likewise.
254 (do_line_change): Set print.printed to true instead of 1.
255 (cb_define, dump_queued_macros, cb_include, cb_def_pragma,
256 dump_macro): Set print.printed to false after printing newline.
258 2015-12-02 Jason Merrill <jason@redhat.com>
260 * c-common.c (fold_for_warn): New.
261 (warn_logical_operator, warn_tautological_cmp)
262 (check_function_arguments_recurse, maybe_warn_bool_compare): Use it.
264 * c-common.c (c_disable_warnings, c_enable_warnings, c_fully_fold)
265 (c_fully_fold_internal, decl_constant_value_for_optimization):
267 * c-common.h: Don't declare decl_constant_value_for_optimization.
269 2015-12-02 Joseph Myers <joseph@codesourcery.com>
272 * c-common.h (c_build_qualified_type): Add extra default
275 2015-12-01 Julian Brown <julian@codesourcery.com>
276 Cesar Philippidis <cesar@codesourcery.com>
277 James Norris <James_Norris@mentor.com>
279 * c-pragma.c (oacc_pragmas): Add PRAGMA_OACC_HOST_DATA.
280 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_HOST_DATA.
281 (pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_USE_DEVICE.
283 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
285 * c-ada-spec.c (print_ada_macros): Remove redundant blank line.
286 (decl_sloc_common): Delete and move bulk of processing to...
287 (decl_sloc): ...here.
288 (pp_ada_tree_identifier): Remove reference to QUAL_UNION_TYPE.
289 (dump_ada_double_name): Remove S parameter and compute the suffix.
290 (dump_ada_array_type): Add PARENT parameter. Simplify computation of
291 element type and deal with an anonymous one.
292 (dump_ada_template): Use RECORD_OR_UNION_TYPE_P macro.
293 (dump_generic_ada_node): Tweak. Adjust call to dump_ada_array_type
294 and remove reference to QUAL_UNION_TYPE.
295 (dump_nested_types): Make 2 passes on the fields and move bulk to...
296 (dump_nested_type): ...here. New function extracted from above.
297 Generate a full declaration for anonymous element type of arrays.
298 (print_ada_declaration): Really skip anonymous declarations. Remove
299 references to QUAL_UNION_TYPE. Adjust call to dump_ada_array_type.
300 Clean up processing of declarations of array types and objects.
301 (print_ada_struct_decl): Remove reference to QUAL_UNION_TYPE.
302 Remove obsolete code and tidy up.
304 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
307 * c-common.c (handle_transparent_union_attribute): Update
310 2015-11-27 Martin Liska <mliska@suse.cz>
313 * array-notation-common.c (cilkplus_extract_an_triplets):
314 Release vector of vectors.
315 * cilk.c (gimplify_cilk_spawn): Free allocated memory.
317 2015-11-26 Eric Botcazou <ebotcazou@adacore.com>
320 * c-ada-spec.c (dump_nested_types): Add guard for error_mark_node.
321 (print_ada_struct_decl): Likewise.
323 2015-11-23 Igor Zamyatin <igor.zamyatin@intel.com>
326 * c-gimplify.c (c_gimplify_expr): Stop the process if see an error.
327 * cilk.c (recognize_spawn): Determine location in a more precise
330 2015-11-19 Jason Merrill <jason@redhat.com>
332 * c-common.c (shorten_compare): But look through macros from
335 2015-11-18 Jason Merrill <jason@redhat.com>
337 * c-common.c (shorten_compare): Don't -Wtype-limits if the
338 non-constant operand comes from a macro.
340 2015-11-17 Jason Merrill <jason@redhat.com>
343 * c-common.c (warn_tautological_cmp): Fold before checking for
346 2015-11-16 Marek Polacek <polacek@redhat.com>
349 * c-common.c (check_case_bounds): Fold low and high cases.
351 2015-11-16 Marek Polacek <polacek@redhat.com>
353 * c-ada-spec.c (dump_ada_template): Use RECORD_OR_UNION_TYPE_P.
354 * c-common.c (c_common_get_alias_set): Likewise.
355 (handle_visibility_attribute): Likewise.
357 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
359 * c-common.c (handle_simd_attribute): New.
360 (struct attribute_spec): Add entry for "simd".
361 (handle_simd_attribute): New.
363 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
365 * c-lex.c (interpret_float): Use fold_convert.
367 2015-11-13 David Malcolm <dmalcolm@redhat.com>
369 * c-common.c (c_fully_fold_internal): Capture existing souce_range,
370 and store it on the result.
371 * c-opts.c (c_common_init_options): Set
372 global_dc->colorize_source_p.
374 2015-11-12 James Norris <jnorris@codesourcery.com>
375 Joseph Myers <joseph@codesourcery.com>
377 * c-pragma.c (oacc_pragmas): Add entry for declare directive.
378 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_DECLARE.
379 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT and
380 PRAGMA_OACC_CLAUSE_LINK.
382 2015-11-11 Marek Polacek <polacek@redhat.com>
386 * c-common.c (valid_array_size_p): New function.
387 * c-common.h (valid_array_size_p): Declare.
389 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
392 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
394 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
396 * array-notation-common.c: Remove unused header files.
397 * c-ada-spec.c: Likewise.
398 * c-cilkplus.c: Likewise.
399 * c-common.c: Likewise.
400 * c-cppbuiltin.c: Likewise.
401 * c-dump.c: Likewise.
402 * c-format.c: Likewise.
403 * c-gimplify.c: Likewise.
404 * c-indentation.c: Likewise.
407 * c-opts.c: Likewise.
409 * c-ppoutput.c: Likewise.
410 * c-pragma.c: Likewise.
411 * c-pretty-print.c: Likewise.
412 * c-semantics.c: Likewise.
413 * c-ubsan.c: Likewise.
415 * stub-objc.c: Likewise.
417 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
418 Cesar Philippidis <cesar@codesourcery.com>
419 James Norris <jnorris@codesourcery.com>
420 Julian Brown <julian@codesourcery.com>
421 Nathan Sidwell <nathan@codesourcery.com>
423 * c-pragma.c (oacc_pragmas): Add "routine".
424 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
426 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
428 * c-common.c (c_common_attributes): Add scalar_storage_order.
429 (handle_scalar_storage_order_attribute): New function.
430 * c-pragma.c (global_sso): New variable.
431 (maybe_apply_pragma_scalar_storage_order): New function.
432 (handle_pragma_scalar_storage_order): Likewise.
433 (init_pragma): Register scalar_storage_order.
434 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
435 * c.opt (Wscalar-storage-order): New warning.
436 (fsso-struct=): New option.
438 2015-11-08 Martin Sebor <msebor@redhat.com>
440 * c.opt (Wplacement-new): Add a period to the end of a sentence.
442 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
444 * c-common.c: Don't undef DEF_BUILTIN.
446 2015-11-06 David Malcolm <dmalcolm@redhat.com>
448 * c-common.c (c_cpp_error): Convert parameter from location_t to
449 rich_location *. Eliminate the "column_override" parameter and
450 the call to diagnostic_override_column.
451 Update the "done_lexing" clause to set range 0
452 on the rich_location, rather than overwriting a location_t.
453 * c-common.h (c_cpp_error): Convert parameter from location_t to
454 rich_location *. Eliminate the "column_override" parameter.
456 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
457 Thomas Schwinge <thomas@codesourcery.com>
458 James Norris <jnorris@codesourcery.com>
460 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
461 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
462 clauses with parallel and kernels and loops.
463 * c-pragma.h (enum pragma_omp_clause): Add entries for
464 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
465 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
466 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
468 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
470 2015-11-05 Martin Sebor <msebor@redhat.com>
473 * c.opt (-Wplacement-new): New option.
475 2015-11-05 Jakub Jelinek <jakub@redhat.com>
477 * c-common.h (c_finish_omp_atomic): Add TEST argument.
478 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
479 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
480 save_expr or create_tmp_var* if TEST is true.
481 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
482 Don't call add_stmt here.
483 (struct c_omp_check_loop_iv_data): New type.
484 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
485 c_omp_check_loop_iv_exprs): New functions.
486 (c_omp_split_clauses): Adjust for lastprivate being allowed on
488 (c_omp_declare_simd_clauses_to_numbers): Change
489 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
490 (c_omp_declare_simd_clauses_to_decls): Similarly change those
491 from numbers to PARM_DECLs.
493 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
495 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
498 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
501 * c-common.h (fold_offsetof_1): Add argument.
502 * c-common.c (fold_offsetof_1): Diagnose more invalid
503 offsetof expressions that reference elements past the end of
506 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
507 Chung-Lin Tang <cltang@codesourcery.com>
509 * c-pragma.c (oacc_pragmas): Add "atomic".
510 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
512 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
514 * c-common.c (handle_target_clones_attribute): New.
515 (c_common_attribute_table): Add handle_target_clones_attribute.
516 (handle_always_inline_attribute): Add check on target_clones attribute.
517 (handle_target_attribute): Ditto.
519 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
521 * array-notation-common.c: Reorder #include's and remove duplicates.
522 * c-ada-spec.c: Likewise.
523 * c-cilkplus.c: Likewise.
524 * c-common.c: Likewise.
525 * c-cppbuiltin.c: Likewise.
526 * c-dump.c: Likewise.
527 * c-format.c: Likewise.
528 * c-gimplify.c: Likewise.
529 * c-indentation.c: Likewise.
532 * c-opts.c: Likewise.
534 * c-ppoutput.c: Likewise.
535 * c-pragma.c: Likewise.
536 * c-pretty-print.c: Likewise.
537 * c-semantics.c: Likewise.
538 * c-ubsan.c: Likewise.
540 * stub-objc.c: Likewise.
542 2015-10-28 Jason Merrill <jason@redhat.com>
544 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
546 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
547 James Norris <jnorris@codesourcery.com>
548 Cesar Philippidis <cesar@codesourcery.com>
552 * c-common.h (c_oacc_split_loop_clauses): Declare function.
553 * c-omp.c (c_oacc_split_loop_clauses): New function.
555 2015-10-21 Martin Sebor <msebor@redhat.com>
558 * c.opt: End each sentence that describes an option with a period.
560 2015-10-20 Marek Polacek <polacek@redhat.com>
562 * array-notation-common.c (is_cilkplus_vector_p): Define.
563 * c-common.h (is_cilkplus_vector_p): Declare.
565 2015-10-20 Marek Polacek <polacek@redhat.com>
567 * c.opt (std=gnu++11): Do not describe as experimental.
568 (std=gnu++14): Likewise.
570 2015-10-19 Jason Merrill <jason@redhat.com>
572 * c-cppbuiltin.c (c_cpp_builtins): Define
573 __cpp_nontype_template_args.
575 2015-10-19 Jason Merrill <jason@redhat.com>
577 * c-cppbuiltin.c (c_cpp_builtins): Define
578 __cpp_enumerator_attributes, __cpp_fold_expressions,
579 __cpp_unicode_characters.
581 2015-10-13 Jakub Jelinek <jakub@redhat.com>
582 Aldy Hernandez <aldyh@redhat.com>
584 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
585 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
586 (c_define_builtins): Likewise.
587 * c-common.h (enum c_omp_clause_split): Add
588 C_OMP_CLAUSE_SPLIT_TASKLOOP.
589 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
590 (c_finish_omp_for): Add ORIG_DECLV argument.
591 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
592 201511 instead of 201307.
593 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
594 OMP_CRITICAL_CLAUSES to it.
595 (c_finish_omp_ordered): Add CLAUSES argument, set
596 OMP_ORDERED_CLAUSES to it.
597 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
598 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
599 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
600 constructs and new OpenMP 4.5 clauses. Clear
601 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
603 * c-pragma.c (omp_pragmas_simd): Add taskloop.
604 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
605 (enum pragma_omp_clause): Add
606 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
607 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
609 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
611 * c-lex.c (interpret_float): Use real_equal instead of
614 2015-10-04 Jason Merrill <jason@redhat.com>
616 Implement N4514, C++ Extensions for Transactional Memory.
617 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
618 (c_common_attribute_table): Add transaction_safe_dynamic.
619 transaction_safe now affects type identity.
620 (handle_tm_attribute): Handle transaction_safe_dynamic.
621 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
622 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
623 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
625 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
626 * c-pretty-print.c (pp_c_attributes_display): Don't print
627 transaction_safe in C++.
629 2015-10-02 Marek Polacek <polacek@redhat.com>
631 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
633 2015-10-02 Marek Polacek <polacek@redhat.com>
636 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
637 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
638 * c.opt (Wduplicated-cond): New option.
640 2015-10-01 Joseph Myers <joseph@codesourcery.com>
642 * c.opt (std=c11): Do not describe as experimental.
643 (std=gnu11): Likewise.
644 (std=iso9899:2011): Likewise.
646 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
648 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
649 (DEF_FUNCTION_TYPE_VAR_11): Delete.
651 2015-09-25 Marek Polacek <polacek@redhat.com>
653 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
654 (ubsan_instrument_shift): Likewise.
656 2015-09-25 Marek Polacek <polacek@redhat.com>
659 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
661 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
663 * c-indentation.c (should_warn_for_misleading_indentation):
664 Compare next_stmt_vis_column with guard_line_first_nws instead
665 of with guard_line_vis_column.
667 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
671 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
672 options and options not valid for the current language.
674 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
676 * c-indentation.c (should_warn_for_misleading_indentation):
677 Float out and consolidate the calls to get_visual_column that
678 are passed guard_exploc as an argument. Compare
679 next_stmt_vis_column with guard_line_first_nws instead of with
682 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
684 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
685 Wnamespaces): New C++ warnings.
687 2015-09-22 Jason Merrill <jason@redhat.com>
689 * c-common.h (abi_compat_version_crosses): New.
690 (warn_abi_version): Declare.
691 * c-common.c: Define it.
692 * c-opts.c (c_common_post_options): Handle it.
693 flag_abi_compat_version defaults to 8.
695 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
697 Complete the implementation of N4230, Nested namespace definition.
698 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
699 __cpp_nested_namespace_definitions.
701 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
703 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
705 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
707 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
709 * c-pragma.h (pragma_lex): Add optional loc argument.
711 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
713 * c-format.c (check_format_arg): Adjust to use common block size in all
716 2015-09-15 David Malcolm <dmalcolm@redhat.com>
718 * c-format.c (location_from_offset): Update for change in
719 signature of location_get_source_line.
720 * c-indentation.c (get_visual_column): Likewise.
721 (line_contains_hash_if): Likewise.
723 2015-09-14 Marek Polacek <polacek@redhat.com>
725 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
726 setting various warnings.
728 2015-09-14 Marek Polacek <polacek@redhat.com>
730 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
733 2015-09-11 Mark Wielaard <mjw@redhat.com>
736 * c.opt (Wunused-variable): Option from common.opt.
737 (Wunused-const-variable): New option.
739 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
742 * c.opt ([Wsubobject-linkage]): Add.
744 2015-09-03 Martin Sebor <msebor@redhat.com>
747 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
749 * c-common.c (reject_gcc_builtin): Define.
751 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
754 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
756 * c-gimplify.c (c_gimplify_expr): Added a call to the function
757 cilk_gimplify_call_params_in_spawned_fn.
758 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
759 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
762 2015-08-25 Marek Polacek <polacek@redhat.com>
765 * c-common.c (handle_weak_attribute): Don't check whether the
766 visibility can be changed here.
768 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
770 * c-lex.c (c_lex_with_flags): Use explicit locations.
772 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
774 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
775 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
777 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
780 * c-common.c (check_builtin_function_arguments): Add check
781 for BUILT_IN_SIGNBIT argument.
783 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
786 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
789 2015-08-17 Marek Polacek <polacek@redhat.com>
791 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
792 with whitespaces before qualifier names.
794 2015-08-12 Marek Polacek <polacek@redhat.com>
797 * c-common.c (maybe_warn_shift_overflow): Properly handle
798 left-shifting 1 into the sign bit.
800 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
802 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
804 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
805 Braden Obrzut <admin@maniacsvault.net>
806 Jason Merrill <jason@redhat.com>
808 Add C++ Concepts TS support.
809 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
810 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
811 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
812 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
813 * c-opts.c (set_std_cxx1z): Set flag_concepts.
814 * c.opt (fconcepts): New.
816 2015-08-02 Martin Sebor <msebor@redhat.com>
818 * c.opt (-Wframe-address): New warning option.
820 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
822 * c-indentation.c (should_warn_for_misleading_indentation):
825 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
827 * c-indentation.c (get_visual_column): Add parameter first_nws,
828 use it. Update comment documenting the function.
829 (is_first_nonwhitespace_on_line): Remove.
830 (should_warn_for_misleading_indentation): Replace usage of
831 of is_first_nonwhitespace_on_line with get_visual_column.
833 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
835 * c-indentation.h (struct token_indent_info): Define.
836 (get_token_indent_info): Define.
837 (warn_for_misleading_information): Declare.
838 * c-common.h (warn_for_misleading_information): Remove.
839 * c-identation.c (warn_for_misleading_indentation):
840 Change declaration to take three token_indent_infos. Adjust
842 * c-identation.c (should_warn_for_misleading_indentation):
843 Likewise. Bail out early if the body is a compound statement.
844 (guard_tinfo_to_string): Define.
846 2015-07-30 Jason Merrill <jason@redhat.com>
848 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
849 '*' for reference decay.
851 2015-07-30 Marek Polacek <polacek@redhat.com>
853 * c-common.c (warn_tautological_cmp): Bail for float types.
855 2015-07-27 Marek Polacek <polacek@redhat.com>
858 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
860 2015-07-27 Marek Polacek <polacek@redhat.com>
864 * c-common.c (find_array_ref_with_const_idx_r): New function.
865 (warn_tautological_cmp): New function.
866 * c-common.h (warn_tautological_cmp): Declare.
867 * c.opt (Wtautological-compare): New option.
869 2015-07-23 Marek Polacek <polacek@redhat.com>
871 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
872 (ubsan_instrument_shift): Likewise.
874 2015-07-23 Marek Polacek <polacek@redhat.com>
877 * c-ubsan.c: Include gimplify.h.
878 (ubsan_instrument_division): Unshare OP0 and OP1.
879 (ubsan_instrument_shift): Likewise.
881 2015-07-20 Marek Polacek <polacek@redhat.com>
882 Richard Sandiford <richard.sandiford@arm.com>
885 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
887 (maybe_warn_shift_overflow): New function.
888 * c-common.h (maybe_warn_shift_overflow): Declare.
889 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
890 * c.opt (Wshift-overflow): New option.
892 2015-07-16 Martin Liska <mliska@suse.cz>
894 * c-format.c (static void check_format_info_main): Use
895 object_allocator instead of pool_allocator.
896 (check_format_arg): Likewise.
897 (check_format_info_main): Likewise.
899 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
901 * c-opts.c: Remove multiline #include comment.
903 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
905 * c-common.c: Fix double word typos.
907 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
909 * c-ada-spec.h (cpp_operation): Revert latest change.
910 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
911 constructors and destructors.
913 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
915 * c-common.h: Adjust includes for flags.h changes.
916 * stub-objc.c: Likewise.
918 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
920 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
921 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
923 2015-07-08 Jakub Jelinek <jakub@redhat.com>
925 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
926 are to be removed, return NULL rather than original clauses list.
928 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
930 * array-notation-common.c: Adjust includes.
931 * c-ada-spec.c: Likewise.
932 * c-cilkplus.c: Likewise.
933 * c-common.h: Likewise.
934 * c-cppbuiltin.c: Likewise.
935 * c-dump.c: Likewise.
936 * c-format.c: Likewise.
937 * c-gimplify.c: Likewise.
938 * c-indentation.c: Likewise.
941 * c-opts.c: Likewise.
943 * c-ppoutput.c: Likewise.
944 * c-pragma.c: Likewise.
945 * c-pretty-print.c: Likewise.
946 * c-semantics.c: Likewise.
947 * c-ubsan.c: Likewise.
949 * stub-objc.c: Likewise.
951 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
953 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
954 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
956 2015-07-01 Jason Merrill <jason@redhat.com>
958 * c-common.h (D_CXX11): Rename from D_CXX0X.
959 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
960 * c-common.c: Adjust.
962 * c-opts.c (c_common_post_options): Default to C++14.
964 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
966 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
968 Implement N4197 - Adding u8 character literals
969 * c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
971 * c-common.c (c_parse_error): Print CPP_UTF8CHAR and
972 CPP_UTF8CHAR_USERDEF tokens.
973 * c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
974 and CPP_UTF8CHAR tokens.
975 (lex_charconst): Treat CPP_UTF8CHAR token.
977 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
980 * c-common.c (do_warn_unused_parameter): Move here.
981 * c-common.h (do_warn_unused_parameter): Declare.
983 2015-06-29 Marek Polacek <polacek@redhat.com>
986 * c-common.c (check_case_bounds): Add bool * parameter. Set
988 (c_add_case_label): Add bool * parameter. Pass it down to
990 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
992 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
995 2015-06-27 Marek Polacek <polacek@redhat.com>
997 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
998 or VECTOR_INTEGER_TYPE_P throughout.
999 * c-gimplify.c: Likewise.
1001 2015-06-26 Marek Polacek <polacek@redhat.com>
1003 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
1004 * c-common.c (c_fully_fold_internal): Likewise.
1005 (c_alignof_expr): Likewise.
1006 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
1007 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
1008 * cilk.c (create_parm_list): Likewise.
1010 2015-06-26 Marek Polacek <polacek@redhat.com>
1012 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
1014 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1016 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
1017 * c-gimplify.c: Likewise.
1018 * c-pragma.c: Likewise.
1019 * c-ubsan.c: Likewise.
1022 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
1024 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
1027 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
1029 * cilk.c: Move calls.h after tm.h in the include chain.
1031 2015-06-25 Marek Polacek <polacek@redhat.com>
1033 * array-notation-common.c: Use VAR_P throughout.
1034 * c-ada-spec.c: Likewise.
1035 * c-common.c: Likewise.
1036 * c-format.c: Likewise.
1037 * c-gimplify.c: Likewise.
1038 * c-omp.c: Likewise.
1039 * c-pragma.c: Likewise.
1040 * c-pretty-print.c: Likewise.
1043 2015-06-25 Marek Polacek <polacek@redhat.com>
1045 * cilk.c (extract_free_variables): Use is_global_var.
1047 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
1049 * c-common.c: Don't include target-def.h.
1051 2015-06-23 Marek Polacek <polacek@redhat.com>
1053 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
1054 when comparing INTEGER_CSTs.
1056 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
1058 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
1059 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
1060 (dump_ada_template): Skip partially specialized types.
1062 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
1064 * c-common.c (scalar_to_vector): Use std::swap instead of manually
1067 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
1069 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
1070 * c-ada-spec.c: Likewise.
1071 * c-cilkplus.c: Likewise.
1072 * c-common.c: Likewise.
1073 * c-common.h: Likewise.
1074 * c-cppbuiltin.c: Likewise.
1075 * c-dump.c: Likewise.
1076 * c-format.c: Likewise.
1077 * c-gimplify.c: Likewise.
1078 * c-indentation.c: Likewise.
1079 * c-lex.c: Likewise.
1080 * c-omp.c: Likewise.
1081 * c-opts.c: Likewise.
1082 * c-pch.c: Likewise.
1083 * c-ppoutput.c: Likewise.
1084 * c-pragma.c: Likewise.
1085 * c-pretty-print.c: Likewise.
1086 * c-semantics.c: Likewise.
1087 * c-ubsan.c: Likewise.
1089 * stub-objc.c: Likewise.
1091 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
1094 * c-common.c (c_common_truthvalue_conversion): Warn when
1095 converting an address of a reference to a truth value.
1097 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
1099 * array-notation-common.c : Adjust include files.
1100 * c-ada-spec.c : Likewise.
1101 * c-cilkplus.c : Likewise.
1102 * c-common.c : Likewise.
1103 * c-common.h : Likewise.
1104 * c-cppbuiltin.c : Likewise.
1105 * c-dump.c : Likewise.
1106 * c-format.c : Likewise.
1107 * c-gimplify.c : Likewise.
1108 * c-indentation.c : Likewise.
1109 * c-lex.c : Likewise.
1110 * c-omp.c : Likewise.
1111 * c-opts.c : Likewise.
1112 * c-pch.c : Likewise.
1113 * c-ppoutput.c : Likewise.
1114 * c-pragma.c : Likewise.
1115 * c-pretty-print.c : Likewise.
1116 * c-semantics.c : Likewise.
1117 * c-ubsan.c : Likewise.
1118 * cilk.c : Likewise.
1119 * stub-objc.c : Likewise.
1121 2015-06-08 Marek Polacek <polacek@redhat.com>
1124 * c-format.c (location_from_offset): Return LOC if LINE is null.
1126 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
1128 * c-common.h (c_parse_final_cleanups): New prototype.
1129 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
1131 2015-06-04 Sriraman Tallam <tmsriram@google.com>
1133 * c-common.c (noplt): New attribute.
1134 (handle_noplt_attribute): New handler.
1136 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
1138 * array-notation-common.c: Adjust includes for restructured coretypes.h.
1139 * c-ada-spec.c: Likewise.
1140 * c-cilkplus.c: Likewise.
1141 * c-common.c: Likewise.
1142 * c-common.h: Likewise.
1143 * c-cppbuiltin.c: Likewise.
1144 * c-dump.c: Likewise.
1145 * c-format.c: Likewise.
1146 * c-gimplify.c: Likewise.
1147 * c-indentation.c: Likewise.
1148 * c-lex.c: Likewise.
1149 * c-omp.c: Likewise.
1150 * c-opts.c: Likewise.
1151 * c-pch.c: Likewise.
1152 * c-ppoutput.c: Likewise.
1153 * c-pragma.c: Likewise.
1154 * c-pretty-print.c: Likewise.
1155 * c-semantics.c: Likewise.
1156 * c-ubsan.c: Likewise.
1158 * stub-objc.c: Likewise.
1160 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1163 * c-indentation.c (should_warn_for_misleading_indentation): Use
1164 expand_location rather than expand_location_to_spelling_point.
1165 Don't warn if the guarding statement is more indented than the
1168 2015-06-02 David Malcolm <dmalcolm@redhat.com>
1170 * c-indentation.c (warn_for_misleading_indentation): Bail out
1171 immediately if -Wmisleading-indentation isn't enabled.
1173 2015-06-01 Martin Liska <mliska@suse.cz>
1175 * c-format.c (check_format_arg):Use new type-based pool allocator.
1176 (check_format_info_main) Likewise.
1178 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
1180 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
1181 (has_nontrivial_methods): Likewise.
1183 2015-05-25 Marek Polacek <polacek@redhat.com>
1185 * c-ubsan.c (ubsan_instrument_shift): Use type0.
1187 2015-05-22 Marek Polacek <polacek@redhat.com>
1190 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
1192 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1194 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
1195 STACK_GROWS_DOWNWARD.
1197 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1199 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
1200 STACK_GROWS_DOWNWARD rather than if it is defined.
1202 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1205 * c-format.c (location_column_from_byte_offset): New.
1206 (location_from_offset): New.
1207 (struct format_wanted_type): Add offset_loc field.
1208 (check_format_info): Move handling of location for extra arguments
1209 closer to the point of warning.
1210 (check_format_info_main): Pass the result of location_from_offset
1212 (format_type_warning): Pass the result of location_from_offset
1215 2015-05-20 Marek Polacek <polacek@redhat.com>
1217 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
1219 2015-05-20 Marek Polacek <polacek@redhat.com>
1221 * c-ada-spec.c (dump_sloc): Use DECL_P.
1223 2015-05-20 Marek Polacek <polacek@redhat.com>
1225 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
1226 * c-common.c: Likewise.
1228 2015-05-19 David Malcolm <dmalcolm@redhat.com>
1230 * c-common.h (fe_file_change): Strengthen param from
1231 const line_map * to const line_map_ordinary *.
1232 (pp_file_change): Likewise.
1233 * c-lex.c (fe_file_change): Likewise.
1234 (cb_define): Use linemap_check_ordinary when invoking
1236 (cb_undef): Likewise.
1237 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
1238 invoking cb_file_change.
1239 (c_finish_options): Likewise.
1240 (push_command_line_include): Likewise.
1241 (cb_file_change): Strengthen param "new_map" from
1242 const line_map * to const line_map_ordinary *.
1243 * c-ppoutput.c (cb_define): Likewise for local "map".
1244 (pp_file_change): Likewise for param "map" and local "from".
1246 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
1248 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
1250 2015-05-18 Tom de Vries <tom@codesourcery.com>
1252 * c-common.c (build_va_arg_1): New function.
1253 (build_va_arg): Add address operator to va_list operand if necessary.
1255 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
1258 * c-common.c (int_safely_convertible_to_real_p): Define.
1259 (unsafe_conversion_p): Check conversions involving complex types.
1260 (conversion_warning): Add new warning message for conversions which
1261 discard imaginary component.
1262 * c-common.h: (enum conversion_safety): Add new enumerator for such
1265 2015-05-14 Marek Polacek <polacek@redhat.com>
1269 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
1270 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
1271 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
1272 use it. If FOR_INT_CONST, require that all evaluated operands be
1275 2015-05-12 David Malcolm <dmalcolm@redhat.com>
1277 * c-common.h (warn_for_misleading_indentation): New prototype.
1278 * c-indentation.c: New file.
1279 * c.opt (Wmisleading-indentation): New option.
1281 2015-05-12 Tom de Vries <tom@codesourcery.com>
1283 PR tree-optimization/66010
1284 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
1286 2015-05-09 Jason Merrill <jason@redhat.com>
1288 * c-opts.c (c_common_post_options): Also clear
1289 cpp_opts->cpp_warn_cxx11_compat.
1291 * c-common.h (enum cxx_dialect): Add cxx_unset.
1292 * c-common.c (cxx_dialect): Initialize to cxx_unset.
1293 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
1295 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
1296 (std=gnu++0x): Mark as Undocumented.
1297 (std=gnu++1y): Add deprecated message.
1299 2015-05-08 Jason Merrill <jason@redhat.com>
1301 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
1304 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
1306 2015-05-08 Marek Polacek <polacek@redhat.com>
1309 * c.opt (Woverride-init-side-effects): New option.
1311 2015-05-07 Marek Polacek <polacek@redhat.com>
1314 * c-common.c (c_fully_fold_internal): Warn when left shifting a
1316 * c.opt (Wshift-negative-value): New option.
1317 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
1318 when -Wextra and C99/C++11 mode.
1320 2015-05-07 Marek Polacek <polacek@redhat.com>
1321 Martin Uecker <uecker@eecs.berkeley.edu>
1323 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
1324 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
1326 2015-05-05 Jason Merrill <jason@redhat.com>
1328 * c.opt (Wterminate): New.
1330 2015-04-30 Marek Polacek <polacek@redhat.com>
1332 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
1333 require that the non-constant be of a boolean type.
1335 2015-04-29 Josh Triplett <josh@joshtriplett.org>
1337 * c-common.c (handle_section_attribute): Refactor to reduce
1338 nesting and distinguish between error cases.
1340 2015-04-29 Marek Polacek <polacek@redhat.com>
1343 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
1346 2015-04-29 Jakub Jelinek <jakub@redhat.com>
1348 * c-common.h (omp_clause_mask): Unconditionally define as a class.
1349 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
1350 HOST_BITS_PER_WIDE_INT.
1352 2015-04-28 Tom de Vries <tom@codesourcery.com>
1354 PR tree-optimization/65887
1355 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
1357 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
1358 Pierre-Marie de Rodat <derodat@adacore.com>
1360 * c-ada-spec.c (in_function): Delete.
1361 (dump_generic_ada_node): Do not change in_function and remove the
1362 redundant code dealing with it.
1363 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
1364 (print_ada_methods): Output the static member functions in a nested
1365 package after the regular methods as well as associated renamings.
1367 2015-04-24 Marek Polacek <polacek@redhat.com>
1370 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
1371 and OPT_Wshift_count_overflow.
1374 * c-common.c (warn_logical_operator): Warn if the operands have the
1377 2015-04-24 Marek Polacek <polacek@redhat.com>
1380 * c-common.c (warn_logical_operator): Bail if either operand comes
1381 from a macro expansion.
1383 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1386 * c-common.c (c_default_pointer_mode): Add definition.
1387 * c-common.h (c_default_pointer_mode): Add declaration.
1389 2015-03-11 Jakub Jelinek <jakub@redhat.com>
1391 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1392 on record_builtin_type argument.
1394 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1397 * c-common.c (warn_logical_not_parentheses): Don't warn for
1400 2015-03-07 Marek Polacek <polacek@redhat.com>
1403 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1404 before trying to figure out whether we have a flexible array member.
1406 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1407 Jonathan Wakely <jwakely.gcc@gmail.com>
1409 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1411 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1414 * c-ada-spec.c (print_destructor): Remove obsolete code.
1416 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1418 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1419 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1420 DECL_TEMPLATE_RESULT emulations.
1421 (dump_ada_template)): Add guard for TYPE_METHODS.
1423 2015-02-27 Marek Polacek <polacek@redhat.com>
1426 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1428 2015-02-27 Kai Tietz <ktietz@redhat.com>
1431 * c-pragma.c (handle_pragma_weak): Do not try to create
1432 weak/alias of declarations not being function, or variable
1435 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1438 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1440 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1442 2015-02-16 Marek Polacek <polacek@redhat.com>
1445 * c-format.c (check_format_types): Handle null param.
1447 2015-02-13 Marek Polacek <polacek@redhat.com>
1450 * c-format.c (check_format_types): Don't warn about different
1451 signedness if the original value is in the range of WANTED_TYPE.
1453 2015-02-12 Jason Merrill <jason@redhat.com>
1456 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1457 to the current highest version.
1458 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1460 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1464 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1465 instead of RDIV_EXPR. Use build_binary_op instead of
1468 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1470 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1471 to pass input_location as first argument.
1473 2015-01-23 Tom de Vries <tom@codesourcery.com>
1476 * c.opt (fopenacc): Mark as LTO option.
1478 2015-01-23 Tom de Vries <tom@codesourcery.com>
1481 * c.opt (fopenmp): Mark as LTO option.
1483 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1486 * cilk.c (fill_decls_vec): Only put decls into vector v.
1487 (compare_decls): Fix up formatting.
1489 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1492 * cilk.c: Include vec.h.
1493 (struct cilk_decls): New structure.
1494 (wrapper_parm_cb): Split this function to...
1495 (fill_decls_vec): ...this...
1496 (create_parm_list): ...and this.
1497 (compare_decls): New function.
1498 (for_local_cb): Remove.
1499 (wrapper_local_cb): Ditto.
1500 (build_wrapper_type): For now first traverse and fill vector of
1501 declarations then sort it and then deal with sorted vector.
1502 (cilk_outline): Ditto.
1503 (declare_one_free_variable): Ditto.
1505 2015-01-21 Jason Merrill <jason@redhat.com>
1508 * c-format.c (check_format_arg): Call decl_constant_value.
1510 2015-01-19 Martin Liska <mliska@suse.cz>
1512 * c-common.c (handle_noicf_attribute): New function.
1514 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1515 Bernd Schmidt <bernds@codesourcery.com>
1516 James Norris <jnorris@codesourcery.com>
1517 Cesar Philippidis <cesar@codesourcery.com>
1518 Ilmir Usmanov <i.usmanov@samsung.com>
1519 Jakub Jelinek <jakub@redhat.com>
1521 * c.opt (fopenacc): New option.
1522 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1523 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1525 * c-common.h (c_finish_oacc_wait): New prototype.
1526 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1527 (c_finish_oacc_wait): New function.
1528 * c-pragma.c (oacc_pragmas): New variable.
1529 (c_pp_lookup_pragma, init_pragma): Handle it.
1530 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1531 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1532 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1533 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1534 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1535 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1536 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1537 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1538 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1539 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1540 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1541 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1542 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1543 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1544 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1545 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1546 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1547 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1548 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1549 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1550 PRAGMA_OACC_CLAUSE_WORKER.
1552 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1554 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1555 for the new option fstack-protector_explicit.
1556 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1557 (handle_stack_protect_attribute): New function.
1559 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1561 * c.opt: New option -Warray-bounds=.
1563 2015-01-09 Michael Collison <michael.collison@linaro.org>
1565 * array-notation-common.c: Include hash-set.h, machmode.h,
1566 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1567 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1568 * c-ada-spec.c: Ditto.
1569 * c-cilkplus.c: Ditto.
1570 * c-common.c: Include input.h due to flattening of tree.h.
1571 Define macro GCC_C_COMMON_C.
1572 * c-common.h: Flatten tree.h header files into c-common.h.
1573 Remove include of tree-core.h.
1574 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1575 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1576 fold-const.h, wide-int.h, and inchash.h due to
1577 flattening of tree.h.
1579 * c-format.c: Flatten tree.h header files into c-common.h.
1580 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1581 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1582 fold-const.h, wide-int.h, and inchash.h due to
1583 flattening of tree.h.
1584 * c-dump.c: Include hash-set.h, machmode.h,
1585 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1586 fold-const.h, wide-int.h, and inchash.h due to
1587 flattening of tree.h.
1588 * c-format.c: Include hash-set.h, machmode.h,
1589 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1590 fold-const.h, wide-int.h, inchash.h and real.h due to
1591 flattening of tree.h.
1592 * c-gimplify.c: Include hash-set.h, machmode.h,
1593 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1594 fold-const.h, wide-int.h, and inchash.h due to
1595 flattening of tree.h.
1601 * c-ppoutput.c: Ditto.
1602 * c-pragma.c: Ditto.
1603 * c-pretty-print.c: Ditto.
1604 * c-semantics.c: Ditto.
1606 * stub-objc.c: Ditto.
1608 2015-01-08 Jason Merrill <jason@redhat.com>
1610 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1611 do_ubsan_in_current_function.
1612 (ubsan_maybe_instrument_reference_or_call): Likewise.
1613 * c-ubsan.h: Declare it.
1615 2015-01-08 Mike Stump <mikestump@comcast.net>
1617 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1619 2015-01-07 Marek Polacek <polacek@redhat.com>
1622 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1623 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1625 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1628 * c.opt (Wsuggest-override): New option.
1630 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1632 Update copyright years.
1634 2015-01-05 Marek Polacek <polacek@redhat.com>
1637 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1639 * c-common.h (warn_array_subscript_with_type_char): Update
1642 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1644 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1645 Control macro with flag_sized_deallocation.
1647 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1649 * c.opt (Wdiscarded-array-qualifiers): New option.
1651 2014-12-19 Jakub Jelinek <jakub@redhat.com>
1653 PR preprocessor/63831
1654 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1655 and __has_cpp_attribute here.
1656 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1657 c_common_has_attribute.
1658 * c-common.h (c_common_has_attribute): New prototype.
1659 * c-lex.c (init_c_lex): Set cb->has_attribute to
1660 c_common_has_attribute instead of cb_has_attribute.
1661 (get_token_no_padding): New function.
1662 (cb_has_attribute): Renamed to ...
1663 (c_common_has_attribute): ... this. No longer static. Use
1664 get_token_no_padding, require ()s, don't build TREE_LIST
1665 unnecessarily, fix up formatting, adjust diagnostics, call
1668 2014-12-15 Jason Merrill <jason@redhat.com>
1670 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1671 (-Wsized-deallocation): New.
1672 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1673 to on in C++14 and up.
1675 2014-12-11 Jason Merrill <jason@redhat.com>
1677 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1679 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1680 we aren't complaining about VLAs.
1682 2014-12-06 Marek Polacek <polacek@redhat.com>
1684 PR tree-optimization/64183
1685 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1686 shift-expression if it is integer_type_node. Use types_compatible_p.
1688 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1690 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1691 last argument from create_tmp_var_raw and create_tmp_var calls.
1692 * cilk.c (gimplify_cilk_spawn): Likewise.
1693 * c-omp.c (c_finish_omp_atomic): Likewise.
1695 2014-11-28 Marek Polacek <polacek@redhat.com>
1697 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1698 instead of unsigned_type_node.
1700 2014-11-28 Marek Polacek <polacek@redhat.com>
1703 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1705 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1706 expression to unsigned_type_node.
1708 2014-11-20 Mark Wielaard <mjw@redhat.com>
1711 * c-opts.c (set_std_c89): Set lang_hooks.name.
1712 (set_std_c99): Likewise.
1713 (set_std_c11): Likewise.
1714 (set_std_cxx98): Likewise.
1715 (set_std_cxx11): Likewise.
1716 (set_std_cxx14): Likewise.
1717 (set_std_cxx1z): Likewise.
1719 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1722 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1723 return type to bool.
1724 * c-common.c: Include gimple-expr.h.
1725 (convert_vector_to_pointer_for_subscript): Change return type to
1726 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1727 and copy it into a TARGET_EXPR and use that instead of *vecp
1730 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1732 Merger of git branch "gimple-classes-v2-option-3".
1733 * ChangeLog.gimple-classes: New.
1734 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1735 from being just a vec<gimple> to a vec<gbind *>.
1737 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1740 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1741 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1742 get_pointer_alignment for non-pointers. Use ptype, or if it is
1743 reference type, corresponding pointer type, as type of kind
1745 (ubsan_maybe_instrument_reference,
1746 ubsan_maybe_instrument_member_call): Adjust callers.
1748 2014-11-15 Marek Polacek <polacek@redhat.com>
1751 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1753 (extract_array_notation_exprs): Return for NULL node.
1755 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1757 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1758 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1760 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1763 * c-common.c (check_builtin_function_arguments): Handle
1764 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1766 2014-11-10 Andi Kleen <ak@linux.intel.com>
1769 * c-common.h (check_no_cilk): Declare.
1770 * cilk.c (get_error_location): New function.
1771 (check_no_cilk): Dito.
1773 2014-11-10 Andi Kleen <ak@linux.intel.com>
1775 * cilk.c (recognize_spawn): Use expression location
1778 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1780 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1782 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1784 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1785 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1786 (__cpp_range_based_for, __cpp_initializer_lists,
1787 __cpp_delegating_constructors, __cpp_nsdmi,
1788 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1789 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1790 __has_cpp_attribute.
1791 * c-lex.c (cb_has_attribute): New callback CPP function;
1792 (init_c_lex): Set has_attribute callback.
1794 2014-11-04 Richard Biener <rguenther@suse.de>
1796 * c-common.c (shorten_compare): Do not shorten mixed
1797 DFP and non-DFP compares.
1799 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1801 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1802 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1803 Commentary and rearrangement of tests.
1804 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1805 Commentary and rearrangement of tests.
1806 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1807 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1809 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1811 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1812 enum from machine_mode.
1814 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1816 * c-common.c: Adjust include files.
1817 * c-gimplify.c: Ditto.
1819 * c-pragma.c: Ditto.
1822 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1824 * c-gimplify.c: Adjust include files.
1826 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1829 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1830 c_common_initialize_diagnostics.
1831 * c-common.h: Likewise.
1833 2014-10-24 Marek Polacek <polacek@redhat.com>
1836 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1837 print "struct"/"union"/"enum" for typedefed names.
1839 2014-10-23 Marek Polacek <polacek@redhat.com>
1841 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1844 2014-10-22 Jakub Jelinek <jakub@redhat.com>
1845 Yury Gribov <y.gribov@samsung.com>
1847 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1848 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1849 instead of flag_sanitize_recover as bool flag.
1851 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1853 * cilk.c: Revert previous change.
1855 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1858 * cilk.c: Include vec.h.
1859 (struct cilk_decls): New structure.
1860 (wrapper_parm_cb): Split this function to...
1861 (fill_decls_vec): ...this...
1862 (create_parm_list): ...and this.
1863 (compare_decls): New function.
1864 (for_local_cb): Remove.
1865 (wrapper_local_cb): Ditto.
1866 (build_wrapper_type): For now first traverse and fill vector of
1867 declarations then sort it and then deal with sorted vector.
1868 (cilk_outline): Ditto.
1869 (declare_one_free_variable): Ditto.
1871 2014-10-17 Marek Polacek <polacek@redhat.com>
1873 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1874 * c.opt (Wimplicit-int): Initialize to -1.
1876 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1878 * c-pragma.c: Adjust include files.
1879 * c-semantics.c: Likewise.
1881 2014-10-16 DJ Delorie <dj@redhat.com>
1883 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1886 2014-10-14 Jason Merrill <jason@redhat.com>
1889 * c-common.h (CPP_PREPARSED_EXPR): New.
1890 (N_CP_TTYPES): Adjust.
1892 2014-10-15 Marek Polacek <polacek@redhat.com>
1894 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1896 2014-10-14 DJ Delorie <dj@redhat.com>
1898 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1899 types, not just __int128.
1900 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1901 types, not just __int128.
1902 (cpp_atomic_builtins): Round pointer sizes up.
1903 (type_suffix): Use type precision, not specific types.
1904 * c-common.c (c_common_reswords): Remove __int128 special case.
1905 (c_common_type_for_size): Check for all __intN types, not just
1907 (c_common_type_for_mode): Likewise.
1908 (c_common_signed_or_unsigned_type): Likewise.
1909 (c_build_bitfield_integer_type): Likewise.
1910 (c_common_nodes_and_builtins): Likewise.
1911 (keyword_begins_type_specifier): Likewise.
1912 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1915 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1917 * c-common.c: Use hash_table instead of hashtab.
1919 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1921 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
1924 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
1929 * c-common.c (warn_logical_operator): Punt for vectors.
1931 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1933 Implement SD-6: SG10 Feature Test Recommendations
1934 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1935 macros and the __has_header macro.
1937 2014-09-30 Jason Merrill <jason@redhat.com>
1939 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1940 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1941 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1943 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1944 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1946 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1947 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1949 2014-09-24 Marek Polacek <polacek@redhat.com>
1953 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1955 2014-09-23 Andi Kleen <ak@linux.intel.com>
1957 * c-common.c (handle_no_reorder_attribute): New function.
1958 (c_common_attribute_table): Add no_reorder attribute.
1960 2014-09-22 Joseph Myers <joseph@codesourcery.com>
1962 * c-cppbuiltin.c (c_cpp_builtins): Define
1963 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1966 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1968 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1969 for supported floating-point modes.
1971 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1973 * c.opt (Wpsabi): Use LangEnabledBy.
1974 * c-opts.c (c_common_handle_option): Do not handle here.
1976 2014-09-12 Joseph Myers <joseph@codesourcery.com>
1978 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1979 macros for floating-point modes.
1981 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
1984 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1985 __*_DENORM_MIN__ without denormals.
1987 2014-09-10 Jakub Jelinek <jakub@redhat.com>
1989 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1990 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1991 ubsan_create_data callers.
1992 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1993 index is constant or BIT_AND_EXPR with constant mask and is
1994 small enough for the bound.
1995 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1996 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1998 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2000 * c.opt: Add CppReason to various flags.
2001 (Wdate-time): Re-sort.
2002 * c-common.c: Include c-common.h earlier.
2003 (struct reason_option_codes_t): Delete.
2004 (c_option_controlling_cpp_error): Prefix global type and struct
2007 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
2009 * c.opt (Wnormalized): New.
2010 (Wnormalized=): Use Enum and Reject Negative.
2011 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
2013 2014-09-08 Joseph Myers <joseph@codesourcery.com>
2015 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
2016 digits of floating-point modes if -fbuilding-libgcc.
2018 2014-09-05 Joseph Myers <joseph@codesourcery.com>
2020 * c-cppbuiltin.c (c_cpp_builtins): Also define
2021 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
2022 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
2023 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
2024 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
2025 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
2026 __LIBGCC_STACK_GROWS_DOWNWARD__,
2027 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
2028 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
2029 __LIBGCC_DWARF_FRAME_REGISTERS__,
2030 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
2031 __LIBGCC_STACK_POINTER_REGNUM__ and
2032 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
2033 (builtin_define_with_value): Handle backslash-escaping in string
2036 2014-09-05 Richard Biener <rguenther@suse.de>
2039 * c-format.c (check_format_arg): Properly handle
2040 effectively signed POINTER_PLUS_EXPR offset.
2042 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2044 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
2045 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
2046 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
2048 * c-opts.c (c_common_handle_option): Do not handle here.
2049 (sanitize_cpp_opts): Likewise.
2050 * c-common.c (struct reason_option_codes_t): Handle
2051 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
2053 2014-09-03 Marek Polacek <polacek@redhat.com>
2055 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
2057 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2058 Balaji V. Iyer <balaji.v.iyer@intel.com>
2059 Igor Zamyatin <igor.zamyatin@intel.com>
2061 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
2062 * c-common.c (c_common_reswords): Added _Cilk_for.
2063 * c-common.h (enum rid): Added RID_CILK_FOR.
2064 (cilk_for_number_of_iterations): Add declaration.
2065 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
2067 * c-pragma.c (init_pragma): Register "grainsize" pragma.
2068 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
2070 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2072 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
2073 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
2074 Wundef): Use CPP, Var and Init.
2075 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
2077 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
2079 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
2080 * c-opts.c (c_common_handle_option): Do not handle here.
2082 2014-08-25 Jason Merrill <jason@redhat.com>
2084 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
2085 -std=c++14 and -std=gnu++14, rather than the reverse.
2086 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
2087 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
2088 * c-common.h (cxx_dialect): Remove cxx1y.
2090 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
2092 * c-common.h (enum cxx_dialect): Add cxx14.
2093 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
2094 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
2095 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
2097 2014-08-22 Jason Merrill <jason@redhat.com>
2099 * c.opt (std=gnu++17): Fix alias.
2101 2014-08-22 Marek Polacek <polacek@redhat.com>
2104 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
2105 check for vector types. Drop LHS argument.
2106 * c-common.h (warn_logical_not_parentheses): Adjust.
2108 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
2110 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
2111 (Wmultichar): Likewise.
2112 (Wdate-time): Use C-family languages instead of Common. Use CPP
2114 * c-opts.c (c_common_handle_option): Do not handle the above
2116 (sanitize_cpp_opts): Likewise.
2118 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
2121 * c-opts.c: Include tree-diagnostics.h.
2122 (c_diagnostic_finalizer): New.
2123 (c_common_initialize_diagnostics): Use it.
2125 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2127 PR preprocessor/51303
2128 * c-common.c (struct reason_option_codes_t option_codes):
2129 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
2131 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
2135 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
2136 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
2137 (c_common_post_options): Call init_global_opts_from_cpp.
2138 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
2140 2014-08-19 Marek Polacek <polacek@redhat.com>
2143 * c-common.c (maybe_warn_bool_compare): New function.
2144 * c-common.h (maybe_warn_bool_compare): Declare.
2145 * c.opt (Wbool-compare): New option.
2147 2014-08-19 Marek Polacek <polacek@redhat.com>
2149 * c.opt (Wc99-c11-compat): New option.
2151 2014-08-19 Marek Polacek <polacek@redhat.com>
2153 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
2154 to warn_c90_c99_compat.
2155 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
2158 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
2159 Steven Bosscher <steven@gcc.gnu.org>
2162 * c-format.c: Add extra_arg_loc and format_string_loc to struct
2163 format_check_results.
2164 (check_function_format): Use true and add comment for boolean
2166 (finish_dollar_format_checking): Use explicit location when warning.
2167 (check_format_info): Likewise.
2168 (check_format_arg): Set extra_arg_loc and format_string_loc.
2169 (check_format_info_main): Use explicit location when warning.
2170 (check_format_types): Pass explicit location.
2171 (format_type_warning): Likewise.
2173 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
2176 * c-format.c: Handle Fortran flags.
2178 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
2181 * array-notation-common.c (find_rank): Added handling for other
2182 types of references.
2184 2014-08-10 Marek Polacek <polacek@redhat.com>
2187 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
2188 * c.opt (Wc90-c99-compat): Add option.
2190 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
2192 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
2194 2014-08-03 Marek Polacek <polacek@redhat.com>
2196 * c-common.c (check_case_value): Add location_t parameter. Use it.
2197 (c_add_case_label): Pass loc to check_case_value.
2199 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2201 * cilk.c: Use hash_map instead of pointer_map.
2203 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
2205 * c-gimplify.c: Use hash_set instead of pointer_set.
2207 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
2210 * array-notation-common.c (extract_array_notation_exprs): Handling
2213 2014-08-01 Jakub Jelinek <jakub@redhat.com>
2215 * c-common.h (min_align_of_type): Removed prototype.
2216 * c-common.c (min_align_of_type): Removed.
2217 * c-ubsan.h (ubsan_maybe_instrument_reference,
2218 ubsan_maybe_instrument_member_call): New prototypes.
2219 * c-ubsan.c: Include stor-layout.h and builtins.h.
2220 (ubsan_maybe_instrument_reference_or_call,
2221 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
2224 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
2227 * c.opt (-Wreturn-local-addr): Move to common.opt.
2229 2014-07-30 Jason Merrill <jason@redhat.com>
2234 * c.opt (-fuse-all-virtuals): New.
2236 2014-07-30 Tom Tromey <tromey@redhat.com>
2239 * c.opt (Wdesignated-init): New option.
2240 * c-common.c (c_common_attribute_table): Add "designated_init".
2241 (handle_designated_init): New function.
2243 2014-07-24 Marek Polacek <polacek@redhat.com>
2246 * c-opts.c (c_finish_options): If -imacros is in effect, return.
2248 2014-07-16 Dodji Seketeli <dodji@redhat.com>
2250 PR preprocessor/60723 - missing system-ness marks for macro tokens
2251 * c-ppoutput.c (struct print::prev_was_system_token): New data
2253 (init_pp_output): Initialize it.
2254 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
2255 (do_line_change): Return a flag saying if a line marker was
2257 (scan_translation_unit): Detect if the system-ness of the token we
2258 are about to emit is different from the one of the previously
2259 emitted token. If so, emit a line marker. Avoid emitting useless
2260 adjacent line markers. Avoid emitting line markers for tokens
2261 originating from the expansion of built-in macros.
2262 (scan_translation_unit_directives_only): Adjust.
2264 2014-07-15 Marek Polacek <polacek@redhat.com>
2266 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
2267 TYPE_MAX_VALUE is NULL.
2269 2014-07-14 Jakub Jelinek <jakub@redhat.com>
2272 * c.opt (Wmemset-transposed-args): New warning.
2274 2014-07-10 Jason Merrill <jason@redhat.com>
2278 * c.opt (-fuse-all-virtuals): New.
2280 2014-07-09 Richard Biener <rguenther@suse.de>
2283 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
2284 using unsigned arithmetic if overflow does not wrap instead of
2285 if overflow is undefined.
2287 2014-07-06 Marek Polacek <polacek@redhat.com>
2290 * c.opt (Wsizeof-array-argument): New option.
2292 2014-07-03 Jakub Jelinek <jakub@redhat.com>
2294 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
2295 comments->count <= 1, as comments->entries might be NULL.
2297 2014-07-01 Marek Polacek <polacek@redhat.com>
2299 * c.opt (Wint-conversion): New option.
2301 2014-07-01 Marek Polacek <polacek@redhat.com>
2304 * c.opt (Wincompatible-pointer-types): New option.
2306 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
2309 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
2310 Do not discard TYPE_QUALS of type.
2312 2014-06-26 Jason Merrill <jason@redhat.com>
2314 * c-common.h (enum cxx_dialect): Add cxx1z.
2315 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
2316 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
2318 2014-06-26 Teresa Johnson <tejohnson@google.com>
2320 * c-common.h (get_dump_info): Declare.
2321 * c-gimplify.c (c_genericize): Use saved dump files.
2322 * c-opts.c (c_common_parse_file): Begin and end dumps
2323 once around parsing invocation.
2324 (get_dump_info): New function.
2326 2014-06-23 Marek Polacek <polacek@redhat.com>
2327 Andrew MacLeod <amacleod@redhat.com>
2330 * c-common.c (get_atomic_generic_size): Don't segfault if the
2331 type doesn't have a size.
2333 2014-06-20 Marek Polacek <polacek@redhat.com>
2335 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
2336 (ubsan_walk_array_refs_r): New function.
2337 (c_genericize): Instrument array bounds.
2338 * c-ubsan.c: Include "internal-fn.h".
2339 (ubsan_instrument_division): Mark instrumented arrays as having
2340 side effects. Adjust ubsan_type_descriptor call.
2341 (ubsan_instrument_shift): Likewise.
2342 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
2343 (ubsan_instrument_bounds): New function.
2344 (ubsan_array_ref_instrumented_p): New function.
2345 (ubsan_maybe_instrument_array_ref): New function.
2346 * c-ubsan.h (ubsan_instrument_bounds): Declare.
2347 (ubsan_array_ref_instrumented_p): Declare.
2348 (ubsan_maybe_instrument_array_ref): Declare.
2350 2014-06-20 Hale Wang <hale.wang@arm.com>
2353 * c.opt (fshort-enums): Add to LTO.
2354 * c.opt (fshort-wchar): Likewise.
2356 2014-06-16 Marek Polacek <polacek@redhat.com>
2359 * c.opt (Wswitch-bool): Add Var.
2361 2014-06-12 Jakub Jelinek <jakub@redhat.com>
2364 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
2365 #pragma omp target teams or
2366 #pragma omp {,target }teams distribute simd.
2368 2014-06-12 Jason Merrill <jason@redhat.com>
2370 * c.opt (Wabi=, fabi-compat-version): New.
2371 * c-opts.c (c_common_handle_option): Handle -Wabi=.
2372 (c_common_post_options): Handle flag_abi_compat_version default.
2373 Disallow -fabi-compat-version=1.
2374 * c-common.h (abi_version_crosses): New.
2376 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
2378 * c-common.c (handle_section_attribute): Update handling for
2379 section names that are no longer trees.
2381 2014-06-10 Jakub Jelinek <jakub@redhat.com>
2384 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
2385 (omp_pragmas): ... back here.
2387 2014-06-05 Marek Polacek <polacek@redhat.com>
2390 * c-common.c (warn_logical_not_parentheses): New function.
2391 * c-common.h (warn_logical_not_parentheses): Declare.
2392 * c.opt (Wlogical-not-parentheses): New option.
2394 2014-06-04 Marek Polacek <polacek@redhat.com>
2397 * c-common.c (check_case_bounds): Add location parameter.
2399 (c_add_case_label): Pass loc to check_case_bounds.
2401 2014-06-03 Marek Polacek <polacek@redhat.com>
2404 * c.opt (Wswitch-bool): New option.
2406 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2408 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2410 (record_types_used_by_current_var_decl): Move prototype to where
2413 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2414 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2415 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2417 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2419 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2420 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2422 * c-pretty-print.c (pp_c_void_constant): New function.
2423 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2424 (c_pretty_printer::expression): Handle VOID_CST.
2425 * cilk.c (extract_free_variables): Likewise.
2426 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2427 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2429 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2431 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2432 * c-pragma.c (push_alignment): Adjust.
2433 (handle_pragma_push_options): Likewise.
2435 2014-05-09 Marek Polacek <polacek@redhat.com>
2438 * c-common.c (check_user_alignment): Return -1 if alignment is error
2440 (handle_aligned_attribute): Don't call default_conversion on
2442 (handle_vector_size_attribute): Likewise.
2443 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2444 (handle_sentinel_attribute): Call default_conversion and allow even
2445 integral types as an argument.
2447 2014-05-08 Marek Polacek <polacek@redhat.com>
2450 * c-common.c (min_align_of_type): New function factored out from...
2451 (c_sizeof_or_alignof_type): ...here.
2452 * c-common.h (min_align_of_type): Declare.
2454 2014-05-08 Marek Polacek <polacek@redhat.com>
2457 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2458 parameter type of main.
2460 2014-05-07 DJ Delorie <dj@redhat.com>
2462 * c-cppbuiltin.c (print_bits_of_hex): New.
2463 (builtin_define_type_minmax): Print values using hex so as not to
2464 require a pre-computed list of string values.
2466 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2467 Mike Stump <mikestump@comcast.net>
2468 Richard Sandiford <rdsandiford@googlemail.com>
2470 * c-ada-spec.c: Include wide-int.h.
2471 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2472 (dump_generic_ada_node): Use wide-int interfaces.
2473 * c-common.c: Include wide-int-print.h.
2474 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2475 (pointer_int_sum): Use wide-int interfaces.
2476 (c_common_nodes_and_builtins): Use make_int_cst.
2477 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2478 (handle_alloc_size_attribute): Use wide-int interfaces.
2479 (get_nonnull_operand): Likewise.
2480 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2481 * c-lex.c: Include wide-int.h.
2482 (narrowest_unsigned_type): Take a widest_int rather than two
2484 (narrowest_signed_type): Likewise.
2485 (interpret_integer): Update accordingly. Use wide-int interfaces.
2486 (lex_charconst): Use wide-int interfaces.
2487 * c-pretty-print.c: Include wide-int.h.
2488 (pp_c_integer_constant): Use wide-int interfaces.
2489 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2490 INT_CST_LT_UNSIGNED.
2492 2014-05-06 Richard Biener <rguenther@suse.de>
2494 * c-opts.c (c_common_post_options): For -freestanding,
2495 -fno-hosted and -fno-builtin disable pattern recognition
2496 if not enabled explicitely.
2498 2014-05-02 Marek Polacek <polacek@redhat.com>
2500 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2502 2014-05-01 Marek Polacek <polacek@redhat.com>
2505 * c.opt (Wdiscarded-qualifiers): Add.
2507 2014-04-30 Marek Polacek <polacek@redhat.com>
2509 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2510 INT_MIN / -1 sanitization only for integer types.
2512 2014-04-25 Marek Polacek <polacek@redhat.com>
2515 * c-common.c (handle_noinline_attribute): Warn if the attribute
2516 conflicts with always_inline attribute.
2517 (handle_always_inline_attribute): Warn if the attribute conflicts
2518 with noinline attribute.
2520 2014-04-25 Marek Polacek <polacek@redhat.com>
2523 * c-common.c (check_main_parameter_types): Warn about variadic main.
2525 2014-04-24 Mike Stump <mikestump@comcast.net>
2527 * c.opt (Wshadow-ivar): Default to on.
2529 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2531 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2533 2014-04-23 Marek Polacek <polacek@redhat.com>
2535 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2537 2014-04-22 Jakub Jelinek <jakub@redhat.com>
2540 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2541 if flag_sanitize_undefined_trap_on_error.
2542 (ubsan_instrument_division, ubsan_instrument_shift,
2543 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2544 if !flag_sanitize_recover.
2546 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
2549 * c-common.c (registered_builtin_types): Make non-static.
2550 * c-common.h (registered_builtin_types): Declare.
2552 2014-04-14 Richard Biener <rguenther@suse.de>
2553 Marc Glisse <marc.glisse@inria.fr>
2556 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2557 apply may-alias the scalar pointer type when applicable.
2559 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2562 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2563 as possible argument for Cilk_spawn.
2565 2014-04-11 Tobias Burnus <burnus@net-b.de>
2568 * c.opt (Wformat-signedness): Add
2569 * c-format.c(check_format_types): Use it.
2571 2014-04-11 Jason Merrill <jason@redhat.com>
2574 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2575 default_conversion for an array argument.
2577 2014-04-08 Marek Polacek <polacek@redhat.com>
2580 * c-ubsan.c: Include asan.h.
2581 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2583 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2585 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2587 2014-04-02 Marek Polacek <polacek@redhat.com>
2589 * c-common.h (c_expand_expr): Remove declaration.
2591 2014-03-28 Jakub Jelinek <jakub@redhat.com>
2594 * c-common.c (add_atomic_size_parameter): When creating new
2595 params vector, push the size argument first.
2597 2014-03-26 Jakub Jelinek <jakub@redhat.com>
2599 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2600 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2601 ubsan_create_data callers.
2603 2014-03-22 Jakub Jelinek <jakub@redhat.com>
2606 * c-opts.c (c_finish_options): Restore cb_file_change call to
2609 2014-03-13 Jakub Jelinek <jakub@redhat.com>
2612 * c-pragma.c (apply_pragma_weak): Only look at
2613 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2614 DECL_ASSEMBLER_NAME_SET_P (decl).
2615 (maybe_apply_pending_pragma_weaks): Exit early if
2616 vec_safe_is_empty (pending_weaks) rather than only when
2618 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2619 set assembler name back to NULL afterwards.
2621 2014-03-11 Jason Merrill <jason@redhat.com>
2623 * c.opt: Add -std=gnu++14.
2625 2014-03-11 Ian Bolton <ian.bolton@arm.com>
2627 * c-opts.c (c_common_post_options): Don't override
2628 -ffp-contract=fast if unsafe-math-optimizations is on.
2630 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
2632 * c.opt: Enable LTO FE for fshort-double.
2634 2014-03-07 Jason Merrill <jason@redhat.com>
2636 * c.opt: Add -std=c++14.
2638 2014-03-06 Marek Polacek <polacek@redhat.com>
2641 * cilk.c (contains_cilk_spawn_stmt): New function.
2642 (contains_cilk_spawn_stmt_walker): Likewise.
2643 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2644 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2646 2014-03-03 Jakub Jelinek <jakub@redhat.com>
2648 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2649 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2650 even when flag_preprocess_only.
2652 2014-02-26 Jason Merrill <jason@redhat.com>
2656 * c-common.c (shorten_compare): Don't check
2657 c_inhibit_evaluation_warnings.
2659 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2662 * c-common.c (c_common_nodes_and_builtins): When initializing
2663 c_uint{16,32,64}_type_node, also set corresponding
2664 uint{16,32,64}_type_node to the same value.
2667 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2668 for PRAGMA_IVDEP if flag_preprocess_only.
2670 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2673 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2674 if false, add ADD itself, rather than vice versa.
2675 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2676 copy. For SAVE_EXPR, only call merge_tlist once.
2678 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2681 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2683 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2685 (c_common_attribute_table): Add alloc_align and assume_aligned
2688 2014-02-06 Marek Polacek <polacek@redhat.com>
2691 * c-common.c (warn_for_sign_compare): Call warning_at with location
2694 2014-02-05 Marek Polacek <polacek@redhat.com>
2697 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2700 2014-02-04 Marek Polacek <polacek@redhat.com>
2703 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2706 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2710 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2711 handle_vector_size_attribute, handle_nonnull_attribute): Call
2712 default_conversion on the attribute argument.
2713 (handle_nonnull_attribute): Increment the argument number.
2715 2014-01-31 Marek Polacek <polacek@redhat.com>
2718 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2719 build_function_call_vec.
2720 (resolve_overloaded_builtin): Likewise.
2721 * c-common.h (build_function_call_vec): Adjust declaration.
2723 2014-01-30 Marek Polacek <polacek@redhat.com>
2726 * c-common.h (unsafe_conversion_p): Adjust declaration.
2727 (warnings_for_convert_and_check): Likewise.
2728 (convert_and_check): Likewise.
2729 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2730 expansion_point_location_if_in_system_header on it.
2731 (warnings_for_convert_and_check): Add location parameter. Call
2732 expansion_point_location_if_in_system_header on it. Use it.
2733 (convert_and_check): Add location parameter. Use it.
2734 (conversion_warning): Likewise.
2735 (c_add_case_label): Adjust convert_and_check calls.
2736 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2738 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2740 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2742 * c-pragma.c (init_pragma): Likewise.
2745 2014-01-23 Marek Polacek <polacek@redhat.com>
2748 * c-common.c (shorten_compare): Add location_t parameter.
2749 * c-common.h (shorten_binary_op): Adjust declaration.
2751 2014-01-23 Marek Polacek <polacek@redhat.com>
2754 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2755 * c-common.h: Declare it.
2757 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2759 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2760 * c-ada-spec.c (dump_ads): Likewise.
2761 (cpp_check): Likewise.
2762 (dump_ada_specs): Likewise.
2764 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2767 * c-common.c (handle_no_instrument_function_attribute): Allow
2768 no_instrument_function attribute in class member
2769 definition/declaration.
2771 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2774 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2775 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2776 being COMPOUND_EXPR.
2777 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2778 operand a SAVE_EXPR and second MODIFY_EXPR.
2780 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2783 * c-pch.c (c_common_write_pch): Call
2784 prepare_target_option_nodes_for_pch.
2786 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2788 Update copyright years
2790 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2792 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2793 the copyright notice.
2795 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2797 * c-ada-spec.c (print_constructor): New function.
2798 (print_destructor): Retrieve the origin of the destructor.
2799 (print_ada_declaration): Revamp handling of constructors/destructors.
2801 2013-12-23 Stuart Hastings <stuart@apple.com>
2802 Bill Maddox <maddox@google.com>
2803 Jason Merrill <jason@redhat.com>
2805 * c.opt: Add -fdeclone-ctor-dtor.
2806 * c-opts.c (c_common_post_options): Default to on iff -Os.
2808 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2810 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2812 * c-pragma.h (enum pragma_cilk_clause): Remove.
2813 (enum pragma_omp_clause): Added the following fields:
2814 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2815 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2816 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2817 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2818 PRAGMA_CILK_CLAUSE_UNIFORM.
2821 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2823 * cilk.c (cilk_outline): Made this function non-static.
2824 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2825 (create_cilk_wrapper): Added a new parameter: a function pointer.
2826 (c_install_body_w_frame_cleanup): Remove
2827 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2828 * c-common.h (cilk_outline): New prototype.
2829 (gimplify_cilk_spawn): Removed two parameters.
2830 (cilk_install_body_with_frame_cleanup): New prototype.
2831 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2832 CILK_SPAWN_STMT case.
2834 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2836 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2838 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2839 (int_array_type_node): Remove.
2840 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2842 2013-12-05 Marek Polacek <polacek@redhat.com>
2845 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2846 [ADJUST_FIELD_ALIGN].
2848 2013-12-04 Joseph Myers <joseph@codesourcery.com>
2851 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2852 and check field alignment if set.
2853 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2854 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2856 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2857 Marek Polacek <polacek@redhat.com>
2859 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2860 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2862 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2865 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2868 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2871 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2872 goto invalid. If it is error_mark_node, don't issue further
2875 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2877 * c.opt (Wopenmp-simd): New.
2879 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2881 * c-ubsan.h (ubsan_instrument_return): New prototype.
2882 * c-ubsan.c (ubsan_instrument_return): New function.
2884 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2886 * c-common.c: Add required include files from gimple.h.
2887 * c-gimplify.c: Likewise
2890 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2892 * c-common.c (unsafe_conversion_p): Remove use of
2893 EXPR_LOC_OR_HERE macro.
2894 (conversion_warning): Likewise.
2895 (warnings_for_convert_and_check): Likewise.
2896 (warn_for_collisions_1): Likewise.
2897 (shorten_compare): Likewise, and remove use of in_system_header
2898 macro, using the location from the former.
2899 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2900 (cb_def_pragma): Remove use of in_system_header macro.
2901 (lex_string): Likewise.
2902 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2904 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2905 Mike Stump <mikestump@comcast.net>
2906 Richard Sandiford <rdsandiford@googlemail.com>
2908 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2909 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2910 tree_fits_shwi_p or tree_fits_uhwi_p.
2911 (dump_generic_ada_node): Likewise.
2912 * c-format.c (check_format_arg): Likewise.
2913 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2915 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2917 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2919 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2922 * c-common.c (unsafe_conversion_p): Make this function
2923 return an enumeration with more detail.
2924 (conversion_warning): Use the new return type of
2925 unsafe_conversion_p to separately warn either about conversions
2926 that lower floating point number precision or about the other
2927 kinds of conversions.
2928 * c-common.h (enum conversion_safety): New enumeration.
2929 (unsafe_conversion_p): switching return type to
2930 conversion_safety enumeration.
2931 * c.opt: Adding new warning -Wfloat-conversion and
2932 enabling it with -Wconversion.
2934 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2936 * c-opts.c: Include plugin.h.
2937 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2939 2013-11-19 Marek Polacek <polacek@redhat.com>
2941 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2943 (ubsan_instrument_shift): Likewise.
2944 (ubsan_instrument_vla): Likewise.
2946 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2948 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2949 cast to unsigned type.
2951 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2953 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2955 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2956 rather than tree_low_cst.
2958 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2960 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2961 tree_to_uhwi throughout.
2963 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2965 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2966 tree_low_cst (..., 0) with tree_to_shwi throughout.
2968 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2970 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2971 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2973 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2975 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2976 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2978 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2980 * c-cilkplus.c: New file.
2981 * c-common.c (readonly_error): Add location argument.
2982 * c-common.h (readonly_error): Same.
2983 (c_finish_cilk_clauses): Protoize.
2984 (c_check_cilk_loop): Same.
2985 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2986 Do not fail on error_mark_node.
2987 Abstract increment canonicalization to here...
2988 (c_omp_for_incr_canonicalize_ptr): New.
2989 c-pragma.c (init_pragma): Register "simd" pragma.
2990 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2991 (enum pragma_cilk_clause): New.
2993 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2995 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2996 wchar_type and host_integerp checks.
2998 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
3000 * c-common.c: Likewise.
3001 * c-gimplify.c: Likewise.
3004 2013-11-14 Diego Novillo <dnovillo@google.com>
3006 * c-common.c: Include fold-const.h.
3007 Include stor-layout.h.
3009 Include stringpool.h.
3012 Include trans-mem.h.
3013 * c-cppbuiltin.c: Include stor-layout.h.
3014 Include stringpool.h.
3015 * c-format.c: Include stringpool.h.
3016 * c-lex.c: Include stringpool.h.
3017 Include stor-layout.h.
3018 * c-pragma.c: Include stringpool.h.
3021 Include gcc-symtab.h.
3022 * c-pretty-print.c: Include stor-layout.h.
3024 * cilk.c: Include stringpool.h.
3027 2013-11-13 Joseph Myers <joseph@codesourcery.com>
3029 * c-common.h (enum rid): Add RID_AUTO_TYPE.
3030 * c-common.c (c_common_reswords): Add __auto_type.
3031 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
3033 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
3035 * c-common.c: Include gimplify.h.
3036 * c-gimplify.c: Likewise.
3038 * c-omp.c: Include gimple-expr.h instead of gimple.h.
3039 * c-ubsan.c: Don't include gimple.h.
3041 2013-11-12 Joseph Myers <joseph@codesourcery.com>
3043 * c-common.c (c_common_reswords): Add _Thread_local.
3045 2013-11-09 Joseph Myers <joseph@codesourcery.com>
3047 * c-common.c (atomic_size_supported_p): New function.
3048 (resolve_overloaded_atomic_exchange)
3049 (resolve_overloaded_atomic_compare_exchange)
3050 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
3051 Use it instead of comparing size with a local list of sizes.
3053 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
3054 Joseph Myers <joseph@codesourcery.com>
3056 * c-common.h (enum rid): Add RID_ATOMIC.
3057 * c-common.c (c_common_reswords): Add _Atomic.
3058 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
3059 (keyword_is_type_qualifier): Accept RID_ATOMIC.
3060 * c-format.c (check_format_types): Check for extra _Atomic
3061 qualifiers in format argument.
3062 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
3063 (pp_c_type_qualifier_list): Mention _Atomic in comment.
3065 2013-11-06 Tobias Burnus <burnus@net-b.de>
3067 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
3069 2013-11-06 Joseph Myers <joseph@codesourcery.com>
3071 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
3073 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
3074 to mean lack of IEEE 754 support.
3076 2013-11-05 Tobias Burnus <burnus@net-b.de>
3078 * c.opt (-Wdate-time): New option
3079 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
3081 2013-11-05 Joseph Myers <joseph@codesourcery.com>
3083 * c-cppbuiltin.c (cpp_iec_559_value): Test
3084 flag_excess_precision_cmdline not flag_excess_precision.
3086 2013-11-05 Tobias Burnus <burnus@net-b.de>
3088 * c.opt (fopenmp-simd): New option.
3089 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
3090 (omp_pragmas): ... this new struct.
3091 (c_pp_lookup_pragma): Also walk omp_pragmas.
3092 (init_pragma): Init pragmas for -fopenmp-simd.
3094 2013-11-04 Marek Polacek <polacek@redhat.com>
3097 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
3099 2013-11-04 Joseph Myers <joseph@codesourcery.com>
3101 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
3103 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
3105 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
3107 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
3108 (dump_ada_specs): Adjust prototype of second callback.
3109 * c-ada-spec.c (cpp_check): New global variable.
3110 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
3111 (print_generic_ada_decl): Likewise.
3112 (has_static_fields): Change return type to bool and add guard.
3113 (has_nontrivial_methods): New predicate.
3114 (is_tagged_type): Change return type to bool.
3115 (separate_class_package): Call has_nontrivial_methods.
3116 (pp_ada_tree_identifier): Minor tweaks.
3117 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
3118 (dump_ada_array_domains): Likewise.
3119 (dump_ada_array_type): Likewise.
3120 (dump_template_types): Remove cpp_check parameter and do not pass it to
3121 dump_generic_ada_node.
3122 (dump_ada_template): Likewise.
3123 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
3125 (print_ada_methods): Change return type to integer. Remove cpp_check
3126 parameter and do not pass it down.
3127 (dump_nested_types): Remove cpp_check parameter and do not pass it to
3128 dump_generic_ada_node.
3129 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
3131 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
3132 down. Use has_nontrivial_methods to recognize C++ classes. Use return
3133 value of print_ada_methods.
3134 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
3135 Set cpp_check to it before invoking dump_ada_nodes.
3136 (dump_ada_specs): Likewise.
3138 2013-11-03 Marek Polacek <polacek@redhat.com>
3140 * c-ubsan.c: Don't include hash-table.h.
3141 (ubsan_instrument_vla): New function.
3142 * c-ubsan.h: Declare it.
3144 2013-10-31 David Malcolm <dmalcolm@redhat.com>
3146 Automated part of renaming of symtab_node_base to symtab_node.
3148 Patch autogenerated by rename_symtab.py from
3149 https://github.com/davidmalcolm/gcc-refactoring-scripts
3150 revision 58bb219cc090b2f4516a9297d868c245495ee622
3152 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
3153 symtab_node_base to symtab_node.
3155 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
3157 Implement C++14 digit separators.
3158 * c-lex.c (interpret_float): Remove digit separators from scratch string
3159 before building real literal.
3161 2013-10-30 Jakub Jelinek <jakub@redhat.com>
3163 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
3165 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
3167 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
3169 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
3171 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
3172 (insert_cilk_frame): New prototype.
3173 (cilk_init_builtins): Likewise.
3174 (gimplify_cilk_spawn): Likewise.
3175 (c_cilk_install_body_w_frame_cleanup): Likewise.
3176 (cilk_detect_spawn_and_unwrap): Likewise.
3177 (cilk_set_spawn_marker): Likewise.
3178 (build_cilk_sync): Likewise.
3179 (build_cilk_spawn): Likewise.
3182 2013-10-29 David Malcolm <dmalcolm@redhat.com>
3184 Patch autogenerated by refactor_symtab.py from
3185 https://github.com/davidmalcolm/gcc-refactoring-scripts
3186 revision 58bb219cc090b2f4516a9297d868c245495ee622
3188 * c-gimplify.c (c_genericize): Update for conversion of symtab types
3189 to a true class hierarchy.
3190 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
3192 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
3194 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
3196 2013-10-26 Jeff Law <law@redhat.com>
3198 * c-common.c (c_define_builtins): Remove mudflap support.
3199 * c.opt: Ignore and warn for mudflap options.
3201 2013-10-24 Tobias Burnus <burnus@net-b.de>
3204 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
3205 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
3207 2013-10-23 Jason Merrill <jason@redhat.com>
3209 * c-format.c (gcc_cxxdiag_char_table): Add %X.
3211 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3213 * c-common.h (omp_clause_mask::operator !=): New method.
3214 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
3215 instead of if (mask & something) tests everywhere.
3217 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
3218 201307 instead of 201107.
3219 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
3220 (c_common_attribute_table): Add "omp declare target" and
3221 "omp declare simd" attributes.
3222 (handle_omp_declare_target_attribute,
3223 handle_omp_declare_simd_attribute): New functions.
3224 * c-omp.c: Include c-pragma.h.
3225 (c_finish_omp_taskgroup): New function.
3226 (c_finish_omp_atomic): Add swapped argument, if true,
3227 build the operation first with rhs, lhs arguments and use NOP_EXPR
3229 (c_finish_omp_for): Add code argument, pass it down to make_code.
3230 (c_omp_split_clauses): New function.
3231 (c_split_parallel_clauses): Removed.
3232 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
3233 c_omp_declare_simd_clauses_to_decls): New functions.
3234 * c-common.h (omp_clause_mask): New type.
3235 (OMP_CLAUSE_MASK_1): Define.
3236 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
3237 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
3238 omp_clause_mask::operator |, omp_clause_mask::operator &,
3239 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
3240 omp_clause_mask::operator ==): New methods.
3241 (enum c_omp_clause_split): New.
3242 (c_finish_omp_taskgroup): New prototype.
3243 (c_finish_omp_atomic): Add swapped argument.
3244 (c_finish_omp_for): Add code argument.
3245 (c_omp_split_clauses): New prototype.
3246 (c_split_parallel_clauses): Removed.
3247 (c_omp_declare_simd_clauses_to_numbers,
3248 c_omp_declare_simd_clauses_to_decls): New prototypes.
3249 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
3250 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
3251 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
3252 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
3253 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
3254 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
3255 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
3256 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
3257 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
3258 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
3259 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
3260 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
3261 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
3262 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
3263 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
3264 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
3265 PRAGMA_OMP_CLAUSE_UNIFORM.
3267 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
3269 PR tree-optimization/20318
3270 * c-common.c (handle_returns_nonnull_attribute): New function.
3271 (c_common_attribute_table): Add returns_nonnull.
3273 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
3276 * c.opt (fcheck-new): Move to common.opt.
3278 2013-09-25 Marek Polacek <polacek@redhat.com>
3279 Jakub Jelinek <jakub@redhat.com>
3282 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
3283 an expression if we can prove it is correct.
3284 (ubsan_instrument_division): Likewise. Remove unnecessary
3287 2013-09-18 Marek Polacek <polacek@redhat.com>
3290 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
3292 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
3294 2013-09-14 Iain Sandoe <iain@codesourcery.com>
3297 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
3298 fobjc-gc, freplace-objc-classes): Accept for LTO.
3300 2013-09-13 Jacek Caban <jacek@codeweavers.com>
3302 * c-target.def: New hook
3304 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3307 * c.opt (Wdelete-incomplete): Add.
3309 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
3311 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
3312 (vector_types_compatible_elements_p): New function.
3313 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
3315 (vector_types_compatible_elements_p): Declare.
3317 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3319 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
3320 a virtual member function.
3321 (pp_simple_type_specifier): Remove.
3322 (pp_c_type_specifier): Likewise.
3323 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
3324 Rename from pp_c_type_specifier. Adjust.
3325 (c_pretty_printer::c_pretty_printer): Do not assign to
3326 simple_type_specifier.
3328 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3330 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
3332 (c_pretty_printer::storage_class_specifier): Likewise.
3333 (c_pretty_printer::initializer): Likewise.
3334 (pp_declaration): Remove.
3335 (pp_declaration_specifiers): Likewise.
3336 (pp_abstract_declarator): Likewise.
3337 (pp_declarator): Likewise.
3338 (pp_type_id): Likewise.
3339 (pp_statement): Likewise.
3340 (pp_constant): Likewise.
3341 (pp_id_expression): Likewise.
3342 (pp_primary_expression): Likewise.
3343 (pp_unary_expression): Likewise.
3344 (pp_multiplicative_expression): Likewise.
3345 (pp_conditional_expression): Likewise.
3346 (pp_assignment_expression): Likewise.
3347 (pp_expression): Likewise.
3348 (pp_c_type_id): Likewise.
3349 (pp_c_storage_class_specifier): Likewise.
3350 * c-pretty-print.c (pp_c_type_cast): Tidy.
3351 (pp_c_pointer): Likewise.
3352 (pp_c_type_specifier): Likewise.
3353 (pp_c_parameter_type_list): Likewise.
3354 (pp_c_function_definition): Likewise.
3355 (pp_c_init_declarator): Likewise.
3356 (pp_c_initializer_list): Likewise.
3357 (pp_c_constructor_elts): Likewise.
3358 (c_pretty_printer::direct_abstract_declarator): Likewise.
3359 (c_pretty_printer::declaration_specifiers): Likewise.
3360 (c_pretty_printer::primary_expression): Likewise.
3361 (c_pretty_printer::postfix_expression): Likewise.
3362 (c_pretty_printer::type_id): Rename from pp_c_type_id.
3363 (c_pretty_printer::storage_class_specifier): Rename from
3364 pp_c_storage_class_specifier.
3365 (c_pretty_printer::initializer): Rename from pp_c_initializer.
3366 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
3367 storage_class_specifier, initializer, offset_list, flags.
3369 2013-08-30 Marek Polacek <polacek@redhat.com>
3371 * c-ubsan.c: New file.
3372 * c-ubsan.h: New file.
3374 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
3376 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
3378 (c_pretty_printer::declaration_specifiers): Likewise.
3379 (c_pretty_printer::declarator): Likewise.
3380 (c_pretty_printer::abstract_declarator): Likewise.
3381 (c_pretty_printer::direct_abstract_declarator): Likewise.
3382 (c_pretty_printer::direct_declarator): Likewise.
3383 (c_pretty_printer::function_specifier): Likewise.
3384 (pp_declaration): Adjust.
3385 (pp_declaration_specifiers): Likewise.
3386 (pp_abstract_declarator): Likewise.
3387 (pp_direct_declarator): Likewise.
3388 (pp_function_specifier): Likewise.
3389 (pp_direct_abstract_declarator): Remove as unused.
3390 (pp_c_declaration): Remove.
3391 (pp_c_declaration_specifiers): Likewise.
3392 (pp_c_declarator): Likewise.
3393 (pp_c_direct_declarator): Likewise.
3394 (pp_c_function_specifier): Likewise.
3395 (pp_c_direct_abstract_declarator): Likewise.
3396 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3397 from pp_c_abstract_declarator. Adjust.
3398 (c_pretty_printer::direct_abstract_declarator): Rename from
3399 pp_c_direct_abstract_declarator. Adjust.
3400 (c_pretty_printer::function_specifier): Rename from
3401 pp_c_function_specifier. Adjust.
3402 (c_pretty_printer::declaration_specifiers): Rename from
3403 pp_c_declaration_specifiers. Adjust.
3404 (c_pretty_printer::direct_declarator): Rename from
3405 pp_c_direct_declarator. Adjust.
3406 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3407 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3408 (c_pretty_printer::c_pretty_printer): Do not assign to
3409 declaration, declaration_specifiers, declarator,
3410 direct_declarator, direct_abstract_declarator, function_specifier.
3412 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3414 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3415 virtual member function.
3416 (c_pretty_printer::multiplicative_expression): Likewise.
3417 (c_pretty_printer::conditional_expression): Likewise.
3418 (c_pretty_printer::assignment_expression): Likewise.
3419 (c_pretty_printer::expression): Likewise.
3420 (pp_unary_expression): Adjust.
3421 (pp_multiplicative_expression): Likewise.
3422 (pp_assignment_expression): Likewise.
3423 (pp_conditional_expression): Likewise.
3424 (pp_expression): Likewise.
3425 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3426 from pp_c_unary_expression. Adjust.
3427 (c_pretty_printer::multiplicative_expression): Rename from
3428 pp_c_multiplicative_expression. Adjust.
3429 (c_pretty_printer::conditional_expression): Rename from
3430 pp_c_conditional_expression. Adjust.
3431 (c_pretty_printer::assignment_expression): Rename from
3432 pp_c_assignment_expression. Adjust.
3433 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3434 (c_pretty_printer::c_pretty_printer): Do not assign to
3435 unary_expression, multiplicative_expression,
3436 conditional_expression, expression.
3438 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3440 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3441 virtual member function.
3442 (pp_postfix_expression): Adjust.
3443 (pp_c_postfix_expression): Remove.
3444 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3445 from pp_c_postfix_expression. Adjust.
3446 (c_pretty_printer::c_pretty_printer): Do not assign to
3449 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3451 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3452 virtua member function.
3453 (pp_primary_expression): Adjust.
3454 (pp_c_primary_expression): Remove.
3455 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3456 from pp_c_primary_expression. Adjust.
3457 (pp_c_initializer_list): Use pp_primary_expression.
3458 (c_pretty_printer::c_pretty_printer): Do not assign to
3461 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3463 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3464 * c-pretty-print.c (M_): Remove.
3465 (c_pretty_printer::translate_string): Define.
3466 (pp_c_type_specifier): Use it.
3467 (pp_c_primary_expression): Likewise.
3468 (pp_c_expression): Likewise.
3470 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3472 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3474 (pp_c_id_expression): Remove.
3475 (pp_id_expression): Adjust.
3476 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3477 pp_c_id_expression. Adjust.
3478 (pp_c_postfix_expression): Use pp_id_expression.
3479 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3481 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3483 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3485 (pp_constant): Adjust.
3486 (pp_c_constant): Remove.
3487 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3488 pp_c_constant. Adjust.
3490 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3491 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3493 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3495 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3496 (c_pretty_printer::c_pretty_printer): Declare.
3497 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3498 c_pretty_printer_init. Adjust.
3499 (print_c_tree): Do not call c_pretty_printer_init.
3500 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3502 2013-08-09 Arnaud Charlet <charlet@adacore.com>
3504 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3506 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3509 * c-common.c (pointer_int_sum): Add bool parameter.
3510 * c-common.h (pointer_int_sum): Adjust declaration.
3512 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3514 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3515 c_pretty_printer variable.
3517 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3519 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3521 (pp_c_base): Likewise. Adjust users.
3522 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3523 (pp_c_whitespace): Do not call pp_base.
3524 (pp_c_left_paren): Likewise.
3525 (pp_c_right_paren): Likewise.
3526 (pp_c_left_brace): Likewise.
3527 (pp_c_right_brace): Likewise.
3528 (pp_c_left_bracket): Likewise.
3529 (pp_c_right_bracket): Likewise.
3530 (pp_c_dot): Likewise.
3531 (pp_c_ampersand): Likewise.
3532 (pp_c_star): Likewise.
3533 (pp_c_arrow): Likewise.
3534 (pp_c_semicolon): Likewise.
3535 (pp_c_complement): Likewise.
3536 (pp_c_exclamation): Likewise.
3537 (pp_c_direct_declarator): Likewise.
3538 (pp_c_ws_string): Likewise.
3539 (pp_c_identifier): Likewise.
3540 (pp_c_statement): Likewise.
3541 (print_c_tree): Likewise.
3543 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3546 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3547 provide useful error strings.
3549 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3551 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3552 printer functions instead of pp_string or operators and punctuators.
3553 (dump_generic_ada_node): Likewise.
3554 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3555 (pp_c_relational_expression): Likewise.
3556 (pp_c_logical_or_expression): Likewise.
3558 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3560 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3561 functions instead of pp_character.
3562 (pp_ada_tree_identifier): Likewise.
3563 (dump_ada_double_name): Likewise.
3564 (dump_ada_function_declaration): Likewise.
3565 (dump_ada_array_domains): Likewise.
3566 (dump_template_types): Likewise.
3567 (dump_generic_ada_node): Likewise.
3568 (print_ada_declaration): Likewise.
3569 (print_ada_struct_decl): Likewise.
3570 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3572 2013-07-23 Tom Tromey <tromey@redhat.com>
3574 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3575 * c-common.c (c_common_reswords): Add _Generic.
3577 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
3579 * c-common.c: Fix typos.
3580 * c-common.h: Likewise.
3582 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
3585 * c-common.c (c_common_attribute_table): Add warn_unused.
3586 (handle_warn_unused_attribute): New.
3588 2013-07-10 Jakub Jelinek <jakub@redhat.com>
3590 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3591 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3593 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3596 * c.opt: Add Wconditionally-supported.
3598 2013-07-08 Graham Stott <graham.stott@btinternet.com>
3600 * array-notation-common.c (length_mismatch_in_expr_p): Delete
3601 unused variables l_length and l_node.
3603 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
3606 * c-common.c (complete_array_type): Delay folding first index
3607 like other indices. When folding, check for index overflow.
3609 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
3612 * c-common.h (c_build_vec_perm_expr): New complain argument.
3613 * c-common.c (c_build_vec_perm_expr): Likewise.
3614 Use save_expr also in C++.
3616 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3618 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3619 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3620 * c-opts.c (c_common_post_options): Likewise.
3622 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3624 * array-notation-common.c (length_mismatch_in_expr): Changed the
3625 parameter type's from a dynamic array to a vec_tree. Also removed
3626 the size parameters.
3627 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3630 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3632 * c-common.h (struct cilkplus_an_parts): New structure.
3633 (struct cilkplus_an_loop_parts): Likewise.
3634 (cilkplus_extract_an_triplets): New prototype.
3635 (fix_sec_implicit_args): Likewise.
3636 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3637 (fix_sec_implicit_args): Likewise.
3639 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3641 * array-notation-common.c (find_inv_trees): Removed an unwanted
3643 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3644 enum rid to enum tree_code.
3646 2013-06-11 Jan Hubicka <jh@suse.cz>
3648 * c-common.c (handle_alias_ifunc_attribute): Do not set
3649 DECL_EXTERNAL for weakref variables.
3650 * c-pragma.c (handle_pragma_weak): Make sure aliases
3651 are not declared as external.
3653 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3655 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3656 function from c/c-array-notation.c.
3657 (is_cilkplus_reduce_builtin): Likewise.
3658 (find_rank): Likewise.
3659 (extract_array_notation_exprs): Likewise.
3660 (replace_array_notations): Likewise.
3661 (find_inv_trees): Likewise.
3662 (replace_inv_trees): Likewise.
3663 (contains_array_notation_expr): Likewise.
3664 (find_correct_array_notation_type): Likewise.
3665 * c-common.h (struct inv_list): Moved this struct from the file
3666 c/c-array-notation.c and added a new field called additional tcodes.
3667 (length_mismatch_in_expr_p): New prototype.
3668 (is_cilkplus_reduce_builtin): Likewise.
3669 (find_rank): Likewise.
3670 (extract_array_notation_exprs): Likewise.
3671 (replace_array_notation): Likewise.
3672 (find_inv_trees): Likewise.
3673 (replace_inv_trees): Likewise.
3674 (find_correct_array_notation_type): Likewise.
3676 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3678 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3679 function array_notation_init_builtins is called.
3680 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3681 * c-common.def (ARRAY_NOTATION_REF): New tree.
3682 * c-common.h (build_array_notation_expr): New function declaration.
3683 (build_array_notation_ref): Likewise.
3684 (extract_sec_implicit_index_arg): New extern declaration.
3685 (is_sec_implicit_index_fn): Likewise.
3686 (ARRAY_NOTATION_CHECK): New define.
3687 (ARRAY_NOTATION_ARRAY): Likewise.
3688 (ARRAY_NOTATION_START): Likewise.
3689 (ARRAY_NOTATION_LENGTH): Likewise.
3690 (ARRAY_NOTATION_STRIDE): Likewise.
3691 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3693 (pp_c_expression): Likewise.
3694 * c.opt (flag_enable_cilkplus): New flag.
3695 * array-notation-common.c: New file.
3697 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3700 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3702 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3704 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3707 2013-05-07 Han Shen <shenhan@google.com>
3709 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3711 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3713 * c-common.c (check_user_alignment): Emit error for negative values.
3715 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3717 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3719 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3721 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3722 __GXX_EXPERIMENTAL_CXX1Y__.
3724 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3725 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3727 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3728 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3729 to simply use OPT_Wpointer_arith.
3730 (c_sizeof_or_alignof_type): Likewise.
3732 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3734 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3736 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3738 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3739 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3742 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3744 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3746 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3748 * c-common.c (pointer_int_sum): Remove dead code.
3750 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3753 * c-common.c (handle_optimize_attribute): Don't call
3754 save_optabs_if_changed.
3756 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3759 * c-pch.c (pch_init): Free target_validity at the end.
3761 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3763 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3765 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3766 Jakub Jelinek <jakub@redhat.com>
3769 * c-common.c (handle_no_sanitize_address_attribute): New function.
3770 (c_common_attribute_table): Add no_sanitize_address attribute.
3771 (handle_no_address_safety_analysis_attribute): Add
3772 no_sanitize_address attribute, not no_address_safety_analysis
3775 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3778 * c-common.c (handle_optimize_attribute): Call
3779 save_optabs_if_changed.
3781 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3782 Steven Bosscher <steven@gcc.gnu.org>
3785 * c-opts.c (c_common_post_options): If debug info is enabled
3786 and non-dwarf*, refuse to load PCH files and when writing PCH
3789 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3792 * c-common.c (handle_error_attribute): Fix condition.
3794 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3797 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3799 2013-01-18 Jason Merrill <jason@redhat.com>
3802 * c.opt (-fextern-tls-init): New.
3803 * c-opts.c (c_common_post_options): Handle it.
3805 2013-01-09 Jakub Jelinek <jakub@redhat.com>
3808 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3809 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3810 and is either negative or bigger or equal to type precision
3811 of the first operand.
3813 2012-12-03 Marek Polacek <polacek@redhat.com>
3816 * c-common.c (check_user_alignment): Swap order of tests,
3817 check TREE_CODE first.
3819 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3822 * c-common.h (overflow_type): New enum.
3823 (build_userdef_literal): Add overflow_type argument.
3824 (tree_userdef_literal): Add overflow_type.
3825 (USERDEF_LITERAL_OVERFLOW): New access macro.
3826 * c-common.c (build_userdef_literal): Add overflow_type
3828 * c-lex.c (c_lex_with_flags): Add overflow_type to
3829 build_userdef_literal calls.
3830 (interpret_integer, interpret_float): Add overflow_type argument.
3832 2012-11-28 Richard Biener <rguenther@suse.de>
3835 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3836 here and use a type with proper overflow behavior for types that would
3837 need to be promoted for the arithmetic.
3839 2012-11-23 Jakub Jelinek <jakub@redhat.com>
3842 * c-common.c (handle_no_address_safety_analysis_attribute): New
3844 (c_common_attribute_table): Add no_address_safety_analysis.
3846 2012-11-16 Simon Baldwin <simonb@google.com>
3848 * c.opt: Add f[no-]canonical-system-headers.
3849 * c-opts.c (c_common_handle_option): Handle
3850 OPT_fcanonical_system_headers.
3852 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3855 * c-opts.c (c_common_handle_option): Set new flags.
3856 * c.opt: Describe new flags.
3858 2012-11-09 Jason Merrill <jason@redhat.com>
3860 * c.opt (Wabi-tag): New.
3862 2012-11-09 Andi Kleen <ak@linux.intel.com>
3865 * c-common.c (get_atomic_generic_size): Mask with
3868 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3871 * c.opt (Wformat): Make it Alias Wformat=1.
3872 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3873 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3875 (Wformat=): RejectNegative. Use LangEnabledBy.
3876 (Wnonnull): Use LangEnabledBy.
3877 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3878 * c-format.c (set_Wformat): Delete.
3879 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3880 (maybe_read_dollar_number): Likewise.
3881 (avoid_dollar_number): Likewise.
3882 (finish_dollar_format_checking): Likewise.
3883 (check_format_info): Likewise.
3884 (check_format_info_main): Likewise.
3885 (check_format_types): Likewise.
3886 (format_type_warning): Likewise.
3887 * c-common.c (int): Likewise.
3888 (check_function_sentinel): Likewise.
3889 * c-common.h (warn_format,set_Wformat): Do not declare here.
3891 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3894 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3895 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3897 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3899 (Wvariadic-macros): Init(1).
3900 * c-opts.c (c_common_handle_option): Do not handle them
3902 (c_common_post_options): Likewise.
3903 (sanitize_cpp_opts): warn_unused_macros is now
3904 cpp_warn_unused_macros.
3905 (push_command_line_include): Likewise.
3906 * c-common.c (warn_unknown_pragmas): Do not define.
3907 * c-common.h (warn_unknown_pragmas): Do not declare.
3909 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3912 * c-common.c (conversion_warning): Handle conditional expressions.
3914 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3917 * c.opt (Wreturn_local_addr): Define new option.
3919 2012-10-25 Jason Merrill <jason@redhat.com>
3921 * c.opt (Wvirtual-move-assign): New.
3923 * c.opt (Winherited-variadic-ctor): New.
3925 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
3928 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3930 2012-10-23 Joseph Myers <joseph@codesourcery.com>
3932 * c-common.h (pch_cpp_save_state): Declare.
3933 * c-target.def (c_preinclude): New hook.
3934 * c-opts.c (done_preinclude): New.
3935 (push_command_line_include): Handle default preincluded header.
3936 (cb_file_change): Call pch_cpp_save_state when calling
3937 push_command_line_include.
3938 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3939 (pch_cpp_save_state): New.
3940 (pch_init): Call pch_cpp_save_state conditionally, instead of
3941 calling cpp_save_state.
3943 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3947 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3948 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3949 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3950 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3951 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3952 * c-opts.c (c_common_handle_option): Remove explicit handling from
3954 (c_common_post_options): Likewise.
3956 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3958 * c-ada-spec.c (LOCATION_COL): Delete.
3959 (compare_location): New function.
3960 (compare_node): Use it.
3961 (compare_comment): Likewise.
3963 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3967 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3968 * c-opts.c (c_common_handle_option): Do not set them here. Add
3970 (c_common_post_options): Likewise.
3972 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3974 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3975 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3976 Remove POINTER_TYPE handling, add large unsigned handling and use
3977 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3979 2012-10-12 Jakub Jelinek <jakub@redhat.com>
3982 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3983 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3984 locs and array of 3 trees instead of just single loc and single
3985 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3986 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3987 For *cmp* builtins that take two sources strings report warnings
3988 about first and second source, not about destination and source.
3990 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
3993 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3995 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3997 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3998 declaring something coming from another file.
4000 2012-10-10 Arnaud Charlet <charlet@adacore.com>
4003 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
4005 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
4008 * c-common.c (warn_about_parentheses): Add location_t parameter;
4009 use EXPR_LOC_OR_LOC.
4010 * c-common.h: Update declaration.
4012 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
4015 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
4016 more operations. Make error messages optional.
4017 * c-common.h (enum stv_conv): Moved from c-typeck.c.
4018 (scalar_to_vector): Declare.
4020 2012-10-08 Jason Merrill <jason@redhat.com>
4022 * c-common.c (c_common_reswords): Add thread_local.
4024 2012-10-08 Dodji Seketeli <dodji@redhat.com>
4026 PR c++/53528 C++11 attribute support
4027 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
4029 * c-common.c (check_cxx_fundamental_alignment_constraints): New
4031 (handle_aligned_attribute): In choose strictest alignment
4032 among many. Use new check_cxx_fundamental_alignment_constraints.
4033 (handle_transparent_union_attribute): In c++11 attribute syntax,
4034 don't look through typedefs.
4036 2012-10-04 Arnaud Charlet <charlet@adacore.com>
4038 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
4039 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
4042 2012-09-25 Dehao Chen <dehao@google.com>
4045 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
4046 map when read in the pch.
4048 2012-09-18 Arnaud Charlet <charlet@adacore.com>
4050 * c-ada-spec.c: Style fixes.
4052 2012-09-18 Thomas Quinot <quinot@adacore.com>
4054 * c.opt (-fada-spec-parent): Define new command line switch.
4055 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
4056 is specified, generate binding spec as a child of the specified unit.
4058 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
4059 Manuel López-Ibáñez <manu@gcc.gnu.org>
4062 * c.opt ([Winit-self]): Enabled by -Wall in C++.
4064 2012-08-23 Arnaud Charlet <charlet@adacore.com>
4066 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
4067 for pointers, and add missing Convention C pragma.
4068 (print_ada_struct_decl): Add missing aliased keyword.
4069 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
4071 2012-08-17 Jakub Jelinek <jakub@redhat.com>
4073 * c-common.c (sizeof_pointer_memaccess_warning): New function.
4074 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
4075 * c-opts.c (c_common_handle_option): Enable it for -Wall.
4076 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
4077 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
4079 2012-08-10 Richard Guenther <rguenther@suse.de>
4081 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
4083 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4085 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
4086 instead of separate pp_newline and pp_flush.
4087 (print_c_tree): Likewise.
4089 2012-07-26 Richard Henderson <rth@redhat.com>
4091 * c-common.c (handle_hot_attribute): Allow labels.
4092 (handle_cold_attribute): Likewise.
4094 2012-07-20 Jakub Jelinek <jakub@redhat.com>
4097 * c-common.c (check_function_nonnull): Handle multiple nonnull
4098 attributes properly.
4100 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
4102 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
4103 * c-ada-spec.c: Likewise.
4104 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
4106 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
4108 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
4109 Remove code conditional on it.
4111 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
4113 * c-gimplify.c: Do not include basic-block.h.
4114 * c-common.c: Do not include linfuncs.h.
4116 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
4118 * c-common.h: Include tree.h.
4120 2012-07-02 Jason Merrill <jason@redhat.com>
4123 * c-common.c (get_priority): Call default_conversion.
4125 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
4127 * c-pch.c (c_common_write_pch): Remove unused variables.
4129 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
4131 * cppspec.c: Moved from gcc/ to here.
4133 2012-06-27 Kai Tietz <ktietz@redhat.com>
4135 PR preprocessor/37215
4136 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
4138 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
4140 * c-common.h (c_common_print_pch_checksum): Remove.
4141 * c-pch.c: Do not include output.h.
4142 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
4143 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
4144 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
4145 (struct c_pch_header): Remove.
4146 (get_ident): Update gpch version.
4147 (pch_init): Do not print executable_checksum to asm_out_file.
4148 Do not fail if there is no asm_out_file to read back from. Set
4149 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
4150 (c_common_write_pch): Verify that nothing was written to asm_out_file
4151 since pch_init was called. Do not write a c_pch_header, and do not
4152 copy from asm_out_file to the PCH.
4153 (c_common_read_pch): Do not read a c_pch_header, and do not restore
4154 the content of asm_out_file from the PCH.
4155 (c_common_print_pch_checksum): Remove.
4156 * c-opts.c (c_common_init): Print out executable_checksum directly.
4158 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4160 * c-target.def (objc_declare_unresolved_class_reference,
4161 objc_declare_class_definition): Add new hooks.
4163 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
4165 * c-lex.c: Do not include output.h.
4166 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
4167 Remove uses of ASM_OUTPUT_IDENT.
4169 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
4172 * c-common.h (c_build_vec_perm_expr): Move decl here.
4173 * c-common.c (c_build_vec_perm_expr): Move definition
4176 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
4178 * c.opt (fconserve-space): Turn into a no-op.
4180 2012-06-04 Sterling Augustine <saugustine@google.com>
4182 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
4183 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
4184 both the start and end of the function.
4186 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4188 * c-common.c: Do not include output.h.
4189 * c-pragma.c: Likewise.
4191 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
4193 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
4194 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
4195 (lang_decl_name): Handle namespace decls.
4197 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
4199 * c-ada-spec.c: Do not include output.h.
4200 * c-semantics.c: Likewise.
4202 2012-05-29 Joseph Myers <joseph@codesourcery.com>
4204 * c-common.c: Fix typo.
4206 2012-05-29 Michael Matz <matz@suse.de>
4208 * c-common.h (c_expand_decl): Remove prototype.
4210 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
4212 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
4213 * c-opts.c (c_common_handle_option): Remove code handling
4214 warn_missing_braces.
4216 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
4219 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
4222 2012-05-22 Dodji Seketeli <dodji@redhat.com>
4225 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
4227 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4229 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
4230 * c-opts.c (c_common_handle_option): Do not handle explicitly
4231 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
4233 2012-05-16 Dodji Seketeli <dodji@redhat.com>
4235 PR preprocessor/7263
4236 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
4237 to cpp_classify_number. For diagnostics, use the precise location
4238 instead of the global input_location.
4240 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4243 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
4245 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
4247 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
4249 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4252 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
4253 Wreorder): Use LangEnabledBy.
4254 * c-opts.c (c_common_handle_option): Do not enable them
4255 explicitly. Call lang-specific generated functions.
4256 (c_common_post_options): Do not set them here.
4258 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4260 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
4261 Wmissing-field-initializers,Wmissing-parameter-type,
4262 Wold-style-declaration,Woverride-init): Use EnabledBy.
4263 * c-opts.c (c_common_post_options): Do not set here explicitly.
4265 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4268 * c-opts.c (c_common_handle_option): Use handle_generated_option
4269 to enable sub-options.
4271 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
4274 * c-common.c (warnings_for_convert_and_check): Use warning_at.
4276 2012-05-10 Richard Guenther <rguenther@suse.de>
4278 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
4279 adjust commentary about TYPE_IS_SIZETYPE types.
4281 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
4284 * c-common.c (warn_logical_operator): Check that argument of
4285 integer_zerop is not NULL.
4287 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
4290 * c-common.c (warn_logical_operator): Do not warn if either side
4291 is already true or false.
4293 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4296 * c-common.c (expr_original_type): New.
4297 (shorten_compare): Do not warn for enumeration types.
4299 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
4301 * c.opt (fpermissive): Add Var(flag_permissive).
4303 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
4306 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
4307 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
4309 2012-04-30 Dodji Seketeli <dodji@redhat.com>
4311 Add -Wvarargs option
4312 * c.opt (Wvarargs): Define new option.
4314 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4316 * c-common.c (check_function_arguments): Replace
4317 Wmissing-format-attribute with Wsuggest-attribute=format.
4319 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4321 * c.opt (Wsuggest-attribute=format): New. Alias of
4322 Wmissing-format-attribute.
4323 * c-format.c (decode_format_type): Replace
4324 Wmissing-format-attribute with Wsuggest-attribute=format.
4325 (check_function_format): Likewise.
4327 2012-04-27 Ollie Wild <aaw@google.com>
4329 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
4330 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
4331 * c.opt: Add Wliteral-suffix.
4333 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4336 * c.opt (Wpedantic): New.
4337 (pedantic): Alias Wpedantic.
4338 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
4339 (c_common_post_options): Likewise.
4340 (sanitize_cpp_opts): Likewise.
4341 * c-lex.c (interpret_float): Likewise.
4342 * c-format.c (check_format_types): Likewise.
4343 * c-common.c (pointer_int_sum): Likewise.
4344 (c_sizeof_or_alignof_type): Likewise.
4345 (c_add_case_label): Likewise.
4346 (c_do_switch_warnings): Likewise.
4347 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
4349 2012-04-15 Jason Merrill <jason@redhat.com>
4352 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
4353 (C_STD_NAME): Distinguish between C++98 and C++11.
4355 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
4358 * c-common.h (uint16_type_node): Rename into...
4359 (c_uint16_type_node): ...this.
4360 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
4361 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
4363 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
4365 * c-common.c (warn_if_unused_value): Move definition to here.
4366 * c-common.h (warn_if_unused_value): Move declaration to here.
4368 2012-03-23 William Bader <williambader@hotmail.com>
4370 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
4372 2012-03-20 Jason Merrill <jason@redhat.com>
4374 * c-common.h (enum cxx_dialect): Add cxx1y.
4375 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
4377 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
4378 * c-opts.c (c_common_post_options): Likewise.
4379 (set_std_cxx1y): New.
4380 (c_common_handle_option): Call it.
4381 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
4383 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
4386 * c.opt ([Wuseless-cast]): Add.
4388 2012-03-16 Richard Guenther <rguenther@suse.de>
4390 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4392 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4395 * c.opt (ftemplate-backtrace-limit) Add.
4397 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4399 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4401 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4402 (init_pragma): Don't register extern_prefix.
4404 2012-03-12 Richard Guenther <rguenther@suse.de>
4406 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4407 (builtin_type_for_size): Likewise.
4409 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4412 * c-common.c (sync_resolve_params): Don't decide whether to convert
4413 or not based on TYPE_SIZE comparison, convert whenever arg_type
4414 is unsigned INTEGER_TYPE.
4416 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4419 * c.opt ([Wunused-local-typedefs]): Fix description.
4421 2012-01-24 Mike Stump <mikestump@comcast.net>
4423 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4426 2012-01-18 Richard Guenther <rguenther@suse.de>
4428 * c-opts.c (c_common_post_options): Reset LTO flags if
4429 we are about to generate a PCH.
4431 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4434 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4435 use pp_unsigned_wide_integer.
4437 2012-01-10 Richard Guenther <rguenther@suse.de>
4440 * c-opts.c (c_common_handle_option): Move -Werror handling
4441 to language independent code.
4443 2012-01-05 Richard Guenther <rguenther@suse.de>
4446 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4449 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4452 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4453 of array types with an unknown bound.
4455 2011-12-20 Joseph Myers <joseph@codesourcery.com>
4457 * c-common.c (flag_isoc99): Update comment to refer to C11.
4458 (flag_isoc1x): Change to flag_isoc11.
4459 * c-common.h (flag_isoc99): Update comment to refer to C11.
4460 (flag_isoc1x): Change to flag_isoc11.
4461 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4463 * c-opts.c (set_std_c1x): Change to set_std_c11.
4464 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4466 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4467 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4468 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4470 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4471 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4472 (std=gnu1x): Make alias of std=gnu11.
4474 2011-12-19 Jason Merrill <jason@redhat.com>
4477 * c-common.c (handle_transparent_union_attribute): Check the first
4478 field if the type is complete.
4480 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4483 * c-common.c (RID_IS_FINAL): Add.
4484 * c-common.h (RID_IS_FINAL): Add.
4486 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4488 * c.opt (fgnu-runtime): Provide full description.
4489 (fnext-runtime): Likewise.
4490 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4492 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
4494 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4495 predefines in one place. Add LOCK_FREE predefines.
4496 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4499 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
4502 * c-common.c (get_atomic_generic_size): Check for various error
4504 (resolve_overloaded_atomic_exchange,
4505 resolve_overloaded_atomic_compare_exchange,
4506 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4507 error_mark_node for error conditions.
4509 2011-11-08 Richard Guenther <rguenther@suse.de>
4514 2011-11-07 Richard Henderson <rth@redhat.com>
4515 Aldy Hernandez <aldyh@redhat.com>
4516 Torvald Riegel <triegel@redhat.com>
4518 Merged from transactional-memory.
4520 * c-common.c (handle_tm_wrap_attribute,
4521 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4522 (struct c_common_reswords): Added __transaction* keywords.
4523 (struct c_common_attribute_table): Added transaction* and tm_regparm
4525 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4527 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4528 find_tm_attribute): Declare.
4530 2011-11-07 Jason Merrill <jason@redhat.com>
4533 * c-common.c, c-common.h: Revert yesterday's changes.
4535 2011-11-06 Jason Merrill <jason@redhat.com>
4538 * c-common.c (decl_has_visibility_attr): Split out from...
4539 (c_determine_visibility): ...here.
4540 * c-common.h: Declare it.
4542 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4544 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4545 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4547 (check_user_alignment): New. Split out of
4548 handle_aligned_attribute. Disallow integer constants with
4549 noninteger types. Conditionally allow zero.
4550 (handle_aligned_attribute): Use check_user_alignment.
4551 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4553 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
4554 Richard Henderson <rth@redhat.com>
4556 Merged from cxx-mem-model.
4558 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
4559 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
4560 parameters that are the same type size.
4561 (get_atomic_generic_size): New. Find size of generic
4562 atomic function parameters and do typechecking.
4563 (add_atomic_size_parameter): New. Insert size into parameter list.
4564 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4565 either __atomic_exchange_n or external library call.
4566 (resolve_overloaded_atomic_compare_exchange): Restructure
4567 __atomic_compare_exchange to either _n variant or external library call.
4568 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
4569 __atomic_load_n or an external library call.
4570 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4571 __atomic_store_n or an external library call.
4572 (resolve_overloaded_builtin): Handle new __atomic builtins.
4574 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4577 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4578 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4579 <INDIRECT_REF>: Return the argument.
4580 <ARRAY_REF>: Remove special code for negative offset.
4581 Call fold_build_pointer_plus instead of size_binop.
4582 (fold_offsetof): Remove STOP_REF argument and adjust.
4583 * c-common.h (fold_offsetof_1): Declare.
4584 (fold_offsetof): Remove STOP_REF argument.
4586 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4589 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4590 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4591 Wnarrowing for C++0x and C++98.
4592 * c.opt ([Wnarrowing]): Update.
4594 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4597 * c.opt: Add Wzero-as-null-pointer-constant.
4599 2011-10-31 Jason Merrill <jason@redhat.com>
4601 * c.opt (-fdeduce-init-list): Off by default.
4604 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4605 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4607 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4609 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4612 * c.opt (fvisibility-inlines-hidden): Description change.
4614 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4616 Implement C++11 user-defined literals.
4617 * c-common.c (build_userdef_literal): New.
4618 * c-common.def: New tree code.
4619 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4620 * c-lex.c (interpret_float): Add suffix parm.
4621 (c_lex_with_flags): Build literal tokens.
4623 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4627 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4630 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4631 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4632 Wnarrowing for C++0x and C++98.
4633 * c.opt ([Wnarrowing]): Update.
4635 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4638 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4639 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4640 Wnarrowing for C++0x and C++98.
4641 * c.opt ([Wnarrowing]): Update.
4643 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4646 * c-common.c (conversion_warning): Remove code looking for
4647 artificial operands.
4649 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4652 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
4653 !NO_IMPLICIT_EXTERN_C.
4655 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
4657 * c-common.c (c_common_reswords): Add __bases,
4659 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4661 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4664 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4666 2011-10-15 Tom Tromey <tromey@redhat.com>
4667 Dodji Seketeli <dodji@redhat.com>
4669 * c.opt (fdebug-cpp): New option.
4670 * c-opts.c (c_common_handle_option): Handle the option.
4671 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4672 output stream in parameter. Factorized from ...
4673 (maybe_print_line): ... this. Dump location debug information when
4674 -fdebug-cpp is in effect.
4675 (print_line_1): New static function. Takes an output stream in
4676 parameter. Factorized from ...
4677 (print_line): ... here. Dump location information when -fdebug-cpp
4679 (scan_translation_unit): Dump location information when
4680 -fdebug-cpp is in effect.
4682 2011-10-15 Tom Tromey <tromey@redhat.com>
4683 Dodji Seketeli <dodji@redhat.com>
4685 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4687 * c-opts.c (c_common_handle_option)<case
4688 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4689 cases. Handle -ftrack-macro-expansion with and without argument.
4691 2011-10-15 Tom Tromey <tromey@redhat.com>
4692 Dodji Seketeli <dodji@redhat.com>
4694 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4695 (print_line, cb_define, do_line_change): Adjust to avoid touching
4696 the internals of struct line_map. Use the public API instead.
4697 * c-pch.c (c_common_read_pch): Likewise.
4698 * c-lex.c (fe_file_change): Likewise.
4700 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4703 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4705 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4708 * c-pretty-print.c (pp_c_floating_constant): Output
4709 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4711 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4713 * c-common.c (def_builtin_1): Delete old interface with two
4714 parallel arrays to hold standard builtin declarations, and replace
4715 it with a function based interface that can support creating
4716 builtins on the fly in the future. Change all uses, and poison
4717 the old names. Make sure 0 is not a legitimate builtin index.
4718 * c-omp.c (c_finish_omp_barrier): Ditto.
4719 (c_finish_omp_taskwait): Ditto.
4720 (c_finish_omp_flush): Ditto.
4722 2011-10-11 Tristan Gingold <gingold@adacore.com>
4724 * c.opt: (fallow-parameterless-variadic-functions): New.
4726 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4728 PR c++/33255 - Support -Wunused-local-typedefs warning
4729 * c-common.h (struct c_language_function::local_typedefs): New
4731 (record_locally_defined_typedef, maybe_record_typedef_use)
4732 (maybe_warn_unused_local_typedefs): Declare new functions.
4733 * c-common.c (record_locally_defined_typedef)
4734 (maybe_record_typedef_use)
4735 (maybe_warn_unused_local_typedefs): Define new functions.
4736 * c.opt: Declare new -Wunused-local-typedefs flag.
4738 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4741 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4744 2011-09-05 Richard Guenther <rguenther@suse.de>
4746 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4747 of integer_minus_one_node for empty array upper bounds.
4749 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4751 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4752 it's the first time it's being called on this main TU.
4754 2011-08-24 Richard Guenther <rguenther@suse.de>
4757 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4759 2011-08-22 Gabriel Charette <gchare@google.com>
4761 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4762 defined in cpp_init_builtins and c_cpp_builtins.
4764 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4766 * c-common.c (c_common_reswords): Add __builtin_complex.
4767 * c-common.h (RID_BUILTIN_COMPLEX): New.
4769 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4771 * c-common.c (c_common_reswords): Add _Noreturn.
4772 (keyword_is_function_specifier): Handle RID_NORETURN.
4773 * c-common.h (RID_NORETURN): New.
4775 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4777 * c-common.c (unsafe_conversion_p): New function. Check if it is
4778 unsafe to convert an expression to the type.
4779 (conversion_warning): Adjust, use unsafe_conversion_p.
4780 * c-common.h (unsafe_conversion_p): New function declaration.
4782 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4784 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4785 (c_finish_omp_taskyield): New prototype.
4786 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4787 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4788 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4789 or RHS1 have side-effects, evaluate those too in the right spot,
4790 if it is a decl and LHS is also a decl, error out if they
4792 (c_finish_omp_taskyield): New function.
4793 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4794 * c-pragma.c (omp_pragmas): Add taskyield.
4795 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4796 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4797 PRAGMA_OMP_CLAUSE_MERGEABLE.
4799 2011-07-25 Dodji Seketeli <dodji@redhat.com>
4801 * c-common.h (set_underlying_type): Remove parm name from
4804 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
4806 * c-pretty-print.h: Search c-common.h in c-family.
4808 2011-07-22 Jason Merrill <jason@redhat.com>
4811 * c.opt (Wnarrowing): New.
4814 * c-common.h: Declare c_linkage_bindings.
4815 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4818 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4819 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4820 as flag_isoc99 for 'restrict'.
4821 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4823 2011-07-21 Ian Lance Taylor <iant@google.com>
4826 * c-common.c (c_disable_warnings): New static function.
4827 (c_enable_warnings): New static function.
4828 (c_fully_fold_internal): Change local unused_p to bool. Call
4829 c_disable_warnings and c_enable_warnings rather than change
4830 c_inhibit_evaluation_warnings.
4832 2011-07-20 Jason Merrill <jason@redhat.com>
4834 PR c++/6709 (DR 743)
4835 PR c++/42603 (DR 950)
4836 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4837 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4838 (CPP_DECLTYPE): New.
4839 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4841 2011-07-19 Richard Guenther <rguenther@suse.de>
4843 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4844 * c-omp.c (c_finish_omp_for): Likewise.
4846 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4848 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4849 body on the next line.
4851 2011-07-08 Jason Merrill <jason@redhat.com>
4854 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4857 * c-common.c (c_apply_type_quals_to_decl): Don't check
4858 TYPE_NEEDS_CONSTRUCTING.
4860 2011-07-06 Richard Guenther <rguenther@suse.de>
4862 * c-common.c (c_common_nodes_and_builtins):
4863 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4865 2011-07-05 Richard Guenther <rguenther@suse.de>
4867 * c-common.c (c_common_nodes_and_builtins): Build all common
4870 2011-06-27 Jakub Jelinek <jakub@redhat.com>
4872 * c-common.h (c_tree_chain_next): New static inline function.
4874 * c-common.c (check_builtin_function_arguments): Handle
4875 BUILT_IN_ASSUME_ALIGNED.
4877 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
4879 * c-common.c: Add sync_ or SYNC__ to builtin names.
4880 * c-omp.c: Add sync_ or SYNC__ to builtin names.
4882 2011-06-20 Pierre Vittet <piervit@pvittet.com>
4884 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4886 (gen_pragma_handler): New union.
4887 (internal_pragma_handler): New type.
4888 (c_register_pragma_with_data)
4889 (c_register_pragma_with_expansion_and_data): New functions.
4891 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4892 (c_register_pragma, c_register_pragma_with_expansion)
4893 (c_invoke_pragma_handler): Changed to work with
4894 internal_pragma_handler.
4895 (c_register_pragma_with_data)
4896 (c_register_pragma_with_expansion_and_data): New functions.
4898 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4900 * c-common.c: Include common/common-target.h.
4901 (handle_section_attribute): Use
4902 targetm_common.have_named_sections.
4903 * c-cppbuiltin.c: Include common/common-target.h.
4904 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4906 2011-06-10 Richard Guenther <rguenther@suse.de>
4908 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4909 to print a IDENTIFIER_NODE.
4911 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4912 Joseph Myers <joseph@codesourcery.com>
4914 * c.opt (fbuilding-libgcc): New option.
4915 * c-cppbuiltin.c (c_cpp_builtins): Define
4916 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4918 2011-06-07 Jason Merrill <jason@redhat.com>
4920 * c-common.c (max_tinst_depth): Lower default to 900.
4922 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4924 2011-06-07 Richard Guenther <rguenther@suse.de>
4926 * c-common.c (c_common_nodes_and_builtins): Do not set
4927 size_type_node or call set_sizetype.
4929 2011-06-07 Dodji Seketeli <dodji@redhat.com>
4932 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
4933 type when using pointer comparison to compare types.
4935 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4937 * c.opt: Add -Wdelete-non-virtual-dtor.
4938 * c-opts.c (c_common_handle_option): Include it in -Wall.
4940 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4945 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4947 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4950 2011-05-27 Jakub Jelinek <jakub@redhat.com>
4953 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4954 C++ don't call c_common_truthvalue_conversion on void type arms.
4956 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4958 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4959 (stmt_list_stack): Define.
4960 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4961 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4963 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4965 * c-common.c (warning_candidate_p): Check for BLOCKs.
4967 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4969 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4972 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4974 * c-common.c (def_fn_type): Remove extra va_end.
4976 2011-05-23 Jason Merrill <jason@redhat.com>
4979 * c-common.c (c_common_get_narrower): New.
4980 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4982 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4984 * c-common.h (check_function_arguments): Tweak prototype of
4985 check_function_arguments.
4986 * c-common.c (check_function_arguments): Likewise. Adjust
4987 calls to check_function_nonnull, check_function_format, and
4988 check_function_sentinel.
4989 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4990 separate attributes and typelist arguments. Use
4991 FOREACH_FUNCTION_ARGS to iterate over argument types.
4993 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4995 * c-common.c (c_common_reswords): Reorder.
4996 * c-common.h (rid): Likewise.
4998 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
5000 * c-common.c (def_fn_type): Don't call build_function_type, call
5001 build_function_type_array or build_varargs_function_type_array
5003 (c_common_nodes_and_builtins): Likewise.
5005 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
5007 * c-common.c (c_add_case_label): Omit the loc argument to
5009 * c-common.h (build_case_label): Remove.
5010 * c-semantics.c (build_case_label): Remove.
5012 2011-05-05 Joseph Myers <joseph@codesourcery.com>
5014 * c-objc.h (objc_start_method_definition): Update prototype.
5015 * stub-objc.c (objc_start_method_definition): Add extra parameter.
5017 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
5019 * c-common.c (check_main_parameter_types): Reindent. Don't use
5020 TYPE_ARG_TYPES directly.
5021 (handle_nonnull_attribute): Likewise.
5022 (sync_resolve_params): Likewise.
5023 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
5024 to check_format_string.
5025 (handle_format_attribute): Likewise.
5026 (check_format_string): Take a function type to examine instead of
5027 a type list. Use a function_arg_iterator to step through argument
5030 2011-05-04 Richard Guenther <rguenther@suse.de>
5032 * c-common.c (fix_string_type): Use size_int for index type bounds.
5033 (start_fname_decls): Do not pass NULL to build_int_cst.
5034 (c_init_attributes): Likewise.
5035 * c-lex.c (c_lex_with_flags): Likewise.
5037 2011-04-27 Jason Merrill <jason@redhat.com>
5039 * c-common.c (make_tree_vector_from_list): New.
5040 * c-common.h: Declare it.
5042 2011-04-26 Richard Guenther <rguenther@suse.de>
5044 PR preprocessor/48248
5045 * c-ppoutput.c (maybe_print_line): Always optimize newlines
5046 for output size with -P.
5048 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5050 * c-common.c (struct c_common_resword): Add __underlying_type.
5051 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
5053 2011-04-20 Jim Meyering <meyering@redhat.com>
5055 * c-format.c (init_dollar_format_checking): Remove useless
5058 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
5060 * c-objc.h (objc_get_interface_ivars): Removed.
5061 (objc_detect_field_duplicates): New.
5062 * stub-objc.c: Likewise.
5064 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5066 * stub-objc.c (objc_declare_protocols): Renamed to
5067 objc_declare_protocol.
5068 * c-objc.h: Likewise.
5070 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
5072 * stub-objc.c (objc_declare_class): Updated argument name.
5074 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5076 * c-common.h (c_common_init_ts): Declare.
5077 * c-common.c (c_common_init_ts): Define.
5079 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5081 * c-objc.h (objc_build_message_expr): Updated prototype.
5082 * stub-objc.c (objc_build_message_expr): Likewise.
5084 2011-04-12 Martin Jambor <mjambor@suse.cz>
5086 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
5089 2011-04-11 Richard Guenther <rguenther@suse.de>
5091 * c-common.c (complete_array_type): Build a range type of
5094 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5096 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
5097 (handle_type_generic_attribute): Likewise.
5099 2011-04-07 Jason Merrill <jason@redhat.com>
5102 * c-common.c (c_common_truthvalue_conversion): Don't ignore
5103 conversion from C++0x scoped enum.
5105 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5107 * c-target-def.h: New file.
5108 * c-target.def: New file.
5109 * c-target.h: New file.
5110 * c-common.c (targetcm): Don't define here.
5111 * c-common.h (default_handle_c_option): Declare.
5112 * c-format.c: Include c-target.h instead of target.h.
5113 * c-opts.c: Include c-target.h instead of target.h. Explicitly
5115 (default_handle_c_option): Move from targhooks.c.
5117 2011-03-29 Jakub Jelinek <jakub@redhat.com>
5119 PR preprocessor/48248
5120 * c-ppoutput.c (print): Add src_file field.
5121 (init_pp_output): Initialize it.
5122 (maybe_print_line): Don't optimize by adding up to 8 newlines
5123 if map->to_file and print.src_file are different file.
5124 (print_line): Update print.src_file.
5126 2011-03-25 Kai Tietz <ktietz@redhat.com>
5128 * c-ada-spec.c (compare_comment): Use filename_cmp
5129 instead of strcmp for filename.
5131 2011-03-25 Jeff Law <law@redhat.com>
5133 * c-common.c (def_fn_type): Add missing va_end.
5135 2011-03-25 Jason Merrill <jason@redhat.com>
5137 * c.opt: Add -std=c++03.
5139 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
5141 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
5143 2011-03-17 Kai Tietz
5146 * c-pretty-print.c (pp_c_specifier_qualifier_list):
5147 Display allowed attributes for function pointer types.
5148 (pp_c_attributes_display): New function to display
5149 attributes having affects_type_identity flag set to true.
5150 * c-pretty-print.h (pp_c_attributes_display): New prototype.
5152 * c-common.c (c_common_attribute_table):
5154 (c_common_format_attribute_table): Likewise.
5156 2011-03-18 Jason Merrill <jason@redhat.com>
5158 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
5159 * c-common.h: Don't declare it here.
5160 * c-common.c: Or define it here.
5161 * c-opts.c (c_common_handle_option): Or set it here.
5164 * c-common.c (handle_transparent_union_attribute): Don't
5165 make a duplicate type in C++.
5167 2011-03-15 Jason Merrill <jason@redhat.com>
5169 * c-common.c (max_constexpr_depth): New.
5170 * c-common.h: Declare it.
5171 * c-opts.c (c_common_handle_option): Set it.
5172 * c.opt (fconstexpr-depth): New option.
5174 2011-03-11 Jason Merrill <jason@redhat.com>
5176 * c-common.c (attribute_takes_identifier_p): Add missing const.
5179 * c-common.c (attribute_takes_identifier_p): Assume that an
5180 unknown attribute takes an identifier.
5182 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
5185 * c-common.c (c_type_hash): Call list_length instead of iterating
5186 through DECL_CHAIN. Rename 'i' to 'n_elements'.
5188 2011-02-19 Jakub Jelinek <jakub@redhat.com>
5191 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
5193 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
5195 * c.opt (fobjc-abi-version=) New.
5196 (fobjc-nilcheck): New.
5198 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
5201 * c-common.h (keyword_is_decl_specifier): Declare.
5202 * c-common.c (keyword_is_decl_specifier): Define.
5203 (keyword_is_function_specifier): New function.
5205 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5208 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
5209 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
5212 2011-01-26 Arnaud Charlet <charlet@adacore.com>
5214 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
5216 2011-01-26 Jakub Jelinek <jakub@redhat.com>
5219 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
5220 after init_c_lex if pch_file is set.
5222 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
5225 * c.opt (-fkeep-inline-dllexport): New switch.
5227 2011-01-12 Richard Guenther <rguenther@suse.de>
5230 * c-common.c (handle_weak_attribute): Warn instead of error
5231 on declaring an inline function weak.
5233 2011-01-05 Tom Tromey <tromey@redhat.com>
5235 * c-common.h (lvalue_error): Update.
5236 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
5239 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
5242 * c-objc.h (objc_finish_message_expr): Added argument to
5245 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
5247 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
5250 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
5252 * c-objc.h (objc_maybe_warn_exceptions): New.
5253 * stub-objc.c (objc_maybe_warn_exceptions): New.
5255 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
5257 * c-common.h (readonly_error): Declare.
5258 * c-common.c (readonly_error): Define.
5260 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
5262 * c-common.h (invalid_indirection_error): Declare.
5263 * c-common.c (invalid_indirection_error): Define.
5265 2010-12-03 Richard Guenther <rguenther@suse.de>
5268 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
5269 (pp_c_unary_expression): Likewise.
5270 (pp_c_expression): Likewise.
5272 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
5274 * c-common.h (objc_finish_function): New.
5275 (objc_non_volatilized_type): Removed.
5276 (objc_type_quals_match): Removed.
5277 * stub-objc.c (objc_finish_function): New.
5278 (objc_non_volatilized_type): Removed.
5279 (objc_type_quals_match): Removed.
5281 2010-11-30 Joseph Myers <joseph@codesourcery.com>
5283 * c-common.h (parse_optimize_options): Declare.
5284 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
5285 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
5287 2010-11-29 Joseph Myers <joseph@codesourcery.com>
5289 * c-opts.c (check_deps_environment_vars): Use getenv instead of
5291 * c-pch.c (O_BINARY): Don't define here.
5292 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
5294 2010-11-25 Joseph Myers <joseph@codesourcery.com>
5296 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
5297 targetm.except_unwind_info.
5299 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5301 * c-opts.c (c_common_handle_option): Pass location to
5302 set_struct_debug_option.
5304 2010-11-23 Joseph Myers <joseph@codesourcery.com>
5306 * c-common.c (visibility_options): Move from ../opts.c.
5307 * c-common.h (struct visibility_flags, visibility_options):
5309 * c-opts.c (finish_options): Rename to c_finish_options.
5310 (c_common_init): Update call to finish_options.
5312 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
5315 * c-lex.c (lex_string): Check that each string in an Objective-C
5316 string concat sequence starts with either one or zero '@', and
5317 that there are no spurious '@' signs at the end.
5319 2010-11-20 Joseph Myers <joseph@codesourcery.com>
5321 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
5322 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
5323 HANDLE_PRAGMA_VISIBILITY.
5324 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
5325 HANDLE_PRAGMA_VISIBILITY): Don't define.
5326 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
5328 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
5333 * c-common.h (keyword_begins_type_specifier): Declare.
5334 (keyword_is_storage_class_specifier): Declare.
5335 (keyword_is_type_qualifier): Declare.
5336 * c-common.c (keyword_begins_type_specifier): New function.
5337 (keyword_is_storage_class_specifier): New function.
5338 (keyword_is_type_qualifier): Declare.
5340 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5343 * c-common.c (in_late_binary_op): Define.
5344 (c_common_truthvalue_conversion): Check in_late_binary_op before
5345 calling c_save_expr.
5346 * c-common.h (in_late_binary_op): Declare.
5348 2010-11-19 Joseph Myers <joseph@codesourcery.com>
5350 * c-opts.c (c_common_handle_option): Update calls to
5351 set_struct_debug_option.
5353 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
5355 * c-common.h (objc_declare_protocols): Added additional argument.
5356 * stub-objc.c (objc_declare_protocol): Same change.
5358 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
5361 * c-common.h (build_real_imag_expr): Declare.
5362 * c-semantics.c (build_real_imag_expr): Define.
5364 2010-11-17 Joseph Myers <joseph@codesourcery.com>
5366 * c-opts.c (c_common_parse_file): Take no arguments.
5367 * c-common.h (c_common_parse_file): Update prototype.
5369 2010-11-16 Jakub Jelinek <jakub@redhat.com>
5372 * c-common.c (warning_candidate_p): Don't track non-const calls
5375 2010-11-15 Ian Lance Taylor <iant@google.com>
5377 * c-lex.c (init_c_lex): Set macro debug callbacks if
5378 flag_dump_go_spec is set.
5380 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
5382 * c-common.h (objc_build_incr_expr_for_property_ref): New.
5383 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
5385 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
5387 PR preprocessor/45038
5388 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5391 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5393 * c-common.h (c_family_lang_mask): Declare.
5394 * c-opts.c (c_family_lang_mask): Make extern.
5395 * c-pragma.c (handle_pragma_diagnostic): Use
5396 control_warning_option.
5398 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5400 * c-common.c (parse_optimize_options): Update call to
5402 * c-common.h (c_common_handle_option): Update prototype.
5403 * c-opts.c (c_common_handle_option): Take location_t parameter and
5404 pass it to other functions.
5406 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5408 * c-opts.c (warning_as_error_callback): Remove.
5409 (c_common_initialize_diagnostics): Don't call
5410 register_warning_as_error_callback.
5411 (c_common_handle_option): Handle -Werror=normalized= here.
5413 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5415 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5417 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5419 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5420 Remove trailing '.' from diagnostics.
5421 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5423 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5425 * c-common.c (parse_optimize_options): Pass global_dc to
5427 * c-opts.c (c_common_handle_option): Pass &global_options to
5428 set_Wstrict_aliasing.
5429 * c.opt (v): Don't mark Common or document here.
5431 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5434 * c-format.c (format_type): New type gcc_objc_string_format_type.
5435 (valid_stringptr_type_p): New.
5436 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
5437 (check_format_string): Pass expected type, use
5438 valid_stringptr_type_p (), check that the format string types are
5439 consistent with the format specification.
5440 (decode_format_attr): Warn if NSString is used outside objective-c.
5441 (format_types_orig): Add NSString.
5443 (format_flags): New.
5444 (check_format_arg): Handle format strings requiring an external parser.
5445 first_target_format_type: New variable.
5446 (handle_format_attribute): Set up first_target_format_type, pass the
5447 expected format arg string type to check_format_string().
5448 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5449 * stub-objc.c (objc_string_ref_type_p): New.
5450 (objc_check_format_arg): New.
5452 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5454 Fixed using the Objective-C 2.0 dot-syntax with class names.
5455 * c-common.h (objc_build_class_component_ref): New.
5456 * stub-objc.c (objc_build_class_component_ref): New.
5458 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5460 * c.opt (Wproperty-assign-default): New option.
5462 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5464 Implemented -fobjc-std=objc1 flag.
5465 * c.opt (fobjc-std=objc1): New option.
5467 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5469 Implemented format and noreturn attributes for Objective-C methods.
5470 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5471 attribute for Objective-C methods.
5473 2010-10-31 Jason Merrill <jason@redhat.com>
5475 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5478 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5480 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5481 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5482 (objc_add_property_declaration): Removed arguments for copies and
5484 (objc_build_getter_call): Renamed to
5485 objc_maybe_build_component_ref.
5486 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5487 (objc_is_property_ref): New.
5488 * c-common.c (c_common_reswords): Removed copies and ivar.
5489 * stub-objc.c (objc_add_property_declaration): Removed arguments
5490 for copies and ivar.
5491 (objc_build_getter_call): Renamed to
5492 objc_maybe_build_component_ref.
5493 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5494 (objc_is_property_ref): New.
5496 2010-10-29 Arnaud Charlet <charlet@adacore.com>
5497 Matthew Gingell <gingell@adacore.com>
5499 * c-ada-spec.c (separate_class_package): New function.
5500 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5501 name of their enclosing package.
5502 (print_ada_declaration): Use separate_class_package.
5504 2010-10-27 Jason Merrill <jason@redhat.com>
5506 * c-common.c (c_common_reswords): Add __is_literal_type.
5507 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5509 * c-common.c (check_case_value): Remove special C++ code.
5511 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5513 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5514 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5516 (objc_add_property_declaration): Added additional arguments.
5517 (objc_property_attribute_kind): Removed.
5518 (objc_set_property_attr): Removed.
5519 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5521 * stub-objc.c (objc_add_property_declaration): Added additional
5523 (objc_set_property_attr): Removed.
5525 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5527 * c-common.h (objc_add_property_variable): Renamed to
5528 objc_add_property_declaration. Added location argument.
5529 * stub-objc.c (objc_add_property_variable): Same change.
5531 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5533 * c-common.h (objc_maybe_printable_name): New.
5534 * stub-objc.c (objc_maybe_printable_name): New.
5536 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5537 Andrew Pinski <pinskia@gmail.com>
5539 * c-common.h (c_common_mark_addressable_vec): Declare.
5540 * c-common.c (c_common_mark_addressable_vec): New function.
5542 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5544 * c-common.h (objc_set_method_type): Removed.
5545 (objc_add_method_declaration): Added boolean argument.
5546 (objc_start_method_definition): Same change.
5547 (objc_build_method_signature): Same change.
5548 * stub-objc.c (objc_set_method_type): Removed.
5549 (objc_add_method_declaration): Added boolean argument.
5550 (objc_start_method_definition): Same change.
5551 (objc_build_method_signature): Same change.
5553 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5555 * c-common.h (finish_file): Removed.
5556 (objc_write_global_declarations): New.
5557 * c-opts.c (c_common_parse_file): Do not call finish_file.
5558 * stub-objc.c (objc_write_global_declarations): New.
5560 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5562 Implemented parsing @synthesize and @dynamic for
5563 Objective-C/Objective-C++.
5564 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5565 (objc_add_synthesize_declaration): New.
5566 (objc_add_dynamic_declaration): New.
5567 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5568 * stub-objc.c (objc_add_synthesize_declaration): New.
5569 (objc_add_dynamic_declaration): New.
5571 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5574 * c-cppbuiltin.c (mode_has_fma): Move function here from
5575 builtins.c. Don't use the fma optab, instead just use the
5576 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5579 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5581 Merge from 'apple/trunk' branch on FSF servers.
5583 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5586 * c-common.h (objc_non_volatilized_type): New declaration
5587 * stub-objc.c (objc_non_volatilized_type): New stub.
5589 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5591 Merge from 'apple/trunk' branch on FSF servers.
5593 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5596 * c-common.h (objc_diagnose_private_ivar): New decl.
5597 * stub-objc.c (objc_diagnose_private_ivar): New stub.
5599 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5601 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5602 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5603 (objc_ivar_visibility_kind): New enum.
5604 (objc_set_visibility): Adjust prototype to use visibility enum.
5605 * stub-objc.c (objc_set_visibility): Adjust stub to use
5608 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5610 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5611 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5612 has the appropriate fma builtins.
5613 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5615 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5617 merge from FSF apple 'trunk' branch.
5618 2006 Fariborz Jahanian <fjahanian@apple.com>
5620 Radars 4436866, 4505126, 4506903, 4517826
5621 * c-common.c (c_common_resword): Define @property and its attributes.
5622 * c-common.h: Define property attribute enum entries.
5623 (OBJC_IS_PATTR_KEYWORD): New.
5624 (objc_property_attribute_kind): New enum.
5625 Declare objc_set_property_attr (), objc_add_property_variable (),
5626 objc_build_getter_call () and objc_build_setter_call ().
5627 * stub-objc.c (objc_set_property_attr): New stub.
5628 (objc_add_property_variable): Likewise.
5629 (objc_build_getter_call): Likewise.
5630 (objc_build_setter_call) Likewise.
5632 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5634 merge from FSF apple 'trunk' branch.
5635 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5637 Radar 3803157 (method attributes)
5638 * c-common.c (handle_deprecated_attribute): Recognize
5639 objc methods as valid declarations.
5640 * c-common.h: Declare objc_method_decl ().
5641 * stub-objc.c (objc_method_decl): New stub.
5643 2010-10-08 Joseph Myers <joseph@codesourcery.com>
5645 * c-common.c (parse_optimize_options): Call
5646 decode_cmdline_options_to_array_default_mask before
5647 decode_options. Update arguments to decode_options.
5648 * c-common.h (c_common_init_options_struct): Declare.
5649 * c-opts.c (c_common_init_options_struct): New. Split out from
5650 c_common_init_options.
5652 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5654 Implemented fast enumeration for Objective-C.
5655 * c-common.h (objc_finish_foreach_loop): New.
5656 * stub-objc.c (objc_finish_foreach_loop): New.
5658 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5660 * c-common.h (struct diagnostic_context): Don't declare here.
5661 (c_common_initialize_diagnostics): Declare using
5662 diagnostic_context typedef.
5663 * c-opts.c (c_common_handle_option): Pass global_dc to
5664 handle_generated_option.
5666 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5668 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5669 handle_generated_option.
5671 2010-10-03 Ian Lance Taylor <iant@google.com>
5673 * c.opt (-fplan9-extensions): New option.
5675 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5677 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5679 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5680 of duplicating code.
5682 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5684 * c-common.c: Add two new entries for @optional
5685 and @required keywords.
5687 merge from FSF 'apple/trunk' branch.
5688 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5691 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5692 objective-c keywords.
5693 (objc_set_method_opt): New declaration.
5694 * stub-objc.c (objc_set_method_opt): New stub.
5696 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5698 * c-common.c (handle_optimize_attribute): Pass &global_options to
5699 cl_optimization_save and cl_optimization_restore.
5700 * c-opts.c (c_common_handle_option): Pass &global_options to
5701 handle_generated_option.
5702 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5703 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5704 &global_options to cl_optimization_restore.
5706 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5708 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5709 Objective-C/Objective-C++ keywords.
5711 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5713 Merge from 'apple/trunk' branch on FSF servers.
5715 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5718 * c-common.h (objc_check_global_decl): New declaration.
5719 * stub-objc.c (objc_check_global_decl): New stub.
5721 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5723 * c.opt: Don't use VarExists.
5725 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5727 * c-common.c (c_cpp_error): Update names of diagnostic_context
5729 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5730 cl_optimization members.
5731 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5732 sanitize_cpp_opts, finish_options): Update names of cpp_options
5735 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5737 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5738 (objc_is_reserved_word): Removed.
5739 * c-common.c: Updated comments.
5740 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5741 objc_is_reserved_word.
5742 * stub-objc.c (objc_is_reserved_word): Removed.
5744 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5746 * c-common.h (objc_add_method_declaration): Adjust prototype to
5748 (objc_start_method_definition): Likewise.
5749 (objc_build_keyword_decl): Likewise.
5750 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5751 (objc_start_method_definition): Likewise.
5752 (objc_build_keyword_decl): Likewise.
5754 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5756 * c-common.h (objc_start_class_interface): Adjust prototype.
5757 (objc_start_category_interface): Likewise.
5758 (objc_start_protocol): Likewise.
5759 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5760 (objc_start_class_interface): Likewise.
5761 (objc_start_category_interface): Likewise.
5763 2010-09-27 Ian Lance Taylor <iant@google.com>
5765 * c-common.c (c_common_attribute_table): Add no_split_stack.
5766 (handle_no_split_stack_attribute): New static function.
5768 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5770 Merge from 'apple/trunk' branch on FSF servers.
5772 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5775 * c-common.h (objc_have_common_type): New declaration.
5776 * stub-objc.c (objc_have_common_type): New stub.
5778 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5781 * c-common.h (objc_common_type): New prototype.
5782 * stub-objc.c (objc_common_type): New stub.
5784 2010-09-24 Jan Hubicka <jh@suse.cz>
5786 * c-common.c (handle_leaf_attribute): New function.
5787 (struct attribute_spec c_common_att): Add leaf.
5789 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5791 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5792 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5793 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5794 -include-barrier, -include-directory, -include-directory=,
5795 -include-directory-after, -include-directory-after=,
5796 -include-prefix, -include-prefix=, -include-with-prefix,
5797 -include-with-prefix=, -include-with-prefix-after,
5798 -include-with-prefix-after=, -include-with-prefix-before,
5799 -include-with-prefix-before=, -no-integrated-cpp,
5800 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5801 -output=, -pedantic, -pedantic-errors, -preprocess,
5802 -print-missing-file-dependencies, -trace-includes, -traditional,
5803 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5804 -user-dependencies, -verbose, -write-dependencies,
5805 -write-user-dependencies, no-integrated-cpp, traditional): New.
5807 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5810 * c-common.h (objc_start_method_definition): Return bool instead
5812 * stub-objc.c (objc_start_method_definition): Return bool instead
5815 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5818 * c-common.h (objc_get_interface_ivars): New declaration.
5819 * stub-objc.c (objc_get_interface_ivars): New stub.
5821 2010-09-15 Ian Lance Taylor <iant@google.com>
5823 * c-common.c (parse_optimize_options): Do not capitalize warning
5824 messages. Remove period at end of warning message.
5826 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5828 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5829 (handle_alias_attribute): ... here.
5830 (handle_ifunc_attribute): New.
5832 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5834 * c-common.h (do_warn_double_promotion): Declare.
5835 * c-common.c (do_warn_double_promotion): Define.
5837 2010-09-05 Mark Mitchell <mark@codesourcery.com>
5839 * c.opt (Wdouble-promotion): New.
5841 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5843 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5844 fvtable-thunks, fxref): Mark no longer supported in help text.
5846 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5848 * c.opt (Wimport, fall-virtual, falt-external-templates,
5849 fdefault-inline, fenum-int-equiv, fexternal-templates,
5850 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5851 fname-mangling-version-, fnew-abi, fnonnull-objects,
5852 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5853 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5855 (fhandle-exceptions): Mark with Alias and Warn.
5856 * c-opts.c (c_common_handle_option): Don't handle options marked
5859 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5861 * c.opt (Wcomments, Werror-implicit-function-declaration,
5862 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5863 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5865 * c-common.c (option_codes): Use OPT_Wcomment instead of
5867 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5868 Don't handle options marked as aliases.
5870 2010-08-25 Richard Guenther <rguenther@suse.de>
5872 * c-common.c (c_common_get_alias_set): Remove special
5873 handling for pointers.
5875 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5877 * c-common.c: Use FOR_EACH_VEC_ELT.
5878 * c-gimplify.c: Likewise.
5879 * c-pragma.c: Likewise.
5881 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5883 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5885 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5887 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5888 instead of OPT_MDX and OPT_MMDX.
5890 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5892 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5894 2010-08-12 Joseph Myers <joseph@codesourcery.com>
5896 * c.opt (MD, MMD): Change to MDX and MMDX.
5897 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5899 2010-08-11 Joseph Myers <joseph@codesourcery.com>
5901 * c-opts.c (c_common_handle_option): Call handle_generated_option
5902 instead of handle_option.
5904 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5906 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5907 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5909 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5911 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5912 (pending_redefine_extname): Change type to a VEC.
5913 (add_to_renaming_pragma_list): Update for new type of
5914 pending_redefine_extname.
5915 (maybe_apply_renaming_pragma): Likewise.
5917 2010-08-04 Arnaud Charlet <charlet@adacore.com>
5919 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5921 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5922 decide whether a type has already been declared/seen.
5923 Do not go to the original type.
5924 (dump_nested_types): New parameter forward.
5925 Generate forward declaration if needed and mark type as visited.
5926 (print_ada_declaration): Call dump_nested_types if not already done.
5927 Mark types as visited.
5929 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5931 * c.opt (-print-pch-checksum): Remove option.
5932 * c-opts.c (c_common_handle_option): Don't handle
5933 OPT_print_pch_checksum.
5935 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5937 * c-common.h (c_common_handle_option): Update prototype and return
5939 * c-opts.c (c_common_handle_option): Update prototype and return
5940 value type. Update calls to handle_option and
5941 enable_warning_as_error.
5943 2010-07-27 Jakub Jelinek <jakub@redhat.com>
5946 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5948 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5950 * c-common.h (c_common_missing_argument): Remove.
5951 * c-opts.c (c_common_missing_argument): Remove.
5952 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5953 idirafter, imacros, include, isysroot, isystem, iquote): Add
5955 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5957 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5959 * c-common.h (c_common_option_lang_mask,
5960 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5962 (c_common_init_options): Update prototype.
5963 * c-opts.c (c_common_option_lang_mask): New.
5964 (c_common_initialize_diagnostics): Split out of
5965 c_common_init_options.
5966 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5968 (c_common_init_options): Update prototype. Use decoded options in
5969 search for -lang-asm.
5971 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5973 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5974 * c-format.c: Likewise.
5976 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5978 * c-common.h: Include diagnostic-core.h. Error if already
5980 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5982 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5984 * c-common.c (IN_GCC_FRONTEND): Do not undef.
5985 Do not include expr.h
5986 (vector_mode_valid_p): Move here.
5988 2010-06-21 DJ Delorie <dj@redhat.com>
5990 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5991 allow these pragmas anywhere.
5993 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5996 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5997 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5998 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5999 ggc_strdup instead of xstrdup.
6001 2010-06-10 Jakub Jelinek <jakub@redhat.com>
6003 * c-cppbuiltin.c: Include cpp-id-data.h.
6004 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
6005 (lazy_hex_fp_value): New function.
6006 (builtin_define_with_hex_fp_value): Provide definitions lazily.
6008 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
6010 * c-gimplify.c: Do not include tree-flow.h
6012 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
6015 * c-common.c: Rename targetm member:
6016 targetm.enum_va_list -> targetm.enum_va_list_p
6018 2010-06-28 Anatoly Sokolov <aesok@post.ru>
6020 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
6022 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
6024 * c-cppbuiltin.c: Do not include except.h.
6026 2010-06-24 Andi Kleen <ak@linux.intel.com>
6028 * c-common.c (warn_for_omitted_condop): New.
6029 * c-common.h (warn_for_omitted_condop): Add prototype.
6031 2010-06-21 Joseph Myers <joseph@codesourcery.com>
6033 * c.opt (lang-objc): Remove.
6034 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
6036 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
6038 * c-opts.c: Include "tm_p.h".
6040 2010-06-20 Joseph Myers <joseph@codesourcery.com>
6042 * c-common.c (parse_optimize_options): Update call to
6045 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
6047 * c-common.c (record_types_used_by_current_var_decl): Adjust for
6048 new type of types_used_by_cur_var_decl.
6050 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
6053 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
6054 for C++ standard compliance.
6056 2010-06-16 Jason Merrill <jason@redhat.com>
6058 * c.opt: Add -Wnoexcept.
6060 2010-06-16 Richard Guenther <rguenther@suse.de>
6063 * c-common.c (c_common_truthvalue_conversion): Remove
6064 premature and wrong optimization concering ADDR_EXPRs.
6066 2010-06-15 Arnaud Charlet <charlet@adacore.com>
6068 * c-ada-spec.c (dump_sloc): Remove column info.
6069 (is_simple_enum): New function.
6070 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
6071 enum types when relevant.
6073 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
6075 * c-common.c (conversion_warning): Warn at expression
6078 2010-06-10 Joseph Myers <joseph@codesourcery.com>
6080 * c-opts.c (c_common_handle_option): Don't handle
6083 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6085 * c-pragma.c (push_alignment): Use typed GC allocation.
6086 (handle_pragma_push_options): Likewise.
6088 * c-common.c (parse_optimize_options): Likewise.
6090 * c-common.h (struct sorted_fields_type): Add variable_size GTY
6093 2010-06-07 Joseph Myers <joseph@codesourcery.com>
6095 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
6096 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6097 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6098 flag_signed_bitfields, warn_strict_null_sentinel,
6099 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
6100 flag_gen_declaration, flag_no_gnu_keywords,
6101 flag_implement_inlines, flag_implicit_templates,
6102 flag_implicit_inline_templates, flag_optional_diags,
6103 flag_elide_constructors, flag_default_inline, flag_rtti,
6104 flag_conserve_space, flag_access_control, flag_check_new,
6105 flag_new_for_scope, flag_weak, flag_working_directory,
6106 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
6107 flag_enforce_eh_specs, flag_threadsafe_statics,
6108 flag_pretty_templates): Remove.
6109 * c-common.h (flag_preprocess_only, flag_nil_receivers,
6110 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
6111 flag_replace_objc_classes, flag_undef, flag_no_builtin,
6112 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
6113 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
6114 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
6115 flag_no_gnu_keywords, flag_implement_inlines,
6116 flag_implicit_templates, flag_implicit_inline_templates,
6117 flag_optional_diags, flag_elide_constructors, flag_default_inline,
6118 flag_rtti, flag_conserve_space, flag_access_control,
6119 flag_check_new, flag_new_for_scope, flag_weak,
6120 flag_working_directory, flag_use_cxa_atexit,
6121 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
6122 flag_threadsafe_statics, flag_pretty_templates,
6123 warn_strict_null_sentinel): Remove.
6124 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
6125 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
6126 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
6127 fimplicit-inline-templates, fimplicit-templates,
6128 flax-vector-conversions, fms-extensions, fnil-receivers,
6129 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
6130 frtti, fshort-double, fshort-enums, fshort-wchar,
6131 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
6132 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
6133 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
6134 gen-decls, undef): Use Var.
6135 (fdefault-inline, foptional-diags): Document as doing nothing.
6136 * c-opts.c (c_common_handle_option): Remove cases for options now
6137 using Var. Mark ignored options as such.
6139 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
6141 * c-common.c: Moved to here from parent directory.
6142 * c-common.def: Likewise.
6143 * c-common.h: Likewise.
6144 * c-cppbuiltin.c: Likewise.
6145 * c-dump.c: Likewise.
6146 * c-format.c: Likewise.
6147 * c-format.h : Likewise.
6148 * c-gimplify.c: Likewise.
6149 * c-lex.c: Likewise.
6150 * c-omp.c: Likewise.
6152 * c-opts.c: Likewise.
6153 * c-pch.c: Likewise.
6154 * c-ppoutput.c: Likewise.
6155 * c-pragma.c: Likewise.
6156 * c-pragma.h: Likewise.
6157 * c-pretty-print.c: Likewise.
6158 * c-pretty-print.h: Likewise.
6159 * c-semantics.c: Likewise.
6160 * stub-objc.c: Likewise.
6162 * c-common.c: Include gt-c-family-c-common.h.
6163 * c-pragma.c: Include gt-c-family-c-pragma.h.
6165 Copyright (C) 2010-2016 Free Software Foundation, Inc.
6167 Copying and distribution of this file, with or without modification,
6168 are permitted in any medium without royalty provided the copyright
6169 notice and this notice are preserved.