1 2015-11-11 Marek Polacek <polacek@redhat.com>
5 * c-common.c (valid_array_size_p): New function.
6 * c-common.h (valid_array_size_p): Declare.
8 2015-11-11 Dominique d'Humieres <dominiq@lps.ens.fr>
11 * c-pragma.c (c_register_pragma_1): Update the gcc_assert to 256.
13 2015-11-11 Andrew MacLeod <amacleod@redhat.com>
15 * array-notation-common.c: Remove unused header files.
16 * c-ada-spec.c: Likewise.
17 * c-cilkplus.c: Likewise.
18 * c-common.c: Likewise.
19 * c-cppbuiltin.c: Likewise.
21 * c-format.c: Likewise.
22 * c-gimplify.c: Likewise.
23 * c-indentation.c: Likewise.
28 * c-ppoutput.c: Likewise.
29 * c-pragma.c: Likewise.
30 * c-pretty-print.c: Likewise.
31 * c-semantics.c: Likewise.
32 * c-ubsan.c: Likewise.
34 * stub-objc.c: Likewise.
36 2015-11-09 Thomas Schwinge <thomas@codesourcery.com>
37 Cesar Philippidis <cesar@codesourcery.com>
38 James Norris <jnorris@codesourcery.com>
39 Julian Brown <julian@codesourcery.com>
40 Nathan Sidwell <nathan@codesourcery.com>
42 * c-pragma.c (oacc_pragmas): Add "routine".
43 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ROUTINE.
45 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
47 * c-common.c (c_common_attributes): Add scalar_storage_order.
48 (handle_scalar_storage_order_attribute): New function.
49 * c-pragma.c (global_sso): New variable.
50 (maybe_apply_pragma_scalar_storage_order): New function.
51 (handle_pragma_scalar_storage_order): Likewise.
52 (init_pragma): Register scalar_storage_order.
53 * c-pragma.h (maybe_apply_pragma_scalar_storage_order): Declare.
54 * c.opt (Wscalar-storage-order): New warning.
55 (fsso-struct=): New option.
57 2015-11-08 Martin Sebor <msebor@redhat.com>
59 * c.opt (Wplacement-new): Add a period to the end of a sentence.
61 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
63 * c-common.c: Don't undef DEF_BUILTIN.
65 2015-11-06 David Malcolm <dmalcolm@redhat.com>
67 * c-common.c (c_cpp_error): Convert parameter from location_t to
68 rich_location *. Eliminate the "column_override" parameter and
69 the call to diagnostic_override_column.
70 Update the "done_lexing" clause to set range 0
71 on the rich_location, rather than overwriting a location_t.
72 * c-common.h (c_cpp_error): Convert parameter from location_t to
73 rich_location *. Eliminate the "column_override" parameter.
75 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
76 Thomas Schwinge <thomas@codesourcery.com>
77 James Norris <jnorris@codesourcery.com>
79 * c-omp.c (c_oacc_split_loop_clauses): Make TILE, GANG, WORKER, VECTOR,
80 AUTO, SEQ, INDEPENDENT and PRIVATE loop clauses. Associate REDUCTION
81 clauses with parallel and kernels and loops.
82 * c-pragma.h (enum pragma_omp_clause): Add entries for
83 PRAGMA_OACC_CLAUSE_{INDEPENDENT,TILE,DEFAULT}.
84 * pt.c (tsubst_omp_clauses): Add support for OMP_CLAUSE_{NUM_GANGS,
85 NUM_WORKERS,VECTOR_LENGTH,GANG,WORKER,VECTOR,ASYNC,WAIT,TILE,AUTO,
87 (tsubst_expr): Add support for OMP_CLAUSE_{KERNELS,PARALLEL,LOOP}.
89 2015-11-05 Martin Sebor <msebor@redhat.com>
92 * c.opt (-Wplacement-new): New option.
94 2015-11-05 Jakub Jelinek <jakub@redhat.com>
96 * c-common.h (c_finish_omp_atomic): Add TEST argument.
97 (c_omp_check_loop_iv, c_omp_check_loop_iv_exprs): New prototypes.
98 * c-omp.c (c_finish_omp_atomic): Add TEST argument. Don't call
99 save_expr or create_tmp_var* if TEST is true.
100 (c_finish_omp_for): Store OMP_FOR_ORIG_DECLS always.
101 Don't call add_stmt here.
102 (struct c_omp_check_loop_iv_data): New type.
103 (c_omp_check_loop_iv_r, c_omp_check_loop_iv,
104 c_omp_check_loop_iv_exprs): New functions.
105 (c_omp_split_clauses): Adjust for lastprivate being allowed on
107 (c_omp_declare_simd_clauses_to_numbers): Change
108 OMP_CLAUSE_LINEAR_VARIABLE_STRIDE OMP_CLAUSE_LINEAR_STEP into numbers.
109 (c_omp_declare_simd_clauses_to_decls): Similarly change those
110 from numbers to PARM_DECLs.
112 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
114 * c-omp.c (c_omp_split_clauses): Remove conditional compilation. Use
117 2015-11-03 Bernd Schmidt <bschmidt@redhat.com>
120 * c-family/c-common.h (fold_offsetof_1): Add argument.
121 * c-family/c-common.c (fold_offsetof_1): Diagnose more invalid
122 offsetof expressions that reference elements past the end of
125 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
126 Chung-Lin Tang <cltang@codesourcery.com>
128 * c-pragma.c (oacc_pragmas): Add "atomic".
129 * c-pragma.h (pragma_kind): Add PRAGMA_OACC_ATOMIC.
131 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
133 * c-common.c (handle_target_clones_attribute): New.
134 (c_common_attribute_table): Add handle_target_clones_attribute.
135 (handle_always_inline_attribute): Add check on target_clones attribute.
136 (handle_target_attribute): Ditto.
138 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
140 * array-notation-common.c: Reorder #include's and remove duplicates.
141 * c-ada-spec.c: Likewise.
142 * c-cilkplus.c: Likewise.
143 * c-common.c: Likewise.
144 * c-cppbuiltin.c: Likewise.
145 * c-dump.c: Likewise.
146 * c-format.c: Likewise.
147 * c-gimplify.c: Likewise.
148 * c-indentation.c: Likewise.
151 * c-opts.c: Likewise.
153 * c-ppoutput.c: Likewise.
154 * c-pragma.c: Likewise.
155 * c-pretty-print.c: Likewise.
156 * c-semantics.c: Likewise.
157 * c-ubsan.c: Likewise.
159 * stub-objc.c: Likewise.
161 2015-10-28 Jason Merrill <jason@redhat.com>
163 * c-common.c (pointer_int_sum): Fold the MULT_EXPR.
165 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
166 James Norris <jnorris@codesourcery.com>
167 Cesar Philippidis <cesar@codesourcery.com>
171 * c-common.h (c_oacc_split_loop_clauses): Declare function.
172 * c-omp.c (c_oacc_split_loop_clauses): New function.
174 2015-10-21 Martin Sebor <msebor@redhat.com>
177 * c.opt: End each sentence that describes an option with a period.
179 2015-10-20 Marek Polacek <polacek@redhat.com>
181 * array-notation-common.c (is_cilkplus_vector_p): Define.
182 * c-common.h (is_cilkplus_vector_p): Declare.
184 2015-10-20 Marek Polacek <polacek@redhat.com>
186 * c.opt (std=gnu++11): Do not describe as experimental.
187 (std=gnu++14): Likewise.
189 2015-10-19 Jason Merrill <jason@redhat.com>
191 * c-cppbuiltin.c (c_cpp_builtins): Define
192 __cpp_nontype_template_args.
194 2015-10-19 Jason Merrill <jason@redhat.com>
196 * c-cppbuiltin.c (c_cpp_builtins): Define
197 __cpp_enumerator_attributes, __cpp_fold_expressions,
198 __cpp_unicode_characters.
200 2015-10-13 Jakub Jelinek <jakub@redhat.com>
201 Aldy Hernandez <aldyh@redhat.com>
203 * c-common.c (enum c_builtin_type): Define DEF_FUNCTION_TYPE_9,
204 DEF_FUNCTION_TYPE_10 and DEF_FUNCTION_TYPE_11.
205 (c_define_builtins): Likewise.
206 * c-common.h (enum c_omp_clause_split): Add
207 C_OMP_CLAUSE_SPLIT_TASKLOOP.
208 (c_finish_omp_critical, c_finish_omp_ordered): Add CLAUSES argument.
209 (c_finish_omp_for): Add ORIG_DECLV argument.
210 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP as
211 201511 instead of 201307.
212 * c-omp.c (c_finish_omp_critical): Add CLAUSES argument, set
213 OMP_CRITICAL_CLAUSES to it.
214 (c_finish_omp_ordered): Add CLAUSES argument, set
215 OMP_ORDERED_CLAUSES to it.
216 (c_finish_omp_for): Add ORIG_DECLV argument, set OMP_FOR_ORIG_DECLS
217 to it if OMP_FOR. Clear DECL_INITIAL on the IVs.
218 (c_omp_split_clauses): Handle OpenMP 4.5 combined/composite
219 constructs and new OpenMP 4.5 clauses. Clear
220 OMP_CLAUSE_SCHEDULE_SIMD if not combined with OMP_SIMD. Add
222 * c-pragma.c (omp_pragmas_simd): Add taskloop.
223 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKLOOP.
224 (enum pragma_omp_clause): Add
225 PRAGMA_OMP_CLAUSE_{DEFAULTMAP,GRAINSIZE,HINT,{IS,USE}_DEVICE_PTR}
226 and PRAGMA_OMP_CLAUSE_{LINK,NOGROUP,NUM_TASKS,PRIORITY,SIMD,THREADS}.
228 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
230 * c-lex.c (interpret_float): Use real_equal instead of
233 2015-10-04 Jason Merrill <jason@redhat.com>
235 Implement N4514, C++ Extensions for Transactional Memory.
236 * c-common.c (c_common_reswords): Add C++ TM TS keywords.
237 (c_common_attribute_table): Add transaction_safe_dynamic.
238 transaction_safe now affects type identity.
239 (handle_tm_attribute): Handle transaction_safe_dynamic.
240 * c-common.h (enum rid): Add RID_ATOMIC_NOEXCEPT,
241 RID_ATOMIC_CANCEL, RID_SYNCHRONIZED.
242 (OBJC_IS_CXX_KEYWORD): Add RID_SYNCHRONIZED.
244 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_transactional_memory.
245 * c-pretty-print.c (pp_c_attributes_display): Don't print
246 transaction_safe in C++.
248 2015-10-02 Marek Polacek <polacek@redhat.com>
250 * c.opt (Wduplicated-cond): Don't enable by -Wall anymore.
252 2015-10-02 Marek Polacek <polacek@redhat.com>
255 * c-common.c (warn_duplicated_cond_add_or_warn): New function.
256 * c-common.h (warn_duplicated_cond_add_or_warn): Declare.
257 * c.opt (Wduplicated-cond): New option.
259 2015-10-01 Joseph Myers <joseph@codesourcery.com>
261 * c.opt (std=c11): Do not describe as experimental.
262 (std=gnu11): Likewise.
263 (std=iso9899:2011): Likewise.
265 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
267 * c-common.c (DEF_FUNCTION_TYPE_VAR_6): New.
268 (DEF_FUNCTION_TYPE_VAR_11): Delete.
270 2015-09-25 Marek Polacek <polacek@redhat.com>
272 * c-ubsan.c (ubsan_instrument_division): Remove unnecessary code.
273 (ubsan_instrument_shift): Likewise.
275 2015-09-25 Marek Polacek <polacek@redhat.com>
278 * c-ubsan.c (ubsan_instrument_division): Also pre-evaluate OP1.
280 2015-09-24 Patrick Palka <ppalka@gcc.gnu.org>
282 * c-indentation.c (should_warn_for_misleading_indentation):
283 Compare next_stmt_vis_column with guard_line_first_nws instead
284 of with guard_line_vis_column.
286 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
290 * c-pragma.c (handle_pragma_diagnostic): Detect non-warning
291 options and options not valid for the current language.
293 2015-09-22 Patrick Palka <ppalka@gcc.gnu.org>
295 * c-indentation.c (should_warn_for_misleading_indentation):
296 Float out and consolidate the calls to get_visual_column that
297 are passed guard_exploc as an argument. Compare
298 next_stmt_vis_column with guard_line_first_nws instead of with
301 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
303 * c.opt (Wmultiple-inheritance, Wvirtual-inheritance, Wtemplates,
304 Wnamespaces): New C++ warnings.
306 2015-09-22 Jason Merrill <jason@redhat.com>
308 * c-common.h (abi_compat_version_crosses): New.
309 (warn_abi_version): Declare.
310 * c-common.c: Define it.
311 * c-opts.c (c_common_post_options): Handle it.
312 flag_abi_compat_version defaults to 8.
314 2015-09-21 Ville Voutilainen <ville.voutilainen@gmail.com>
316 Complete the implementation of N4230, Nested namespace definition.
317 * c-cppbuiltin.c: Add __cpp_namespace_attributes and
318 __cpp_nested_namespace_definitions.
320 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
322 * c-pragma.c (handle_pragma_diagnostic): Fix wrong return.
324 2015-09-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
326 * c-pragma.c (handle_pragma_diagnostic): Use explicit location
328 * c-pragma.h (pragma_lex): Add optional loc argument.
330 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
332 * c-format.c (check_format_arg): Adjust to use common block size in all
335 2015-09-15 David Malcolm <dmalcolm@redhat.com>
337 * c-format.c (location_from_offset): Update for change in
338 signature of location_get_source_line.
339 * c-indentation.c (get_visual_column): Likewise.
340 (line_contains_hash_if): Likewise.
342 2015-09-14 Marek Polacek <polacek@redhat.com>
344 * c-opts.c (c_common_post_options): Set C++ standard earlier, before
345 setting various warnings.
347 2015-09-14 Marek Polacek <polacek@redhat.com>
349 * c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
352 2015-09-11 Mark Wielaard <mjw@redhat.com>
355 * c.opt (Wunused-variable): Option from common.opt.
356 (Wunused-const-variable): New option.
358 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
361 * c.opt ([Wsubobject-linkage]): Add.
363 2015-09-03 Martin Sebor <msebor@redhat.com>
366 * c-common.h (c_decl_implicit, reject_gcc_builtin): Declare new
368 * c-common.c (reject_gcc_builtin): Define.
370 2015-09-02 Balaji V. Iyer <balaji.v.iyer@intel.com>
373 * c-common.h (cilk_gimplify_call_params_in_spawned_fn): New
375 * c-gimplify.c (c_gimplify_expr): Added a call to the function
376 cilk_gimplify_call_params_in_spawned_fn.
377 * cilk.c (cilk_gimplify_call_params_in_spawned_fn): New function.
378 (gimplify_cilk_spawn): Removed EXPR_STMT and CLEANUP_POINT_EXPR
381 2015-08-25 Marek Polacek <polacek@redhat.com>
384 * c-common.c (handle_weak_attribute): Don't check whether the
385 visibility can be changed here.
387 2015-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
389 * c-lex.c (c_lex_with_flags): Use explicit locations.
391 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
393 * c-ada-spec.h, c-common.c, c-common.h, c-format.c, c-format.h,
394 c-objc.h, c-ppoutput.c, c-pragma.c, c-pragma.h: Remove useless
396 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
399 * c-common.c (check_builtin_function_arguments): Add check
400 for BUILT_IN_SIGNBIT argument.
402 2015-08-18 Paolo Carlini <paolo.carlini@oracle.com>
405 * c-cppbuiltin.c (c_cpp_builtins): Fix __cpp_static_assert value
408 2015-08-17 Marek Polacek <polacek@redhat.com>
410 * c-pretty-print.c (pp_c_cv_qualifiers): Remove code dealing
411 with whitespaces before qualifier names.
413 2015-08-12 Marek Polacek <polacek@redhat.com>
416 * c-common.c (maybe_warn_shift_overflow): Properly handle
417 left-shifting 1 into the sign bit.
419 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
421 * c.opt (Wchkp): Use LangEnabledBy instead of EnabledBy.
423 2015-08-06 Andrew Sutton <andrew.n.sutton@gmail.com>
424 Braden Obrzut <admin@maniacsvault.net>
425 Jason Merrill <jason@redhat.com>
427 Add C++ Concepts TS support.
428 * c-common.c (c_common_reswords): Add __is_same_as, concept, requires.
429 * c-common.h (enum rid): Add RID_IS_SAME_AS, RID_CONCEPT, RID_REQUIRES.
430 (D_CXX_CONCEPTS, D_CXX_CONCEPTS_FLAGS): New.
431 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_concepts.
432 * c-opts.c (set_std_cxx1z): Set flag_concepts.
433 * c.opt (fconcepts): New.
435 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
437 * c-indentation.c (should_warn_for_misleading_indentation):
440 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
442 * c-indentation.c (get_visual_column): Add parameter first_nws,
443 use it. Update comment documenting the function.
444 (is_first_nonwhitespace_on_line): Remove.
445 (should_warn_for_misleading_indentation): Replace usage of
446 of is_first_nonwhitespace_on_line with get_visual_column.
448 2015-08-02 Patrick Palka <ppalka@gcc.gnu.org>
450 * c-indentation.h (struct token_indent_info): Define.
451 (get_token_indent_info): Define.
452 (warn_for_misleading_information): Declare.
453 * c-common.h (warn_for_misleading_information): Remove.
454 * c-identation.c (warn_for_misleading_indentation):
455 Change declaration to take three token_indent_infos. Adjust
457 * c-identation.c (should_warn_for_misleading_indentation):
458 Likewise. Bail out early if the body is a compound statement.
459 (guard_tinfo_to_string): Define.
461 2015-07-30 Jason Merrill <jason@redhat.com>
463 * c-pretty-print.c (unary_expression) [INDIRECT_REF]: Don't print
464 '*' for reference decay.
466 2015-07-30 Marek Polacek <polacek@redhat.com>
468 * c-common.c (warn_tautological_cmp): Bail for float types.
470 2015-07-27 Marek Polacek <polacek@redhat.com>
473 * c-common.c (warn_tautological_cmp): Don't warn for macro expansion.
475 2015-07-27 Marek Polacek <polacek@redhat.com>
479 * c-common.c (find_array_ref_with_const_idx_r): New function.
480 (warn_tautological_cmp): New function.
481 * c-common.h (warn_tautological_cmp): Declare.
482 * c.opt (Wtautological-compare): New option.
484 2015-07-23 Marek Polacek <polacek@redhat.com>
486 * c-ubsan.c (ubsan_instrument_division): Use unshare_expr throughout.
487 (ubsan_instrument_shift): Likewise.
489 2015-07-23 Marek Polacek <polacek@redhat.com>
492 * c-ubsan.c: Include gimplify.h.
493 (ubsan_instrument_division): Unshare OP0 and OP1.
494 (ubsan_instrument_shift): Likewise.
496 2015-07-20 Marek Polacek <polacek@redhat.com>
497 Richard Sandiford <richard.sandiford@arm.com>
500 * c-common.c (c_fully_fold_internal): Warn about left shift overflows.
502 (maybe_warn_shift_overflow): New function.
503 * c-common.h (maybe_warn_shift_overflow): Declare.
504 * c-opts.c (c_common_post_options): Set warn_shift_overflow.
505 * c.opt (Wshift-overflow): New option.
507 2015-07-16 Martin Liska <mliska@suse.cz>
509 * c-format.c (static void check_format_info_main): Use
510 object_allocator instead of pool_allocator.
511 (check_format_arg): Likewise.
512 (check_format_info_main): Likewise.
514 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
516 * c-opts.c: Remove multiline #include comment.
518 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
520 * c-common.c: Fix double word typos.
522 2015-07-10 Eric Botcazou <ebotcazou@adacore.com>
524 * c-ada-spec.h (cpp_operation): Revert latest change.
525 * c-ada-spec.c (print_ada_declaration): Likewise. Skip implicit
526 constructors and destructors.
528 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
530 * c-common.h: Adjust includes for flags.h changes.
531 * stub-objc.c: Likewise.
533 2015-07-08 Eric Botcazou <ebotcazou@adacore.com>
535 * c-ada-spec.h (cpp_operation): Add IS_CONSTEXPR.
536 * c-ada-spec.c (print_ada_declaration): Skip constexpr constructors.
538 2015-07-08 Jakub Jelinek <jakub@redhat.com>
540 * c-omp.c (c_omp_declare_simd_clauses_to_numbers): If all clauses
541 are to be removed, return NULL rather than original clauses list.
543 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
545 * array-notation-common.c: Adjust includes.
546 * c-ada-spec.c: Likewise.
547 * c-cilkplus.c: Likewise.
548 * c-common.h: Likewise.
549 * c-cppbuiltin.c: Likewise.
550 * c-dump.c: Likewise.
551 * c-format.c: Likewise.
552 * c-gimplify.c: Likewise.
553 * c-indentation.c: Likewise.
556 * c-opts.c: Likewise.
558 * c-ppoutput.c: Likewise.
559 * c-pragma.c: Likewise.
560 * c-pretty-print.c: Likewise.
561 * c-semantics.c: Likewise.
562 * c-ubsan.c: Likewise.
564 * stub-objc.c: Likewise.
566 2015-07-07 Eric Botcazou <ebotcazou@adacore.com>
568 * c-ada-spec.h (cpp_operation): Add IS_MOVE_CONSTRUCTOR.
569 * c-ada-spec.c (print_ada_declaration): Skip move constructors.
571 2015-07-01 Jason Merrill <jason@redhat.com>
573 * c-common.h (D_CXX11): Rename from D_CXX0X.
574 (RID_FIRST_CXX11, RID_LAST_CXX11): Rename from *_CXX0X.
575 * c-common.c: Adjust.
577 * c-opts.c (c_common_post_options): Default to C++14.
579 * c-opts.c (c_common_post_options): Highest ABI level is now 10.
581 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net>
583 Implement N4197 - Adding u8 character literals
584 * c-family/c-ada-spec.c (print_ada_macros): Treat CPP_UTF8CHAR like
586 * c-family/c-common.c (c_parse_error): Print CPP_UTF8CHAR and
587 CPP_UTF8CHAR_USERDEF tokens.
588 * c-family/c-lex.c (c_lex_with_flags): Treat CPP_UTF8CHAR_USERDEF
589 and CPP_UTF8CHAR tokens.
590 (lex_charconst): Treat CPP_UTF8CHAR token.
592 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
595 * c-common.c (do_warn_unused_parameter): Move here.
596 * c-common.h (do_warn_unused_parameter): Declare.
598 2015-06-29 Marek Polacek <polacek@redhat.com>
601 * c-common.c (check_case_bounds): Add bool * parameter. Set
603 (c_add_case_label): Add bool * parameter. Pass it down to
605 (c_do_switch_warnings): Add bool parameters. Implement -Wswitch-bool
607 * c-common.h (c_add_case_label, c_do_switch_warnings): Update
610 2015-06-27 Marek Polacek <polacek@redhat.com>
612 * c-common.c (check_main_parameter_types): Use VECTOR_TYPE_P
613 or VECTOR_INTEGER_TYPE_P throughout.
614 * c-gimplify.c: Likewise.
616 2015-06-26 Marek Polacek <polacek@redhat.com>
618 * array-notation-common.c (find_rank): Use INDIRECT_REF_P.
619 * c-common.c (c_fully_fold_internal): Likewise.
620 (c_alignof_expr): Likewise.
621 * c-pretty-print.c (c_pretty_printer::postfix_expression): Likewise.
622 * c-ubsan.c (ubsan_instrument_bounds): Likewise.
623 * cilk.c (create_parm_list): Likewise.
625 2015-06-26 Marek Polacek <polacek@redhat.com>
627 * c-common.c (handle_unused_attribute): Use VAR_OR_FUNCTION_DECL_P.
629 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
631 * c-common.c: Remove ipa-ref.h and plugin-api.h from include list.
632 * c-gimplify.c: Likewise.
633 * c-pragma.c: Likewise.
634 * c-ubsan.c: Likewise.
637 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
639 * c-common.c (c_type_hasher): Inherit from ggc_ptr_hash rather than
642 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
644 * cilk.c: Move calls.h after tm.h in the include chain.
646 2015-06-25 Marek Polacek <polacek@redhat.com>
648 * array-notation-common.c: Use VAR_P throughout.
649 * c-ada-spec.c: Likewise.
650 * c-common.c: Likewise.
651 * c-format.c: Likewise.
652 * c-gimplify.c: Likewise.
654 * c-pragma.c: Likewise.
655 * c-pretty-print.c: Likewise.
658 2015-06-25 Marek Polacek <polacek@redhat.com>
660 * cilk.c (extract_free_variables): Use is_global_var.
662 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
664 * c-common.c: Don't include target-def.h.
666 2015-06-23 Marek Polacek <polacek@redhat.com>
668 * c-common.c (warn_logical_operator): Use tree_int_cst_equal
669 when comparing INTEGER_CSTs.
671 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
673 * c-ada-spec.h (cpp_operation): Add HAS_DEPENDENT_TEMPLATE_ARGS.
674 * c-ada-spec.c (collect_ada_nodes): Skip NAMESPACE_DECL
675 (dump_ada_template): Skip partially specialized types.
677 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
679 * c-common.c (scalar_to_vector): Use std::swap instead of manually
682 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
684 * array-notation-common.c: Do not include input.h, line-map.h or is-a.h.
685 * c-ada-spec.c: Likewise.
686 * c-cilkplus.c: Likewise.
687 * c-common.c: Likewise.
688 * c-common.h: Likewise.
689 * c-cppbuiltin.c: Likewise.
690 * c-dump.c: Likewise.
691 * c-format.c: Likewise.
692 * c-gimplify.c: Likewise.
693 * c-indentation.c: Likewise.
696 * c-opts.c: Likewise.
698 * c-ppoutput.c: Likewise.
699 * c-pragma.c: Likewise.
700 * c-pretty-print.c: Likewise.
701 * c-semantics.c: Likewise.
702 * c-ubsan.c: Likewise.
704 * stub-objc.c: Likewise.
706 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
709 * c-common.c (c_common_truthvalue_conversion): Warn when
710 converting an address of a reference to a truth value.
712 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
714 * array-notation-common.c : Adjust include files.
715 * c-ada-spec.c : Likewise.
716 * c-cilkplus.c : Likewise.
717 * c-common.c : Likewise.
718 * c-common.h : Likewise.
719 * c-cppbuiltin.c : Likewise.
720 * c-dump.c : Likewise.
721 * c-format.c : Likewise.
722 * c-gimplify.c : Likewise.
723 * c-indentation.c : Likewise.
724 * c-lex.c : Likewise.
725 * c-omp.c : Likewise.
726 * c-opts.c : Likewise.
727 * c-pch.c : Likewise.
728 * c-ppoutput.c : Likewise.
729 * c-pragma.c : Likewise.
730 * c-pretty-print.c : Likewise.
731 * c-semantics.c : Likewise.
732 * c-ubsan.c : Likewise.
734 * stub-objc.c : Likewise.
736 2015-06-08 Marek Polacek <polacek@redhat.com>
739 * c-format.c (location_from_offset): Return LOC if LINE is null.
741 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
743 * c-common.h (c_parse_final_cleanups): New prototype.
744 * c-opts.c (c_common_parse_file): Call c_parse_final_cleanups.
746 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
748 * array-notation-common.c: Adjust includes for restructured coretypes.h.
749 * c-ada-spec.c: Likewise.
750 * c-cilkplus.c: Likewise.
751 * c-common.c: Likewise.
752 * c-common.h: Likewise.
753 * c-cppbuiltin.c: Likewise.
754 * c-dump.c: Likewise.
755 * c-format.c: Likewise.
756 * c-gimplify.c: Likewise.
757 * c-indentation.c: Likewise.
760 * c-opts.c: Likewise.
762 * c-ppoutput.c: Likewise.
763 * c-pragma.c: Likewise.
764 * c-pretty-print.c: Likewise.
765 * c-semantics.c: Likewise.
766 * c-ubsan.c: Likewise.
768 * stub-objc.c: Likewise.
770 2015-06-02 David Malcolm <dmalcolm@redhat.com>
773 * c-indentation.c (should_warn_for_misleading_indentation): Use
774 expand_location rather than expand_location_to_spelling_point.
775 Don't warn if the guarding statement is more indented than the
778 2015-06-02 David Malcolm <dmalcolm@redhat.com>
780 * c-indentation.c (warn_for_misleading_indentation): Bail out
781 immediately if -Wmisleading-indentation isn't enabled.
783 2015-06-01 Martin Liska <mliska@suse.cz>
785 * c-format.c (check_format_arg):Use new type-based pool allocator.
786 (check_format_info_main) Likewise.
788 2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
790 * c-ada-spec.c (is_tagged_type): Test for TYPE_METHODS on main variant.
791 (has_nontrivial_methods): Likewise.
793 2015-05-25 Marek Polacek <polacek@redhat.com>
795 * c-ubsan.c (ubsan_instrument_shift): Use type0.
797 2015-05-22 Marek Polacek <polacek@redhat.com>
800 * c-common.c (handle_deprecated_attribute): Allow CONST_DECL.
802 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
804 * c-cppbuiltin.c (c_cpp_builtins): Use if instead of #if with
805 STACK_GROWS_DOWNWARD.
807 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
809 * c-cppbuiltin.c (c_cpp_builtins): Check the value of
810 STACK_GROWS_DOWNWARD rather than if it is defined.
812 2015-05-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
815 * c-format.c (location_column_from_byte_offset): New.
816 (location_from_offset): New.
817 (struct format_wanted_type): Add offset_loc field.
818 (check_format_info): Move handling of location for extra arguments
819 closer to the point of warning.
820 (check_format_info_main): Pass the result of location_from_offset
822 (format_type_warning): Pass the result of location_from_offset
825 2015-05-20 Marek Polacek <polacek@redhat.com>
827 * c-omp.c (check_omp_for_incr_expr): Use BINARY_CLASS_P.
829 2015-05-20 Marek Polacek <polacek@redhat.com>
831 * c-ada-spec.c (dump_sloc): Use DECL_P.
833 2015-05-20 Marek Polacek <polacek@redhat.com>
835 * c-pragma.c: Use VAR_OR_FUNCTION_DECL_P throughout.
836 * c-common.c: Likewise.
838 2015-05-19 David Malcolm <dmalcolm@redhat.com>
840 * c-common.h (fe_file_change): Strengthen param from
841 const line_map * to const line_map_ordinary *.
842 (pp_file_change): Likewise.
843 * c-lex.c (fe_file_change): Likewise.
844 (cb_define): Use linemap_check_ordinary when invoking
846 (cb_undef): Likewise.
847 * c-opts.c (c_finish_options): Use linemap_check_ordinary when
848 invoking cb_file_change.
849 (c_finish_options): Likewise.
850 (push_command_line_include): Likewise.
851 (cb_file_change): Strengthen param "new_map" from
852 const line_map * to const line_map_ordinary *.
853 * c-ppoutput.c (cb_define): Likewise for local "map".
854 (pp_file_change): Likewise for param "map" and local "from".
856 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
858 * c-common.c (shorten_compare): Use std::swap instead of explicit swaps.
860 2015-05-18 Tom de Vries <tom@codesourcery.com>
862 * c-common.c (build_va_arg_1): New function.
863 (build_va_arg): Add address operator to va_list operand if necessary.
865 2015-05-15 Mikhail Maltsev <maltsevm@gmail.com>
868 * c-common.c (int_safely_convertible_to_real_p): Define.
869 (unsafe_conversion_p): Check conversions involving complex types.
870 (conversion_warning): Add new warning message for conversions which
871 discard imaginary component.
872 * c-common.h: (enum conversion_safety): Add new enumerator for such
875 2015-05-14 Marek Polacek <polacek@redhat.com>
879 * c-common.c (c_fully_fold): Pass false down to c_fully_fold_internal.
880 (c_fully_fold_internal): Fold C_MAYBE_CONST_EXPRs with
881 C_MAYBE_CONST_EXPR_INT_OPERANDS set. Add FOR_INT_CONST argument and
882 use it. If FOR_INT_CONST, require that all evaluated operands be
885 2015-05-12 David Malcolm <dmalcolm@redhat.com>
887 * c-common.h (warn_for_misleading_indentation): New prototype.
888 * c-indentation.c: New file.
889 * c.opt (Wmisleading-indentation): New option.
891 2015-05-12 Tom de Vries <tom@codesourcery.com>
893 PR tree-optimization/66010
894 * c-common.c (build_va_arg): Don't mark ap addressable unless necessary.
896 2015-05-09 Jason Merrill <jason@redhat.com>
898 * c-opts.c (c_common_post_options): Also clear
899 cpp_opts->cpp_warn_cxx11_compat.
901 * c-common.h (enum cxx_dialect): Add cxx_unset.
902 * c-common.c (cxx_dialect): Initialize to cxx_unset.
903 * c-opts.c (c_common_post_options): Set C++ dialect to C++98 if unset.
905 * c.opt (std=c++14): Remove Undocumented flag and experimental warning.
906 (std=gnu++0x): Mark as Undocumented.
907 (std=gnu++1y): Add deprecated message.
909 2015-05-08 Jason Merrill <jason@redhat.com>
911 * c.opt (Wc++11-compat): Make primary. Rename var warn_cxx11_compat.
914 * c.opt (Wc++0x-compat): Also set cpp_warn_cxx11_compat.
916 2015-05-08 Marek Polacek <polacek@redhat.com>
919 * c.opt (Woverride-init-side-effects): New option.
921 2015-05-07 Marek Polacek <polacek@redhat.com>
924 * c-common.c (c_fully_fold_internal): Warn when left shifting a
926 * c.opt (Wshift-negative-value): New option.
927 * c-opts.c (c_common_post_options): Set warn_shift_negative_value
928 when -Wextra and C99/C++11 mode.
930 2015-05-07 Marek Polacek <polacek@redhat.com>
931 Martin Uecker <uecker@eecs.berkeley.edu>
933 * c-ubsan.c (ubsan_instrument_bounds): Don't skip instrumenting
934 flexible member array-like members if SANITIZE_BOUNDS_STRICT.
936 2015-05-05 Jason Merrill <jason@redhat.com>
938 * c.opt (Wterminate): New.
940 2015-04-30 Marek Polacek <polacek@redhat.com>
942 * c-common.c (maybe_warn_bool_compare): When comparing with 0/1,
943 require that the non-constant be of a boolean type.
945 2015-04-29 Josh Triplett <josh@joshtriplett.org>
947 * c-common.c (handle_section_attribute): Refactor to reduce
948 nesting and distinguish between error cases.
950 2015-04-29 Marek Polacek <polacek@redhat.com>
953 * c-common.c (maybe_warn_bool_compare): Warn when comparing a boolean
956 2015-04-29 Jakub Jelinek <jakub@redhat.com>
958 * c-common.h (omp_clause_mask): Unconditionally define as a class.
959 Use uint64_t instead of unsigned HOST_WIDE_INT and 64 instead of
960 HOST_BITS_PER_WIDE_INT.
962 2015-04-28 Tom de Vries <tom@codesourcery.com>
964 PR tree-optimization/65887
965 * c-common.c (build_va_arg): Mark va_arg ap argument as addressable.
967 2015-04-28 Eric Botcazou <ebotcazou@adacore.com>
968 Pierre-Marie de Rodat <derodat@adacore.com>
970 * c-ada-spec.c (in_function): Delete.
971 (dump_generic_ada_node): Do not change in_function and remove the
972 redundant code dealing with it.
973 (print_ada_declaration): Do not change in_function. Use INDENT_INCR.
974 (print_ada_methods): Output the static member functions in a nested
975 package after the regular methods as well as associated renamings.
977 2015-04-24 Marek Polacek <polacek@redhat.com>
980 * c-common.c (c_fully_fold_internal): Use OPT_Wshift_count_negative
981 and OPT_Wshift_count_overflow.
984 * c-common.c (warn_logical_operator): Warn if the operands have the
987 2015-04-24 Marek Polacek <polacek@redhat.com>
990 * c-common.c (warn_logical_operator): Bail if either operand comes
991 from a macro expansion.
993 2015-04-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
996 * c-common.c (c_default_pointer_mode): Add definition.
997 * c-common.h (c_default_pointer_mode): Add declaration.
999 2015-03-11 Jakub Jelinek <jakub@redhat.com>
1001 * c-common.c (c_common_nodes_and_builtins): Don't call xstrdup
1002 on record_builtin_type argument.
1004 2015-03-10 Jakub Jelinek <jakub@redhat.com>
1007 * c-common.c (warn_logical_not_parentheses): Don't warn for
1010 2015-03-07 Marek Polacek <polacek@redhat.com>
1013 * c-ubsan.c (ubsan_instrument_bounds): Check for COMPONENT_REF
1014 before trying to figure out whether we have a flexible array member.
1016 2015-03-06 Eric Botcazou <ebotcazou@adacore.com>
1017 Jonathan Wakely <jwakely.gcc@gmail.com>
1019 * c-ada-spec.c (dump_ada_double_name): Fix pasto.
1021 2015-03-05 Eric Botcazou <ebotcazou@adacore.com>
1024 * c-ada-spec.c (print_destructor): Remove obsolete code.
1026 2015-03-01 Eric Botcazou <ebotcazou@adacore.com>
1028 * c-ada-spec.c (is_tagged_type): Add guard for DECL_VINDEX.
1029 (dump_template_types): Adjust DECL_TEMPLATE_INSTANTIATIONS and
1030 DECL_TEMPLATE_RESULT emulations.
1031 (dump_ada_template)): Add guard for TYPE_METHODS.
1033 2015-02-27 Marek Polacek <polacek@redhat.com>
1036 * c.opt (Wformat-signedness): Don't enable by -Wformat=2.
1038 2015-02-27 Kai Tietz <ktietz@redhat.com>
1041 * c-pragma.c (handle_pragma_weak): Do not try to create
1042 weak/alias of declarations not being function, or variable
1045 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
1048 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1050 (DEF_FUNCTION_TYPE_VAR_7, DEF_FUNCTION_TYPE_VAR_11): New macros.
1052 2015-02-16 Marek Polacek <polacek@redhat.com>
1055 * c-format.c (check_format_types): Handle null param.
1057 2015-02-13 Marek Polacek <polacek@redhat.com>
1060 * c-format.c (check_format_types): Don't warn about different
1061 signedness if the original value is in the range of WANTED_TYPE.
1063 2015-02-12 Jason Merrill <jason@redhat.com>
1066 * c-opts.c (c_common_post_options): Change flag_abi_version from 0
1067 to the current highest version.
1068 * c-cppbuiltin.c (c_cpp_builtins): Assert that it isn't 0.
1070 2015-02-04 Jakub Jelinek <jakub@redhat.com>
1074 * c-omp.c (c_finish_omp_atomic): Use TRUNC_DIV_EXPR
1075 instead of RDIV_EXPR. Use build_binary_op instead of
1078 2015-01-30 Joseph Myers <joseph@codesourcery.com>
1080 * c-opts.c, c-pch.c, cppspec.c: All callers of fatal_error changed
1081 to pass input_location as first argument.
1083 2015-01-23 Tom de Vries <tom@codesourcery.com>
1086 * c.opt (fopenacc): Mark as LTO option.
1088 2015-01-23 Tom de Vries <tom@codesourcery.com>
1091 * c.opt (fopenmp): Mark as LTO option.
1093 2015-01-21 Jakub Jelinek <jakub@redhat.com>
1096 * cilk.c (fill_decls_vec): Only put decls into vector v.
1097 (compare_decls): Fix up formatting.
1099 2015-01-21 Igor Zamyatin <igor.zamyatin@intel.com>
1102 * cilk.c: Include vec.h.
1103 (struct cilk_decls): New structure.
1104 (wrapper_parm_cb): Split this function to...
1105 (fill_decls_vec): ...this...
1106 (create_parm_list): ...and this.
1107 (compare_decls): New function.
1108 (for_local_cb): Remove.
1109 (wrapper_local_cb): Ditto.
1110 (build_wrapper_type): For now first traverse and fill vector of
1111 declarations then sort it and then deal with sorted vector.
1112 (cilk_outline): Ditto.
1113 (declare_one_free_variable): Ditto.
1115 2015-01-21 Jason Merrill <jason@redhat.com>
1118 * c-format.c (check_format_arg): Call decl_constant_value.
1120 2015-01-19 Martin Liska <mliska@suse.cz>
1122 * c-common.c (handle_noicf_attribute): New function.
1124 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
1125 Bernd Schmidt <bernds@codesourcery.com>
1126 James Norris <jnorris@codesourcery.com>
1127 Cesar Philippidis <cesar@codesourcery.com>
1128 Ilmir Usmanov <i.usmanov@samsung.com>
1129 Jakub Jelinek <jakub@redhat.com>
1131 * c.opt (fopenacc): New option.
1132 * c-cppbuiltin.c (c_cpp_builtins): Conditionally define _OPENACC.
1133 * c-common.c (DEF_FUNCTION_TYPE_VAR_8, DEF_FUNCTION_TYPE_VAR_12):
1135 * c-common.h (c_finish_oacc_wait): New prototype.
1136 * c-omp.c: Include "omp-low.h" and "gomp-constants.h".
1137 (c_finish_oacc_wait): New function.
1138 * c-pragma.c (oacc_pragmas): New variable.
1139 (c_pp_lookup_pragma, init_pragma): Handle it.
1140 * c-pragma.h (enum pragma_kind): Add PRAGMA_OACC_CACHE,
1141 PRAGMA_OACC_DATA, PRAGMA_OACC_ENTER_DATA, PRAGMA_OACC_EXIT_DATA,
1142 PRAGMA_OACC_KERNELS, PRAGMA_OACC_LOOP, PRAGMA_OACC_PARALLEL,
1143 PRAGMA_OACC_UPDATE, PRAGMA_OACC_WAIT.
1144 (enum pragma_omp_clause): Add PRAGMA_OACC_CLAUSE_ASYNC,
1145 PRAGMA_OACC_CLAUSE_AUTO, PRAGMA_OACC_CLAUSE_COLLAPSE,
1146 PRAGMA_OACC_CLAUSE_COPY, PRAGMA_OACC_CLAUSE_COPYIN,
1147 PRAGMA_OACC_CLAUSE_COPYOUT, PRAGMA_OACC_CLAUSE_CREATE,
1148 PRAGMA_OACC_CLAUSE_DELETE, PRAGMA_OACC_CLAUSE_DEVICE,
1149 PRAGMA_OACC_CLAUSE_DEVICEPTR, PRAGMA_OACC_CLAUSE_FIRSTPRIVATE,
1150 PRAGMA_OACC_CLAUSE_GANG, PRAGMA_OACC_CLAUSE_HOST,
1151 PRAGMA_OACC_CLAUSE_IF, PRAGMA_OACC_CLAUSE_NUM_GANGS,
1152 PRAGMA_OACC_CLAUSE_NUM_WORKERS, PRAGMA_OACC_CLAUSE_PRESENT,
1153 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPY,
1154 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYIN,
1155 PRAGMA_OACC_CLAUSE_PRESENT_OR_COPYOUT,
1156 PRAGMA_OACC_CLAUSE_PRESENT_OR_CREATE, PRAGMA_OACC_CLAUSE_PRIVATE,
1157 PRAGMA_OACC_CLAUSE_REDUCTION, PRAGMA_OACC_CLAUSE_SELF,
1158 PRAGMA_OACC_CLAUSE_SEQ, PRAGMA_OACC_CLAUSE_VECTOR,
1159 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH, PRAGMA_OACC_CLAUSE_WAIT,
1160 PRAGMA_OACC_CLAUSE_WORKER.
1162 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
1164 * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__
1165 for the new option fstack-protector_explicit.
1166 * c-common.c (c_common_attribute_table): Add stack_protect attribute.
1167 (handle_stack_protect_attribute): New function.
1169 2015-01-13 Martin Uecker <uecker@eecs.berkeley.edu>
1171 * c.opt: New option -Warray-bounds=.
1173 2015-01-09 Michael Collison <michael.collison@linaro.org>
1175 * array-notation-common.c: Include hash-set.h, machmode.h,
1176 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1177 fold-const.h, wide-int.h, and inchash.h due to flattening of tree.h.
1178 * c-ada-spec.c: Ditto.
1179 * c-cilkplus.c: Ditto.
1180 * c-common.c: Include input.h due to flattening of tree.h.
1181 Define macro GCC_C_COMMON_C.
1182 * c-common.h: Flatten tree.h header files into c-common.h.
1183 Remove include of tree-core.h.
1184 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1185 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1186 fold-const.h, wide-int.h, and inchash.h due to
1187 flattening of tree.h.
1189 * c-format.c: Flatten tree.h header files into c-common.h.
1190 * c-cppbuiltin.c: Include hash-set.h, machmode.h,
1191 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1192 fold-const.h, wide-int.h, and inchash.h due to
1193 flattening of tree.h.
1194 * c-dump.c: Include hash-set.h, machmode.h,
1195 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1196 fold-const.h, wide-int.h, and inchash.h due to
1197 flattening of tree.h.
1198 * c-format.c: Include hash-set.h, machmode.h,
1199 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1200 fold-const.h, wide-int.h, inchash.h and real.h due to
1201 flattening of tree.h.
1202 * c-gimplify.c: Include hash-set.h, machmode.h,
1203 vec.h, double-int.h, input.h, alias.h, symtab.h, options.h
1204 fold-const.h, wide-int.h, and inchash.h due to
1205 flattening of tree.h.
1211 * c-ppoutput.c: Ditto.
1212 * c-pragma.c: Ditto.
1213 * c-pretty-print.c: Ditto.
1214 * c-semantics.c: Ditto.
1216 * stub-objc.c: Ditto.
1218 2015-01-08 Jason Merrill <jason@redhat.com>
1220 * c-ubsan.c (ubsan_maybe_instrument_array_ref): Use
1221 do_ubsan_in_current_function.
1222 (ubsan_maybe_instrument_reference_or_call): Likewise.
1223 * c-ubsan.h: Declare it.
1225 2015-01-08 Mike Stump <mikestump@comcast.net>
1227 * c-common.c (c_common_attribute_table): Add no_sanitize_thread.
1229 2015-01-07 Marek Polacek <polacek@redhat.com>
1232 * c-common.c (c_fully_fold_internal): Warn for division and modulo
1233 if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST and is zero.
1235 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
1238 * c.opt (Wsuggest-override): New option.
1240 2015-01-05 Jakub Jelinek <jakub@redhat.com>
1242 Update copyright years.
1244 2015-01-05 Marek Polacek <polacek@redhat.com>
1247 * c-common.c (warn_array_subscript_with_type_char): Add location_t
1249 * c-common.h (warn_array_subscript_with_type_char): Update
1252 2014-12-20 Edward Smith-Rowland <3dw4rd@verizon.net>
1254 * c-cppbuiltin.c (__cpp_sized_deallocation): Uncomment and move macro.
1255 Control macro with flag_sized_deallocation.
1257 2014-12-20 Martin Uecker <uecker@eecs.berkeley.edu>
1259 * c.opt (Wdiscarded-array-qualifiers): New option.
1261 2014-12-19 Jakub Jelinek <jakub@redhat.com>
1263 PR preprocessor/63831
1264 * c-cppbuiltin.c (c_cpp_builtins): Don't define __has_attribute
1265 and __has_cpp_attribute here.
1266 * c-ppoutput.c (init_pp_output): Set cb->has_attribute to
1267 c_common_has_attribute.
1268 * c-common.h (c_common_has_attribute): New prototype.
1269 * c-lex.c (init_c_lex): Set cb->has_attribute to
1270 c_common_has_attribute instead of cb_has_attribute.
1271 (get_token_no_padding): New function.
1272 (cb_has_attribute): Renamed to ...
1273 (c_common_has_attribute): ... this. No longer static. Use
1274 get_token_no_padding, require ()s, don't build TREE_LIST
1275 unnecessarily, fix up formatting, adjust diagnostics, call
1278 2014-12-15 Jason Merrill <jason@redhat.com>
1280 * c.opt (-fsized-deallocation, -Wc++14-compat): New.
1281 (-Wsized-deallocation): New.
1282 * c-opts.c (c_common_post_options): -fsized-deallocation defaults
1283 to on in C++14 and up.
1285 2014-12-11 Jason Merrill <jason@redhat.com>
1287 * c-cppbuiltin.c (c_cpp_builtins): Enable C++14 __cpp_constexpr.
1289 * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_runtime_arrays if
1290 we aren't complaining about VLAs.
1292 2014-12-06 Marek Polacek <polacek@redhat.com>
1294 PR tree-optimization/64183
1295 * c-gimplify.c (c_gimplify_expr): Don't convert the RHS of a
1296 shift-expression if it is integer_type_node. Use types_compatible_p.
1298 2014-11-29 Jakub Jelinek <jakub@redhat.com>
1300 * c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
1301 last argument from create_tmp_var_raw and create_tmp_var calls.
1302 * cilk.c (gimplify_cilk_spawn): Likewise.
1303 * c-omp.c (c_finish_omp_atomic): Likewise.
1305 2014-11-28 Marek Polacek <polacek@redhat.com>
1307 * c-ubsan.c (ubsan_instrument_shift): Use op1_utype for MINUS_EXPR
1308 instead of unsigned_type_node.
1310 2014-11-28 Marek Polacek <polacek@redhat.com>
1313 * c-ubsan.c (ubsan_instrument_shift): Change the type of a MINUS_EXPR
1315 * c-gimplify.c (c_gimplify_expr): Convert right operand of a shift
1316 expression to unsigned_type_node.
1318 2014-11-20 Mark Wielaard <mjw@redhat.com>
1321 * c-opts.c (set_std_c89): Set lang_hooks.name.
1322 (set_std_c99): Likewise.
1323 (set_std_c11): Likewise.
1324 (set_std_cxx98): Likewise.
1325 (set_std_cxx11): Likewise.
1326 (set_std_cxx14): Likewise.
1327 (set_std_cxx1z): Likewise.
1329 2014-11-21 Jakub Jelinek <jakub@redhat.com>
1332 * c-common.h (convert_vector_to_pointer_for_subscript): Change
1333 return type to bool.
1334 * c-common.c: Include gimple-expr.h.
1335 (convert_vector_to_pointer_for_subscript): Change return type to
1336 bool. If *vecp is not lvalue_p and has VECTOR_TYPE, return true
1337 and copy it into a TARGET_EXPR and use that instead of *vecp
1340 2014-11-19 David Malcolm <dmalcolm@redhat.com>
1342 Merger of git branch "gimple-classes-v2-option-3".
1343 * ChangeLog.gimple-classes: New.
1344 * c-gimplify.c (add_block_to_enclosing): Strengthen local "stack"
1345 from being just a vec<gimple> to a vec<gbind *>.
1347 2014-11-18 Jakub Jelinek <jakub@redhat.com>
1350 * c-ubsan.c (ubsan_maybe_instrument_reference_or_call): Change type
1351 argument to ptype, set type to TREE_TYPE (ptype). Don't call
1352 get_pointer_alignment for non-pointers. Use ptype, or if it is
1353 reference type, corresponding pointer type, as type of kind
1355 (ubsan_maybe_instrument_reference,
1356 ubsan_maybe_instrument_member_call): Adjust callers.
1358 2014-11-15 Marek Polacek <polacek@redhat.com>
1361 * array-notation-common.c (is_sec_implicit_index_fn): Return false
1363 (extract_array_notation_exprs): Return for NULL node.
1365 2014-11-12 Joseph Myers <joseph@codesourcery.com>
1367 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Define and
1368 undefine __NO_MATH_ERRNO__ based on changes to -fmath-errno state.
1370 2014-11-12 Jakub Jelinek <jakub@redhat.com>
1373 * c-common.c (check_builtin_function_arguments): Handle
1374 BUILT_IN_{ADD,SUB,MUL}_OVERFLOW.
1376 2014-11-10 Andi Kleen <ak@linux.intel.com>
1379 * c-common.h (check_no_cilk): Declare.
1380 * cilk.c (get_error_location): New function.
1381 (check_no_cilk): Dito.
1383 2014-11-10 Andi Kleen <ak@linux.intel.com>
1385 * cilk.c (recognize_spawn): Use expression location
1388 2014-11-10 Paolo Carlini <paolo.carlini@oracle.com>
1390 * c.opt ([Wshift-count-negative, Wshift-count-overflow]): Add.
1392 2014-11-10 Edward Smith-Rowland <3dw4rd@verizon.net>
1394 * c-cppbuiltin.c (__has_attribute, __has_cpp_attribute): New macros;
1395 (__cpp_rtti, __cpp_exceptions): New macros for C++98;
1396 (__cpp_range_based_for, __cpp_initializer_lists,
1397 __cpp_delegating_constructors, __cpp_nsdmi,
1398 __cpp_inheriting_constructors, __cpp_ref_qualifiers): New macros
1399 for C++11; (__cpp_attribute_deprecated): Remove in favor of
1400 __has_cpp_attribute.
1401 * c-lex.c (cb_has_attribute): New callback CPP function;
1402 (init_c_lex): Set has_attribute callback.
1404 2014-11-04 Richard Biener <rguenther@suse.de>
1406 * c-common.c (shorten_compare): Do not shorten mixed
1407 DFP and non-DFP compares.
1409 2014-11-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1411 * g++.dg/cpp1y/feat-cxx11.C: Commentary and rearrangement of tests.
1412 * g++.dg/cpp1y/feat-cxx11-neg.C: Add aggregate NSDMI test.
1413 Commentary and rearrangement of tests.
1414 * g++.dg/cpp1y/feat-cxx14.C: Enable aggregate NSDMI test.
1415 Commentary and rearrangement of tests.
1416 * g++.dg/cpp1y/feat-cxx98-neg.C: Ditto
1417 * g++.dg/cpp1y/feat-cxx98.C: Commentary.
1419 2014-10-29 Richard Sandiford <richard.sandiford@arm.com>
1421 * c-common.c, c-common.h, c-cppbuiltin.c, c-lex.c: Remove redundant
1422 enum from machine_mode.
1424 2014-10-28 Andrew MacLeod <amacleod@redhat.com>
1426 * c-common.c: Adjust include files.
1427 * c-gimplify.c: Ditto.
1429 * c-pragma.c: Ditto.
1432 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
1434 * c-gimplify.c: Adjust include files.
1436 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
1439 * c-opts.c (c_common_diagnostics_set_defaults): Renamed from
1440 c_common_initialize_diagnostics.
1441 * c-common.h: Likewise.
1443 2014-10-24 Marek Polacek <polacek@redhat.com>
1446 * c-pretty-print.c (c_pretty_printer::simple_type_specifier): Don't
1447 print "struct"/"union"/"enum" for typedefed names.
1449 2014-10-23 Marek Polacek <polacek@redhat.com>
1451 * c-ubsan.c (ubsan_instrument_shift): Perform the MINUS_EXPR
1454 2014-10-22 Jakub Jelinek <jakub@redhat.com>
1455 Yury Gribov <y.gribov@samsung.com>
1457 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1458 ubsan_instrument_vla): Check bits in flag_sanitize_recover bitmask
1459 instead of flag_sanitize_recover as bool flag.
1461 2014-10-21 Kirill Yukhin <kirill.yukhin@intel.com>
1463 * cilk.c: Revert previous change.
1465 2014-10-20 Igor Zamyatin <igor.zamyatin@intel.com>
1468 * cilk.c: Include vec.h.
1469 (struct cilk_decls): New structure.
1470 (wrapper_parm_cb): Split this function to...
1471 (fill_decls_vec): ...this...
1472 (create_parm_list): ...and this.
1473 (compare_decls): New function.
1474 (for_local_cb): Remove.
1475 (wrapper_local_cb): Ditto.
1476 (build_wrapper_type): For now first traverse and fill vector of
1477 declarations then sort it and then deal with sorted vector.
1478 (cilk_outline): Ditto.
1479 (declare_one_free_variable): Ditto.
1481 2014-10-17 Marek Polacek <polacek@redhat.com>
1483 * c-opts.c (c_common_post_options): Set warn_implicit_int.
1484 * c.opt (Wimplicit-int): Initialize to -1.
1486 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1488 * c-pragma.c: Adjust include files.
1489 * c-semantics.c: Likewise.
1491 2014-10-16 DJ Delorie <dj@redhat.com>
1493 * c-cppbuiltin.c (cpp_atomic_builtins): Don't assume pointers are
1496 2014-10-14 Jason Merrill <jason@redhat.com>
1499 * c-common.h (CPP_PREPARSED_EXPR): New.
1500 (N_CP_TTYPES): Adjust.
1502 2014-10-15 Marek Polacek <polacek@redhat.com>
1504 * c-opts.c (c_common_init_options): Make -std=gnu11 the default for C.
1506 2014-10-14 DJ Delorie <dj@redhat.com>
1508 * c-pretty-print.c (pp_c_integer_constant): Check for all __intN
1509 types, not just __int128.
1510 * c-cppbuiltin.c (c_cpp_builtins): Add builtins for all __intN
1511 types, not just __int128.
1512 (cpp_atomic_builtins): Round pointer sizes up.
1513 (type_suffix): Use type precision, not specific types.
1514 * c-common.c (c_common_reswords): Remove __int128 special case.
1515 (c_common_type_for_size): Check for all __intN types, not just
1517 (c_common_type_for_mode): Likewise.
1518 (c_common_signed_or_unsigned_type): Likewise.
1519 (c_build_bitfield_integer_type): Likewise.
1520 (c_common_nodes_and_builtins): Likewise.
1521 (keyword_begins_type_specifier): Likewise.
1522 * c-common.h (rid): Remove RID_INT128 and add RID_INT_N_* for all
1525 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1527 * c-common.c: Use hash_table instead of hashtab.
1529 2014-10-06 Edward Smith-Rowland <3dw4rd@verizon.net>
1531 * c-cppbuiltin.c: Move __cpp_attribute_deprecated to the
1534 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
1539 * c-common.c (warn_logical_operator): Punt for vectors.
1541 2014-10-01 Edward Smith-Rowland <3dw4rd@verizon.net>
1543 Implement SD-6: SG10 Feature Test Recommendations
1544 * c-cppbuiltin.c (c_cpp_builtins()): Define language feature
1545 macros and the __has_header macro.
1547 2014-09-30 Jason Merrill <jason@redhat.com>
1549 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_ASSIGNABLE and
1550 RID_IS_TRIVIALLY_CONSTRUCTIBLE.
1551 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1553 * c-common.h (enum rid): Add RID_IS_TRIVIALLY_COPYABLE.
1554 * c-common.c (c_common_reswords): Add __is_trivially_copyable.
1556 * c-common.h (enum rid): Remove RID_IS_CONVERTIBLE_TO.
1557 * c-common.c (c_common_reswords): Remove __is_convertible_to.
1559 2014-09-24 Marek Polacek <polacek@redhat.com>
1563 * c-common.h (struct c_common_resword): Don't define CPP_KEYWORD.
1565 2014-09-23 Andi Kleen <ak@linux.intel.com>
1567 * c-common.c (handle_no_reorder_attribute): New function.
1568 (c_common_attribute_table): Add no_reorder attribute.
1570 2014-09-22 Joseph Myers <joseph@codesourcery.com>
1572 * c-cppbuiltin.c (c_cpp_builtins): Define
1573 __LIBGCC_*_EXCESS_PRECISION__ macros for supported floating-point
1576 2014-09-18 Joseph Myers <joseph@codesourcery.com>
1578 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_*_FUNC_EXT__
1579 for supported floating-point modes.
1581 2014-09-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1583 * c.opt (Wpsabi): Use LangEnabledBy.
1584 * c-opts.c (c_common_handle_option): Do not handle here.
1586 2014-09-12 Joseph Myers <joseph@codesourcery.com>
1588 * c-cppbuiltin.c (c_cpp_builtins): Define __LIBGCC_HAS_%s_MODE__
1589 macros for floating-point modes.
1591 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
1594 * c-cppbuiltin.c (builtin_define_float_constants): Correct
1595 __*_DENORM_MIN__ without denormals.
1597 2014-09-10 Jakub Jelinek <jakub@redhat.com>
1599 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
1600 ubsan_instrument_vla, ubsan_instrument_return): Adjust
1601 ubsan_create_data callers.
1602 (ubsan_instrument_bounds): Don't emit UBSAN_BOUNDS at all if
1603 index is constant or BIT_AND_EXPR with constant mask and is
1604 small enough for the bound.
1605 * c-gimplify.c (ubsan_walk_array_refs_r): For ADDR_EXPR of
1606 ARRAY_REF, make sure the inner ARRAY_REF is not walked again.
1608 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1610 * c.opt: Add CppReason to various flags.
1611 (Wdate-time): Re-sort.
1612 * c-common.c: Include c-common.h earlier.
1613 (struct reason_option_codes_t): Delete.
1614 (c_option_controlling_cpp_error): Prefix global type and struct
1617 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1619 * c.opt (Wnormalized): New.
1620 (Wnormalized=): Use Enum and Reject Negative.
1621 * c-opts.c (c_common_handle_option): Do not handle Wnormalized here.
1623 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1625 * c-cppbuiltin.c (c_cpp_builtins): Define macros for mantissa
1626 digits of floating-point modes if -fbuilding-libgcc.
1628 2014-09-05 Joseph Myers <joseph@codesourcery.com>
1630 * c-cppbuiltin.c (c_cpp_builtins): Also define
1631 __LIBGCC_EH_TABLES_CAN_BE_READ_ONLY__,
1632 __LIBGCC_EH_FRAME_SECTION_NAME__, __LIBGCC_JCR_SECTION_NAME__,
1633 __LIBGCC_CTORS_SECTION_ASM_OP__, __LIBGCC_DTORS_SECTION_ASM_OP__,
1634 __LIBGCC_TEXT_SECTION_ASM_OP__, __LIBGCC_INIT_SECTION_ASM_OP__,
1635 __LIBGCC_INIT_ARRAY_SECTION_ASM_OP__,
1636 __LIBGCC_STACK_GROWS_DOWNWARD__,
1637 __LIBGCC_DONT_USE_BUILTIN_SETJMP__,
1638 __LIBGCC_DWARF_ALT_FRAME_RETURN_COLUMN__,
1639 __LIBGCC_DWARF_FRAME_REGISTERS__,
1640 __LIBGCC_EH_RETURN_STACKADJ_RTX__, __LIBGCC_JMP_BUF_SIZE__,
1641 __LIBGCC_STACK_POINTER_REGNUM__ and
1642 __LIBGCC_VTABLE_USES_DESCRIPTORS__ for -fbuilding-libgcc.
1643 (builtin_define_with_value): Handle backslash-escaping in string
1646 2014-09-05 Richard Biener <rguenther@suse.de>
1649 * c-format.c (check_format_arg): Properly handle
1650 effectively signed POINTER_PLUS_EXPR offset.
1652 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1654 * c.opt (Wc90-c99-compat,Wc++-compat,Wcomment,Wendif-labels,
1655 Winvalid-pch,Wlong-long,Wmissing-include-dirs,Wmultichar,Wpedantic,
1656 (Wdate-time,Wtraditional,Wundef,Wvariadic-macros): Add CPP, Var
1658 * c-opts.c (c_common_handle_option): Do not handle here.
1659 (sanitize_cpp_opts): Likewise.
1660 * c-common.c (struct reason_option_codes_t): Handle
1661 CPP_W_C90_C99_COMPAT and CPP_W_PEDANTIC.
1663 2014-09-03 Marek Polacek <polacek@redhat.com>
1665 * c.opt (Wlogical-not-parentheses): Enable by -Wall.
1667 2014-09-02 Jakub Jelinek <jakub@redhat.com>
1668 Balaji V. Iyer <balaji.v.iyer@intel.com>
1669 Igor Zamyatin <igor.zamyatin@intel.com>
1671 * c-cilkplus.c (cilk_for_number_of_iterations): New function.
1672 * c-common.c (c_common_reswords): Added _Cilk_for.
1673 * c-common.h (enum rid): Added RID_CILK_FOR.
1674 (cilk_for_number_of_iterations): Add declaration.
1675 * c-omp.c (c_finish_omp_for): Added checks for CILK_SIMD and
1677 * c-pragma.c (init_pragma): Register "grainsize" pragma.
1678 * c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_GRAINSIZE.
1680 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1682 * c.opt (Wbuiltin-macro-redefined,Wdeprecated,Wendif-labels,
1683 Winvalid-pch,Wliteral-suffix,Wmissing-include-dirs,Wtrigraphs,
1684 Wundef): Use CPP, Var and Init.
1685 * c-opts.c (c_common_handle_option): Do not handle the above flags here.
1687 2014-08-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1689 * c.opt (Wbuiltin-macro-redefined): Use CPP, Var and Init.
1690 * c-opts.c (c_common_handle_option): Do not handle here.
1692 2014-08-25 Jason Merrill <jason@redhat.com>
1694 * c.opt: Change -std=c++1y and -std=gnu++1y to be aliases for
1695 -std=c++14 and -std=gnu++14, rather than the reverse.
1696 * c-opts.c (c_common_handle_option): Change OPT_std_c__1y and
1697 OPT_std_gnu__1y to OPT_std_c__14 and OPT_std_gnu__14.
1698 * c-common.h (cxx_dialect): Remove cxx1y.
1700 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
1702 * c-common.h (enum cxx_dialect): Add cxx14.
1703 * c-opts.c (set_std_cxx1y): Rename to set_std_cxx14; Use cxx14.
1704 * c-ubsan.c (ubsan_instrument_shift): Change comment and logic from
1705 cxx_dialect == cxx11 || cxx_dialect == cxx1y to cxx_dialect >= cxx11.
1707 2014-08-22 Jason Merrill <jason@redhat.com>
1709 * c.opt (std=gnu++17): Fix alias.
1711 2014-08-22 Marek Polacek <polacek@redhat.com>
1714 * c-common.c (warn_logical_not_parentheses): Don't check LHS. Don't
1715 check for vector types. Drop LHS argument.
1716 * c-common.h (warn_logical_not_parentheses): Adjust.
1718 2014-08-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1720 * c.opt (Wcomment): Use CPP, Var and LangEnabledBy.
1721 (Wmultichar): Likewise.
1722 (Wdate-time): Use C-family languages instead of Common. Use CPP
1724 * c-opts.c (c_common_handle_option): Do not handle the above
1726 (sanitize_cpp_opts): Likewise.
1728 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1731 * c-opts.c: Include tree-diagnostics.h.
1732 (c_diagnostic_finalizer): New.
1733 (c_common_initialize_diagnostics): Use it.
1735 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1737 PR preprocessor/51303
1738 * c-common.c (struct reason_option_codes_t option_codes):
1739 Add CPP_W_MISSING_INCLUDE_DIRS. Sort alphabetically.
1741 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1745 * c.opt (Wvariadic-macros): Use CPP and LangEnabledBy.
1746 * c-opts.c (c_common_handle_option): Call cpp_handle_option_auto.
1747 (c_common_post_options): Call init_global_opts_from_cpp.
1748 (sanitize_cpp_opts): Do not handle Wvariadic-macros here.
1750 2014-08-19 Marek Polacek <polacek@redhat.com>
1753 * c-common.c (maybe_warn_bool_compare): New function.
1754 * c-common.h (maybe_warn_bool_compare): Declare.
1755 * c.opt (Wbool-compare): New option.
1757 2014-08-19 Marek Polacek <polacek@redhat.com>
1759 * c.opt (Wc99-c11-compat): New option.
1761 2014-08-19 Marek Polacek <polacek@redhat.com>
1763 * c-opts.c (sanitize_cpp_opts): Make warn_long_long be set according
1764 to warn_c90_c99_compat.
1765 * c.opt (Wc90-c99-compat, Wdeclaration-after-statement): Initialize
1768 2014-08-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
1769 Steven Bosscher <steven@gcc.gnu.org>
1772 * c-format.c: Add extra_arg_loc and format_string_loc to struct
1773 format_check_results.
1774 (check_function_format): Use true and add comment for boolean
1776 (finish_dollar_format_checking): Use explicit location when warning.
1777 (check_format_info): Likewise.
1778 (check_format_arg): Set extra_arg_loc and format_string_loc.
1779 (check_format_info_main): Use explicit location when warning.
1780 (check_format_types): Pass explicit location.
1781 (format_type_warning): Likewise.
1783 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1786 * c-format.c: Handle Fortran flags.
1788 2014-08-12 Igor Zamyatin <igor.zamyatin@intel.com>
1791 * array-notation-common.c (find_rank): Added handling for other
1792 types of references.
1794 2014-08-10 Marek Polacek <polacek@redhat.com>
1797 * c-opts.c (sanitize_cpp_opts): Pass warn_c90_c99_compat to libcpp.
1798 * c.opt (Wc90-c99-compat): Add option.
1800 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
1802 * c-gimplify.c, cilk.c: Remove includes of pointer-set.h.
1804 2014-08-03 Marek Polacek <polacek@redhat.com>
1806 * c-common.c (check_case_value): Add location_t parameter. Use it.
1807 (c_add_case_label): Pass loc to check_case_value.
1809 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1811 * cilk.c: Use hash_map instead of pointer_map.
1813 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
1815 * c-gimplify.c: Use hash_set instead of pointer_set.
1817 2014-08-01 Igor Zamyatin <igor.zamyatin@intel.com>
1820 * array-notation-common.c (extract_array_notation_exprs): Handling
1823 2014-08-01 Jakub Jelinek <jakub@redhat.com>
1825 * c-common.h (min_align_of_type): Removed prototype.
1826 * c-common.c (min_align_of_type): Removed.
1827 * c-ubsan.h (ubsan_maybe_instrument_reference,
1828 ubsan_maybe_instrument_member_call): New prototypes.
1829 * c-ubsan.c: Include stor-layout.h and builtins.h.
1830 (ubsan_maybe_instrument_reference_or_call,
1831 ubsan_maybe_instrument_reference, ubsan_maybe_instrument_call): New
1834 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
1837 * c.opt (-Wreturn-local-addr): Move to common.opt.
1839 2014-07-30 Jason Merrill <jason@redhat.com>
1844 * c.opt (-fuse-all-virtuals): New.
1846 2014-07-30 Tom Tromey <tromey@redhat.com>
1849 * c.opt (Wdesignated-init): New option.
1850 * c-common.c (c_common_attribute_table): Add "designated_init".
1851 (handle_designated_init): New function.
1853 2014-07-24 Marek Polacek <polacek@redhat.com>
1856 * c-opts.c (c_finish_options): If -imacros is in effect, return.
1858 2014-07-16 Dodji Seketeli <dodji@redhat.com>
1860 PR preprocessor/60723 - missing system-ness marks for macro tokens
1861 * c-ppoutput.c (struct print::prev_was_system_token): New data
1863 (init_pp_output): Initialize it.
1864 (maybe_print_line_1, maybe_print_line, print_line_1, print_line)
1865 (do_line_change): Return a flag saying if a line marker was
1867 (scan_translation_unit): Detect if the system-ness of the token we
1868 are about to emit is different from the one of the previously
1869 emitted token. If so, emit a line marker. Avoid emitting useless
1870 adjacent line markers. Avoid emitting line markers for tokens
1871 originating from the expansion of built-in macros.
1872 (scan_translation_unit_directives_only): Adjust.
1874 2014-07-15 Marek Polacek <polacek@redhat.com>
1876 * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
1877 TYPE_MAX_VALUE is NULL.
1879 2014-07-14 Jakub Jelinek <jakub@redhat.com>
1882 * c.opt (Wmemset-transposed-args): New warning.
1884 2014-07-10 Jason Merrill <jason@redhat.com>
1888 * c.opt (-fuse-all-virtuals): New.
1890 2014-07-09 Richard Biener <rguenther@suse.de>
1893 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
1894 using unsigned arithmetic if overflow does not wrap instead of
1895 if overflow is undefined.
1897 2014-07-06 Marek Polacek <polacek@redhat.com>
1900 * c.opt (Wsizeof-array-argument): New option.
1902 2014-07-03 Jakub Jelinek <jakub@redhat.com>
1904 * c-ada-spec.c (dump_ada_nodes): Don't call qsort if
1905 comments->count <= 1, as comments->entries might be NULL.
1907 2014-07-01 Marek Polacek <polacek@redhat.com>
1909 * c.opt (Wint-conversion): New option.
1911 2014-07-01 Marek Polacek <polacek@redhat.com>
1914 * c.opt (Wincompatible-pointer-types): New option.
1916 2014-06-30 Paolo Carlini <paolo.carlini@oracle.com>
1919 * c-common.c (handle_noreturn_attribute, handle_const_attribute):
1920 Do not discard TYPE_QUALS of type.
1922 2014-06-26 Jason Merrill <jason@redhat.com>
1924 * c-common.h (enum cxx_dialect): Add cxx1z.
1925 * c.opt (std=c++1z, std=c++17, std=gnu++1z, std=gnu++17): New.
1926 * c-opts.c (c_common_handle_option, set_std_cxx1z): Handle it.
1928 2014-06-26 Teresa Johnson <tejohnson@google.com>
1930 * c-common.h (get_dump_info): Declare.
1931 * c-gimplify.c (c_genericize): Use saved dump files.
1932 * c-opts.c (c_common_parse_file): Begin and end dumps
1933 once around parsing invocation.
1934 (get_dump_info): New function.
1936 2014-06-23 Marek Polacek <polacek@redhat.com>
1937 Andrew MacLeod <amacleod@redhat.com>
1940 * c-common.c (get_atomic_generic_size): Don't segfault if the
1941 type doesn't have a size.
1943 2014-06-20 Marek Polacek <polacek@redhat.com>
1945 * c-gimplify.c: Include "c-ubsan.h" and "pointer-set.h".
1946 (ubsan_walk_array_refs_r): New function.
1947 (c_genericize): Instrument array bounds.
1948 * c-ubsan.c: Include "internal-fn.h".
1949 (ubsan_instrument_division): Mark instrumented arrays as having
1950 side effects. Adjust ubsan_type_descriptor call.
1951 (ubsan_instrument_shift): Likewise.
1952 (ubsan_instrument_vla): Adjust ubsan_type_descriptor call.
1953 (ubsan_instrument_bounds): New function.
1954 (ubsan_array_ref_instrumented_p): New function.
1955 (ubsan_maybe_instrument_array_ref): New function.
1956 * c-ubsan.h (ubsan_instrument_bounds): Declare.
1957 (ubsan_array_ref_instrumented_p): Declare.
1958 (ubsan_maybe_instrument_array_ref): Declare.
1960 2014-06-20 Hale Wang <hale.wang@arm.com>
1963 * c.opt (fshort-enums): Add to LTO.
1964 * c.opt (fshort-wchar): Likewise.
1966 2014-06-16 Marek Polacek <polacek@redhat.com>
1969 * c.opt (Wswitch-bool): Add Var.
1971 2014-06-12 Jakub Jelinek <jakub@redhat.com>
1974 * c-omp.c (c_omp_split_clauses): Don't crash on firstprivate in
1975 #pragma omp target teams or
1976 #pragma omp {,target }teams distribute simd.
1978 2014-06-12 Jason Merrill <jason@redhat.com>
1980 * c.opt (Wabi=, fabi-compat-version): New.
1981 * c-opts.c (c_common_handle_option): Handle -Wabi=.
1982 (c_common_post_options): Handle flag_abi_compat_version default.
1983 Disallow -fabi-compat-version=1.
1984 * c-common.h (abi_version_crosses): New.
1986 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
1988 * c-common.c (handle_section_attribute): Update handling for
1989 section names that are no longer trees.
1991 2014-06-10 Jakub Jelinek <jakub@redhat.com>
1994 * c-pragma.c (omp_pragmas_simd): Move PRAGMA_OMP_TASK...
1995 (omp_pragmas): ... back here.
1997 2014-06-05 Marek Polacek <polacek@redhat.com>
2000 * c-common.c (warn_logical_not_parentheses): New function.
2001 * c-common.h (warn_logical_not_parentheses): Declare.
2002 * c.opt (Wlogical-not-parentheses): New option.
2004 2014-06-04 Marek Polacek <polacek@redhat.com>
2007 * c-common.c (check_case_bounds): Add location parameter.
2009 (c_add_case_label): Pass loc to check_case_bounds.
2011 2014-06-03 Marek Polacek <polacek@redhat.com>
2014 * c.opt (Wswitch-bool): New option.
2016 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2018 * c-common.h (c_omp_sharing_predetermined, c_omp_remap_decl):
2020 (record_types_used_by_current_var_decl): Move prototype to where
2023 * c-common.c (DEF_FUNCTION_TYPE_0, DEF_FUNCTION_TYPE_6)
2024 (DEF_FUNCTION_TYPE_7, DEF_FUNCTION_TYPE_8)
2025 (DEF_FUNCTION_TYPE_VAR_5): Cosmetic fixes.
2027 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2029 * c-common.h (CTI_VOID_ZERO, void_zero_node): Delete.
2030 * c-common.c (c_common_nodes_and_builtins): Don't initialize
2032 * c-pretty-print.c (pp_c_void_constant): New function.
2033 (c_pretty_printer::constant, c_pretty_printer::primary_expression)
2034 (c_pretty_printer::expression): Handle VOID_CST.
2035 * cilk.c (extract_free_variables): Likewise.
2036 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift)
2037 (ubsan_instrument_vla): Use void_node instead of void_zero_node.
2039 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
2041 * c-common.h (sorted_fields_type): Remove variable_size GTY attribute.
2042 * c-pragma.c (push_alignment): Adjust.
2043 (handle_pragma_push_options): Likewise.
2045 2014-05-09 Marek Polacek <polacek@redhat.com>
2048 * c-common.c (check_user_alignment): Return -1 if alignment is error
2050 (handle_aligned_attribute): Don't call default_conversion on
2052 (handle_vector_size_attribute): Likewise.
2053 (handle_tm_wrap_attribute): Handle case when wrap_decl is error node.
2054 (handle_sentinel_attribute): Call default_conversion and allow even
2055 integral types as an argument.
2057 2014-05-08 Marek Polacek <polacek@redhat.com>
2060 * c-common.c (min_align_of_type): New function factored out from...
2061 (c_sizeof_or_alignof_type): ...here.
2062 * c-common.h (min_align_of_type): Declare.
2064 2014-05-08 Marek Polacek <polacek@redhat.com>
2067 * c-common.c (check_main_parameter_types): Warn for _Atomic-qualified
2068 parameter type of main.
2070 2014-05-07 DJ Delorie <dj@redhat.com>
2072 * c-cppbuiltin.c (print_bits_of_hex): New.
2073 (builtin_define_type_minmax): Print values using hex so as not to
2074 require a pre-computed list of string values.
2076 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
2077 Mike Stump <mikestump@comcast.net>
2078 Richard Sandiford <rdsandiford@googlemail.com>
2080 * c-ada-spec.c: Include wide-int.h.
2081 (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Remove.
2082 (dump_generic_ada_node): Use wide-int interfaces.
2083 * c-common.c: Include wide-int-print.h.
2084 (shorten_compare): Use wide-int interfaces and tree_int_cst_lt.
2085 (pointer_int_sum): Use wide-int interfaces.
2086 (c_common_nodes_and_builtins): Use make_int_cst.
2087 (match_case_to_enum_1): Use tree_fits_uhwi_p and tree_fits_shwi_p.
2088 (handle_alloc_size_attribute): Use wide-int interfaces.
2089 (get_nonnull_operand): Likewise.
2090 * c-format.c (get_constant): Use tree_fits_uhwi_p.
2091 * c-lex.c: Include wide-int.h.
2092 (narrowest_unsigned_type): Take a widest_int rather than two
2094 (narrowest_signed_type): Likewise.
2095 (interpret_integer): Update accordingly. Use wide-int interfaces.
2096 (lex_charconst): Use wide-int interfaces.
2097 * c-pretty-print.c: Include wide-int.h.
2098 (pp_c_integer_constant): Use wide-int interfaces.
2099 * cilk.c (declare_one_free_variable): Use tree_int_cst_lt instead of
2100 INT_CST_LT_UNSIGNED.
2102 2014-05-06 Richard Biener <rguenther@suse.de>
2104 * c-opts.c (c_common_post_options): For -freestanding,
2105 -fno-hosted and -fno-builtin disable pattern recognition
2106 if not enabled explicitely.
2108 2014-05-02 Marek Polacek <polacek@redhat.com>
2110 * c.opt (Wsizeof-pointer-memaccess): Describe option.
2112 2014-05-01 Marek Polacek <polacek@redhat.com>
2115 * c.opt (Wdiscarded-qualifiers): Add.
2117 2014-04-30 Marek Polacek <polacek@redhat.com>
2119 * c-ubsan.c (ubsan_instrument_division): Handle REAL_TYPEs. Perform
2120 INT_MIN / -1 sanitization only for integer types.
2122 2014-04-25 Marek Polacek <polacek@redhat.com>
2125 * c-common.c (handle_noinline_attribute): Warn if the attribute
2126 conflicts with always_inline attribute.
2127 (handle_always_inline_attribute): Warn if the attribute conflicts
2128 with noinline attribute.
2130 2014-04-25 Marek Polacek <polacek@redhat.com>
2133 * c-common.c (check_main_parameter_types): Warn about variadic main.
2135 2014-04-24 Mike Stump <mikestump@comcast.net>
2137 * c.opt (Wshadow-ivar): Default to on.
2139 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
2141 * c.opt (Wshadow-ivar, flocal-ivars, fivar-visibility): Add.
2143 2014-04-23 Marek Polacek <polacek@redhat.com>
2145 * c-common.c (handle_tm_wrap_attribute): Tweak error message.
2147 2014-04-22 Jakub Jelinek <jakub@redhat.com>
2150 * c-ubsan.c (ubsan_instrument_return): Return __builtin_trap ()
2151 if flag_sanitize_undefined_trap_on_error.
2152 (ubsan_instrument_division, ubsan_instrument_shift,
2153 ubsan_instrument_vla): Likewise. Use __ubsan_handle_*_abort ()
2154 if !flag_sanitize_recover.
2156 2014-04-22 Marc Glisse <marc.glisse@inria.fr>
2159 * c-common.c (registered_builtin_types): Make non-static.
2160 * c-common.h (registered_builtin_types): Declare.
2162 2014-04-14 Richard Biener <rguenther@suse.de>
2163 Marc Glisse <marc.glisse@inria.fr>
2166 * c-common.c (convert_vector_to_pointer_for_subscript): Properly
2167 apply may-alias the scalar pointer type when applicable.
2169 2014-04-12 Igor Zamyatin <igor.zamyatin@intel.com>
2172 * cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
2173 as possible argument for Cilk_spawn.
2175 2014-04-11 Tobias Burnus <burnus@net-b.de>
2178 * c.opt (Wformat-signedness): Add
2179 * c-format.c(check_format_types): Use it.
2181 2014-04-11 Jason Merrill <jason@redhat.com>
2184 * c-common.c (sync_resolve_size, get_atomic_generic_size): Call
2185 default_conversion for an array argument.
2187 2014-04-08 Marek Polacek <polacek@redhat.com>
2190 * c-ubsan.c: Include asan.h.
2191 (ubsan_instrument_return): Call initialize_sanitizer_builtins.
2193 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
2195 * c.opt (Wnon-virtual-dtor): Auto set when Weffc++.
2197 2014-04-02 Marek Polacek <polacek@redhat.com>
2199 * c-common.h (c_expand_expr): Remove declaration.
2201 2014-03-28 Jakub Jelinek <jakub@redhat.com>
2204 * c-common.c (add_atomic_size_parameter): When creating new
2205 params vector, push the size argument first.
2207 2014-03-26 Jakub Jelinek <jakub@redhat.com>
2209 * c-ubsan.c (ubsan_instrument_division, ubsan_instrument_shift,
2210 ubsan_instrument_vla, ubsan_instrument_return): Adjust
2211 ubsan_create_data callers.
2213 2014-03-22 Jakub Jelinek <jakub@redhat.com>
2216 * c-opts.c (c_finish_options): Restore cb_file_change call to
2219 2014-03-13 Jakub Jelinek <jakub@redhat.com>
2222 * c-pragma.c (apply_pragma_weak): Only look at
2223 TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (decl)) if
2224 DECL_ASSEMBLER_NAME_SET_P (decl).
2225 (maybe_apply_pending_pragma_weaks): Exit early if
2226 vec_safe_is_empty (pending_weaks) rather than only when
2228 (maybe_apply_pragma_weak): Likewise. If !DECL_ASSEMBLER_NAME_SET_P,
2229 set assembler name back to NULL afterwards.
2231 2014-03-11 Jason Merrill <jason@redhat.com>
2233 * c.opt: Add -std=gnu++14.
2235 2014-03-11 Ian Bolton <ian.bolton@arm.com>
2237 * c-opts.c (c_common_post_options): Don't override
2238 -ffp-contract=fast if unsafe-math-optimizations is on.
2240 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
2242 * c.opt: Enable LTO FE for fshort-double.
2244 2014-03-07 Jason Merrill <jason@redhat.com>
2246 * c.opt: Add -std=c++14.
2248 2014-03-06 Marek Polacek <polacek@redhat.com>
2251 * cilk.c (contains_cilk_spawn_stmt): New function.
2252 (contains_cilk_spawn_stmt_walker): Likewise.
2253 (recognize_spawn): Give error on invalid use of _Cilk_spawn.
2254 * c-common.h (contains_cilk_spawn_stmt): Add declaration.
2256 2014-03-03 Jakub Jelinek <jakub@redhat.com>
2258 * c-pragma.c (c_pp_lookup_pragma): Handle PRAGMA_CILK_SIMD.
2259 (init_pragma): Call cpp_register_deferred_pragma for PRAGMA_CILK_SIMD
2260 even when flag_preprocess_only.
2262 2014-02-26 Jason Merrill <jason@redhat.com>
2266 * c-common.c (shorten_compare): Don't check
2267 c_inhibit_evaluation_warnings.
2269 2014-02-19 Jakub Jelinek <jakub@redhat.com>
2272 * c-common.c (c_common_nodes_and_builtins): When initializing
2273 c_uint{16,32,64}_type_node, also set corresponding
2274 uint{16,32,64}_type_node to the same value.
2277 * c-pragma.c (init_pragma): Don't call cpp_register_deferred_pragma
2278 for PRAGMA_IVDEP if flag_preprocess_only.
2280 2014-02-12 Jakub Jelinek <jakub@redhat.com>
2283 * c-common.c (merge_tlist): If copy is true, call new_tlist,
2284 if false, add ADD itself, rather than vice versa.
2285 (verify_tree): For COND_EXPR, don't call merge_tlist with non-zero
2286 copy. For SAVE_EXPR, only call merge_tlist once.
2288 2014-02-08 Jakub Jelinek <jakub@redhat.com>
2291 * c-common.c (handle_alloc_size_attribute): Use tree_fits_uhwi_p
2293 (handle_alloc_align_attribute, handle_assume_aligned_attribute): New
2295 (c_common_attribute_table): Add alloc_align and assume_aligned
2298 2014-02-06 Marek Polacek <polacek@redhat.com>
2301 * c-common.c (warn_for_sign_compare): Call warning_at with location
2304 2014-02-05 Marek Polacek <polacek@redhat.com>
2307 * c-omp.c (c_finish_omp_atomic): Remove unreachable return
2310 2014-02-04 Marek Polacek <polacek@redhat.com>
2313 * c-common.c (conversion_warning): Unwrap C_MAYBE_CONST_EXPR and/or
2316 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
2320 * c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
2321 handle_vector_size_attribute, handle_nonnull_attribute): Call
2322 default_conversion on the attribute argument.
2323 (handle_nonnull_attribute): Increment the argument number.
2325 2014-01-31 Marek Polacek <polacek@redhat.com>
2328 * c-common.c (add_atomic_size_parameter): Pass vNULL to
2329 build_function_call_vec.
2330 (resolve_overloaded_builtin): Likewise.
2331 * c-common.h (build_function_call_vec): Adjust declaration.
2333 2014-01-30 Marek Polacek <polacek@redhat.com>
2336 * c-common.h (unsafe_conversion_p): Adjust declaration.
2337 (warnings_for_convert_and_check): Likewise.
2338 (convert_and_check): Likewise.
2339 * c-common.c (unsafe_conversion_p): Add location parameter. Call
2340 expansion_point_location_if_in_system_header on it.
2341 (warnings_for_convert_and_check): Add location parameter. Call
2342 expansion_point_location_if_in_system_header on it. Use it.
2343 (convert_and_check): Add location parameter. Use it.
2344 (conversion_warning): Likewise.
2345 (c_add_case_label): Adjust convert_and_check calls.
2346 (scalar_to_vector): Adjust unsafe_conversion_p calls.
2348 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
2350 * c-common.c (c_define_builtins): Replaced flag_enable_cilkplus with
2352 * c-pragma.c (init_pragma): Likewise.
2355 2014-01-23 Marek Polacek <polacek@redhat.com>
2358 * c-common.c (shorten_compare): Add location_t parameter.
2359 * c-common.h (shorten_binary_op): Adjust declaration.
2361 2014-01-23 Marek Polacek <polacek@redhat.com>
2364 * c-common.c (pointer_to_zero_sized_aggr_p): New function.
2365 * c-common.h: Declare it.
2367 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
2369 * c-ada-spec.h (dump_ada_specs): Revert prototype change.
2370 * c-ada-spec.c (dump_ads): Likewise.
2371 (cpp_check): Likewise.
2372 (dump_ada_specs): Likewise.
2374 2014-01-15 Laurent Alfonsi <laurent.alfonsi@st.com>
2377 * c-common.c (handle_no_instrument_function_attribute): Allow
2378 no_instrument_function attribute in class member
2379 definition/declaration.
2381 2014-01-15 Jakub Jelinek <jakub@redhat.com>
2384 * c-omp.c (c_finish_omp_atomic): Set in_late_binary_op around
2385 build_modify_expr with non-NOP_EXPR opcode. Handle return from it
2386 being COMPOUND_EXPR.
2387 (c_finish_omp_for): Handle incr being COMPOUND_EXPR with first
2388 operand a SAVE_EXPR and second MODIFY_EXPR.
2390 2014-01-09 Jakub Jelinek <jakub@redhat.com>
2393 * c-pch.c (c_common_write_pch): Call
2394 prepare_target_option_nodes_for_pch.
2396 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2398 Update copyright years
2400 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
2402 * array-notation-common.c, c-cilkplus.c: Use the standard form for
2403 the copyright notice.
2405 2013-12-28 Eric Botcazou <ebotcazou@adacore.com>
2407 * c-ada-spec.c (print_constructor): New function.
2408 (print_destructor): Retrieve the origin of the destructor.
2409 (print_ada_declaration): Revamp handling of constructors/destructors.
2411 2013-12-23 Stuart Hastings <stuart@apple.com>
2412 Bill Maddox <maddox@google.com>
2413 Jason Merrill <jason@redhat.com>
2415 * c.opt: Add -fdeclone-ctor-dtor.
2416 * c-opts.c (c_common_post_options): Default to on iff -Os.
2418 2013-12-18 Balaji V. Iyer <balaji.v.iyer@intel.com>
2420 * c-common.c (c_common_attribute_table): Added "cilk simd function"
2422 * c-pragma.h (enum pragma_cilk_clause): Remove.
2423 (enum pragma_omp_clause): Added the following fields:
2424 PRAGMA_CILK_CLAUSE_NOMASK, PRAGMA_CILK_CLAUSE_MASK,
2425 PRAGMA_CILK_CLAUSE_VECTORLENGTH, PRAGMA_CILK_CLAUSE_NONE,
2426 PRAGMA_CILK_CLAUSE_LINEAR, PRAGMA_CILK_CLAUSE_PRIVATE,
2427 PRAGMA_CILK_CLAUSE_FIRSTPRIVATE, PRAGMA_CILK_CLAUSE_LASTPRIVATE,
2428 PRAGMA_CILK_CLAUSE_UNIFORM.
2431 2013-12-11 Balaji V. Iyer <balaji.v.iyer@intel.com>
2433 * cilk.c (cilk_outline): Made this function non-static.
2434 (gimplify_cilk_spawn): Removed pre_p and post_p arguments.
2435 (create_cilk_wrapper): Added a new parameter: a function pointer.
2436 (c_install_body_w_frame_cleanup): Remove
2437 (extract_free_variables): Added VEC_INIT_EXPR and CONSTRUCTOR case.
2438 * c-common.h (cilk_outline): New prototype.
2439 (gimplify_cilk_spawn): Removed two parameters.
2440 (cilk_install_body_with_frame_cleanup): New prototype.
2441 * c-gimplify.c (c_gimplify_expr): Added MODIFY_EXPR, CALL_EXPR and
2442 CILK_SPAWN_STMT case.
2444 2013-12-11 Bernd Schmidt <bernds@codesourcery.com>
2446 * c-common.c (c_fully_fold_internal): Handle ADDR_SPACE_CONVERT_EXPR.
2448 * c-common.h (enum c_tree_index): Remove CTI_INT_ARRAY_TYPE.
2449 (int_array_type_node): Remove.
2450 * c-common.c (c_common_nodes_and_builtins): Don't build it.
2452 2013-12-05 Marek Polacek <polacek@redhat.com>
2455 * c-common.c (c_sizeof_or_alignof_type): Move a declaration into
2456 [ADJUST_FIELD_ALIGN].
2458 2013-12-04 Joseph Myers <joseph@codesourcery.com>
2461 * c-common.c (c_sizeof_or_alignof_type): Add parameter min_alignof
2462 and check field alignment if set.
2463 * c-common.h (c_sizeof_or_alignof_type): Update prototype.
2464 (c_sizeof, c_alignof): Update calls to c_sizeof_or_alignof_type.
2466 2013-12-04 Jakub Jelinek <jakub@redhat.com>
2467 Marek Polacek <polacek@redhat.com>
2469 * c-gimplify.c (c_gimplify_expr): If doing the integer-overflow
2470 sanitization, call unsigned_type_for only when !TYPE_OVERFLOW_WRAPS.
2472 2013-11-29 H.J. Lu <hongjiu.lu@intel.com>
2475 * cilk.c (gimplify_cilk_spawn): Properly handle function without
2478 2013-11-29 Jakub Jelinek <jakub@redhat.com>
2481 * c-common.c (get_priority): If TREE_VALUE (args) is IDENTIFIER_NODE,
2482 goto invalid. If it is error_mark_node, don't issue further
2485 2013-11-28 Sergey Ostanevich <sergos.gnu@gmail.com>
2487 * c.opt (Wopenmp-simd): New.
2489 2013-11-22 Jakub Jelinek <jakub@redhat.com>
2491 * c-ubsan.h (ubsan_instrument_return): New prototype.
2492 * c-ubsan.c (ubsan_instrument_return): New function.
2494 2013-11-22 Andrew MacLeod <amacleod@redhat.com>
2496 * c-common.c: Add required include files from gimple.h.
2497 * c-gimplify.c: Likewise
2500 2013-11-22 David Malcolm <dmalcolm@redhat.com>
2502 * c-common.c (unsafe_conversion_p): Remove use of
2503 EXPR_LOC_OR_HERE macro.
2504 (conversion_warning): Likewise.
2505 (warnings_for_convert_and_check): Likewise.
2506 (warn_for_collisions_1): Likewise.
2507 (shorten_compare): Likewise, and remove use of in_system_header
2508 macro, using the location from the former.
2509 * c-lex.c (dump_one_header): Remove use of input_filename macro.
2510 (cb_def_pragma): Remove use of in_system_header macro.
2511 (lex_string): Likewise.
2512 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
2514 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2515 Mike Stump <mikestump@comcast.net>
2516 Richard Sandiford <rdsandiford@googlemail.com>
2518 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
2519 instead of TREE_INT_CST_LOW, in cases where there is a protecting
2520 tree_fits_shwi_p or tree_fits_uhwi_p.
2521 (dump_generic_ada_node): Likewise.
2522 * c-format.c (check_format_arg): Likewise.
2523 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2525 2013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2527 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
2529 2013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
2532 * c-common.c (unsafe_conversion_p): Make this function
2533 return an enumeration with more detail.
2534 (conversion_warning): Use the new return type of
2535 unsafe_conversion_p to separately warn either about conversions
2536 that lower floating point number precision or about the other
2537 kinds of conversions.
2538 * c-common.h (enum conversion_safety): New enumeration.
2539 (unsafe_conversion_p): switching return type to
2540 conversion_safety enumeration.
2541 * c.opt: Adding new warning -Wfloat-conversion and
2542 enabling it with -Wconversion.
2544 2013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
2546 * c-opts.c: Include plugin.h.
2547 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
2549 2013-11-19 Marek Polacek <polacek@redhat.com>
2551 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
2553 (ubsan_instrument_shift): Likewise.
2554 (ubsan_instrument_vla): Likewise.
2556 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2558 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
2559 cast to unsigned type.
2561 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2563 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
2565 (complete_array_type): Update comment to refer to tree_to_[su]hwi
2566 rather than tree_low_cst.
2568 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2570 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
2571 tree_to_uhwi throughout.
2573 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2575 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
2576 tree_low_cst (..., 0) with tree_to_shwi throughout.
2578 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2580 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
2581 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
2583 2013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
2585 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
2586 host_integerp (..., 0) with tree_fits_shwi_p throughout.
2588 2013-11-15 Aldy Hernandez <aldyh@redhat.com>
2590 * c-cilkplus.c: New file.
2591 * c-common.c (readonly_error): Add location argument.
2592 * c-common.h (readonly_error): Same.
2593 (c_finish_cilk_clauses): Protoize.
2594 (c_check_cilk_loop): Same.
2595 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
2596 Do not fail on error_mark_node.
2597 Abstract increment canonicalization to here...
2598 (c_omp_for_incr_canonicalize_ptr): New.
2599 c-pragma.c (init_pragma): Register "simd" pragma.
2600 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
2601 (enum pragma_cilk_clause): New.
2603 2013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
2605 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
2606 wchar_type and host_integerp checks.
2608 2013-11-14 Andrew MacLeod <amacleod@redhat.com>
2610 * c-common.c: Likewise.
2611 * c-gimplify.c: Likewise.
2614 2013-11-14 Diego Novillo <dnovillo@google.com>
2616 * c-common.c: Include fold-const.h.
2617 Include stor-layout.h.
2619 Include stringpool.h.
2622 Include trans-mem.h.
2623 * c-cppbuiltin.c: Include stor-layout.h.
2624 Include stringpool.h.
2625 * c-format.c: Include stringpool.h.
2626 * c-lex.c: Include stringpool.h.
2627 Include stor-layout.h.
2628 * c-pragma.c: Include stringpool.h.
2631 Include gcc-symtab.h.
2632 * c-pretty-print.c: Include stor-layout.h.
2634 * cilk.c: Include stringpool.h.
2637 2013-11-13 Joseph Myers <joseph@codesourcery.com>
2639 * c-common.h (enum rid): Add RID_AUTO_TYPE.
2640 * c-common.c (c_common_reswords): Add __auto_type.
2641 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
2643 2013-11-12 Andrew MacLeod <amacleod@redhat.com>
2645 * c-common.c: Include gimplify.h.
2646 * c-gimplify.c: Likewise.
2648 * c-omp.c: Include gimple-expr.h instead of gimple.h.
2649 * c-ubsan.c: Don't include gimple.h.
2651 2013-11-12 Joseph Myers <joseph@codesourcery.com>
2653 * c-common.c (c_common_reswords): Add _Thread_local.
2655 2013-11-09 Joseph Myers <joseph@codesourcery.com>
2657 * c-common.c (atomic_size_supported_p): New function.
2658 (resolve_overloaded_atomic_exchange)
2659 (resolve_overloaded_atomic_compare_exchange)
2660 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
2661 Use it instead of comparing size with a local list of sizes.
2663 2013-11-07 Andrew MacLeod <amacleod@redhat.com>
2664 Joseph Myers <joseph@codesourcery.com>
2666 * c-common.h (enum rid): Add RID_ATOMIC.
2667 * c-common.c (c_common_reswords): Add _Atomic.
2668 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
2669 (keyword_is_type_qualifier): Accept RID_ATOMIC.
2670 * c-format.c (check_format_types): Check for extra _Atomic
2671 qualifiers in format argument.
2672 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
2673 (pp_c_type_qualifier_list): Mention _Atomic in comment.
2675 2013-11-06 Tobias Burnus <burnus@net-b.de>
2677 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
2679 2013-11-06 Joseph Myers <joseph@codesourcery.com>
2681 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
2683 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
2684 to mean lack of IEEE 754 support.
2686 2013-11-05 Tobias Burnus <burnus@net-b.de>
2688 * c.opt (-Wdate-time): New option
2689 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
2691 2013-11-05 Joseph Myers <joseph@codesourcery.com>
2693 * c-cppbuiltin.c (cpp_iec_559_value): Test
2694 flag_excess_precision_cmdline not flag_excess_precision.
2696 2013-11-05 Tobias Burnus <burnus@net-b.de>
2698 * c.opt (fopenmp-simd): New option.
2699 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
2700 (omp_pragmas): ... this new struct.
2701 (c_pp_lookup_pragma): Also walk omp_pragmas.
2702 (init_pragma): Init pragmas for -fopenmp-simd.
2704 2013-11-04 Marek Polacek <polacek@redhat.com>
2707 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
2709 2013-11-04 Joseph Myers <joseph@codesourcery.com>
2711 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
2713 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
2715 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2717 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
2718 (dump_ada_specs): Adjust prototype of second callback.
2719 * c-ada-spec.c (cpp_check): New global variable.
2720 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
2721 (print_generic_ada_decl): Likewise.
2722 (has_static_fields): Change return type to bool and add guard.
2723 (has_nontrivial_methods): New predicate.
2724 (is_tagged_type): Change return type to bool.
2725 (separate_class_package): Call has_nontrivial_methods.
2726 (pp_ada_tree_identifier): Minor tweaks.
2727 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
2728 (dump_ada_array_domains): Likewise.
2729 (dump_ada_array_type): Likewise.
2730 (dump_template_types): Remove cpp_check parameter and do not pass it to
2731 dump_generic_ada_node.
2732 (dump_ada_template): Likewise.
2733 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
2735 (print_ada_methods): Change return type to integer. Remove cpp_check
2736 parameter and do not pass it down.
2737 (dump_nested_types): Remove cpp_check parameter and do not pass it to
2738 dump_generic_ada_node.
2739 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
2741 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
2742 down. Use has_nontrivial_methods to recognize C++ classes. Use return
2743 value of print_ada_methods.
2744 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
2745 Set cpp_check to it before invoking dump_ada_nodes.
2746 (dump_ada_specs): Likewise.
2748 2013-11-03 Marek Polacek <polacek@redhat.com>
2750 * c-ubsan.c: Don't include hash-table.h.
2751 (ubsan_instrument_vla): New function.
2752 * c-ubsan.h: Declare it.
2754 2013-10-31 David Malcolm <dmalcolm@redhat.com>
2756 Automated part of renaming of symtab_node_base to symtab_node.
2758 Patch autogenerated by rename_symtab.py from
2759 https://github.com/davidmalcolm/gcc-refactoring-scripts
2760 revision 58bb219cc090b2f4516a9297d868c245495ee622
2762 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
2763 symtab_node_base to symtab_node.
2765 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
2767 Implement C++14 digit separators.
2768 * c-lex.c (interpret_float): Remove digit separators from scratch string
2769 before building real literal.
2771 2013-10-30 Jakub Jelinek <jakub@redhat.com>
2773 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
2775 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
2777 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
2779 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
2781 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
2782 (insert_cilk_frame): New prototype.
2783 (cilk_init_builtins): Likewise.
2784 (gimplify_cilk_spawn): Likewise.
2785 (c_cilk_install_body_w_frame_cleanup): Likewise.
2786 (cilk_detect_spawn_and_unwrap): Likewise.
2787 (cilk_set_spawn_marker): Likewise.
2788 (build_cilk_sync): Likewise.
2789 (build_cilk_spawn): Likewise.
2792 2013-10-29 David Malcolm <dmalcolm@redhat.com>
2794 Patch autogenerated by refactor_symtab.py from
2795 https://github.com/davidmalcolm/gcc-refactoring-scripts
2796 revision 58bb219cc090b2f4516a9297d868c245495ee622
2798 * c-gimplify.c (c_genericize): Update for conversion of symtab types
2799 to a true class hierarchy.
2800 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
2802 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
2804 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
2806 2013-10-26 Jeff Law <law@redhat.com>
2808 * c-common.c (c_define_builtins): Remove mudflap support.
2809 * c.opt: Ignore and warn for mudflap options.
2811 2013-10-24 Tobias Burnus <burnus@net-b.de>
2814 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
2815 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
2817 2013-10-23 Jason Merrill <jason@redhat.com>
2819 * c-format.c (gcc_cxxdiag_char_table): Add %X.
2821 2013-10-11 Jakub Jelinek <jakub@redhat.com>
2823 * c-common.h (omp_clause_mask::operator !=): New method.
2824 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
2825 instead of if (mask & something) tests everywhere.
2827 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
2828 201307 instead of 201107.
2829 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
2830 (c_common_attribute_table): Add "omp declare target" and
2831 "omp declare simd" attributes.
2832 (handle_omp_declare_target_attribute,
2833 handle_omp_declare_simd_attribute): New functions.
2834 * c-omp.c: Include c-pragma.h.
2835 (c_finish_omp_taskgroup): New function.
2836 (c_finish_omp_atomic): Add swapped argument, if true,
2837 build the operation first with rhs, lhs arguments and use NOP_EXPR
2839 (c_finish_omp_for): Add code argument, pass it down to make_code.
2840 (c_omp_split_clauses): New function.
2841 (c_split_parallel_clauses): Removed.
2842 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
2843 c_omp_declare_simd_clauses_to_decls): New functions.
2844 * c-common.h (omp_clause_mask): New type.
2845 (OMP_CLAUSE_MASK_1): Define.
2846 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
2847 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
2848 omp_clause_mask::operator |, omp_clause_mask::operator &,
2849 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
2850 omp_clause_mask::operator ==): New methods.
2851 (enum c_omp_clause_split): New.
2852 (c_finish_omp_taskgroup): New prototype.
2853 (c_finish_omp_atomic): Add swapped argument.
2854 (c_finish_omp_for): Add code argument.
2855 (c_omp_split_clauses): New prototype.
2856 (c_split_parallel_clauses): Removed.
2857 (c_omp_declare_simd_clauses_to_numbers,
2858 c_omp_declare_simd_clauses_to_decls): New prototypes.
2859 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
2860 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
2861 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
2862 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
2863 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
2864 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
2865 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
2866 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
2867 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
2868 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
2869 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
2870 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
2871 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
2872 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
2873 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
2874 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
2875 PRAGMA_OMP_CLAUSE_UNIFORM.
2877 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
2879 PR tree-optimization/20318
2880 * c-common.c (handle_returns_nonnull_attribute): New function.
2881 (c_common_attribute_table): Add returns_nonnull.
2883 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
2886 * c.opt (fcheck-new): Move to common.opt.
2888 2013-09-25 Marek Polacek <polacek@redhat.com>
2889 Jakub Jelinek <jakub@redhat.com>
2892 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
2893 an expression if we can prove it is correct.
2894 (ubsan_instrument_division): Likewise. Remove unnecessary
2897 2013-09-18 Marek Polacek <polacek@redhat.com>
2900 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
2902 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
2904 2013-09-14 Iain Sandoe <iain@codesourcery.com>
2907 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
2908 fobjc-gc, freplace-objc-classes): Accept for LTO.
2910 2013-09-13 Jacek Caban <jacek@codeweavers.com>
2912 * c-target.def: New hook
2914 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2917 * c.opt (Wdelete-incomplete): Add.
2919 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
2921 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
2922 (vector_types_compatible_elements_p): New function.
2923 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
2925 (vector_types_compatible_elements_p): Declare.
2927 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
2929 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
2930 a virtual member function.
2931 (pp_simple_type_specifier): Remove.
2932 (pp_c_type_specifier): Likewise.
2933 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
2934 Rename from pp_c_type_specifier. Adjust.
2935 (c_pretty_printer::c_pretty_printer): Do not assign to
2936 simple_type_specifier.
2938 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2940 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
2942 (c_pretty_printer::storage_class_specifier): Likewise.
2943 (c_pretty_printer::initializer): Likewise.
2944 (pp_declaration): Remove.
2945 (pp_declaration_specifiers): Likewise.
2946 (pp_abstract_declarator): Likewise.
2947 (pp_declarator): Likewise.
2948 (pp_type_id): Likewise.
2949 (pp_statement): Likewise.
2950 (pp_constant): Likewise.
2951 (pp_id_expression): Likewise.
2952 (pp_primary_expression): Likewise.
2953 (pp_unary_expression): Likewise.
2954 (pp_multiplicative_expression): Likewise.
2955 (pp_conditional_expression): Likewise.
2956 (pp_assignment_expression): Likewise.
2957 (pp_expression): Likewise.
2958 (pp_c_type_id): Likewise.
2959 (pp_c_storage_class_specifier): Likewise.
2960 * c-pretty-print.c (pp_c_type_cast): Tidy.
2961 (pp_c_pointer): Likewise.
2962 (pp_c_type_specifier): Likewise.
2963 (pp_c_parameter_type_list): Likewise.
2964 (pp_c_function_definition): Likewise.
2965 (pp_c_init_declarator): Likewise.
2966 (pp_c_initializer_list): Likewise.
2967 (pp_c_constructor_elts): Likewise.
2968 (c_pretty_printer::direct_abstract_declarator): Likewise.
2969 (c_pretty_printer::declaration_specifiers): Likewise.
2970 (c_pretty_printer::primary_expression): Likewise.
2971 (c_pretty_printer::postfix_expression): Likewise.
2972 (c_pretty_printer::type_id): Rename from pp_c_type_id.
2973 (c_pretty_printer::storage_class_specifier): Rename from
2974 pp_c_storage_class_specifier.
2975 (c_pretty_printer::initializer): Rename from pp_c_initializer.
2976 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
2977 storage_class_specifier, initializer, offset_list, flags.
2979 2013-08-30 Marek Polacek <polacek@redhat.com>
2981 * c-ubsan.c: New file.
2982 * c-ubsan.h: New file.
2984 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
2986 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
2988 (c_pretty_printer::declaration_specifiers): Likewise.
2989 (c_pretty_printer::declarator): Likewise.
2990 (c_pretty_printer::abstract_declarator): Likewise.
2991 (c_pretty_printer::direct_abstract_declarator): Likewise.
2992 (c_pretty_printer::direct_declarator): Likewise.
2993 (c_pretty_printer::function_specifier): Likewise.
2994 (pp_declaration): Adjust.
2995 (pp_declaration_specifiers): Likewise.
2996 (pp_abstract_declarator): Likewise.
2997 (pp_direct_declarator): Likewise.
2998 (pp_function_specifier): Likewise.
2999 (pp_direct_abstract_declarator): Remove as unused.
3000 (pp_c_declaration): Remove.
3001 (pp_c_declaration_specifiers): Likewise.
3002 (pp_c_declarator): Likewise.
3003 (pp_c_direct_declarator): Likewise.
3004 (pp_c_function_specifier): Likewise.
3005 (pp_c_direct_abstract_declarator): Likewise.
3006 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
3007 from pp_c_abstract_declarator. Adjust.
3008 (c_pretty_printer::direct_abstract_declarator): Rename from
3009 pp_c_direct_abstract_declarator. Adjust.
3010 (c_pretty_printer::function_specifier): Rename from
3011 pp_c_function_specifier. Adjust.
3012 (c_pretty_printer::declaration_specifiers): Rename from
3013 pp_c_declaration_specifiers. Adjust.
3014 (c_pretty_printer::direct_declarator): Rename from
3015 pp_c_direct_declarator. Adjust.
3016 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
3017 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
3018 (c_pretty_printer::c_pretty_printer): Do not assign to
3019 declaration, declaration_specifiers, declarator,
3020 direct_declarator, direct_abstract_declarator, function_specifier.
3022 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
3024 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
3025 virtual member function.
3026 (c_pretty_printer::multiplicative_expression): Likewise.
3027 (c_pretty_printer::conditional_expression): Likewise.
3028 (c_pretty_printer::assignment_expression): Likewise.
3029 (c_pretty_printer::expression): Likewise.
3030 (pp_unary_expression): Adjust.
3031 (pp_multiplicative_expression): Likewise.
3032 (pp_assignment_expression): Likewise.
3033 (pp_conditional_expression): Likewise.
3034 (pp_expression): Likewise.
3035 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
3036 from pp_c_unary_expression. Adjust.
3037 (c_pretty_printer::multiplicative_expression): Rename from
3038 pp_c_multiplicative_expression. Adjust.
3039 (c_pretty_printer::conditional_expression): Rename from
3040 pp_c_conditional_expression. Adjust.
3041 (c_pretty_printer::assignment_expression): Rename from
3042 pp_c_assignment_expression. Adjust.
3043 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
3044 (c_pretty_printer::c_pretty_printer): Do not assign to
3045 unary_expression, multiplicative_expression,
3046 conditional_expression, expression.
3048 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3050 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
3051 virtual member function.
3052 (pp_postfix_expression): Adjust.
3053 (pp_c_postfix_expression): Remove.
3054 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
3055 from pp_c_postfix_expression. Adjust.
3056 (c_pretty_printer::c_pretty_printer): Do not assign to
3059 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3061 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
3062 virtua member function.
3063 (pp_primary_expression): Adjust.
3064 (pp_c_primary_expression): Remove.
3065 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
3066 from pp_c_primary_expression. Adjust.
3067 (pp_c_initializer_list): Use pp_primary_expression.
3068 (c_pretty_printer::c_pretty_printer): Do not assign to
3071 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3073 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
3074 * c-pretty-print.c (M_): Remove.
3075 (c_pretty_printer::translate_string): Define.
3076 (pp_c_type_specifier): Use it.
3077 (pp_c_primary_expression): Likewise.
3078 (pp_c_expression): Likewise.
3080 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3082 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
3084 (pp_c_id_expression): Remove.
3085 (pp_id_expression): Adjust.
3086 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
3087 pp_c_id_expression. Adjust.
3088 (pp_c_postfix_expression): Use pp_id_expression.
3089 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
3091 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3093 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
3095 (pp_constant): Adjust.
3096 (pp_c_constant): Remove.
3097 * c-pretty-print.c (c_pretty_printer::constant): Rename from
3098 pp_c_constant. Adjust.
3100 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
3101 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
3103 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3105 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
3106 (c_pretty_printer::c_pretty_printer): Declare.
3107 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
3108 c_pretty_printer_init. Adjust.
3109 (print_c_tree): Do not call c_pretty_printer_init.
3110 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
3112 2013-08-09 Arnaud Charlet <charlet@adacore.com>
3114 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
3116 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
3119 * c-common.c (pointer_int_sum): Add bool parameter.
3120 * c-common.h (pointer_int_sum): Adjust declaration.
3122 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
3124 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
3125 c_pretty_printer variable.
3127 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
3129 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
3131 (pp_c_base): Likewise. Adjust users.
3132 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
3133 (pp_c_whitespace): Do not call pp_base.
3134 (pp_c_left_paren): Likewise.
3135 (pp_c_right_paren): Likewise.
3136 (pp_c_left_brace): Likewise.
3137 (pp_c_right_brace): Likewise.
3138 (pp_c_left_bracket): Likewise.
3139 (pp_c_right_bracket): Likewise.
3140 (pp_c_dot): Likewise.
3141 (pp_c_ampersand): Likewise.
3142 (pp_c_star): Likewise.
3143 (pp_c_arrow): Likewise.
3144 (pp_c_semicolon): Likewise.
3145 (pp_c_complement): Likewise.
3146 (pp_c_exclamation): Likewise.
3147 (pp_c_direct_declarator): Likewise.
3148 (pp_c_ws_string): Likewise.
3149 (pp_c_identifier): Likewise.
3150 (pp_c_statement): Likewise.
3151 (print_c_tree): Likewise.
3153 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
3156 * c-common.c (c_parse_error): Catch user-defined literal tokens and
3157 provide useful error strings.
3159 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3161 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
3162 printer functions instead of pp_string or operators and punctuators.
3163 (dump_generic_ada_node): Likewise.
3164 * c-pretty-print.c (pp_c_type_specifier): Likewise.
3165 (pp_c_relational_expression): Likewise.
3166 (pp_c_logical_or_expression): Likewise.
3168 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3170 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
3171 functions instead of pp_character.
3172 (pp_ada_tree_identifier): Likewise.
3173 (dump_ada_double_name): Likewise.
3174 (dump_ada_function_declaration): Likewise.
3175 (dump_ada_array_domains): Likewise.
3176 (dump_template_types): Likewise.
3177 (dump_generic_ada_node): Likewise.
3178 (print_ada_declaration): Likewise.
3179 (print_ada_struct_decl): Likewise.
3180 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3182 2013-07-23 Tom Tromey <tromey@redhat.com>
3184 * c-common.h (enum rid) <RID_GENERIC>: New constant.
3185 * c-common.c (c_common_reswords): Add _Generic.
3187 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
3189 * c-common.c: Fix typos.
3190 * c-common.h: Likewise.
3192 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
3195 * c-common.c (c_common_attribute_table): Add warn_unused.
3196 (handle_warn_unused_attribute): New.
3198 2013-07-10 Jakub Jelinek <jakub@redhat.com>
3200 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
3201 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
3203 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
3206 * c.opt: Add Wconditionally-supported.
3208 2013-07-08 Graham Stott <graham.stott@btinternet.com>
3210 * array-notation-common.c (length_mismatch_in_expr_p): Delete
3211 unused variables l_length and l_node.
3213 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
3216 * c-common.c (complete_array_type): Delay folding first index
3217 like other indices. When folding, check for index overflow.
3219 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
3222 * c-common.h (c_build_vec_perm_expr): New complain argument.
3223 * c-common.c (c_build_vec_perm_expr): Likewise.
3224 Use save_expr also in C++.
3226 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
3228 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
3229 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3230 * c-opts.c (c_common_post_options): Likewise.
3232 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3234 * array-notation-common.c (length_mismatch_in_expr): Changed the
3235 parameter type's from a dynamic array to a vec_tree. Also removed
3236 the size parameters.
3237 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
3240 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
3242 * c-common.h (struct cilkplus_an_parts): New structure.
3243 (struct cilkplus_an_loop_parts): Likewise.
3244 (cilkplus_extract_an_triplets): New prototype.
3245 (fix_sec_implicit_args): Likewise.
3246 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
3247 (fix_sec_implicit_args): Likewise.
3249 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
3251 * array-notation-common.c (find_inv_trees): Removed an unwanted
3253 * c-common.h (struct inv_list::additional_tcodes): Changed type from
3254 enum rid to enum tree_code.
3256 2013-06-11 Jan Hubicka <jh@suse.cz>
3258 * c-common.c (handle_alias_ifunc_attribute): Do not set
3259 DECL_EXTERNAL for weakref variables.
3260 * c-pragma.c (handle_pragma_weak): Make sure aliases
3261 are not declared as external.
3263 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
3265 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
3266 function from c/c-array-notation.c.
3267 (is_cilkplus_reduce_builtin): Likewise.
3268 (find_rank): Likewise.
3269 (extract_array_notation_exprs): Likewise.
3270 (replace_array_notations): Likewise.
3271 (find_inv_trees): Likewise.
3272 (replace_inv_trees): Likewise.
3273 (contains_array_notation_expr): Likewise.
3274 (find_correct_array_notation_type): Likewise.
3275 * c-common.h (struct inv_list): Moved this struct from the file
3276 c/c-array-notation.c and added a new field called additional tcodes.
3277 (length_mismatch_in_expr_p): New prototype.
3278 (is_cilkplus_reduce_builtin): Likewise.
3279 (find_rank): Likewise.
3280 (extract_array_notation_exprs): Likewise.
3281 (replace_array_notation): Likewise.
3282 (find_inv_trees): Likewise.
3283 (replace_inv_trees): Likewise.
3284 (find_correct_array_notation_type): Likewise.
3286 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3288 * c-common.c (c_define_builtins): When cilkplus is enabled, the
3289 function array_notation_init_builtins is called.
3290 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
3291 * c-common.def (ARRAY_NOTATION_REF): New tree.
3292 * c-common.h (build_array_notation_expr): New function declaration.
3293 (build_array_notation_ref): Likewise.
3294 (extract_sec_implicit_index_arg): New extern declaration.
3295 (is_sec_implicit_index_fn): Likewise.
3296 (ARRAY_NOTATION_CHECK): New define.
3297 (ARRAY_NOTATION_ARRAY): Likewise.
3298 (ARRAY_NOTATION_START): Likewise.
3299 (ARRAY_NOTATION_LENGTH): Likewise.
3300 (ARRAY_NOTATION_STRIDE): Likewise.
3301 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
3303 (pp_c_expression): Likewise.
3304 * c.opt (flag_enable_cilkplus): New flag.
3305 * array-notation-common.c: New file.
3307 2013-05-14 Jakub Jelinek <jakub@redhat.com>
3310 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
3312 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
3314 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
3317 2013-05-07 Han Shen <shenhan@google.com>
3319 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
3321 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3323 * c-common.c (check_user_alignment): Emit error for negative values.
3325 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3327 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
3329 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3331 * c-cppbuiltin.c (c_cpp_builtins): Do not define
3332 __GXX_EXPERIMENTAL_CXX1Y__.
3334 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3335 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3337 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
3338 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
3339 to simply use OPT_Wpointer_arith.
3340 (c_sizeof_or_alignof_type): Likewise.
3342 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3344 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
3346 2013-04-12 Jakub Jelinek <jakub@redhat.com>
3348 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
3349 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
3352 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
3354 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
3356 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
3358 * c-common.c (pointer_int_sum): Remove dead code.
3360 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
3363 * c-common.c (handle_optimize_attribute): Don't call
3364 save_optabs_if_changed.
3366 2013-03-05 Jakub Jelinek <jakub@redhat.com>
3369 * c-pch.c (pch_init): Free target_validity at the end.
3371 2013-03-04 Jakub Jelinek <jakub@redhat.com>
3373 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
3375 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
3376 Jakub Jelinek <jakub@redhat.com>
3379 * c-common.c (handle_no_sanitize_address_attribute): New function.
3380 (c_common_attribute_table): Add no_sanitize_address attribute.
3381 (handle_no_address_safety_analysis_attribute): Add
3382 no_sanitize_address attribute, not no_address_safety_analysis
3385 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
3388 * c-common.c (handle_optimize_attribute): Call
3389 save_optabs_if_changed.
3391 2013-02-18 Jakub Jelinek <jakub@redhat.com>
3392 Steven Bosscher <steven@gcc.gnu.org>
3395 * c-opts.c (c_common_post_options): If debug info is enabled
3396 and non-dwarf*, refuse to load PCH files and when writing PCH
3399 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3402 * c-common.c (handle_error_attribute): Fix condition.
3404 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3407 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
3409 2013-01-18 Jason Merrill <jason@redhat.com>
3412 * c.opt (-fextern-tls-init): New.
3413 * c-opts.c (c_common_post_options): Handle it.
3415 2013-01-09 Jakub Jelinek <jakub@redhat.com>
3418 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
3419 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
3420 and is either negative or bigger or equal to type precision
3421 of the first operand.
3423 2012-12-03 Marek Polacek <polacek@redhat.com>
3426 * c-common.c (check_user_alignment): Swap order of tests,
3427 check TREE_CODE first.
3429 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
3432 * c-common.h (overflow_type): New enum.
3433 (build_userdef_literal): Add overflow_type argument.
3434 (tree_userdef_literal): Add overflow_type.
3435 (USERDEF_LITERAL_OVERFLOW): New access macro.
3436 * c-common.c (build_userdef_literal): Add overflow_type
3438 * c-lex.c (c_lex_with_flags): Add overflow_type to
3439 build_userdef_literal calls.
3440 (interpret_integer, interpret_float): Add overflow_type argument.
3442 2012-11-28 Richard Biener <rguenther@suse.de>
3445 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
3446 here and use a type with proper overflow behavior for types that would
3447 need to be promoted for the arithmetic.
3449 2012-11-23 Jakub Jelinek <jakub@redhat.com>
3452 * c-common.c (handle_no_address_safety_analysis_attribute): New
3454 (c_common_attribute_table): Add no_address_safety_analysis.
3456 2012-11-16 Simon Baldwin <simonb@google.com>
3458 * c.opt: Add f[no-]canonical-system-headers.
3459 * c-opts.c (c_common_handle_option): Handle
3460 OPT_fcanonical_system_headers.
3462 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
3465 * c-opts.c (c_common_handle_option): Set new flags.
3466 * c.opt: Describe new flags.
3468 2012-11-09 Jason Merrill <jason@redhat.com>
3470 * c.opt (Wabi-tag): New.
3472 2012-11-09 Andi Kleen <ak@linux.intel.com>
3475 * c-common.c (get_atomic_generic_size): Mask with
3478 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3481 * c.opt (Wformat): Make it Alias Wformat=1.
3482 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
3483 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
3485 (Wformat=): RejectNegative. Use LangEnabledBy.
3486 (Wnonnull): Use LangEnabledBy.
3487 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
3488 * c-format.c (set_Wformat): Delete.
3489 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
3490 (maybe_read_dollar_number): Likewise.
3491 (avoid_dollar_number): Likewise.
3492 (finish_dollar_format_checking): Likewise.
3493 (check_format_info): Likewise.
3494 (check_format_info_main): Likewise.
3495 (check_format_types): Likewise.
3496 (format_type_warning): Likewise.
3497 * c-common.c (int): Likewise.
3498 (check_function_sentinel): Likewise.
3499 * c-common.h (warn_format,set_Wformat): Do not declare here.
3501 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3504 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
3505 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
3507 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
3509 (Wvariadic-macros): Init(1).
3510 * c-opts.c (c_common_handle_option): Do not handle them
3512 (c_common_post_options): Likewise.
3513 (sanitize_cpp_opts): warn_unused_macros is now
3514 cpp_warn_unused_macros.
3515 (push_command_line_include): Likewise.
3516 * c-common.c (warn_unknown_pragmas): Do not define.
3517 * c-common.h (warn_unknown_pragmas): Do not declare.
3519 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
3522 * c-common.c (conversion_warning): Handle conditional expressions.
3524 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3527 * c.opt (Wreturn_local_addr): Define new option.
3529 2012-10-25 Jason Merrill <jason@redhat.com>
3531 * c.opt (Wvirtual-move-assign): New.
3533 * c.opt (Winherited-variadic-ctor): New.
3535 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
3538 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
3540 2012-10-23 Joseph Myers <joseph@codesourcery.com>
3542 * c-common.h (pch_cpp_save_state): Declare.
3543 * c-target.def (c_preinclude): New hook.
3544 * c-opts.c (done_preinclude): New.
3545 (push_command_line_include): Handle default preincluded header.
3546 (cb_file_change): Call pch_cpp_save_state when calling
3547 push_command_line_include.
3548 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
3549 (pch_cpp_save_state): New.
3550 (pch_init): Call pch_cpp_save_state conditionally, instead of
3551 calling cpp_save_state.
3553 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
3557 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
3558 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
3559 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
3560 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
3561 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
3562 * c-opts.c (c_common_handle_option): Remove explicit handling from
3564 (c_common_post_options): Likewise.
3566 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
3568 * c-ada-spec.c (LOCATION_COL): Delete.
3569 (compare_location): New function.
3570 (compare_node): Use it.
3571 (compare_comment): Likewise.
3573 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
3577 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
3578 * c-opts.c (c_common_handle_option): Do not set them here. Add
3580 (c_common_post_options): Likewise.
3582 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
3584 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
3585 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
3586 Remove POINTER_TYPE handling, add large unsigned handling and use
3587 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
3589 2012-10-12 Jakub Jelinek <jakub@redhat.com>
3592 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
3593 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
3594 locs and array of 3 trees instead of just single loc and single
3595 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
3596 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
3597 For *cmp* builtins that take two sources strings report warnings
3598 about first and second source, not about destination and source.
3600 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
3603 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
3605 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
3607 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
3608 declaring something coming from another file.
3610 2012-10-10 Arnaud Charlet <charlet@adacore.com>
3613 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
3615 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
3618 * c-common.c (warn_about_parentheses): Add location_t parameter;
3619 use EXPR_LOC_OR_LOC.
3620 * c-common.h: Update declaration.
3622 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
3625 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
3626 more operations. Make error messages optional.
3627 * c-common.h (enum stv_conv): Moved from c-typeck.c.
3628 (scalar_to_vector): Declare.
3630 2012-10-08 Jason Merrill <jason@redhat.com>
3632 * c-common.c (c_common_reswords): Add thread_local.
3634 2012-10-08 Dodji Seketeli <dodji@redhat.com>
3636 PR c++/53528 C++11 attribute support
3637 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
3639 * c-common.c (check_cxx_fundamental_alignment_constraints): New
3641 (handle_aligned_attribute): In choose strictest alignment
3642 among many. Use new check_cxx_fundamental_alignment_constraints.
3643 (handle_transparent_union_attribute): In c++11 attribute syntax,
3644 don't look through typedefs.
3646 2012-10-04 Arnaud Charlet <charlet@adacore.com>
3648 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
3649 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
3652 2012-09-25 Dehao Chen <dehao@google.com>
3655 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
3656 map when read in the pch.
3658 2012-09-18 Arnaud Charlet <charlet@adacore.com>
3660 * c-ada-spec.c: Style fixes.
3662 2012-09-18 Thomas Quinot <quinot@adacore.com>
3664 * c.opt (-fada-spec-parent): Define new command line switch.
3665 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
3666 is specified, generate binding spec as a child of the specified unit.
3668 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
3669 Manuel López-Ibáñez <manu@gcc.gnu.org>
3672 * c.opt ([Winit-self]): Enabled by -Wall in C++.
3674 2012-08-23 Arnaud Charlet <charlet@adacore.com>
3676 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
3677 for pointers, and add missing Convention C pragma.
3678 (print_ada_struct_decl): Add missing aliased keyword.
3679 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
3681 2012-08-17 Jakub Jelinek <jakub@redhat.com>
3683 * c-common.c (sizeof_pointer_memaccess_warning): New function.
3684 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
3685 * c-opts.c (c_common_handle_option): Enable it for -Wall.
3686 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
3687 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
3689 2012-08-10 Richard Guenther <rguenther@suse.de>
3691 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
3693 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
3695 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
3696 instead of separate pp_newline and pp_flush.
3697 (print_c_tree): Likewise.
3699 2012-07-26 Richard Henderson <rth@redhat.com>
3701 * c-common.c (handle_hot_attribute): Allow labels.
3702 (handle_cold_attribute): Likewise.
3704 2012-07-20 Jakub Jelinek <jakub@redhat.com>
3707 * c-common.c (check_function_nonnull): Handle multiple nonnull
3708 attributes properly.
3710 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
3712 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
3713 * c-ada-spec.c: Likewise.
3714 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
3716 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
3718 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
3719 Remove code conditional on it.
3721 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
3723 * c-gimplify.c: Do not include basic-block.h.
3724 * c-common.c: Do not include linfuncs.h.
3726 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
3728 * c-common.h: Include tree.h.
3730 2012-07-02 Jason Merrill <jason@redhat.com>
3733 * c-common.c (get_priority): Call default_conversion.
3735 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
3737 * c-pch.c (c_common_write_pch): Remove unused variables.
3739 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
3741 * cppspec.c: Moved from gcc/ to here.
3743 2012-06-27 Kai Tietz <ktietz@redhat.com>
3745 PR preprocessor/37215
3746 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
3748 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
3750 * c-common.h (c_common_print_pch_checksum): Remove.
3751 * c-pch.c: Do not include output.h.
3752 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
3753 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
3754 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
3755 (struct c_pch_header): Remove.
3756 (get_ident): Update gpch version.
3757 (pch_init): Do not print executable_checksum to asm_out_file.
3758 Do not fail if there is no asm_out_file to read back from. Set
3759 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
3760 (c_common_write_pch): Verify that nothing was written to asm_out_file
3761 since pch_init was called. Do not write a c_pch_header, and do not
3762 copy from asm_out_file to the PCH.
3763 (c_common_read_pch): Do not read a c_pch_header, and do not restore
3764 the content of asm_out_file from the PCH.
3765 (c_common_print_pch_checksum): Remove.
3766 * c-opts.c (c_common_init): Print out executable_checksum directly.
3768 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3770 * c-target.def (objc_declare_unresolved_class_reference,
3771 objc_declare_class_definition): Add new hooks.
3773 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
3775 * c-lex.c: Do not include output.h.
3776 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
3777 Remove uses of ASM_OUTPUT_IDENT.
3779 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
3782 * c-common.h (c_build_vec_perm_expr): Move decl here.
3783 * c-common.c (c_build_vec_perm_expr): Move definition
3786 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
3788 * c.opt (fconserve-space): Turn into a no-op.
3790 2012-06-04 Sterling Augustine <saugustine@google.com>
3792 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
3793 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
3794 both the start and end of the function.
3796 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3798 * c-common.c: Do not include output.h.
3799 * c-pragma.c: Likewise.
3801 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
3803 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
3804 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
3805 (lang_decl_name): Handle namespace decls.
3807 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
3809 * c-ada-spec.c: Do not include output.h.
3810 * c-semantics.c: Likewise.
3812 2012-05-29 Joseph Myers <joseph@codesourcery.com>
3814 * c-common.c: Fix typo.
3816 2012-05-29 Michael Matz <matz@suse.de>
3818 * c-common.h (c_expand_decl): Remove prototype.
3820 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3822 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
3823 * c-opts.c (c_common_handle_option): Remove code handling
3824 warn_missing_braces.
3826 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
3829 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
3832 2012-05-22 Dodji Seketeli <dodji@redhat.com>
3835 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
3837 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
3839 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
3840 * c-opts.c (c_common_handle_option): Do not handle explicitly
3841 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
3843 2012-05-16 Dodji Seketeli <dodji@redhat.com>
3845 PR preprocessor/7263
3846 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
3847 to cpp_classify_number. For diagnostics, use the precise location
3848 instead of the global input_location.
3850 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
3853 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
3855 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
3857 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
3859 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
3862 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
3863 Wreorder): Use LangEnabledBy.
3864 * c-opts.c (c_common_handle_option): Do not enable them
3865 explicitly. Call lang-specific generated functions.
3866 (c_common_post_options): Do not set them here.
3868 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
3870 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
3871 Wmissing-field-initializers,Wmissing-parameter-type,
3872 Wold-style-declaration,Woverride-init): Use EnabledBy.
3873 * c-opts.c (c_common_post_options): Do not set here explicitly.
3875 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3878 * c-opts.c (c_common_handle_option): Use handle_generated_option
3879 to enable sub-options.
3881 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
3884 * c-common.c (warnings_for_convert_and_check): Use warning_at.
3886 2012-05-10 Richard Guenther <rguenther@suse.de>
3888 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
3889 adjust commentary about TYPE_IS_SIZETYPE types.
3891 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
3894 * c-common.c (warn_logical_operator): Check that argument of
3895 integer_zerop is not NULL.
3897 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
3900 * c-common.c (warn_logical_operator): Do not warn if either side
3901 is already true or false.
3903 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3906 * c-common.c (expr_original_type): New.
3907 (shorten_compare): Do not warn for enumeration types.
3909 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3911 * c.opt (fpermissive): Add Var(flag_permissive).
3913 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
3916 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
3917 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
3919 2012-04-30 Dodji Seketeli <dodji@redhat.com>
3921 Add -Wvarargs option
3922 * c.opt (Wvarargs): Define new option.
3924 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3926 * c-common.c (check_function_arguments): Replace
3927 Wmissing-format-attribute with Wsuggest-attribute=format.
3929 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3931 * c.opt (Wsuggest-attribute=format): New. Alias of
3932 Wmissing-format-attribute.
3933 * c-format.c (decode_format_type): Replace
3934 Wmissing-format-attribute with Wsuggest-attribute=format.
3935 (check_function_format): Likewise.
3937 2012-04-27 Ollie Wild <aaw@google.com>
3939 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
3940 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
3941 * c.opt: Add Wliteral-suffix.
3943 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
3946 * c.opt (Wpedantic): New.
3947 (pedantic): Alias Wpedantic.
3948 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
3949 (c_common_post_options): Likewise.
3950 (sanitize_cpp_opts): Likewise.
3951 * c-lex.c (interpret_float): Likewise.
3952 * c-format.c (check_format_types): Likewise.
3953 * c-common.c (pointer_int_sum): Likewise.
3954 (c_sizeof_or_alignof_type): Likewise.
3955 (c_add_case_label): Likewise.
3956 (c_do_switch_warnings): Likewise.
3957 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
3959 2012-04-15 Jason Merrill <jason@redhat.com>
3962 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
3963 (C_STD_NAME): Distinguish between C++98 and C++11.
3965 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
3968 * c-common.h (uint16_type_node): Rename into...
3969 (c_uint16_type_node): ...this.
3970 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
3971 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
3973 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
3975 * c-common.c (warn_if_unused_value): Move definition to here.
3976 * c-common.h (warn_if_unused_value): Move declaration to here.
3978 2012-03-23 William Bader <williambader@hotmail.com>
3980 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
3982 2012-03-20 Jason Merrill <jason@redhat.com>
3984 * c-common.h (enum cxx_dialect): Add cxx1y.
3985 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
3987 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
3988 * c-opts.c (c_common_post_options): Likewise.
3989 (set_std_cxx1y): New.
3990 (c_common_handle_option): Call it.
3991 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
3993 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
3996 * c.opt ([Wuseless-cast]): Add.
3998 2012-03-16 Richard Guenther <rguenther@suse.de>
4000 * c-pretty-print.c (pp_c_initializer_list): Adjust.
4002 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4005 * c.opt (ftemplate-backtrace-limit) Add.
4007 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4009 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
4011 * c-pragma.c (handle_pragma_extern_prefix): Remove.
4012 (init_pragma): Don't register extern_prefix.
4014 2012-03-12 Richard Guenther <rguenther@suse.de>
4016 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
4017 (builtin_type_for_size): Likewise.
4019 2012-02-13 Jakub Jelinek <jakub@redhat.com>
4022 * c-common.c (sync_resolve_params): Don't decide whether to convert
4023 or not based on TYPE_SIZE comparison, convert whenever arg_type
4024 is unsigned INTEGER_TYPE.
4026 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
4029 * c.opt ([Wunused-local-typedefs]): Fix description.
4031 2012-01-24 Mike Stump <mikestump@comcast.net>
4033 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
4036 2012-01-18 Richard Guenther <rguenther@suse.de>
4038 * c-opts.c (c_common_post_options): Reset LTO flags if
4039 we are about to generate a PCH.
4041 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
4044 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
4045 use pp_unsigned_wide_integer.
4047 2012-01-10 Richard Guenther <rguenther@suse.de>
4050 * c-opts.c (c_common_handle_option): Move -Werror handling
4051 to language independent code.
4053 2012-01-05 Richard Guenther <rguenther@suse.de>
4056 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
4059 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
4062 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
4063 of array types with an unknown bound.
4065 2011-12-20 Joseph Myers <joseph@codesourcery.com>
4067 * c-common.c (flag_isoc99): Update comment to refer to C11.
4068 (flag_isoc1x): Change to flag_isoc11.
4069 * c-common.h (flag_isoc99): Update comment to refer to C11.
4070 (flag_isoc1x): Change to flag_isoc11.
4071 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
4073 * c-opts.c (set_std_c1x): Change to set_std_c11.
4074 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
4076 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
4077 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
4078 * c.opt (std=c1x): Change to std=c11. Document as non-draft
4080 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
4081 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
4082 (std=gnu1x): Make alias of std=gnu11.
4084 2011-12-19 Jason Merrill <jason@redhat.com>
4087 * c-common.c (handle_transparent_union_attribute): Check the first
4088 field if the type is complete.
4090 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
4093 * c-common.c (RID_IS_FINAL): Add.
4094 * c-common.h (RID_IS_FINAL): Add.
4096 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
4098 * c.opt (fgnu-runtime): Provide full description.
4099 (fnext-runtime): Likewise.
4100 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
4102 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
4104 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
4105 predefines in one place. Add LOCK_FREE predefines.
4106 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
4109 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
4112 * c-common.c (get_atomic_generic_size): Check for various error
4114 (resolve_overloaded_atomic_exchange,
4115 resolve_overloaded_atomic_compare_exchange,
4116 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
4117 error_mark_node for error conditions.
4119 2011-11-08 Richard Guenther <rguenther@suse.de>
4124 2011-11-07 Richard Henderson <rth@redhat.com>
4125 Aldy Hernandez <aldyh@redhat.com>
4126 Torvald Riegel <triegel@redhat.com>
4128 Merged from transactional-memory.
4130 * c-common.c (handle_tm_wrap_attribute,
4131 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
4132 (struct c_common_reswords): Added __transaction* keywords.
4133 (struct c_common_attribute_table): Added transaction* and tm_regparm
4135 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
4137 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
4138 find_tm_attribute): Declare.
4140 2011-11-07 Jason Merrill <jason@redhat.com>
4143 * c-common.c, c-common.h: Revert yesterday's changes.
4145 2011-11-06 Jason Merrill <jason@redhat.com>
4148 * c-common.c (decl_has_visibility_attr): Split out from...
4149 (c_determine_visibility): ...here.
4150 * c-common.h: Declare it.
4152 2011-11-06 Joseph Myers <joseph@codesourcery.com>
4154 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
4155 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
4157 (check_user_alignment): New. Split out of
4158 handle_aligned_attribute. Disallow integer constants with
4159 noninteger types. Conditionally allow zero.
4160 (handle_aligned_attribute): Use check_user_alignment.
4161 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
4163 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
4164 Richard Henderson <rth@redhat.com>
4166 Merged from cxx-mem-model.
4168 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
4169 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
4170 parameters that are the same type size.
4171 (get_atomic_generic_size): New. Find size of generic
4172 atomic function parameters and do typechecking.
4173 (add_atomic_size_parameter): New. Insert size into parameter list.
4174 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
4175 either __atomic_exchange_n or external library call.
4176 (resolve_overloaded_atomic_compare_exchange): Restructure
4177 __atomic_compare_exchange to either _n variant or external library call.
4178 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
4179 __atomic_load_n or an external library call.
4180 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
4181 __atomic_store_n or an external library call.
4182 (resolve_overloaded_builtin): Handle new __atomic builtins.
4184 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
4187 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
4188 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
4189 <INDIRECT_REF>: Return the argument.
4190 <ARRAY_REF>: Remove special code for negative offset.
4191 Call fold_build_pointer_plus instead of size_binop.
4192 (fold_offsetof): Remove STOP_REF argument and adjust.
4193 * c-common.h (fold_offsetof_1): Declare.
4194 (fold_offsetof): Remove STOP_REF argument.
4196 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
4199 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4200 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4201 Wnarrowing for C++0x and C++98.
4202 * c.opt ([Wnarrowing]): Update.
4204 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
4207 * c.opt: Add Wzero-as-null-pointer-constant.
4209 2011-10-31 Jason Merrill <jason@redhat.com>
4211 * c.opt (-fdeduce-init-list): Off by default.
4214 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
4215 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
4217 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
4219 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
4222 * c.opt (fvisibility-inlines-hidden): Description change.
4224 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
4226 Implement C++11 user-defined literals.
4227 * c-common.c (build_userdef_literal): New.
4228 * c-common.def: New tree code.
4229 * c-common.h (tree_userdef_literal): New tree struct and accessors.
4230 * c-lex.c (interpret_float): Add suffix parm.
4231 (c_lex_with_flags): Build literal tokens.
4233 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4237 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4240 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4241 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4242 Wnarrowing for C++0x and C++98.
4243 * c.opt ([Wnarrowing]): Update.
4245 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
4248 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
4249 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
4250 Wnarrowing for C++0x and C++98.
4251 * c.opt ([Wnarrowing]): Update.
4253 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
4256 * c-common.c (conversion_warning): Remove code looking for
4257 artificial operands.
4259 2011-10-18 Dodji Seketeli <dodji@redhat.com>
4262 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
4263 !NO_IMPLICIT_EXTERN_C.
4265 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
4267 * c-common.c (c_common_reswords): Add __bases,
4269 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
4271 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
4274 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
4276 2011-10-15 Tom Tromey <tromey@redhat.com>
4277 Dodji Seketeli <dodji@redhat.com>
4279 * c.opt (fdebug-cpp): New option.
4280 * c-opts.c (c_common_handle_option): Handle the option.
4281 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
4282 output stream in parameter. Factorized from ...
4283 (maybe_print_line): ... this. Dump location debug information when
4284 -fdebug-cpp is in effect.
4285 (print_line_1): New static function. Takes an output stream in
4286 parameter. Factorized from ...
4287 (print_line): ... here. Dump location information when -fdebug-cpp
4289 (scan_translation_unit): Dump location information when
4290 -fdebug-cpp is in effect.
4292 2011-10-15 Tom Tromey <tromey@redhat.com>
4293 Dodji Seketeli <dodji@redhat.com>
4295 * c.opt (ftrack-macro-expansion): New option. Handle it with and
4297 * c-opts.c (c_common_handle_option)<case
4298 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
4299 cases. Handle -ftrack-macro-expansion with and without argument.
4301 2011-10-15 Tom Tromey <tromey@redhat.com>
4302 Dodji Seketeli <dodji@redhat.com>
4304 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
4305 (print_line, cb_define, do_line_change): Adjust to avoid touching
4306 the internals of struct line_map. Use the public API instead.
4307 * c-pch.c (c_common_read_pch): Likewise.
4308 * c-lex.c (fe_file_change): Likewise.
4310 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
4313 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
4315 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
4318 * c-pretty-print.c (pp_c_floating_constant): Output
4319 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
4321 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4323 * c-common.c (def_builtin_1): Delete old interface with two
4324 parallel arrays to hold standard builtin declarations, and replace
4325 it with a function based interface that can support creating
4326 builtins on the fly in the future. Change all uses, and poison
4327 the old names. Make sure 0 is not a legitimate builtin index.
4328 * c-omp.c (c_finish_omp_barrier): Ditto.
4329 (c_finish_omp_taskwait): Ditto.
4330 (c_finish_omp_flush): Ditto.
4332 2011-10-11 Tristan Gingold <gingold@adacore.com>
4334 * c.opt: (fallow-parameterless-variadic-functions): New.
4336 2011-09-08 Dodji Seketeli <dodji@redhat.com>
4338 PR c++/33255 - Support -Wunused-local-typedefs warning
4339 * c-common.h (struct c_language_function::local_typedefs): New
4341 (record_locally_defined_typedef, maybe_record_typedef_use)
4342 (maybe_warn_unused_local_typedefs): Declare new functions.
4343 * c-common.c (record_locally_defined_typedef)
4344 (maybe_record_typedef_use)
4345 (maybe_warn_unused_local_typedefs): Define new functions.
4346 * c.opt: Declare new -Wunused-local-typedefs flag.
4348 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
4351 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
4354 2011-09-05 Richard Guenther <rguenther@suse.de>
4356 * c-common.c (complete_array_type): Use ssize_int (-1) instead
4357 of integer_minus_one_node for empty array upper bounds.
4359 2011-08-28 Dodji Seketeli <dodji@redhat.com>
4361 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
4362 it's the first time it's being called on this main TU.
4364 2011-08-24 Richard Guenther <rguenther@suse.de>
4367 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
4369 2011-08-22 Gabriel Charette <gchare@google.com>
4371 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
4372 defined in cpp_init_builtins and c_cpp_builtins.
4374 2011-08-19 Joseph Myers <joseph@codesourcery.com>
4376 * c-common.c (c_common_reswords): Add __builtin_complex.
4377 * c-common.h (RID_BUILTIN_COMPLEX): New.
4379 2011-08-18 Joseph Myers <joseph@codesourcery.com>
4381 * c-common.c (c_common_reswords): Add _Noreturn.
4382 (keyword_is_function_specifier): Handle RID_NORETURN.
4383 * c-common.h (RID_NORETURN): New.
4385 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4387 * c-common.c (unsafe_conversion_p): New function. Check if it is
4388 unsafe to convert an expression to the type.
4389 (conversion_warning): Adjust, use unsafe_conversion_p.
4390 * c-common.h (unsafe_conversion_p): New function declaration.
4392 2011-08-02 Jakub Jelinek <jakub@redhat.com>
4394 * c-common.h (c_finish_omp_atomic): Adjust prototype.
4395 (c_finish_omp_taskyield): New prototype.
4396 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
4397 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
4398 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
4399 or RHS1 have side-effects, evaluate those too in the right spot,
4400 if it is a decl and LHS is also a decl, error out if they
4402 (c_finish_omp_taskyield): New function.
4403 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
4404 * c-pragma.c (omp_pragmas): Add taskyield.
4405 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
4406 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
4407 PRAGMA_OMP_CLAUSE_MERGEABLE.
4409 2011-07-25 Dodji Seketeli <dodji@redhat.com>
4411 * c-common.h (set_underlying_type): Remove parm name from
4414 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
4416 * c-pretty-print.h: Search c-common.h in c-family.
4418 2011-07-22 Jason Merrill <jason@redhat.com>
4421 * c.opt (Wnarrowing): New.
4424 * c-common.h: Declare c_linkage_bindings.
4425 * c-pragma.c (handle_pragma_redefine_extname): Use it.
4428 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
4429 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
4430 as flag_isoc99 for 'restrict'.
4431 (pp_c_specifier_qualifier_list): Likewise for _Complex.
4433 2011-07-21 Ian Lance Taylor <iant@google.com>
4436 * c-common.c (c_disable_warnings): New static function.
4437 (c_enable_warnings): New static function.
4438 (c_fully_fold_internal): Change local unused_p to bool. Call
4439 c_disable_warnings and c_enable_warnings rather than change
4440 c_inhibit_evaluation_warnings.
4442 2011-07-20 Jason Merrill <jason@redhat.com>
4444 PR c++/6709 (DR 743)
4445 PR c++/42603 (DR 950)
4446 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
4447 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
4448 (CPP_DECLTYPE): New.
4449 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
4451 2011-07-19 Richard Guenther <rguenther@suse.de>
4453 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
4454 * c-omp.c (c_finish_omp_for): Likewise.
4456 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4458 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
4459 body on the next line.
4461 2011-07-08 Jason Merrill <jason@redhat.com>
4464 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
4467 * c-common.c (c_apply_type_quals_to_decl): Don't check
4468 TYPE_NEEDS_CONSTRUCTING.
4470 2011-07-06 Richard Guenther <rguenther@suse.de>
4472 * c-common.c (c_common_nodes_and_builtins):
4473 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
4475 2011-07-05 Richard Guenther <rguenther@suse.de>
4477 * c-common.c (c_common_nodes_and_builtins): Build all common
4480 2011-06-27 Jakub Jelinek <jakub@redhat.com>
4482 * c-common.h (c_tree_chain_next): New static inline function.
4484 * c-common.c (check_builtin_function_arguments): Handle
4485 BUILT_IN_ASSUME_ALIGNED.
4487 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
4489 * c-common.c: Add sync_ or SYNC__ to builtin names.
4490 * c-omp.c: Add sync_ or SYNC__ to builtin names.
4492 2011-06-20 Pierre Vittet <piervit@pvittet.com>
4494 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
4496 (gen_pragma_handler): New union.
4497 (internal_pragma_handler): New type.
4498 (c_register_pragma_with_data)
4499 (c_register_pragma_with_expansion_and_data): New functions.
4501 * c-pragma.c (registered_pragmas, c_register_pragma_1)
4502 (c_register_pragma, c_register_pragma_with_expansion)
4503 (c_invoke_pragma_handler): Changed to work with
4504 internal_pragma_handler.
4505 (c_register_pragma_with_data)
4506 (c_register_pragma_with_expansion_and_data): New functions.
4508 2011-06-14 Joseph Myers <joseph@codesourcery.com>
4510 * c-common.c: Include common/common-target.h.
4511 (handle_section_attribute): Use
4512 targetm_common.have_named_sections.
4513 * c-cppbuiltin.c: Include common/common-target.h.
4514 (c_cpp_builtins): Use targetm_common.except_unwind_info.
4516 2011-06-10 Richard Guenther <rguenther@suse.de>
4518 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
4519 to print a IDENTIFIER_NODE.
4521 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4522 Joseph Myers <joseph@codesourcery.com>
4524 * c.opt (fbuilding-libgcc): New option.
4525 * c-cppbuiltin.c (c_cpp_builtins): Define
4526 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
4528 2011-06-07 Jason Merrill <jason@redhat.com>
4530 * c-common.c (max_tinst_depth): Lower default to 900.
4532 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
4534 2011-06-07 Richard Guenther <rguenther@suse.de>
4536 * c-common.c (c_common_nodes_and_builtins): Do not set
4537 size_type_node or call set_sizetype.
4539 2011-06-07 Dodji Seketeli <dodji@redhat.com>
4542 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
4543 type when using pointer comparison to compare types.
4545 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
4547 * c.opt: Add -Wdelete-non-virtual-dtor.
4548 * c-opts.c (c_common_handle_option): Include it in -Wall.
4550 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4555 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4557 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4560 2011-05-27 Jakub Jelinek <jakub@redhat.com>
4563 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
4564 C++ don't call c_common_truthvalue_conversion on void type arms.
4566 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4568 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
4569 (stmt_list_stack): Define.
4570 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
4571 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
4573 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4575 * c-common.c (warning_candidate_p): Check for BLOCKs.
4577 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4579 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
4582 2011-05-25 Jakub Jelinek <jakub@redhat.com>
4584 * c-common.c (def_fn_type): Remove extra va_end.
4586 2011-05-23 Jason Merrill <jason@redhat.com>
4589 * c-common.c (c_common_get_narrower): New.
4590 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
4592 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
4594 * c-common.h (check_function_arguments): Tweak prototype of
4595 check_function_arguments.
4596 * c-common.c (check_function_arguments): Likewise. Adjust
4597 calls to check_function_nonnull, check_function_format, and
4598 check_function_sentinel.
4599 (check_function_sentinel): Take a FUNCTION_TYPE rather than
4600 separate attributes and typelist arguments. Use
4601 FOREACH_FUNCTION_ARGS to iterate over argument types.
4603 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
4605 * c-common.c (c_common_reswords): Reorder.
4606 * c-common.h (rid): Likewise.
4608 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4610 * c-common.c (def_fn_type): Don't call build_function_type, call
4611 build_function_type_array or build_varargs_function_type_array
4613 (c_common_nodes_and_builtins): Likewise.
4615 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4617 * c-common.c (c_add_case_label): Omit the loc argument to
4619 * c-common.h (build_case_label): Remove.
4620 * c-semantics.c (build_case_label): Remove.
4622 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4624 * c-objc.h (objc_start_method_definition): Update prototype.
4625 * stub-objc.c (objc_start_method_definition): Add extra parameter.
4627 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4629 * c-common.c (check_main_parameter_types): Reindent. Don't use
4630 TYPE_ARG_TYPES directly.
4631 (handle_nonnull_attribute): Likewise.
4632 (sync_resolve_params): Likewise.
4633 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
4634 to check_format_string.
4635 (handle_format_attribute): Likewise.
4636 (check_format_string): Take a function type to examine instead of
4637 a type list. Use a function_arg_iterator to step through argument
4640 2011-05-04 Richard Guenther <rguenther@suse.de>
4642 * c-common.c (fix_string_type): Use size_int for index type bounds.
4643 (start_fname_decls): Do not pass NULL to build_int_cst.
4644 (c_init_attributes): Likewise.
4645 * c-lex.c (c_lex_with_flags): Likewise.
4647 2011-04-27 Jason Merrill <jason@redhat.com>
4649 * c-common.c (make_tree_vector_from_list): New.
4650 * c-common.h: Declare it.
4652 2011-04-26 Richard Guenther <rguenther@suse.de>
4654 PR preprocessor/48248
4655 * c-ppoutput.c (maybe_print_line): Always optimize newlines
4656 for output size with -P.
4658 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
4660 * c-common.c (struct c_common_resword): Add __underlying_type.
4661 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
4663 2011-04-20 Jim Meyering <meyering@redhat.com>
4665 * c-format.c (init_dollar_format_checking): Remove useless
4668 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4670 * c-objc.h (objc_get_interface_ivars): Removed.
4671 (objc_detect_field_duplicates): New.
4672 * stub-objc.c: Likewise.
4674 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4676 * stub-objc.c (objc_declare_protocols): Renamed to
4677 objc_declare_protocol.
4678 * c-objc.h: Likewise.
4680 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4682 * stub-objc.c (objc_declare_class): Updated argument name.
4684 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4686 * c-common.h (c_common_init_ts): Declare.
4687 * c-common.c (c_common_init_ts): Define.
4689 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4691 * c-objc.h (objc_build_message_expr): Updated prototype.
4692 * stub-objc.c (objc_build_message_expr): Likewise.
4694 2011-04-12 Martin Jambor <mjambor@suse.cz>
4696 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
4699 2011-04-11 Richard Guenther <rguenther@suse.de>
4701 * c-common.c (complete_array_type): Build a range type of
4704 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4706 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
4707 (handle_type_generic_attribute): Likewise.
4709 2011-04-07 Jason Merrill <jason@redhat.com>
4712 * c-common.c (c_common_truthvalue_conversion): Don't ignore
4713 conversion from C++0x scoped enum.
4715 2011-04-06 Joseph Myers <joseph@codesourcery.com>
4717 * c-target-def.h: New file.
4718 * c-target.def: New file.
4719 * c-target.h: New file.
4720 * c-common.c (targetcm): Don't define here.
4721 * c-common.h (default_handle_c_option): Declare.
4722 * c-format.c: Include c-target.h instead of target.h.
4723 * c-opts.c: Include c-target.h instead of target.h. Explicitly
4725 (default_handle_c_option): Move from targhooks.c.
4727 2011-03-29 Jakub Jelinek <jakub@redhat.com>
4729 PR preprocessor/48248
4730 * c-ppoutput.c (print): Add src_file field.
4731 (init_pp_output): Initialize it.
4732 (maybe_print_line): Don't optimize by adding up to 8 newlines
4733 if map->to_file and print.src_file are different file.
4734 (print_line): Update print.src_file.
4736 2011-03-25 Kai Tietz <ktietz@redhat.com>
4738 * c-ada-spec.c (compare_comment): Use filename_cmp
4739 instead of strcmp for filename.
4741 2011-03-25 Jeff Law <law@redhat.com>
4743 * c-common.c (def_fn_type): Add missing va_end.
4745 2011-03-25 Jason Merrill <jason@redhat.com>
4747 * c.opt: Add -std=c++03.
4749 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
4751 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
4753 2011-03-17 Kai Tietz
4756 * c-pretty-print.c (pp_c_specifier_qualifier_list):
4757 Display allowed attributes for function pointer types.
4758 (pp_c_attributes_display): New function to display
4759 attributes having affects_type_identity flag set to true.
4760 * c-pretty-print.h (pp_c_attributes_display): New prototype.
4762 * c-common.c (c_common_attribute_table):
4764 (c_common_format_attribute_table): Likewise.
4766 2011-03-18 Jason Merrill <jason@redhat.com>
4768 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
4769 * c-common.h: Don't declare it here.
4770 * c-common.c: Or define it here.
4771 * c-opts.c (c_common_handle_option): Or set it here.
4774 * c-common.c (handle_transparent_union_attribute): Don't
4775 make a duplicate type in C++.
4777 2011-03-15 Jason Merrill <jason@redhat.com>
4779 * c-common.c (max_constexpr_depth): New.
4780 * c-common.h: Declare it.
4781 * c-opts.c (c_common_handle_option): Set it.
4782 * c.opt (fconstexpr-depth): New option.
4784 2011-03-11 Jason Merrill <jason@redhat.com>
4786 * c-common.c (attribute_takes_identifier_p): Add missing const.
4789 * c-common.c (attribute_takes_identifier_p): Assume that an
4790 unknown attribute takes an identifier.
4792 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
4795 * c-common.c (c_type_hash): Call list_length instead of iterating
4796 through DECL_CHAIN. Rename 'i' to 'n_elements'.
4798 2011-02-19 Jakub Jelinek <jakub@redhat.com>
4801 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
4803 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
4805 * c.opt (fobjc-abi-version=) New.
4806 (fobjc-nilcheck): New.
4808 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
4811 * c-common.h (keyword_is_decl_specifier): Declare.
4812 * c-common.c (keyword_is_decl_specifier): Define.
4813 (keyword_is_function_specifier): New function.
4815 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4818 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
4819 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
4822 2011-01-26 Arnaud Charlet <charlet@adacore.com>
4824 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
4826 2011-01-26 Jakub Jelinek <jakub@redhat.com>
4829 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
4830 after init_c_lex if pch_file is set.
4832 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
4835 * c.opt (-fkeep-inline-dllexport): New switch.
4837 2011-01-12 Richard Guenther <rguenther@suse.de>
4840 * c-common.c (handle_weak_attribute): Warn instead of error
4841 on declaring an inline function weak.
4843 2011-01-05 Tom Tromey <tromey@redhat.com>
4845 * c-common.h (lvalue_error): Update.
4846 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
4849 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
4852 * c-objc.h (objc_finish_message_expr): Added argument to
4855 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
4857 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
4860 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
4862 * c-objc.h (objc_maybe_warn_exceptions): New.
4863 * stub-objc.c (objc_maybe_warn_exceptions): New.
4865 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
4867 * c-common.h (readonly_error): Declare.
4868 * c-common.c (readonly_error): Define.
4870 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
4872 * c-common.h (invalid_indirection_error): Declare.
4873 * c-common.c (invalid_indirection_error): Define.
4875 2010-12-03 Richard Guenther <rguenther@suse.de>
4878 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
4879 (pp_c_unary_expression): Likewise.
4880 (pp_c_expression): Likewise.
4882 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
4884 * c-common.h (objc_finish_function): New.
4885 (objc_non_volatilized_type): Removed.
4886 (objc_type_quals_match): Removed.
4887 * stub-objc.c (objc_finish_function): New.
4888 (objc_non_volatilized_type): Removed.
4889 (objc_type_quals_match): Removed.
4891 2010-11-30 Joseph Myers <joseph@codesourcery.com>
4893 * c-common.h (parse_optimize_options): Declare.
4894 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
4895 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
4897 2010-11-29 Joseph Myers <joseph@codesourcery.com>
4899 * c-opts.c (check_deps_environment_vars): Use getenv instead of
4901 * c-pch.c (O_BINARY): Don't define here.
4902 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
4904 2010-11-25 Joseph Myers <joseph@codesourcery.com>
4906 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
4907 targetm.except_unwind_info.
4909 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4911 * c-opts.c (c_common_handle_option): Pass location to
4912 set_struct_debug_option.
4914 2010-11-23 Joseph Myers <joseph@codesourcery.com>
4916 * c-common.c (visibility_options): Move from ../opts.c.
4917 * c-common.h (struct visibility_flags, visibility_options):
4919 * c-opts.c (finish_options): Rename to c_finish_options.
4920 (c_common_init): Update call to finish_options.
4922 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
4925 * c-lex.c (lex_string): Check that each string in an Objective-C
4926 string concat sequence starts with either one or zero '@', and
4927 that there are no spurious '@' signs at the end.
4929 2010-11-20 Joseph Myers <joseph@codesourcery.com>
4931 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
4932 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
4933 HANDLE_PRAGMA_VISIBILITY.
4934 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
4935 HANDLE_PRAGMA_VISIBILITY): Don't define.
4936 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
4938 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
4943 * c-common.h (keyword_begins_type_specifier): Declare.
4944 (keyword_is_storage_class_specifier): Declare.
4945 (keyword_is_type_qualifier): Declare.
4946 * c-common.c (keyword_begins_type_specifier): New function.
4947 (keyword_is_storage_class_specifier): New function.
4948 (keyword_is_type_qualifier): Declare.
4950 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4953 * c-common.c (in_late_binary_op): Define.
4954 (c_common_truthvalue_conversion): Check in_late_binary_op before
4955 calling c_save_expr.
4956 * c-common.h (in_late_binary_op): Declare.
4958 2010-11-19 Joseph Myers <joseph@codesourcery.com>
4960 * c-opts.c (c_common_handle_option): Update calls to
4961 set_struct_debug_option.
4963 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
4965 * c-common.h (objc_declare_protocols): Added additional argument.
4966 * stub-objc.c (objc_declare_protocol): Same change.
4968 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
4971 * c-common.h (build_real_imag_expr): Declare.
4972 * c-semantics.c (build_real_imag_expr): Define.
4974 2010-11-17 Joseph Myers <joseph@codesourcery.com>
4976 * c-opts.c (c_common_parse_file): Take no arguments.
4977 * c-common.h (c_common_parse_file): Update prototype.
4979 2010-11-16 Jakub Jelinek <jakub@redhat.com>
4982 * c-common.c (warning_candidate_p): Don't track non-const calls
4985 2010-11-15 Ian Lance Taylor <iant@google.com>
4987 * c-lex.c (init_c_lex): Set macro debug callbacks if
4988 flag_dump_go_spec is set.
4990 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
4992 * c-common.h (objc_build_incr_expr_for_property_ref): New.
4993 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
4995 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
4997 PR preprocessor/45038
4998 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
5001 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5003 * c-common.h (c_family_lang_mask): Declare.
5004 * c-opts.c (c_family_lang_mask): Make extern.
5005 * c-pragma.c (handle_pragma_diagnostic): Use
5006 control_warning_option.
5008 2010-11-12 Joseph Myers <joseph@codesourcery.com>
5010 * c-common.c (parse_optimize_options): Update call to
5012 * c-common.h (c_common_handle_option): Update prototype.
5013 * c-opts.c (c_common_handle_option): Take location_t parameter and
5014 pass it to other functions.
5016 2010-11-11 Joseph Myers <joseph@codesourcery.com>
5018 * c-opts.c (warning_as_error_callback): Remove.
5019 (c_common_initialize_diagnostics): Don't call
5020 register_warning_as_error_callback.
5021 (c_common_handle_option): Handle -Werror=normalized= here.
5023 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5025 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
5027 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
5029 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
5030 Remove trailing '.' from diagnostics.
5031 * c.opt (Wwrite-strings_: Avoid '`' in help text.
5033 2010-11-10 Joseph Myers <joseph@codesourcery.com>
5035 * c-common.c (parse_optimize_options): Pass global_dc to
5037 * c-opts.c (c_common_handle_option): Pass &global_options to
5038 set_Wstrict_aliasing.
5039 * c.opt (v): Don't mark Common or document here.
5041 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
5044 * c-format.c (format_type): New type gcc_objc_string_format_type.
5045 (valid_stringptr_type_p): New.
5046 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
5047 (check_format_string): Pass expected type, use
5048 valid_stringptr_type_p (), check that the format string types are
5049 consistent with the format specification.
5050 (decode_format_attr): Warn if NSString is used outside objective-c.
5051 (format_types_orig): Add NSString.
5053 (format_flags): New.
5054 (check_format_arg): Handle format strings requiring an external parser.
5055 first_target_format_type: New variable.
5056 (handle_format_attribute): Set up first_target_format_type, pass the
5057 expected format arg string type to check_format_string().
5058 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
5059 * stub-objc.c (objc_string_ref_type_p): New.
5060 (objc_check_format_arg): New.
5062 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
5064 Fixed using the Objective-C 2.0 dot-syntax with class names.
5065 * c-common.h (objc_build_class_component_ref): New.
5066 * stub-objc.c (objc_build_class_component_ref): New.
5068 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5070 * c.opt (Wproperty-assign-default): New option.
5072 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
5074 Implemented -fobjc-std=objc1 flag.
5075 * c.opt (fobjc-std=objc1): New option.
5077 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
5079 Implemented format and noreturn attributes for Objective-C methods.
5080 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
5081 attribute for Objective-C methods.
5083 2010-10-31 Jason Merrill <jason@redhat.com>
5085 * c-common.c (conversion_warning, warn_for_collisions_1): Use
5088 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
5090 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
5091 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
5092 (objc_add_property_declaration): Removed arguments for copies and
5094 (objc_build_getter_call): Renamed to
5095 objc_maybe_build_component_ref.
5096 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5097 (objc_is_property_ref): New.
5098 * c-common.c (c_common_reswords): Removed copies and ivar.
5099 * stub-objc.c (objc_add_property_declaration): Removed arguments
5100 for copies and ivar.
5101 (objc_build_getter_call): Renamed to
5102 objc_maybe_build_component_ref.
5103 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
5104 (objc_is_property_ref): New.
5106 2010-10-29 Arnaud Charlet <charlet@adacore.com>
5107 Matthew Gingell <gingell@adacore.com>
5109 * c-ada-spec.c (separate_class_package): New function.
5110 (pp_ada_tree_identifier): Prefix references to C++ classes with the
5111 name of their enclosing package.
5112 (print_ada_declaration): Use separate_class_package.
5114 2010-10-27 Jason Merrill <jason@redhat.com>
5116 * c-common.c (c_common_reswords): Add __is_literal_type.
5117 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
5119 * c-common.c (check_case_value): Remove special C++ code.
5121 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5123 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
5124 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
5126 (objc_add_property_declaration): Added additional arguments.
5127 (objc_property_attribute_kind): Removed.
5128 (objc_set_property_attr): Removed.
5129 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
5131 * stub-objc.c (objc_add_property_declaration): Added additional
5133 (objc_set_property_attr): Removed.
5135 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5137 * c-common.h (objc_add_property_variable): Renamed to
5138 objc_add_property_declaration. Added location argument.
5139 * stub-objc.c (objc_add_property_variable): Same change.
5141 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
5143 * c-common.h (objc_maybe_printable_name): New.
5144 * stub-objc.c (objc_maybe_printable_name): New.
5146 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5147 Andrew Pinski <pinskia@gmail.com>
5149 * c-common.h (c_common_mark_addressable_vec): Declare.
5150 * c-common.c (c_common_mark_addressable_vec): New function.
5152 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5154 * c-common.h (objc_set_method_type): Removed.
5155 (objc_add_method_declaration): Added boolean argument.
5156 (objc_start_method_definition): Same change.
5157 (objc_build_method_signature): Same change.
5158 * stub-objc.c (objc_set_method_type): Removed.
5159 (objc_add_method_declaration): Added boolean argument.
5160 (objc_start_method_definition): Same change.
5161 (objc_build_method_signature): Same change.
5163 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5165 * c-common.h (finish_file): Removed.
5166 (objc_write_global_declarations): New.
5167 * c-opts.c (c_common_parse_file): Do not call finish_file.
5168 * stub-objc.c (objc_write_global_declarations): New.
5170 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5172 Implemented parsing @synthesize and @dynamic for
5173 Objective-C/Objective-C++.
5174 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
5175 (objc_add_synthesize_declaration): New.
5176 (objc_add_dynamic_declaration): New.
5177 * c-common.c (c_common_reswords): Add synthesize and dynamic.
5178 * stub-objc.c (objc_add_synthesize_declaration): New.
5179 (objc_add_dynamic_declaration): New.
5181 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5184 * c-cppbuiltin.c (mode_has_fma): Move function here from
5185 builtins.c. Don't use the fma optab, instead just use the
5186 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
5189 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
5191 Merge from 'apple/trunk' branch on FSF servers.
5193 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
5196 * c-common.h (objc_non_volatilized_type): New declaration
5197 * stub-objc.c (objc_non_volatilized_type): New stub.
5199 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
5201 Merge from 'apple/trunk' branch on FSF servers.
5203 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
5206 * c-common.h (objc_diagnose_private_ivar): New decl.
5207 * stub-objc.c (objc_diagnose_private_ivar): New stub.
5209 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
5211 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
5212 * c-common.h (enum rid): Add RID_AT_PACKAGE.
5213 (objc_ivar_visibility_kind): New enum.
5214 (objc_set_visibility): Adjust prototype to use visibility enum.
5215 * stub-objc.c (objc_set_visibility): Adjust stub to use
5218 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5220 * c-cppbuiltin.c (builtin_define_float_constants): Emit
5221 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
5222 has the appropriate fma builtins.
5223 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
5225 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
5227 merge from FSF apple 'trunk' branch.
5228 2006 Fariborz Jahanian <fjahanian@apple.com>
5230 Radars 4436866, 4505126, 4506903, 4517826
5231 * c-common.c (c_common_resword): Define @property and its attributes.
5232 * c-common.h: Define property attribute enum entries.
5233 (OBJC_IS_PATTR_KEYWORD): New.
5234 (objc_property_attribute_kind): New enum.
5235 Declare objc_set_property_attr (), objc_add_property_variable (),
5236 objc_build_getter_call () and objc_build_setter_call ().
5237 * stub-objc.c (objc_set_property_attr): New stub.
5238 (objc_add_property_variable): Likewise.
5239 (objc_build_getter_call): Likewise.
5240 (objc_build_setter_call) Likewise.
5242 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
5244 merge from FSF apple 'trunk' branch.
5245 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
5247 Radar 3803157 (method attributes)
5248 * c-common.c (handle_deprecated_attribute): Recognize
5249 objc methods as valid declarations.
5250 * c-common.h: Declare objc_method_decl ().
5251 * stub-objc.c (objc_method_decl): New stub.
5253 2010-10-08 Joseph Myers <joseph@codesourcery.com>
5255 * c-common.c (parse_optimize_options): Call
5256 decode_cmdline_options_to_array_default_mask before
5257 decode_options. Update arguments to decode_options.
5258 * c-common.h (c_common_init_options_struct): Declare.
5259 * c-opts.c (c_common_init_options_struct): New. Split out from
5260 c_common_init_options.
5262 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
5264 Implemented fast enumeration for Objective-C.
5265 * c-common.h (objc_finish_foreach_loop): New.
5266 * stub-objc.c (objc_finish_foreach_loop): New.
5268 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5270 * c-common.h (struct diagnostic_context): Don't declare here.
5271 (c_common_initialize_diagnostics): Declare using
5272 diagnostic_context typedef.
5273 * c-opts.c (c_common_handle_option): Pass global_dc to
5274 handle_generated_option.
5276 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5278 * c-opts.c (c_common_handle_option): Pass &global_options_set to
5279 handle_generated_option.
5281 2010-10-03 Ian Lance Taylor <iant@google.com>
5283 * c.opt (-fplan9-extensions): New option.
5285 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5287 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
5289 (c_cpp_builtins): Call functions from cppbuiltin.c instead
5290 of duplicating code.
5292 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5294 * c-common.c: Add two new entries for @optional
5295 and @required keywords.
5297 merge from FSF 'apple/trunk' branch.
5298 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
5301 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
5302 objective-c keywords.
5303 (objc_set_method_opt): New declaration.
5304 * stub-objc.c (objc_set_method_opt): New stub.
5306 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5308 * c-common.c (handle_optimize_attribute): Pass &global_options to
5309 cl_optimization_save and cl_optimization_restore.
5310 * c-opts.c (c_common_handle_option): Pass &global_options to
5311 handle_generated_option.
5312 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
5313 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
5314 &global_options to cl_optimization_restore.
5316 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5318 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
5319 Objective-C/Objective-C++ keywords.
5321 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5323 Merge from 'apple/trunk' branch on FSF servers.
5325 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5328 * c-common.h (objc_check_global_decl): New declaration.
5329 * stub-objc.c (objc_check_global_decl): New stub.
5331 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5333 * c.opt: Don't use VarExists.
5335 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5337 * c-common.c (c_cpp_error): Update names of diagnostic_context
5339 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
5340 cl_optimization members.
5341 * c-opts.c (warning_as_error_callback, c_common_handle_option,
5342 sanitize_cpp_opts, finish_options): Update names of cpp_options
5345 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5347 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
5348 (objc_is_reserved_word): Removed.
5349 * c-common.c: Updated comments.
5350 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
5351 objc_is_reserved_word.
5352 * stub-objc.c (objc_is_reserved_word): Removed.
5354 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5356 * c-common.h (objc_add_method_declaration): Adjust prototype to
5358 (objc_start_method_definition): Likewise.
5359 (objc_build_keyword_decl): Likewise.
5360 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
5361 (objc_start_method_definition): Likewise.
5362 (objc_build_keyword_decl): Likewise.
5364 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5366 * c-common.h (objc_start_class_interface): Adjust prototype.
5367 (objc_start_category_interface): Likewise.
5368 (objc_start_protocol): Likewise.
5369 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
5370 (objc_start_class_interface): Likewise.
5371 (objc_start_category_interface): Likewise.
5373 2010-09-27 Ian Lance Taylor <iant@google.com>
5375 * c-common.c (c_common_attribute_table): Add no_split_stack.
5376 (handle_no_split_stack_attribute): New static function.
5378 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5380 Merge from 'apple/trunk' branch on FSF servers.
5382 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5385 * c-common.h (objc_have_common_type): New declaration.
5386 * stub-objc.c (objc_have_common_type): New stub.
5388 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5391 * c-common.h (objc_common_type): New prototype.
5392 * stub-objc.c (objc_common_type): New stub.
5394 2010-09-24 Jan Hubicka <jh@suse.cz>
5396 * c-common.c (handle_leaf_attribute): New function.
5397 (struct attribute_spec c_common_att): Add leaf.
5399 2010-09-22 Joseph Myers <joseph@codesourcery.com>
5401 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
5402 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
5403 -dump, -dump=, -imacros, -imacros=, -include, -include=,
5404 -include-barrier, -include-directory, -include-directory=,
5405 -include-directory-after, -include-directory-after=,
5406 -include-prefix, -include-prefix=, -include-with-prefix,
5407 -include-with-prefix=, -include-with-prefix-after,
5408 -include-with-prefix-after=, -include-with-prefix-before,
5409 -include-with-prefix-before=, -no-integrated-cpp,
5410 -no-line-commands, -no-standard-includes, -no-warnings, -output,
5411 -output=, -pedantic, -pedantic-errors, -preprocess,
5412 -print-missing-file-dependencies, -trace-includes, -traditional,
5413 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
5414 -user-dependencies, -verbose, -write-dependencies,
5415 -write-user-dependencies, no-integrated-cpp, traditional): New.
5417 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5420 * c-common.h (objc_start_method_definition): Return bool instead
5422 * stub-objc.c (objc_start_method_definition): Return bool instead
5425 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
5428 * c-common.h (objc_get_interface_ivars): New declaration.
5429 * stub-objc.c (objc_get_interface_ivars): New stub.
5431 2010-09-15 Ian Lance Taylor <iant@google.com>
5433 * c-common.c (parse_optimize_options): Do not capitalize warning
5434 messages. Remove period at end of warning message.
5436 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
5438 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
5439 (handle_alias_attribute): ... here.
5440 (handle_ifunc_attribute): New.
5442 2010-09-06 Mark Mitchell <mark@codesourcery.com>
5444 * c-common.h (do_warn_double_promotion): Declare.
5445 * c-common.c (do_warn_double_promotion): Define.
5447 2010-09-05 Mark Mitchell <mark@codesourcery.com>
5449 * c.opt (Wdouble-promotion): New.
5451 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5453 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
5454 fvtable-thunks, fxref): Mark no longer supported in help text.
5456 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5458 * c.opt (Wimport, fall-virtual, falt-external-templates,
5459 fdefault-inline, fenum-int-equiv, fexternal-templates,
5460 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
5461 fname-mangling-version-, fnew-abi, fnonnull-objects,
5462 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
5463 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
5465 (fhandle-exceptions): Mark with Alias and Warn.
5466 * c-opts.c (c_common_handle_option): Don't handle options marked
5469 2010-09-02 Joseph Myers <joseph@codesourcery.com>
5471 * c.opt (Wcomments, Werror-implicit-function-declaration,
5472 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
5473 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
5475 * c-common.c (option_codes): Use OPT_Wcomment instead of
5477 * c-opts.c (warning_as_error_callback, c_common_handle_option):
5478 Don't handle options marked as aliases.
5480 2010-08-25 Richard Guenther <rguenther@suse.de>
5482 * c-common.c (c_common_get_alias_set): Remove special
5483 handling for pointers.
5485 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5487 * c-common.c: Use FOR_EACH_VEC_ELT.
5488 * c-gimplify.c: Likewise.
5489 * c-pragma.c: Likewise.
5491 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5493 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
5495 (MMDX): Change back to MMD. Mark NoDriverArg instead of
5497 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
5498 instead of OPT_MDX and OPT_MMDX.
5500 2010-08-16 Joseph Myers <joseph@codesourcery.com>
5502 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
5504 2010-08-12 Joseph Myers <joseph@codesourcery.com>
5506 * c.opt (MD, MMD): Change to MDX and MMDX.
5507 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
5509 2010-08-11 Joseph Myers <joseph@codesourcery.com>
5511 * c-opts.c (c_common_handle_option): Call handle_generated_option
5512 instead of handle_option.
5514 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5516 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
5517 (maybe_apply_renaming_pragma): Delete unneeded declarations.
5519 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5521 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
5522 (pending_redefine_extname): Change type to a VEC.
5523 (add_to_renaming_pragma_list): Update for new type of
5524 pending_redefine_extname.
5525 (maybe_apply_renaming_pragma): Likewise.
5527 2010-08-04 Arnaud Charlet <charlet@adacore.com>
5529 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
5531 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
5532 decide whether a type has already been declared/seen.
5533 Do not go to the original type.
5534 (dump_nested_types): New parameter forward.
5535 Generate forward declaration if needed and mark type as visited.
5536 (print_ada_declaration): Call dump_nested_types if not already done.
5537 Mark types as visited.
5539 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5541 * c.opt (-print-pch-checksum): Remove option.
5542 * c-opts.c (c_common_handle_option): Don't handle
5543 OPT_print_pch_checksum.
5545 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5547 * c-common.h (c_common_handle_option): Update prototype and return
5549 * c-opts.c (c_common_handle_option): Update prototype and return
5550 value type. Update calls to handle_option and
5551 enable_warning_as_error.
5553 2010-07-27 Jakub Jelinek <jakub@redhat.com>
5556 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
5558 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5560 * c-common.h (c_common_missing_argument): Remove.
5561 * c-opts.c (c_common_missing_argument): Remove.
5562 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
5563 idirafter, imacros, include, isysroot, isystem, iquote): Add
5565 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5567 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5569 * c-common.h (c_common_option_lang_mask,
5570 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
5572 (c_common_init_options): Update prototype.
5573 * c-opts.c (c_common_option_lang_mask): New.
5574 (c_common_initialize_diagnostics): Split out of
5575 c_common_init_options.
5576 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
5578 (c_common_init_options): Update prototype. Use decoded options in
5579 search for -lang-asm.
5581 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5583 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5584 * c-format.c: Likewise.
5586 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5588 * c-common.h: Include diagnostic-core.h. Error if already
5590 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
5592 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
5594 * c-common.c (IN_GCC_FRONTEND): Do not undef.
5595 Do not include expr.h
5596 (vector_mode_valid_p): Move here.
5598 2010-06-21 DJ Delorie <dj@redhat.com>
5600 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
5601 allow these pragmas anywhere.
5603 2010-06-14 Jakub Jelinek <jakub@redhat.com>
5606 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
5607 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
5608 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
5609 ggc_strdup instead of xstrdup.
5611 2010-06-10 Jakub Jelinek <jakub@redhat.com>
5613 * c-cppbuiltin.c: Include cpp-id-data.h.
5614 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5615 (lazy_hex_fp_value): New function.
5616 (builtin_define_with_hex_fp_value): Provide definitions lazily.
5618 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5620 * c-gimplify.c: Do not include tree-flow.h
5622 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
5625 * c-common.c: Rename targetm member:
5626 targetm.enum_va_list -> targetm.enum_va_list_p
5628 2010-06-28 Anatoly Sokolov <aesok@post.ru>
5630 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
5632 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5634 * c-cppbuiltin.c: Do not include except.h.
5636 2010-06-24 Andi Kleen <ak@linux.intel.com>
5638 * c-common.c (warn_for_omitted_condop): New.
5639 * c-common.h (warn_for_omitted_condop): Add prototype.
5641 2010-06-21 Joseph Myers <joseph@codesourcery.com>
5643 * c.opt (lang-objc): Remove.
5644 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
5646 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
5648 * c-opts.c: Include "tm_p.h".
5650 2010-06-20 Joseph Myers <joseph@codesourcery.com>
5652 * c-common.c (parse_optimize_options): Update call to
5655 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
5657 * c-common.c (record_types_used_by_current_var_decl): Adjust for
5658 new type of types_used_by_cur_var_decl.
5660 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
5663 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
5664 for C++ standard compliance.
5666 2010-06-16 Jason Merrill <jason@redhat.com>
5668 * c.opt: Add -Wnoexcept.
5670 2010-06-16 Richard Guenther <rguenther@suse.de>
5673 * c-common.c (c_common_truthvalue_conversion): Remove
5674 premature and wrong optimization concering ADDR_EXPRs.
5676 2010-06-15 Arnaud Charlet <charlet@adacore.com>
5678 * c-ada-spec.c (dump_sloc): Remove column info.
5679 (is_simple_enum): New function.
5680 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
5681 enum types when relevant.
5683 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
5685 * c-common.c (conversion_warning): Warn at expression
5688 2010-06-10 Joseph Myers <joseph@codesourcery.com>
5690 * c-opts.c (c_common_handle_option): Don't handle
5693 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5695 * c-pragma.c (push_alignment): Use typed GC allocation.
5696 (handle_pragma_push_options): Likewise.
5698 * c-common.c (parse_optimize_options): Likewise.
5700 * c-common.h (struct sorted_fields_type): Add variable_size GTY
5703 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5705 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
5706 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5707 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5708 flag_signed_bitfields, warn_strict_null_sentinel,
5709 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
5710 flag_gen_declaration, flag_no_gnu_keywords,
5711 flag_implement_inlines, flag_implicit_templates,
5712 flag_implicit_inline_templates, flag_optional_diags,
5713 flag_elide_constructors, flag_default_inline, flag_rtti,
5714 flag_conserve_space, flag_access_control, flag_check_new,
5715 flag_new_for_scope, flag_weak, flag_working_directory,
5716 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
5717 flag_enforce_eh_specs, flag_threadsafe_statics,
5718 flag_pretty_templates): Remove.
5719 * c-common.h (flag_preprocess_only, flag_nil_receivers,
5720 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
5721 flag_replace_objc_classes, flag_undef, flag_no_builtin,
5722 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
5723 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
5724 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
5725 flag_no_gnu_keywords, flag_implement_inlines,
5726 flag_implicit_templates, flag_implicit_inline_templates,
5727 flag_optional_diags, flag_elide_constructors, flag_default_inline,
5728 flag_rtti, flag_conserve_space, flag_access_control,
5729 flag_check_new, flag_new_for_scope, flag_weak,
5730 flag_working_directory, flag_use_cxa_atexit,
5731 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
5732 flag_threadsafe_statics, flag_pretty_templates,
5733 warn_strict_null_sentinel): Remove.
5734 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
5735 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
5736 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
5737 fimplicit-inline-templates, fimplicit-templates,
5738 flax-vector-conversions, fms-extensions, fnil-receivers,
5739 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
5740 frtti, fshort-double, fshort-enums, fshort-wchar,
5741 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
5742 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
5743 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
5744 gen-decls, undef): Use Var.
5745 (fdefault-inline, foptional-diags): Document as doing nothing.
5746 * c-opts.c (c_common_handle_option): Remove cases for options now
5747 using Var. Mark ignored options as such.
5749 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5751 * c-common.c: Moved to here from parent directory.
5752 * c-common.def: Likewise.
5753 * c-common.h: Likewise.
5754 * c-cppbuiltin.c: Likewise.
5755 * c-dump.c: Likewise.
5756 * c-format.c: Likewise.
5757 * c-format.h : Likewise.
5758 * c-gimplify.c: Likewise.
5759 * c-lex.c: Likewise.
5760 * c-omp.c: Likewise.
5762 * c-opts.c: Likewise.
5763 * c-pch.c: Likewise.
5764 * c-ppoutput.c: Likewise.
5765 * c-pragma.c: Likewise.
5766 * c-pragma.h: Likewise.
5767 * c-pretty-print.c: Likewise.
5768 * c-pretty-print.h: Likewise.
5769 * c-semantics.c: Likewise.
5770 * stub-objc.c: Likewise.
5772 * c-common.c: Include gt-c-family-c-common.h.
5773 * c-pragma.c: Include gt-c-family-c-pragma.h.
5775 Copyright (C) 2010-2015 Free Software Foundation, Inc.
5777 Copying and distribution of this file, with or without modification,
5778 are permitted in any medium without royalty provided the copyright
5779 notice and this notice are preserved.