1 2013-10-30 Jakub Jelinek <jakub@redhat.com>
3 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
5 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
7 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
9 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
11 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
12 (insert_cilk_frame): New prototype.
13 (cilk_init_builtins): Likewise.
14 (gimplify_cilk_spawn): Likewise.
15 (c_cilk_install_body_w_frame_cleanup): Likewise.
16 (cilk_detect_spawn_and_unwrap): Likewise.
17 (cilk_set_spawn_marker): Likewise.
18 (build_cilk_sync): Likewise.
19 (build_cilk_spawn): Likewise.
22 2013-10-29 David Malcolm <dmalcolm@redhat.com>
24 Patch autogenerated by refactor_symtab.py from
25 https://github.com/davidmalcolm/gcc-refactoring-scripts
26 revision 58bb219cc090b2f4516a9297d868c245495ee622
28 * c-gimplify.c (c_genericize): Update for conversion of symtab types
29 to a true class hierarchy.
30 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
32 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
34 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
36 2013-10-26 Jeff Law <law@redhat.com>
38 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
39 * c-family/c.opt: Ignore and warn for mudflap options.
41 2013-10-24 Tobias Burnus <burnus@net-b.de>
44 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
45 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
47 2013-10-23 Jason Merrill <jason@redhat.com>
49 * c-format.c (gcc_cxxdiag_char_table): Add %X.
51 2013-10-11 Jakub Jelinek <jakub@redhat.com>
53 * c-common.h (omp_clause_mask::operator !=): New method.
54 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
55 instead of if (mask & something) tests everywhere.
57 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
58 201307 instead of 201107.
59 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
60 (c_common_attribute_table): Add "omp declare target" and
61 "omp declare simd" attributes.
62 (handle_omp_declare_target_attribute,
63 handle_omp_declare_simd_attribute): New functions.
64 * c-omp.c: Include c-pragma.h.
65 (c_finish_omp_taskgroup): New function.
66 (c_finish_omp_atomic): Add swapped argument, if true,
67 build the operation first with rhs, lhs arguments and use NOP_EXPR
69 (c_finish_omp_for): Add code argument, pass it down to make_code.
70 (c_omp_split_clauses): New function.
71 (c_split_parallel_clauses): Removed.
72 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
73 c_omp_declare_simd_clauses_to_decls): New functions.
74 * c-common.h (omp_clause_mask): New type.
75 (OMP_CLAUSE_MASK_1): Define.
76 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
77 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
78 omp_clause_mask::operator |, omp_clause_mask::operator &,
79 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
80 omp_clause_mask::operator ==): New methods.
81 (enum c_omp_clause_split): New.
82 (c_finish_omp_taskgroup): New prototype.
83 (c_finish_omp_atomic): Add swapped argument.
84 (c_finish_omp_for): Add code argument.
85 (c_omp_split_clauses): New prototype.
86 (c_split_parallel_clauses): Removed.
87 (c_omp_declare_simd_clauses_to_numbers,
88 c_omp_declare_simd_clauses_to_decls): New prototypes.
89 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
90 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
91 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
92 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
93 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
94 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
95 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
96 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
97 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
98 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
99 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
100 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
101 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
102 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
103 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
104 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
105 PRAGMA_OMP_CLAUSE_UNIFORM.
107 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
109 PR tree-optimization/20318
110 * c-common.c (handle_returns_nonnull_attribute): New function.
111 (c_common_attribute_table): Add returns_nonnull.
113 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
116 * c.opt (fcheck-new): Move to common.opt.
118 2013-09-25 Marek Polacek <polacek@redhat.com>
119 Jakub Jelinek <jakub@redhat.com>
122 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
123 an expression if we can prove it is correct.
124 (ubsan_instrument_division): Likewise. Remove unnecessary
127 2013-09-18 Marek Polacek <polacek@redhat.com>
130 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
132 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
134 2013-09-14 Iain Sandoe <iain@codesourcery.com>
137 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
138 fobjc-gc, freplace-objc-classes): Accept for LTO.
140 2013-09-13 Jacek Caban <jacek@codeweavers.com>
142 * c-target.def: New hook
144 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
147 * c.opt (Wdelete-incomplete): Add.
149 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
151 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
152 (vector_types_compatible_elements_p): New function.
153 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
155 (vector_types_compatible_elements_p): Declare.
157 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
159 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
160 a virtual member function.
161 (pp_simple_type_specifier): Remove.
162 (pp_c_type_specifier): Likewise.
163 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
164 Rename from pp_c_type_specifier. Adjust.
165 (c_pretty_printer::c_pretty_printer): Do not assign to
166 simple_type_specifier.
168 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
170 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
172 (c_pretty_printer::storage_class_specifier): Likewise.
173 (c_pretty_printer::initializer): Likewise.
174 (pp_declaration): Remove.
175 (pp_declaration_specifiers): Likewise.
176 (pp_abstract_declarator): Likewise.
177 (pp_declarator): Likewise.
178 (pp_type_id): Likewise.
179 (pp_statement): Likewise.
180 (pp_constant): Likewise.
181 (pp_id_expression): Likewise.
182 (pp_primary_expression): Likewise.
183 (pp_unary_expression): Likewise.
184 (pp_multiplicative_expression): Likewise.
185 (pp_conditional_expression): Likewise.
186 (pp_assignment_expression): Likewise.
187 (pp_expression): Likewise.
188 (pp_c_type_id): Likewise.
189 (pp_c_storage_class_specifier): Likewise.
190 * c-pretty-print.c (pp_c_type_cast): Tidy.
191 (pp_c_pointer): Likewise.
192 (pp_c_type_specifier): Likewise.
193 (pp_c_parameter_type_list): Likewise.
194 (pp_c_function_definition): Likewise.
195 (pp_c_init_declarator): Likewise.
196 (pp_c_initializer_list): Likewise.
197 (pp_c_constructor_elts): Likewise.
198 (c_pretty_printer::direct_abstract_declarator): Likewise.
199 (c_pretty_printer::declaration_specifiers): Likewise.
200 (c_pretty_printer::primary_expression): Likewise.
201 (c_pretty_printer::postfix_expression): Likewise.
202 (c_pretty_printer::type_id): Rename from pp_c_type_id.
203 (c_pretty_printer::storage_class_specifier): Rename from
204 pp_c_storage_class_specifier.
205 (c_pretty_printer::initializer): Rename from pp_c_initializer.
206 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
207 storage_class_specifier, initializer, offset_list, flags.
209 2013-08-30 Marek Polacek <polacek@redhat.com>
211 * c-ubsan.c: New file.
212 * c-ubsan.h: New file.
214 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
216 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
218 (c_pretty_printer::declaration_specifiers): Likewise.
219 (c_pretty_printer::declarator): Likewise.
220 (c_pretty_printer::abstract_declarator): Likewise.
221 (c_pretty_printer::direct_abstract_declarator): Likewise.
222 (c_pretty_printer::direct_declarator): Likewise.
223 (c_pretty_printer::function_specifier): Likewise.
224 (pp_declaration): Adjust.
225 (pp_declaration_specifiers): Likewise.
226 (pp_abstract_declarator): Likewise.
227 (pp_direct_declarator): Likewise.
228 (pp_function_specifier): Likewise.
229 (pp_direct_abstract_declarator): Remove as unused.
230 (pp_c_declaration): Remove.
231 (pp_c_declaration_specifiers): Likewise.
232 (pp_c_declarator): Likewise.
233 (pp_c_direct_declarator): Likewise.
234 (pp_c_function_specifier): Likewise.
235 (pp_c_direct_abstract_declarator): Likewise.
236 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
237 from pp_c_abstract_declarator. Adjust.
238 (c_pretty_printer::direct_abstract_declarator): Rename from
239 pp_c_direct_abstract_declarator. Adjust.
240 (c_pretty_printer::function_specifier): Rename from
241 pp_c_function_specifier. Adjust.
242 (c_pretty_printer::declaration_specifiers): Rename from
243 pp_c_declaration_specifiers. Adjust.
244 (c_pretty_printer::direct_declarator): Rename from
245 pp_c_direct_declarator. Adjust.
246 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
247 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
248 (c_pretty_printer::c_pretty_printer): Do not assign to
249 declaration, declaration_specifiers, declarator,
250 direct_declarator, direct_abstract_declarator, function_specifier.
252 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
254 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
255 virtual member function.
256 (c_pretty_printer::multiplicative_expression): Likewise.
257 (c_pretty_printer::conditional_expression): Likewise.
258 (c_pretty_printer::assignment_expression): Likewise.
259 (c_pretty_printer::expression): Likewise.
260 (pp_unary_expression): Adjust.
261 (pp_multiplicative_expression): Likewise.
262 (pp_assignment_expression): Likewise.
263 (pp_conditional_expression): Likewise.
264 (pp_expression): Likewise.
265 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
266 from pp_c_unary_expression. Adjust.
267 (c_pretty_printer::multiplicative_expression): Rename from
268 pp_c_multiplicative_expression. Adjust.
269 (c_pretty_printer::conditional_expression): Rename from
270 pp_c_conditional_expression. Adjust.
271 (c_pretty_printer::assignment_expression): Rename from
272 pp_c_assignment_expression. Adjust.
273 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
274 (c_pretty_printer::c_pretty_printer): Do not assign to
275 unary_expression, multiplicative_expression,
276 conditional_expression, expression.
278 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
280 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
281 virtual member function.
282 (pp_postfix_expression): Adjust.
283 (pp_c_postfix_expression): Remove.
284 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
285 from pp_c_postfix_expression. Adjust.
286 (c_pretty_printer::c_pretty_printer): Do not assign to
289 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
291 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
292 virtua member function.
293 (pp_primary_expression): Adjust.
294 (pp_c_primary_expression): Remove.
295 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
296 from pp_c_primary_expression. Adjust.
297 (pp_c_initializer_list): Use pp_primary_expression.
298 (c_pretty_printer::c_pretty_printer): Do not assign to
301 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
303 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
304 * c-pretty-print.c (M_): Remove.
305 (c_pretty_printer::translate_string): Define.
306 (pp_c_type_specifier): Use it.
307 (pp_c_primary_expression): Likewise.
308 (pp_c_expression): Likewise.
310 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
312 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
314 (pp_c_id_expression): Remove.
315 (pp_id_expression): Adjust.
316 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
317 pp_c_id_expression. Adjust.
318 (pp_c_postfix_expression): Use pp_id_expression.
319 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
321 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
323 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
325 (pp_constant): Adjust.
326 (pp_c_constant): Remove.
327 * c-pretty-print.c (c_pretty_printer::constant): Rename from
328 pp_c_constant. Adjust.
330 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
331 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
333 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
335 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
336 (c_pretty_printer::c_pretty_printer): Declare.
337 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
338 c_pretty_printer_init. Adjust.
339 (print_c_tree): Do not call c_pretty_printer_init.
340 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
342 2013-08-09 Arnaud Charlet <charlet@adacore.com>
344 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
346 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
349 * c-common.c (pointer_int_sum): Add bool parameter.
350 * c-common.h (pointer_int_sum): Adjust declaration.
352 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
354 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
355 c_pretty_printer variable.
357 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
359 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
361 (pp_c_base): Likewise. Adjust users.
362 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
363 (pp_c_whitespace): Do not call pp_base.
364 (pp_c_left_paren): Likewise.
365 (pp_c_right_paren): Likewise.
366 (pp_c_left_brace): Likewise.
367 (pp_c_right_brace): Likewise.
368 (pp_c_left_bracket): Likewise.
369 (pp_c_right_bracket): Likewise.
370 (pp_c_dot): Likewise.
371 (pp_c_ampersand): Likewise.
372 (pp_c_star): Likewise.
373 (pp_c_arrow): Likewise.
374 (pp_c_semicolon): Likewise.
375 (pp_c_complement): Likewise.
376 (pp_c_exclamation): Likewise.
377 (pp_c_direct_declarator): Likewise.
378 (pp_c_ws_string): Likewise.
379 (pp_c_identifier): Likewise.
380 (pp_c_statement): Likewise.
381 (print_c_tree): Likewise.
383 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
386 * c-common.c (c_parse_error): Catch user-defined literal tokens and
387 provide useful error strings.
389 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
391 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
392 printer functions instead of pp_string or operators and punctuators.
393 (dump_generic_ada_node): Likewise.
394 * c-pretty-print.c (pp_c_type_specifier): Likewise.
395 (pp_c_relational_expression): Likewise.
396 (pp_c_logical_or_expression): Likewise.
398 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
400 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
401 functions instead of pp_character.
402 (pp_ada_tree_identifier): Likewise.
403 (dump_ada_double_name): Likewise.
404 (dump_ada_function_declaration): Likewise.
405 (dump_ada_array_domains): Likewise.
406 (dump_template_types): Likewise.
407 (dump_generic_ada_node): Likewise.
408 (print_ada_declaration): Likewise.
409 (print_ada_struct_decl): Likewise.
410 * c-pretty-print.c (pp_c_integer_constant): Likewise.
412 2013-07-23 Tom Tromey <tromey@redhat.com>
414 * c-common.h (enum rid) <RID_GENERIC>: New constant.
415 * c-common.c (c_common_reswords): Add _Generic.
417 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
419 * c-common.c: Fix typos.
420 * c-common.h: Likewise.
422 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
425 * c-common.c (c_common_attribute_table): Add warn_unused.
426 (handle_warn_unused_attribute): New.
428 2013-07-10 Jakub Jelinek <jakub@redhat.com>
430 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
431 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
433 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
436 * c.opt: Add Wconditionally-supported.
438 2013-07-08 Graham Stott <graham.stott@btinternet.com>
440 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
441 unused variables l_length and l_node.
443 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
446 * c-common.c (complete_array_type): Delay folding first index
447 like other indices. When folding, check for index overflow.
449 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
452 * c-common.h (c_build_vec_perm_expr): New complain argument.
453 * c-common.c (c_build_vec_perm_expr): Likewise.
454 Use save_expr also in C++.
456 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
458 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
459 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
460 * c-opts.c (c_common_post_options): Likewise.
462 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
464 * array-notation-common.c (length_mismatch_in_expr): Changed the
465 parameter type's from a dynamic array to a vec_tree. Also removed
467 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
470 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
472 * c-common.h (struct cilkplus_an_parts): New structure.
473 (struct cilkplus_an_loop_parts): Likewise.
474 (cilkplus_extract_an_triplets): New prototype.
475 (fix_sec_implicit_args): Likewise.
476 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
477 (fix_sec_implicit_args): Likewise.
479 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
481 * array-notation-common.c (find_inv_trees): Removed an unwanted
483 * c-common.h (struct inv_list::additional_tcodes): Changed type from
484 enum rid to enum tree_code.
486 2013-06-11 Jan Hubicka <jh@suse.cz>
488 * c-common.c (handle_alias_ifunc_attribute): Do not set
489 DECL_EXTERNAL for weakref variables.
490 * c-pragma.c (handle_pragma_weak): Make sure aliases
491 are not declared as external.
493 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
495 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
496 function from c/c-array-notation.c.
497 (is_cilkplus_reduce_builtin): Likewise.
498 (find_rank): Likewise.
499 (extract_array_notation_exprs): Likewise.
500 (replace_array_notations): Likewise.
501 (find_inv_trees): Likewise.
502 (replace_inv_trees): Likewise.
503 (contains_array_notation_expr): Likewise.
504 (find_correct_array_notation_type): Likewise.
505 * c-common.h (struct inv_list): Moved this struct from the file
506 c/c-array-notation.c and added a new field called additional tcodes.
507 (length_mismatch_in_expr_p): New prototype.
508 (is_cilkplus_reduce_builtin): Likewise.
509 (find_rank): Likewise.
510 (extract_array_notation_exprs): Likewise.
511 (replace_array_notation): Likewise.
512 (find_inv_trees): Likewise.
513 (replace_inv_trees): Likewise.
514 (find_correct_array_notation_type): Likewise.
516 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
518 * c-common.c (c_define_builtins): When cilkplus is enabled, the
519 function array_notation_init_builtins is called.
520 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
521 * c-common.def (ARRAY_NOTATION_REF): New tree.
522 * c-common.h (build_array_notation_expr): New function declaration.
523 (build_array_notation_ref): Likewise.
524 (extract_sec_implicit_index_arg): New extern declaration.
525 (is_sec_implicit_index_fn): Likewise.
526 (ARRAY_NOTATION_CHECK): New define.
527 (ARRAY_NOTATION_ARRAY): Likewise.
528 (ARRAY_NOTATION_START): Likewise.
529 (ARRAY_NOTATION_LENGTH): Likewise.
530 (ARRAY_NOTATION_STRIDE): Likewise.
531 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
533 (pp_c_expression): Likewise.
534 * c.opt (flag_enable_cilkplus): New flag.
535 * array-notation-common.c: New file.
537 2013-05-14 Jakub Jelinek <jakub@redhat.com>
540 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
542 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
544 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
547 2013-05-07 Han Shen <shenhan@google.com>
549 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
551 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
553 * c-common.c (check_user_alignment): Emit error for negative values.
555 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
557 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
559 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
561 * c-cppbuiltin.c (c_cpp_builtins): Do not define
562 __GXX_EXPERIMENTAL_CXX1Y__.
564 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
565 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
567 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
568 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
569 to simply use OPT_Wpointer_arith.
570 (c_sizeof_or_alignof_type): Likewise.
572 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
574 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
576 2013-04-12 Jakub Jelinek <jakub@redhat.com>
578 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
579 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
582 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
584 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
586 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
588 * c-common.c (pointer_int_sum): Remove dead code.
590 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
593 * c-common.c (handle_optimize_attribute): Don't call
594 save_optabs_if_changed.
596 2013-03-05 Jakub Jelinek <jakub@redhat.com>
599 * c-pch.c (pch_init): Free target_validity at the end.
601 2013-03-04 Jakub Jelinek <jakub@redhat.com>
603 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
605 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
606 Jakub Jelinek <jakub@redhat.com>
609 * c-common.c (handle_no_sanitize_address_attribute): New function.
610 (c_common_attribute_table): Add no_sanitize_address attribute.
611 (handle_no_address_safety_analysis_attribute): Add
612 no_sanitize_address attribute, not no_address_safety_analysis
615 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
618 * c-common.c (handle_optimize_attribute): Call
619 save_optabs_if_changed.
621 2013-02-18 Jakub Jelinek <jakub@redhat.com>
622 Steven Bosscher <steven@gcc.gnu.org>
625 * c-opts.c (c_common_post_options): If debug info is enabled
626 and non-dwarf*, refuse to load PCH files and when writing PCH
629 2013-02-05 Jakub Jelinek <jakub@redhat.com>
632 * c-common.c (handle_error_attribute): Fix condition.
634 2013-01-30 Jakub Jelinek <jakub@redhat.com>
637 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
639 2013-01-18 Jason Merrill <jason@redhat.com>
642 * c.opt (-fextern-tls-init): New.
643 * c-opts.c (c_common_post_options): Handle it.
645 2013-01-09 Jakub Jelinek <jakub@redhat.com>
648 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
649 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
650 and is either negative or bigger or equal to type precision
651 of the first operand.
653 2012-12-03 Marek Polacek <polacek@redhat.com>
656 * c-common.c (check_user_alignment): Swap order of tests,
657 check TREE_CODE first.
659 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
662 * c-common.h (overflow_type): New enum.
663 (build_userdef_literal): Add overflow_type argument.
664 (tree_userdef_literal): Add overflow_type.
665 (USERDEF_LITERAL_OVERFLOW): New access macro.
666 * c-common.c (build_userdef_literal): Add overflow_type
668 * c-lex.c (c_lex_with_flags): Add overflow_type to
669 build_userdef_literal calls.
670 (interpret_integer, interpret_float): Add overflow_type argument.
672 2012-11-28 Richard Biener <rguenther@suse.de>
675 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
676 here and use a type with proper overflow behavior for types that would
677 need to be promoted for the arithmetic.
679 2012-11-23 Jakub Jelinek <jakub@redhat.com>
682 * c-common.c (handle_no_address_safety_analysis_attribute): New
684 (c_common_attribute_table): Add no_address_safety_analysis.
686 2012-11-16 Simon Baldwin <simonb@google.com>
688 * c.opt: Add f[no-]canonical-system-headers.
689 * c-opts.c (c_common_handle_option): Handle
690 OPT_fcanonical_system_headers.
692 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
695 * c-opts.c (c_common_handle_option): Set new flags.
696 * c.opt: Describe new flags.
698 2012-11-09 Jason Merrill <jason@redhat.com>
700 * c.opt (Wabi-tag): New.
702 2012-11-09 Andi Kleen <ak@linux.intel.com>
705 * c-common.c (get_atomic_generic_size): Mask with
708 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
711 * c.opt (Wformat): Make it Alias Wformat=1.
712 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
713 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
715 (Wformat=): RejectNegative. Use LangEnabledBy.
716 (Wnonnull): Use LangEnabledBy.
717 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
718 * c-format.c (set_Wformat): Delete.
719 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
720 (maybe_read_dollar_number): Likewise.
721 (avoid_dollar_number): Likewise.
722 (finish_dollar_format_checking): Likewise.
723 (check_format_info): Likewise.
724 (check_format_info_main): Likewise.
725 (check_format_types): Likewise.
726 (format_type_warning): Likewise.
727 * c-common.c (int): Likewise.
728 (check_function_sentinel): Likewise.
729 * c-common.h (warn_format,set_Wformat): Do not declare here.
731 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
734 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
735 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
737 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
739 (Wvariadic-macros): Init(1).
740 * c-opts.c (c_common_handle_option): Do not handle them
742 (c_common_post_options): Likewise.
743 (sanitize_cpp_opts): warn_unused_macros is now
744 cpp_warn_unused_macros.
745 (push_command_line_include): Likewise.
746 * c-common.c (warn_unknown_pragmas): Do not define.
747 * c-common.h (warn_unknown_pragmas): Do not declare.
749 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
752 * c-common.c (conversion_warning): Handle conditional expressions.
754 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
757 * c.opt (Wreturn_local_addr): Define new option.
759 2012-10-25 Jason Merrill <jason@redhat.com>
761 * c.opt (Wvirtual-move-assign): New.
763 * c.opt (Winherited-variadic-ctor): New.
765 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
768 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
770 2012-10-23 Joseph Myers <joseph@codesourcery.com>
772 * c-common.h (pch_cpp_save_state): Declare.
773 * c-target.def (c_preinclude): New hook.
774 * c-opts.c (done_preinclude): New.
775 (push_command_line_include): Handle default preincluded header.
776 (cb_file_change): Call pch_cpp_save_state when calling
777 push_command_line_include.
778 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
779 (pch_cpp_save_state): New.
780 (pch_init): Call pch_cpp_save_state conditionally, instead of
781 calling cpp_save_state.
783 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
787 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
788 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
789 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
790 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
791 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
792 * c-opts.c (c_common_handle_option): Remove explicit handling from
794 (c_common_post_options): Likewise.
796 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
798 * c-ada-spec.c (LOCATION_COL): Delete.
799 (compare_location): New function.
800 (compare_node): Use it.
801 (compare_comment): Likewise.
803 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
807 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
808 * c-opts.c (c_common_handle_option): Do not set them here. Add
810 (c_common_post_options): Likewise.
812 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
814 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
815 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
816 Remove POINTER_TYPE handling, add large unsigned handling and use
817 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
819 2012-10-12 Jakub Jelinek <jakub@redhat.com>
822 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
823 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
824 locs and array of 3 trees instead of just single loc and single
825 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
826 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
827 For *cmp* builtins that take two sources strings report warnings
828 about first and second source, not about destination and source.
830 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
833 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
835 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
837 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
838 declaring something coming from another file.
840 2012-10-10 Arnaud Charlet <charlet@adacore.com>
843 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
845 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
848 * c-common.c (warn_about_parentheses): Add location_t parameter;
850 * c-common.h: Update declaration.
852 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
855 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
856 more operations. Make error messages optional.
857 * c-common.h (enum stv_conv): Moved from c-typeck.c.
858 (scalar_to_vector): Declare.
860 2012-10-08 Jason Merrill <jason@redhat.com>
862 * c-common.c (c_common_reswords): Add thread_local.
864 2012-10-08 Dodji Seketeli <dodji@redhat.com>
866 PR c++/53528 C++11 attribute support
867 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
869 * c-common.c (check_cxx_fundamental_alignment_constraints): New
871 (handle_aligned_attribute): In choose strictest alignment
872 among many. Use new check_cxx_fundamental_alignment_constraints.
873 (handle_transparent_union_attribute): In c++11 attribute syntax,
874 don't look through typedefs.
876 2012-10-04 Arnaud Charlet <charlet@adacore.com>
878 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
879 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
882 2012-09-25 Dehao Chen <dehao@google.com>
885 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
886 map when read in the pch.
888 2012-09-18 Arnaud Charlet <charlet@adacore.com>
890 * c-ada-spec.c: Style fixes.
892 2012-09-18 Thomas Quinot <quinot@adacore.com>
894 * c.opt (-fada-spec-parent): Define new command line switch.
895 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
896 is specified, generate binding spec as a child of the specified unit.
898 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
899 Manuel López-Ibáñez <manu@gcc.gnu.org>
902 * c.opt ([Winit-self]): Enabled by -Wall in C++.
904 2012-08-23 Arnaud Charlet <charlet@adacore.com>
906 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
907 for pointers, and add missing Convention C pragma.
908 (print_ada_struct_decl): Add missing aliased keyword.
909 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
911 2012-08-17 Jakub Jelinek <jakub@redhat.com>
913 * c-common.c (sizeof_pointer_memaccess_warning): New function.
914 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
915 * c-opts.c (c_common_handle_option): Enable it for -Wall.
916 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
917 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
919 2012-08-10 Richard Guenther <rguenther@suse.de>
921 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
923 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
925 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
926 instead of separate pp_newline and pp_flush.
927 (print_c_tree): Likewise.
929 2012-07-26 Richard Henderson <rth@redhat.com>
931 * c-common.c (handle_hot_attribute): Allow labels.
932 (handle_cold_attribute): Likewise.
934 2012-07-20 Jakub Jelinek <jakub@redhat.com>
937 * c-common.c (check_function_nonnull): Handle multiple nonnull
940 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
942 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
943 * c-ada-spec.c: Likewise.
944 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
946 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
948 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
949 Remove code conditional on it.
951 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
953 * c-gimplify.c: Do not include basic-block.h.
954 * c-common.c: Do not include linfuncs.h.
956 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
958 * c-common.h: Include tree.h.
960 2012-07-02 Jason Merrill <jason@redhat.com>
963 * c-common.c (get_priority): Call default_conversion.
965 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
967 * c-pch.c (c_common_write_pch): Remove unused variables.
969 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
971 * cppspec.c: Moved from gcc/ to here.
973 2012-06-27 Kai Tietz <ktietz@redhat.com>
975 PR preprocessor/37215
976 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
978 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
980 * c-common.h (c_common_print_pch_checksum): Remove.
981 * c-pch.c: Do not include output.h.
982 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
983 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
984 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
985 (struct c_pch_header): Remove.
986 (get_ident): Update gpch version.
987 (pch_init): Do not print executable_checksum to asm_out_file.
988 Do not fail if there is no asm_out_file to read back from. Set
989 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
990 (c_common_write_pch): Verify that nothing was written to asm_out_file
991 since pch_init was called. Do not write a c_pch_header, and do not
992 copy from asm_out_file to the PCH.
993 (c_common_read_pch): Do not read a c_pch_header, and do not restore
994 the content of asm_out_file from the PCH.
995 (c_common_print_pch_checksum): Remove.
996 * c-opts.c (c_common_init): Print out executable_checksum directly.
998 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1000 * c-target.def (objc_declare_unresolved_class_reference,
1001 objc_declare_class_definition): Add new hooks.
1003 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1005 * c-lex.c: Do not include output.h.
1006 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1007 Remove uses of ASM_OUTPUT_IDENT.
1009 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1012 * c-common.h (c_build_vec_perm_expr): Move decl here.
1013 * c-common.c (c_build_vec_perm_expr): Move definition
1016 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1018 * c.opt (fconserve-space): Turn into a no-op.
1020 2012-06-04 Sterling Augustine <saugustine@google.com>
1022 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1023 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1024 both the start and end of the function.
1026 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1028 * c-common.c: Do not include output.h.
1029 * c-pragma.c: Likewise.
1031 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1033 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1034 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1035 (lang_decl_name): Handle namespace decls.
1037 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1039 * c-ada-spec.c: Do not include output.h.
1040 * c-semantics.c: Likewise.
1042 2012-05-29 Joseph Myers <joseph@codesourcery.com>
1044 * c-common.c: Fix typo.
1046 2012-05-29 Michael Matz <matz@suse.de>
1048 * c-common.h (c_expand_decl): Remove prototype.
1050 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1052 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1053 * c-opts.c (c_common_handle_option): Remove code handling
1054 warn_missing_braces.
1056 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1059 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1062 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1065 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1067 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1069 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1070 * c-opts.c (c_common_handle_option): Do not handle explicitly
1071 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1073 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1075 PR preprocessor/7263
1076 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1077 to cpp_classify_number. For diagnostics, use the precise location
1078 instead of the global input_location.
1080 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1083 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1085 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1087 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1089 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1092 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1093 Wreorder): Use LangEnabledBy.
1094 * c-opts.c (c_common_handle_option): Do not enable them
1095 explicitly. Call lang-specific generated functions.
1096 (c_common_post_options): Do not set them here.
1098 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1100 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1101 Wmissing-field-initializers,Wmissing-parameter-type,
1102 Wold-style-declaration,Woverride-init): Use EnabledBy.
1103 * c-opts.c (c_common_post_options): Do not set here explicitly.
1105 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1108 * c-opts.c (c_common_handle_option): Use handle_generated_option
1109 to enable sub-options.
1111 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1114 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1116 2012-05-10 Richard Guenther <rguenther@suse.de>
1118 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1119 adjust commentary about TYPE_IS_SIZETYPE types.
1121 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1124 * c-common.c (warn_logical_operator): Check that argument of
1125 integer_zerop is not NULL.
1127 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1130 * c-common.c (warn_logical_operator): Do not warn if either side
1131 is already true or false.
1133 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1136 * c-common.c (expr_original_type): New.
1137 (shorten_compare): Do not warn for enumeration types.
1139 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1141 * c.opt (fpermissive): Add Var(flag_permissive).
1143 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1146 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1147 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1149 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1151 Add -Wvarargs option
1152 * c.opt (Wvarargs): Define new option.
1154 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1156 * c-common.c (check_function_arguments): Replace
1157 Wmissing-format-attribute with Wsuggest-attribute=format.
1159 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1161 * c.opt (Wsuggest-attribute=format): New. Alias of
1162 Wmissing-format-attribute.
1163 * c-format.c (decode_format_type): Replace
1164 Wmissing-format-attribute with Wsuggest-attribute=format.
1165 (check_function_format): Likewise.
1167 2012-04-27 Ollie Wild <aaw@google.com>
1169 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1170 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1171 * c.opt: Add Wliteral-suffix.
1173 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1176 * c.opt (Wpedantic): New.
1177 (pedantic): Alias Wpedantic.
1178 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1179 (c_common_post_options): Likewise.
1180 (sanitize_cpp_opts): Likewise.
1181 * c-lex.c (interpret_float): Likewise.
1182 * c-format.c (check_format_types): Likewise.
1183 * c-common.c (pointer_int_sum): Likewise.
1184 (c_sizeof_or_alignof_type): Likewise.
1185 (c_add_case_label): Likewise.
1186 (c_do_switch_warnings): Likewise.
1187 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1189 2012-04-15 Jason Merrill <jason@redhat.com>
1192 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1193 (C_STD_NAME): Distinguish between C++98 and C++11.
1195 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1198 * c-common.h (uint16_type_node): Rename into...
1199 (c_uint16_type_node): ...this.
1200 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1201 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1203 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1205 * c-common.c (warn_if_unused_value): Move definition to here.
1206 * c-common.h (warn_if_unused_value): Move declaration to here.
1208 2012-03-23 William Bader <williambader@hotmail.com>
1210 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1212 2012-03-20 Jason Merrill <jason@redhat.com>
1214 * c-common.h (enum cxx_dialect): Add cxx1y.
1215 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1217 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1218 * c-opts.c (c_common_post_options): Likewise.
1219 (set_std_cxx1y): New.
1220 (c_common_handle_option): Call it.
1221 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1223 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1226 * c.opt ([Wuseless-cast]): Add.
1228 2012-03-16 Richard Guenther <rguenther@suse.de>
1230 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1232 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1235 * c.opt (ftemplate-backtrace-limit) Add.
1237 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1239 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1241 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1242 (init_pragma): Don't register extern_prefix.
1244 2012-03-12 Richard Guenther <rguenther@suse.de>
1246 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1247 (builtin_type_for_size): Likewise.
1249 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1252 * c-common.c (sync_resolve_params): Don't decide whether to convert
1253 or not based on TYPE_SIZE comparison, convert whenever arg_type
1254 is unsigned INTEGER_TYPE.
1256 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1259 * c.opt ([Wunused-local-typedefs]): Fix description.
1261 2012-01-24 Mike Stump <mikestump@comcast.net>
1263 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1266 2012-01-18 Richard Guenther <rguenther@suse.de>
1268 * c-opts.c (c_common_post_options): Reset LTO flags if
1269 we are about to generate a PCH.
1271 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1274 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1275 use pp_unsigned_wide_integer.
1277 2012-01-10 Richard Guenther <rguenther@suse.de>
1280 * c-opts.c (c_common_handle_option): Move -Werror handling
1281 to language independent code.
1283 2012-01-05 Richard Guenther <rguenther@suse.de>
1286 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1289 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1292 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1293 of array types with an unknown bound.
1295 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1297 * c-common.c (flag_isoc99): Update comment to refer to C11.
1298 (flag_isoc1x): Change to flag_isoc11.
1299 * c-common.h (flag_isoc99): Update comment to refer to C11.
1300 (flag_isoc1x): Change to flag_isoc11.
1301 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1303 * c-opts.c (set_std_c1x): Change to set_std_c11.
1304 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1306 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1307 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1308 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1310 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1311 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1312 (std=gnu1x): Make alias of std=gnu11.
1314 2011-12-19 Jason Merrill <jason@redhat.com>
1317 * c-common.c (handle_transparent_union_attribute): Check the first
1318 field if the type is complete.
1320 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1323 * c-common.c (RID_IS_FINAL): Add.
1324 * c-common.h (RID_IS_FINAL): Add.
1326 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1328 * c.opt (fgnu-runtime): Provide full description.
1329 (fnext-runtime): Likewise.
1330 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1332 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1334 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1335 predefines in one place. Add LOCK_FREE predefines.
1336 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1339 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1342 * c-common.c (get_atomic_generic_size): Check for various error
1344 (resolve_overloaded_atomic_exchange,
1345 resolve_overloaded_atomic_compare_exchange,
1346 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1347 error_mark_node for error conditions.
1349 2011-11-08 Richard Guenther <rguenther@suse.de>
1354 2011-11-07 Richard Henderson <rth@redhat.com>
1355 Aldy Hernandez <aldyh@redhat.com>
1356 Torvald Riegel <triegel@redhat.com>
1358 Merged from transactional-memory.
1360 * c-common.c (handle_tm_wrap_attribute,
1361 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1362 (struct c_common_reswords): Added __transaction* keywords.
1363 (struct c_common_attribute_table): Added transaction* and tm_regparm
1365 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1367 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1368 find_tm_attribute): Declare.
1370 2011-11-07 Jason Merrill <jason@redhat.com>
1373 * c-common.c, c-common.h: Revert yesterday's changes.
1375 2011-11-06 Jason Merrill <jason@redhat.com>
1378 * c-common.c (decl_has_visibility_attr): Split out from...
1379 (c_determine_visibility): ...here.
1380 * c-common.h: Declare it.
1382 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1384 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1385 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1387 (check_user_alignment): New. Split out of
1388 handle_aligned_attribute. Disallow integer constants with
1389 noninteger types. Conditionally allow zero.
1390 (handle_aligned_attribute): Use check_user_alignment.
1391 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1393 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1394 Richard Henderson <rth@redhat.com>
1396 Merged from cxx-mem-model.
1398 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1399 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1400 parameters that are the same type size.
1401 (get_atomic_generic_size): New. Find size of generic
1402 atomic function parameters and do typechecking.
1403 (add_atomic_size_parameter): New. Insert size into parameter list.
1404 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1405 either __atomic_exchange_n or external library call.
1406 (resolve_overloaded_atomic_compare_exchange): Restructure
1407 __atomic_compare_exchange to either _n variant or external library call.
1408 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1409 __atomic_load_n or an external library call.
1410 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1411 __atomic_store_n or an external library call.
1412 (resolve_overloaded_builtin): Handle new __atomic builtins.
1414 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1417 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1418 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1419 <INDIRECT_REF>: Return the argument.
1420 <ARRAY_REF>: Remove special code for negative offset.
1421 Call fold_build_pointer_plus instead of size_binop.
1422 (fold_offsetof): Remove STOP_REF argument and adjust.
1423 * c-common.h (fold_offsetof_1): Declare.
1424 (fold_offsetof): Remove STOP_REF argument.
1426 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1429 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1430 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1431 Wnarrowing for C++0x and C++98.
1432 * c.opt ([Wnarrowing]): Update.
1434 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1437 * c.opt: Add Wzero-as-null-pointer-constant.
1439 2011-10-31 Jason Merrill <jason@redhat.com>
1441 * c.opt (-fdeduce-init-list): Off by default.
1444 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1445 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1447 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1449 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1452 * c.opt (fvisibility-inlines-hidden): Description change.
1454 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1456 Implement C++11 user-defined literals.
1457 * c-common.c (build_userdef_literal): New.
1458 * c-common.def: New tree code.
1459 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1460 * c-lex.c (interpret_float): Add suffix parm.
1461 (c_lex_with_flags): Build literal tokens.
1463 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1467 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1470 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1471 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1472 Wnarrowing for C++0x and C++98.
1473 * c.opt ([Wnarrowing]): Update.
1475 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1478 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1479 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1480 Wnarrowing for C++0x and C++98.
1481 * c.opt ([Wnarrowing]): Update.
1483 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1486 * c-common.c (conversion_warning): Remove code looking for
1487 artificial operands.
1489 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1492 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1493 !NO_IMPLICIT_EXTERN_C.
1495 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1497 * c-common.c (c_common_reswords): Add __bases,
1499 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1501 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1504 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1506 2011-10-15 Tom Tromey <tromey@redhat.com>
1507 Dodji Seketeli <dodji@redhat.com>
1509 * c.opt (fdebug-cpp): New option.
1510 * c-opts.c (c_common_handle_option): Handle the option.
1511 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1512 output stream in parameter. Factorized from ...
1513 (maybe_print_line): ... this. Dump location debug information when
1514 -fdebug-cpp is in effect.
1515 (print_line_1): New static function. Takes an output stream in
1516 parameter. Factorized from ...
1517 (print_line): ... here. Dump location information when -fdebug-cpp
1519 (scan_translation_unit): Dump location information when
1520 -fdebug-cpp is in effect.
1522 2011-10-15 Tom Tromey <tromey@redhat.com>
1523 Dodji Seketeli <dodji@redhat.com>
1525 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1527 * c-opts.c (c_common_handle_option)<case
1528 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1529 cases. Handle -ftrack-macro-expansion with and without argument.
1531 2011-10-15 Tom Tromey <tromey@redhat.com>
1532 Dodji Seketeli <dodji@redhat.com>
1534 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1535 (print_line, cb_define, do_line_change): Adjust to avoid touching
1536 the internals of struct line_map. Use the public API instead.
1537 * c-pch.c (c_common_read_pch): Likewise.
1538 * c-lex.c (fe_file_change): Likewise.
1540 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1543 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1545 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1548 * c-pretty-print.c (pp_c_floating_constant): Output
1549 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1551 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1553 * c-common.c (def_builtin_1): Delete old interface with two
1554 parallel arrays to hold standard builtin declarations, and replace
1555 it with a function based interface that can support creating
1556 builtins on the fly in the future. Change all uses, and poison
1557 the old names. Make sure 0 is not a legitimate builtin index.
1558 * c-omp.c (c_finish_omp_barrier): Ditto.
1559 (c_finish_omp_taskwait): Ditto.
1560 (c_finish_omp_flush): Ditto.
1562 2011-10-11 Tristan Gingold <gingold@adacore.com>
1564 * c.opt: (fallow-parameterless-variadic-functions): New.
1566 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1568 PR c++/33255 - Support -Wunused-local-typedefs warning
1569 * c-common.h (struct c_language_function::local_typedefs): New
1571 (record_locally_defined_typedef, maybe_record_typedef_use)
1572 (maybe_warn_unused_local_typedefs): Declare new functions.
1573 * c-common.c (record_locally_defined_typedef)
1574 (maybe_record_typedef_use)
1575 (maybe_warn_unused_local_typedefs): Define new functions.
1576 * c.opt: Declare new -Wunused-local-typedefs flag.
1578 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1581 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1584 2011-09-05 Richard Guenther <rguenther@suse.de>
1586 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1587 of integer_minus_one_node for empty array upper bounds.
1589 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1591 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1592 it's the first time it's being called on this main TU.
1594 2011-08-24 Richard Guenther <rguenther@suse.de>
1597 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1599 2011-08-22 Gabriel Charette <gchare@google.com>
1601 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1602 defined in cpp_init_builtins and c_cpp_builtins.
1604 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1606 * c-common.c (c_common_reswords): Add __builtin_complex.
1607 * c-common.h (RID_BUILTIN_COMPLEX): New.
1609 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1611 * c-common.c (c_common_reswords): Add _Noreturn.
1612 (keyword_is_function_specifier): Handle RID_NORETURN.
1613 * c-common.h (RID_NORETURN): New.
1615 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1617 * c-common.c (unsafe_conversion_p): New function. Check if it is
1618 unsafe to convert an expression to the type.
1619 (conversion_warning): Adjust, use unsafe_conversion_p.
1620 * c-common.h (unsafe_conversion_p): New function declaration.
1622 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1624 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1625 (c_finish_omp_taskyield): New prototype.
1626 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1627 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1628 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1629 or RHS1 have side-effects, evaluate those too in the right spot,
1630 if it is a decl and LHS is also a decl, error out if they
1632 (c_finish_omp_taskyield): New function.
1633 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1634 * c-pragma.c (omp_pragmas): Add taskyield.
1635 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1636 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1637 PRAGMA_OMP_CLAUSE_MERGEABLE.
1639 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1641 * c-common.h (set_underlying_type): Remove parm name from
1644 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1646 * c-pretty-print.h: Search c-common.h in c-family.
1648 2011-07-22 Jason Merrill <jason@redhat.com>
1651 * c.opt (Wnarrowing): New.
1654 * c-common.h: Declare c_linkage_bindings.
1655 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1658 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1659 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1660 as flag_isoc99 for 'restrict'.
1661 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1663 2011-07-21 Ian Lance Taylor <iant@google.com>
1666 * c-common.c (c_disable_warnings): New static function.
1667 (c_enable_warnings): New static function.
1668 (c_fully_fold_internal): Change local unused_p to bool. Call
1669 c_disable_warnings and c_enable_warnings rather than change
1670 c_inhibit_evaluation_warnings.
1672 2011-07-20 Jason Merrill <jason@redhat.com>
1674 PR c++/6709 (DR 743)
1675 PR c++/42603 (DR 950)
1676 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1677 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1678 (CPP_DECLTYPE): New.
1679 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1681 2011-07-19 Richard Guenther <rguenther@suse.de>
1683 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1684 * c-omp.c (c_finish_omp_for): Likewise.
1686 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1688 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1689 body on the next line.
1691 2011-07-08 Jason Merrill <jason@redhat.com>
1694 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1697 * c-common.c (c_apply_type_quals_to_decl): Don't check
1698 TYPE_NEEDS_CONSTRUCTING.
1700 2011-07-06 Richard Guenther <rguenther@suse.de>
1702 * c-common.c (c_common_nodes_and_builtins):
1703 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1705 2011-07-05 Richard Guenther <rguenther@suse.de>
1707 * c-common.c (c_common_nodes_and_builtins): Build all common
1710 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1712 * c-common.h (c_tree_chain_next): New static inline function.
1714 * c-common.c (check_builtin_function_arguments): Handle
1715 BUILT_IN_ASSUME_ALIGNED.
1717 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1719 * c-common.c: Add sync_ or SYNC__ to builtin names.
1720 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1722 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1724 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1726 (gen_pragma_handler): New union.
1727 (internal_pragma_handler): New type.
1728 (c_register_pragma_with_data)
1729 (c_register_pragma_with_expansion_and_data): New functions.
1731 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1732 (c_register_pragma, c_register_pragma_with_expansion)
1733 (c_invoke_pragma_handler): Changed to work with
1734 internal_pragma_handler.
1735 (c_register_pragma_with_data)
1736 (c_register_pragma_with_expansion_and_data): New functions.
1738 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1740 * c-common.c: Include common/common-target.h.
1741 (handle_section_attribute): Use
1742 targetm_common.have_named_sections.
1743 * c-cppbuiltin.c: Include common/common-target.h.
1744 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1746 2011-06-10 Richard Guenther <rguenther@suse.de>
1748 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1749 to print a IDENTIFIER_NODE.
1751 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1752 Joseph Myers <joseph@codesourcery.com>
1754 * c.opt (fbuilding-libgcc): New option.
1755 * c-cppbuiltin.c (c_cpp_builtins): Define
1756 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1758 2011-06-07 Jason Merrill <jason@redhat.com>
1760 * c-common.c (max_tinst_depth): Lower default to 900.
1762 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1764 2011-06-07 Richard Guenther <rguenther@suse.de>
1766 * c-common.c (c_common_nodes_and_builtins): Do not set
1767 size_type_node or call set_sizetype.
1769 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1772 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1773 type when using pointer comparison to compare types.
1775 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1777 * c.opt: Add -Wdelete-non-virtual-dtor.
1778 * c-opts.c (c_common_handle_option): Include it in -Wall.
1780 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1785 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1787 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1790 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1793 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1794 C++ don't call c_common_truthvalue_conversion on void type arms.
1796 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1798 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1799 (stmt_list_stack): Define.
1800 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1801 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1803 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1805 * c-common.c (warning_candidate_p): Check for BLOCKs.
1807 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1809 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1812 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1814 * c-common.c (def_fn_type): Remove extra va_end.
1816 2011-05-23 Jason Merrill <jason@redhat.com>
1819 * c-common.c (c_common_get_narrower): New.
1820 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1822 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1824 * c-common.h (check_function_arguments): Tweak prototype of
1825 check_function_arguments.
1826 * c-common.c (check_function_arguments): Likewise. Adjust
1827 calls to check_function_nonnull, check_function_format, and
1828 check_function_sentinel.
1829 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1830 separate attributes and typelist arguments. Use
1831 FOREACH_FUNCTION_ARGS to iterate over argument types.
1833 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1835 * c-common.c (c_common_reswords): Reorder.
1836 * c-common.h (rid): Likewise.
1838 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1840 * c-common.c (def_fn_type): Don't call build_function_type, call
1841 build_function_type_array or build_varargs_function_type_array
1843 (c_common_nodes_and_builtins): Likewise.
1845 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1847 * c-common.c (c_add_case_label): Omit the loc argument to
1849 * c-common.h (build_case_label): Remove.
1850 * c-semantics.c (build_case_label): Remove.
1852 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1854 * c-objc.h (objc_start_method_definition): Update prototype.
1855 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1857 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1859 * c-common.c (check_main_parameter_types): Reindent. Don't use
1860 TYPE_ARG_TYPES directly.
1861 (handle_nonnull_attribute): Likewise.
1862 (sync_resolve_params): Likewise.
1863 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1864 to check_format_string.
1865 (handle_format_attribute): Likewise.
1866 (check_format_string): Take a function type to examine instead of
1867 a type list. Use a function_arg_iterator to step through argument
1870 2011-05-04 Richard Guenther <rguenther@suse.de>
1872 * c-common.c (fix_string_type): Use size_int for index type bounds.
1873 (start_fname_decls): Do not pass NULL to build_int_cst.
1874 (c_init_attributes): Likewise.
1875 * c-lex.c (c_lex_with_flags): Likewise.
1877 2011-04-27 Jason Merrill <jason@redhat.com>
1879 * c-common.c (make_tree_vector_from_list): New.
1880 * c-common.h: Declare it.
1882 2011-04-26 Richard Guenther <rguenther@suse.de>
1884 PR preprocessor/48248
1885 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1886 for output size with -P.
1888 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1890 * c-common.c (struct c_common_resword): Add __underlying_type.
1891 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1893 2011-04-20 Jim Meyering <meyering@redhat.com>
1895 * c-format.c (init_dollar_format_checking): Remove useless
1898 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1900 * c-objc.h (objc_get_interface_ivars): Removed.
1901 (objc_detect_field_duplicates): New.
1902 * stub-objc.c: Likewise.
1904 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1906 * stub-objc.c (objc_declare_protocols): Renamed to
1907 objc_declare_protocol.
1908 * c-objc.h: Likewise.
1910 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1912 * stub-objc.c (objc_declare_class): Updated argument name.
1914 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1916 * c-common.h (c_common_init_ts): Declare.
1917 * c-common.c (c_common_init_ts): Define.
1919 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1921 * c-objc.h (objc_build_message_expr): Updated prototype.
1922 * stub-objc.c (objc_build_message_expr): Likewise.
1924 2011-04-12 Martin Jambor <mjambor@suse.cz>
1926 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1929 2011-04-11 Richard Guenther <rguenther@suse.de>
1931 * c-common.c (complete_array_type): Build a range type of
1934 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1936 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1937 (handle_type_generic_attribute): Likewise.
1939 2011-04-07 Jason Merrill <jason@redhat.com>
1942 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1943 conversion from C++0x scoped enum.
1945 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1947 * c-target-def.h: New file.
1948 * c-target.def: New file.
1949 * c-target.h: New file.
1950 * c-common.c (targetcm): Don't define here.
1951 * c-common.h (default_handle_c_option): Declare.
1952 * c-format.c: Include c-target.h instead of target.h.
1953 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1955 (default_handle_c_option): Move from targhooks.c.
1957 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1959 PR preprocessor/48248
1960 * c-ppoutput.c (print): Add src_file field.
1961 (init_pp_output): Initialize it.
1962 (maybe_print_line): Don't optimize by adding up to 8 newlines
1963 if map->to_file and print.src_file are different file.
1964 (print_line): Update print.src_file.
1966 2011-03-25 Kai Tietz <ktietz@redhat.com>
1968 * c-ada-spec.c (compare_comment): Use filename_cmp
1969 instead of strcmp for filename.
1971 2011-03-25 Jeff Law <law@redhat.com>
1973 * c-family/c-common.c (def_fn_type): Add missing va_end.
1975 2011-03-25 Jason Merrill <jason@redhat.com>
1977 * c.opt: Add -std=c++03.
1979 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1981 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1983 2011-03-17 Kai Tietz
1986 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1987 Display allowed attributes for function pointer types.
1988 (pp_c_attributes_display): New function to display
1989 attributes having affects_type_identity flag set to true.
1990 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1992 * c-common.c (c_common_attribute_table):
1994 (c_common_format_attribute_table): Likewise.
1996 2011-03-18 Jason Merrill <jason@redhat.com>
1998 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1999 * c-common.h: Don't declare it here.
2000 * c-common.c: Or define it here.
2001 * c-opts.c (c_common_handle_option): Or set it here.
2004 * c-common.c (handle_transparent_union_attribute): Don't
2005 make a duplicate type in C++.
2007 2011-03-15 Jason Merrill <jason@redhat.com>
2009 * c-common.c (max_constexpr_depth): New.
2010 * c-common.h: Declare it.
2011 * c-opts.c (c_common_handle_option): Set it.
2012 * c.opt (fconstexpr-depth): New option.
2014 2011-03-11 Jason Merrill <jason@redhat.com>
2016 * c-common.c (attribute_takes_identifier_p): Add missing const.
2019 * c-common.c (attribute_takes_identifier_p): Assume that an
2020 unknown attribute takes an identifier.
2022 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2025 * c-common.c (c_type_hash): Call list_length instead of iterating
2026 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2028 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2031 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2033 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2035 * c.opt (fobjc-abi-version=) New.
2036 (fobjc-nilcheck): New.
2038 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2041 * c-common.h (keyword_is_decl_specifier): Declare.
2042 * c-common.c (keyword_is_decl_specifier): Define.
2043 (keyword_is_function_specifier): New function.
2045 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2048 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2049 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2052 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2054 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2056 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2059 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2060 after init_c_lex if pch_file is set.
2062 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2065 * c.opt (-fkeep-inline-dllexport): New switch.
2067 2011-01-12 Richard Guenther <rguenther@suse.de>
2070 * c-common.c (handle_weak_attribute): Warn instead of error
2071 on declaring an inline function weak.
2073 2011-01-05 Tom Tromey <tromey@redhat.com>
2075 * c-common.h (lvalue_error): Update.
2076 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2079 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
2082 * c-objc.h (objc_finish_message_expr): Added argument to
2085 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2087 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2090 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2092 * c-objc.h (objc_maybe_warn_exceptions): New.
2093 * stub-objc.c (objc_maybe_warn_exceptions): New.
2095 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2097 * c-common.h (readonly_error): Declare.
2098 * c-common.c (readonly_error): Define.
2100 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2102 * c-common.h (invalid_indirection_error): Declare.
2103 * c-common.c (invalid_indirection_error): Define.
2105 2010-12-03 Richard Guenther <rguenther@suse.de>
2108 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2109 (pp_c_unary_expression): Likewise.
2110 (pp_c_expression): Likewise.
2112 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2114 * c-common.h (objc_finish_function): New.
2115 (objc_non_volatilized_type): Removed.
2116 (objc_type_quals_match): Removed.
2117 * stub-objc.c (objc_finish_function): New.
2118 (objc_non_volatilized_type): Removed.
2119 (objc_type_quals_match): Removed.
2121 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2123 * c-common.h (parse_optimize_options): Declare.
2124 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2125 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2127 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2129 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2131 * c-pch.c (O_BINARY): Don't define here.
2132 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2134 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2136 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2137 targetm.except_unwind_info.
2139 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2141 * c-opts.c (c_common_handle_option): Pass location to
2142 set_struct_debug_option.
2144 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2146 * c-common.c (visibility_options): Move from ../opts.c.
2147 * c-common.h (struct visibility_flags, visibility_options):
2149 * c-opts.c (finish_options): Rename to c_finish_options.
2150 (c_common_init): Update call to finish_options.
2152 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2155 * c-lex.c (lex_string): Check that each string in an Objective-C
2156 string concat sequence starts with either one or zero '@', and
2157 that there are no spurious '@' signs at the end.
2159 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2161 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2162 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2163 HANDLE_PRAGMA_VISIBILITY.
2164 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2165 HANDLE_PRAGMA_VISIBILITY): Don't define.
2166 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2168 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2173 * c-common.h (keyword_begins_type_specifier): Declare.
2174 (keyword_is_storage_class_specifier): Declare.
2175 (keyword_is_type_qualifier): Declare.
2176 * c-common.c (keyword_begins_type_specifier): New function.
2177 (keyword_is_storage_class_specifier): New function.
2178 (keyword_is_type_qualifier): Declare.
2180 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2183 * c-common.c (in_late_binary_op): Define.
2184 (c_common_truthvalue_conversion): Check in_late_binary_op before
2185 calling c_save_expr.
2186 * c-common.h (in_late_binary_op): Declare.
2188 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2190 * c-opts.c (c_common_handle_option): Update calls to
2191 set_struct_debug_option.
2193 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2195 * c-common.h (objc_declare_protocols): Added additional argument.
2196 * stub-objc.c (objc_declare_protocol): Same change.
2198 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2201 * c-common.h (build_real_imag_expr): Declare.
2202 * c-semantics.c (build_real_imag_expr): Define.
2204 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2206 * c-opts.c (c_common_parse_file): Take no arguments.
2207 * c-common.h (c_common_parse_file): Update prototype.
2209 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2212 * c-common.c (warning_candidate_p): Don't track non-const calls
2215 2010-11-15 Ian Lance Taylor <iant@google.com>
2217 * c-lex.c (init_c_lex): Set macro debug callbacks if
2218 flag_dump_go_spec is set.
2220 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2222 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2223 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2225 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2227 PR preprocessor/45038
2228 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2231 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2233 * c-common.h (c_family_lang_mask): Declare.
2234 * c-opts.c (c_family_lang_mask): Make extern.
2235 * c-pragma.c (handle_pragma_diagnostic): Use
2236 control_warning_option.
2238 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2240 * c-common.c (parse_optimize_options): Update call to
2242 * c-common.h (c_common_handle_option): Update prototype.
2243 * c-opts.c (c_common_handle_option): Take location_t parameter and
2244 pass it to other functions.
2246 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2248 * c-opts.c (warning_as_error_callback): Remove.
2249 (c_common_initialize_diagnostics): Don't call
2250 register_warning_as_error_callback.
2251 (c_common_handle_option): Handle -Werror=normalized= here.
2253 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2255 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2257 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2259 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2260 Remove trailing '.' from diagnostics.
2261 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2263 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2265 * c-common.c (parse_optimize_options): Pass global_dc to
2267 * c-opts.c (c_common_handle_option): Pass &global_options to
2268 set_Wstrict_aliasing.
2269 * c.opt (v): Don't mark Common or document here.
2271 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2274 * c-format.c (format_type): New type gcc_objc_string_format_type.
2275 (valid_stringptr_type_p): New.
2276 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2277 (check_format_string): Pass expected type, use
2278 valid_stringptr_type_p (), check that the format string types are
2279 consistent with the format specification.
2280 (decode_format_attr): Warn if NSString is used outside objective-c.
2281 (format_types_orig): Add NSString.
2283 (format_flags): New.
2284 (check_format_arg): Handle format strings requiring an external parser.
2285 first_target_format_type: New variable.
2286 (handle_format_attribute): Set up first_target_format_type, pass the
2287 expected format arg string type to check_format_string().
2288 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2289 * stub-objc.c (objc_string_ref_type_p): New.
2290 (objc_check_format_arg): New.
2292 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2294 Fixed using the Objective-C 2.0 dot-syntax with class names.
2295 * c-common.h (objc_build_class_component_ref): New.
2296 * stub-objc.c (objc_build_class_component_ref): New.
2298 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2300 * c.opt (Wproperty-assign-default): New option.
2302 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2304 Implemented -fobjc-std=objc1 flag.
2305 * c.opt (fobjc-std=objc1): New option.
2307 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2309 Implemented format and noreturn attributes for Objective-C methods.
2310 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2311 attribute for Objective-C methods.
2313 2010-10-31 Jason Merrill <jason@redhat.com>
2315 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2318 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2320 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2321 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2322 (objc_add_property_declaration): Removed arguments for copies and
2324 (objc_build_getter_call): Renamed to
2325 objc_maybe_build_component_ref.
2326 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2327 (objc_is_property_ref): New.
2328 * c-common.c (c_common_reswords): Removed copies and ivar.
2329 * stub-objc.c (objc_add_property_declaration): Removed arguments
2330 for copies and ivar.
2331 (objc_build_getter_call): Renamed to
2332 objc_maybe_build_component_ref.
2333 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2334 (objc_is_property_ref): New.
2336 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2337 Matthew Gingell <gingell@adacore.com>
2339 * c-ada-spec.c (separate_class_package): New function.
2340 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2341 name of their enclosing package.
2342 (print_ada_declaration): Use separate_class_package.
2344 2010-10-27 Jason Merrill <jason@redhat.com>
2346 * c-common.c (c_common_reswords): Add __is_literal_type.
2347 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2349 * c-common.c (check_case_value): Remove special C++ code.
2351 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2353 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2354 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2356 (objc_add_property_declaration): Added additional arguments.
2357 (objc_property_attribute_kind): Removed.
2358 (objc_set_property_attr): Removed.
2359 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2361 * stub-objc.c (objc_add_property_declaration): Added additional
2363 (objc_set_property_attr): Removed.
2365 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2367 * c-common.h (objc_add_property_variable): Renamed to
2368 objc_add_property_declaration. Added location argument.
2369 * stub-objc.c (objc_add_property_variable): Same change.
2371 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2373 * c-common.h (objc_maybe_printable_name): New.
2374 * stub-objc.c (objc_maybe_printable_name): New.
2376 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2377 Andrew Pinski <pinskia@gmail.com>
2379 * c-common.h (c_common_mark_addressable_vec): Declare.
2380 * c-common.c (c_common_mark_addressable_vec): New function.
2382 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2384 * c-common.h (objc_set_method_type): Removed.
2385 (objc_add_method_declaration): Added boolean argument.
2386 (objc_start_method_definition): Same change.
2387 (objc_build_method_signature): Same change.
2388 * stub-objc.c (objc_set_method_type): Removed.
2389 (objc_add_method_declaration): Added boolean argument.
2390 (objc_start_method_definition): Same change.
2391 (objc_build_method_signature): Same change.
2393 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2395 * c-common.h (finish_file): Removed.
2396 (objc_write_global_declarations): New.
2397 * c-opts.c (c_common_parse_file): Do not call finish_file.
2398 * stub-objc.c (objc_write_global_declarations): New.
2400 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2402 Implemented parsing @synthesize and @dynamic for
2403 Objective-C/Objective-C++.
2404 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2405 (objc_add_synthesize_declaration): New.
2406 (objc_add_dynamic_declaration): New.
2407 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2408 * stub-objc.c (objc_add_synthesize_declaration): New.
2409 (objc_add_dynamic_declaration): New.
2411 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2414 * c-cppbuiltin.c (mode_has_fma): Move function here from
2415 builtins.c. Don't use the fma optab, instead just use the
2416 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2419 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2421 Merge from 'apple/trunk' branch on FSF servers.
2423 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2426 * c-common.h (objc_non_volatilized_type): New declaration
2427 * stub-objc.c (objc_non_volatilized_type): New stub.
2429 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2431 Merge from 'apple/trunk' branch on FSF servers.
2433 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2436 * c-common.h (objc_diagnose_private_ivar): New decl.
2437 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2439 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2441 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2442 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2443 (objc_ivar_visibility_kind): New enum.
2444 (objc_set_visibility): Adjust prototype to use visibility enum.
2445 * stub-objc.c (objc_set_visibility): Adjust stub to use
2448 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2450 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2451 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2452 has the appropriate fma builtins.
2453 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2455 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2457 merge from FSF apple 'trunk' branch.
2458 2006 Fariborz Jahanian <fjahanian@apple.com>
2460 Radars 4436866, 4505126, 4506903, 4517826
2461 * c-common.c (c_common_resword): Define @property and its attributes.
2462 * c-common.h: Define property attribute enum entries.
2463 (OBJC_IS_PATTR_KEYWORD): New.
2464 (objc_property_attribute_kind): New enum.
2465 Declare objc_set_property_attr (), objc_add_property_variable (),
2466 objc_build_getter_call () and objc_build_setter_call ().
2467 * stub-objc.c (objc_set_property_attr): New stub.
2468 (objc_add_property_variable): Likewise.
2469 (objc_build_getter_call): Likewise.
2470 (objc_build_setter_call) Likewise.
2472 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2474 merge from FSF apple 'trunk' branch.
2475 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2477 Radar 3803157 (method attributes)
2478 * c-common.c (handle_deprecated_attribute): Recognize
2479 objc methods as valid declarations.
2480 * c-common.h: Declare objc_method_decl ().
2481 * stub-objc.c (objc_method_decl): New stub.
2483 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2485 * c-common.c (parse_optimize_options): Call
2486 decode_cmdline_options_to_array_default_mask before
2487 decode_options. Update arguments to decode_options.
2488 * c-common.h (c_common_init_options_struct): Declare.
2489 * c-opts.c (c_common_init_options_struct): New. Split out from
2490 c_common_init_options.
2492 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2494 Implemented fast enumeration for Objective-C.
2495 * c-common.h (objc_finish_foreach_loop): New.
2496 * stub-objc.c (objc_finish_foreach_loop): New.
2498 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2500 * c-common.h (struct diagnostic_context): Don't declare here.
2501 (c_common_initialize_diagnostics): Declare using
2502 diagnostic_context typedef.
2503 * c-opts.c (c_common_handle_option): Pass global_dc to
2504 handle_generated_option.
2506 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2508 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2509 handle_generated_option.
2511 2010-10-03 Ian Lance Taylor <iant@google.com>
2513 * c.opt (-fplan9-extensions): New option.
2515 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2517 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2519 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2520 of duplicating code.
2522 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2524 * c-common.c: Add two new entries for @optional
2525 and @required keywords.
2527 merge from FSF 'apple/trunk' branch.
2528 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2531 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2532 objective-c keywords.
2533 (objc_set_method_opt): New declaration.
2534 * stub-objc.c (objc_set_method_opt): New stub.
2536 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2538 * c-common.c (handle_optimize_attribute): Pass &global_options to
2539 cl_optimization_save and cl_optimization_restore.
2540 * c-opts.c (c_common_handle_option): Pass &global_options to
2541 handle_generated_option.
2542 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2543 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2544 &global_options to cl_optimization_restore.
2546 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2548 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2549 Objective-C/Objective-C++ keywords.
2551 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2553 Merge from 'apple/trunk' branch on FSF servers.
2555 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2558 * c-common.h (objc_check_global_decl): New declaration.
2559 * stub-objc.c (objc_check_global_decl): New stub.
2561 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2563 * c.opt: Don't use VarExists.
2565 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2567 * c-common.c (c_cpp_error): Update names of diagnostic_context
2569 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2570 cl_optimization members.
2571 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2572 sanitize_cpp_opts, finish_options): Update names of cpp_options
2575 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2577 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2578 (objc_is_reserved_word): Removed.
2579 * c-common.c: Updated comments.
2580 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2581 objc_is_reserved_word.
2582 * stub-objc.c (objc_is_reserved_word): Removed.
2584 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2586 * c-common.h (objc_add_method_declaration): Adjust prototype to
2588 (objc_start_method_definition): Likewise.
2589 (objc_build_keyword_decl): Likewise.
2590 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2591 (objc_start_method_definition): Likewise.
2592 (objc_build_keyword_decl): Likewise.
2594 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2596 * c-common.h (objc_start_class_interface): Adjust prototype.
2597 (objc_start_category_interface): Likewise.
2598 (objc_start_protocol): Likewise.
2599 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2600 (objc_start_class_interface): Likewise.
2601 (objc_start_category_interface): Likewise.
2603 2010-09-27 Ian Lance Taylor <iant@google.com>
2605 * c-common.c (c_common_attribute_table): Add no_split_stack.
2606 (handle_no_split_stack_attribute): New static function.
2608 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2610 Merge from 'apple/trunk' branch on FSF servers.
2612 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2615 * c-common.h (objc_have_common_type): New declaration.
2616 * stub-objc.c (objc_have_common_type): New stub.
2618 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2621 * c-common.h (objc_common_type): New prototype.
2622 * stub-objc.c (objc_common_type): New stub.
2624 2010-09-24 Jan Hubicka <jh@suse.cz>
2626 * c-common.c (handle_leaf_attribute): New function.
2627 (struct attribute_spec c_common_att): Add leaf.
2629 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2631 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2632 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2633 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2634 -include-barrier, -include-directory, -include-directory=,
2635 -include-directory-after, -include-directory-after=,
2636 -include-prefix, -include-prefix=, -include-with-prefix,
2637 -include-with-prefix=, -include-with-prefix-after,
2638 -include-with-prefix-after=, -include-with-prefix-before,
2639 -include-with-prefix-before=, -no-integrated-cpp,
2640 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2641 -output=, -pedantic, -pedantic-errors, -preprocess,
2642 -print-missing-file-dependencies, -trace-includes, -traditional,
2643 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2644 -user-dependencies, -verbose, -write-dependencies,
2645 -write-user-dependencies, no-integrated-cpp, traditional): New.
2647 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2650 * c-common.h (objc_start_method_definition): Return bool instead
2652 * stub-objc.c (objc_start_method_definition): Return bool instead
2655 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2658 * c-common.h (objc_get_interface_ivars): New declaration.
2659 * stub-objc.c (objc_get_interface_ivars): New stub.
2661 2010-09-15 Ian Lance Taylor <iant@google.com>
2663 * c-common.c (parse_optimize_options): Do not capitalize warning
2664 messages. Remove period at end of warning message.
2666 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2668 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2669 (handle_alias_attribute): ... here.
2670 (handle_ifunc_attribute): New.
2672 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2674 * c-common.h (do_warn_double_promotion): Declare.
2675 * c-common.c (do_warn_double_promotion): Define.
2677 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2679 * c.opt (Wdouble-promotion): New.
2681 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2683 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2684 fvtable-thunks, fxref): Mark no longer supported in help text.
2686 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2688 * c.opt (Wimport, fall-virtual, falt-external-templates,
2689 fdefault-inline, fenum-int-equiv, fexternal-templates,
2690 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2691 fname-mangling-version-, fnew-abi, fnonnull-objects,
2692 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2693 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2695 (fhandle-exceptions): Mark with Alias and Warn.
2696 * c-opts.c (c_common_handle_option): Don't handle options marked
2699 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2701 * c.opt (Wcomments, Werror-implicit-function-declaration,
2702 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2703 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2705 * c-common.c (option_codes): Use OPT_Wcomment instead of
2707 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2708 Don't handle options marked as aliases.
2710 2010-08-25 Richard Guenther <rguenther@suse.de>
2712 * c-common.c (c_common_get_alias_set): Remove special
2713 handling for pointers.
2715 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2717 * c-common.c: Use FOR_EACH_VEC_ELT.
2718 * c-gimplify.c: Likewise.
2719 * c-pragma.c: Likewise.
2721 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2723 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2725 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2727 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2728 instead of OPT_MDX and OPT_MMDX.
2730 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2732 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2734 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2736 * c.opt (MD, MMD): Change to MDX and MMDX.
2737 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2739 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2741 * c-opts.c (c_common_handle_option): Call handle_generated_option
2742 instead of handle_option.
2744 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2746 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2747 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2749 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2751 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2752 (pending_redefine_extname): Change type to a VEC.
2753 (add_to_renaming_pragma_list): Update for new type of
2754 pending_redefine_extname.
2755 (maybe_apply_renaming_pragma): Likewise.
2757 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2759 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2761 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2762 decide whether a type has already been declared/seen.
2763 Do not go to the original type.
2764 (dump_nested_types): New parameter forward.
2765 Generate forward declaration if needed and mark type as visited.
2766 (print_ada_declaration): Call dump_nested_types if not already done.
2767 Mark types as visited.
2769 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2771 * c.opt (-print-pch-checksum): Remove option.
2772 * c-opts.c (c_common_handle_option): Don't handle
2773 OPT_print_pch_checksum.
2775 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2777 * c-common.h (c_common_handle_option): Update prototype and return
2779 * c-opts.c (c_common_handle_option): Update prototype and return
2780 value type. Update calls to handle_option and
2781 enable_warning_as_error.
2783 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2786 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2788 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2790 * c-common.h (c_common_missing_argument): Remove.
2791 * c-opts.c (c_common_missing_argument): Remove.
2792 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2793 idirafter, imacros, include, isysroot, isystem, iquote): Add
2795 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2797 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2799 * c-common.h (c_common_option_lang_mask,
2800 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2802 (c_common_init_options): Update prototype.
2803 * c-opts.c (c_common_option_lang_mask): New.
2804 (c_common_initialize_diagnostics): Split out of
2805 c_common_init_options.
2806 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2808 (c_common_init_options): Update prototype. Use decoded options in
2809 search for -lang-asm.
2811 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2813 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2814 * c-format.c: Likewise.
2816 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2818 * c-common.h: Include diagnostic-core.h. Error if already
2820 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2822 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2824 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2825 Do not include expr.h
2826 (vector_mode_valid_p): Move here.
2828 2010-06-21 DJ Delorie <dj@redhat.com>
2830 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2831 allow these pragmas anywhere.
2833 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2836 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2837 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2838 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2839 ggc_strdup instead of xstrdup.
2841 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2843 * c-cppbuiltin.c: Include cpp-id-data.h.
2844 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2845 (lazy_hex_fp_value): New function.
2846 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2848 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2850 * c-gimplify.c: Do not include tree-flow.h
2852 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2855 * c-common.c: Rename targetm member:
2856 targetm.enum_va_list -> targetm.enum_va_list_p
2858 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2860 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2862 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2864 * c-cppbuiltin.c: Do not include except.h.
2866 2010-06-24 Andi Kleen <ak@linux.intel.com>
2868 * c-common.c (warn_for_omitted_condop): New.
2869 * c-common.h (warn_for_omitted_condop): Add prototype.
2871 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2873 * c.opt (lang-objc): Remove.
2874 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2876 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2878 * c-opts.c: Include "tm_p.h".
2880 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2882 * c-common.c (parse_optimize_options): Update call to
2885 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2887 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2888 new type of types_used_by_cur_var_decl.
2890 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2893 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2894 for C++ standard compliance.
2896 2010-06-16 Jason Merrill <jason@redhat.com>
2898 * c.opt: Add -Wnoexcept.
2900 2010-06-16 Richard Guenther <rguenther@suse.de>
2903 * c-common.c (c_common_truthvalue_conversion): Remove
2904 premature and wrong optimization concering ADDR_EXPRs.
2906 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2908 * c-ada-spec.c (dump_sloc): Remove column info.
2909 (is_simple_enum): New function.
2910 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2911 enum types when relevant.
2913 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2915 * c-common.c (conversion_warning): Warn at expression
2918 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2920 * c-opts.c (c_common_handle_option): Don't handle
2923 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2925 * c-pragma.c (push_alignment): Use typed GC allocation.
2926 (handle_pragma_push_options): Likewise.
2928 * c-common.c (parse_optimize_options): Likewise.
2930 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2933 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2935 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2936 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2937 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2938 flag_signed_bitfields, warn_strict_null_sentinel,
2939 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2940 flag_gen_declaration, flag_no_gnu_keywords,
2941 flag_implement_inlines, flag_implicit_templates,
2942 flag_implicit_inline_templates, flag_optional_diags,
2943 flag_elide_constructors, flag_default_inline, flag_rtti,
2944 flag_conserve_space, flag_access_control, flag_check_new,
2945 flag_new_for_scope, flag_weak, flag_working_directory,
2946 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2947 flag_enforce_eh_specs, flag_threadsafe_statics,
2948 flag_pretty_templates): Remove.
2949 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2950 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2951 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2952 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2953 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2954 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2955 flag_no_gnu_keywords, flag_implement_inlines,
2956 flag_implicit_templates, flag_implicit_inline_templates,
2957 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2958 flag_rtti, flag_conserve_space, flag_access_control,
2959 flag_check_new, flag_new_for_scope, flag_weak,
2960 flag_working_directory, flag_use_cxa_atexit,
2961 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2962 flag_threadsafe_statics, flag_pretty_templates,
2963 warn_strict_null_sentinel): Remove.
2964 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2965 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2966 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2967 fimplicit-inline-templates, fimplicit-templates,
2968 flax-vector-conversions, fms-extensions, fnil-receivers,
2969 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2970 frtti, fshort-double, fshort-enums, fshort-wchar,
2971 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2972 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2973 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2974 gen-decls, undef): Use Var.
2975 (fdefault-inline, foptional-diags): Document as doing nothing.
2976 * c-opts.c (c_common_handle_option): Remove cases for options now
2977 using Var. Mark ignored options as such.
2979 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2981 * c-common.c: Moved to here from parent directory.
2982 * c-common.def: Likewise.
2983 * c-common.h: Likewise.
2984 * c-cppbuiltin.c: Likewise.
2985 * c-dump.c: Likewise.
2986 * c-format.c: Likewise.
2987 * c-format.h : Likewise.
2988 * c-gimplify.c: Likewise.
2989 * c-lex.c: Likewise.
2990 * c-omp.c: Likewise.
2992 * c-opts.c: Likewise.
2993 * c-pch.c: Likewise.
2994 * c-ppoutput.c: Likewise.
2995 * c-pragma.c: Likewise.
2996 * c-pragma.h: Likewise.
2997 * c-pretty-print.c: Likewise.
2998 * c-pretty-print.h: Likewise.
2999 * c-semantics.c: Likewise.
3000 * stub-objc.c: Likewise.
3002 * c-common.c: Include gt-c-family-c-common.h.
3003 * c-pragma.c: Include gt-c-family-c-pragma.h.
3005 Copyright (C) 2010-2013 Free Software Foundation, Inc.
3007 Copying and distribution of this file, with or without modification,
3008 are permitted in any medium without royalty provided the copyright
3009 notice and this notice are preserved.