1 2013-11-05 Joseph Myers <joseph@codesourcery.com>
3 * c-cppbuiltin.c (cpp_iec_559_value): Test
4 flag_excess_precision_cmdline not flag_excess_precision.
6 2013-11-05 Tobias Burnus <burnus@net-b.de>
8 * c.opt (fopenmp-simd): New option.
9 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
10 (omp_pragmas): ... this new struct.
11 (c_pp_lookup_pragma): Also walk omp_pragmas.
12 (init_pragma): Init pragmas for -fopenmp-simd.
14 2013-11-04 Marek Polacek <polacek@redhat.com>
17 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
19 2013-11-04 Joseph Myers <joseph@codesourcery.com>
21 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
23 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
25 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
27 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
28 (dump_ada_specs): Adjust prototype of second callback.
29 * c-ada-spec.c (cpp_check): New global variable.
30 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
31 (print_generic_ada_decl): Likewise.
32 (has_static_fields): Change return type to bool and add guard.
33 (has_nontrivial_methods): New predicate.
34 (is_tagged_type): Change return type to bool.
35 (separate_class_package): Call has_nontrivial_methods.
36 (pp_ada_tree_identifier): Minor tweaks.
37 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
38 (dump_ada_array_domains): Likewise.
39 (dump_ada_array_type): Likewise.
40 (dump_template_types): Remove cpp_check parameter and do not pass it to
41 dump_generic_ada_node.
42 (dump_ada_template): Likewise.
43 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
45 (print_ada_methods): Change return type to integer. Remove cpp_check
46 parameter and do not pass it down.
47 (dump_nested_types): Remove cpp_check parameter and do not pass it to
48 dump_generic_ada_node.
49 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
51 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
52 down. Use has_nontrivial_methods to recognize C++ classes. Use return
53 value of print_ada_methods.
54 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
55 Set cpp_check to it before invoking dump_ada_nodes.
56 (dump_ada_specs): Likewise.
58 2013-11-03 Marek Polacek <polacek@redhat.com>
60 * c-ubsan.c: Don't include hash-table.h.
61 (ubsan_instrument_vla): New function.
62 * c-ubsan.h: Declare it.
64 2013-10-31 David Malcolm <dmalcolm@redhat.com>
66 Automated part of renaming of symtab_node_base to symtab_node.
68 Patch autogenerated by rename_symtab.py from
69 https://github.com/davidmalcolm/gcc-refactoring-scripts
70 revision 58bb219cc090b2f4516a9297d868c245495ee622
72 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
73 symtab_node_base to symtab_node.
75 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
77 Implement C++14 digit separators.
78 * c-lex.c (interpret_float): Remove digit separators from scratch string
79 before building real literal.
81 2013-10-30 Jakub Jelinek <jakub@redhat.com>
83 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
85 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
87 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
89 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
91 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
92 (insert_cilk_frame): New prototype.
93 (cilk_init_builtins): Likewise.
94 (gimplify_cilk_spawn): Likewise.
95 (c_cilk_install_body_w_frame_cleanup): Likewise.
96 (cilk_detect_spawn_and_unwrap): Likewise.
97 (cilk_set_spawn_marker): Likewise.
98 (build_cilk_sync): Likewise.
99 (build_cilk_spawn): Likewise.
102 2013-10-29 David Malcolm <dmalcolm@redhat.com>
104 Patch autogenerated by refactor_symtab.py from
105 https://github.com/davidmalcolm/gcc-refactoring-scripts
106 revision 58bb219cc090b2f4516a9297d868c245495ee622
108 * c-gimplify.c (c_genericize): Update for conversion of symtab types
109 to a true class hierarchy.
110 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
112 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
114 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
116 2013-10-26 Jeff Law <law@redhat.com>
118 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
119 * c-family/c.opt: Ignore and warn for mudflap options.
121 2013-10-24 Tobias Burnus <burnus@net-b.de>
124 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
125 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
127 2013-10-23 Jason Merrill <jason@redhat.com>
129 * c-format.c (gcc_cxxdiag_char_table): Add %X.
131 2013-10-11 Jakub Jelinek <jakub@redhat.com>
133 * c-common.h (omp_clause_mask::operator !=): New method.
134 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
135 instead of if (mask & something) tests everywhere.
137 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
138 201307 instead of 201107.
139 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
140 (c_common_attribute_table): Add "omp declare target" and
141 "omp declare simd" attributes.
142 (handle_omp_declare_target_attribute,
143 handle_omp_declare_simd_attribute): New functions.
144 * c-omp.c: Include c-pragma.h.
145 (c_finish_omp_taskgroup): New function.
146 (c_finish_omp_atomic): Add swapped argument, if true,
147 build the operation first with rhs, lhs arguments and use NOP_EXPR
149 (c_finish_omp_for): Add code argument, pass it down to make_code.
150 (c_omp_split_clauses): New function.
151 (c_split_parallel_clauses): Removed.
152 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
153 c_omp_declare_simd_clauses_to_decls): New functions.
154 * c-common.h (omp_clause_mask): New type.
155 (OMP_CLAUSE_MASK_1): Define.
156 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
157 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
158 omp_clause_mask::operator |, omp_clause_mask::operator &,
159 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
160 omp_clause_mask::operator ==): New methods.
161 (enum c_omp_clause_split): New.
162 (c_finish_omp_taskgroup): New prototype.
163 (c_finish_omp_atomic): Add swapped argument.
164 (c_finish_omp_for): Add code argument.
165 (c_omp_split_clauses): New prototype.
166 (c_split_parallel_clauses): Removed.
167 (c_omp_declare_simd_clauses_to_numbers,
168 c_omp_declare_simd_clauses_to_decls): New prototypes.
169 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
170 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
171 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
172 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
173 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
174 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
175 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
176 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
177 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
178 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
179 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
180 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
181 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
182 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
183 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
184 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
185 PRAGMA_OMP_CLAUSE_UNIFORM.
187 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
189 PR tree-optimization/20318
190 * c-common.c (handle_returns_nonnull_attribute): New function.
191 (c_common_attribute_table): Add returns_nonnull.
193 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
196 * c.opt (fcheck-new): Move to common.opt.
198 2013-09-25 Marek Polacek <polacek@redhat.com>
199 Jakub Jelinek <jakub@redhat.com>
202 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
203 an expression if we can prove it is correct.
204 (ubsan_instrument_division): Likewise. Remove unnecessary
207 2013-09-18 Marek Polacek <polacek@redhat.com>
210 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
212 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
214 2013-09-14 Iain Sandoe <iain@codesourcery.com>
217 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
218 fobjc-gc, freplace-objc-classes): Accept for LTO.
220 2013-09-13 Jacek Caban <jacek@codeweavers.com>
222 * c-target.def: New hook
224 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
227 * c.opt (Wdelete-incomplete): Add.
229 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
231 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
232 (vector_types_compatible_elements_p): New function.
233 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
235 (vector_types_compatible_elements_p): Declare.
237 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
239 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
240 a virtual member function.
241 (pp_simple_type_specifier): Remove.
242 (pp_c_type_specifier): Likewise.
243 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
244 Rename from pp_c_type_specifier. Adjust.
245 (c_pretty_printer::c_pretty_printer): Do not assign to
246 simple_type_specifier.
248 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
250 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
252 (c_pretty_printer::storage_class_specifier): Likewise.
253 (c_pretty_printer::initializer): Likewise.
254 (pp_declaration): Remove.
255 (pp_declaration_specifiers): Likewise.
256 (pp_abstract_declarator): Likewise.
257 (pp_declarator): Likewise.
258 (pp_type_id): Likewise.
259 (pp_statement): Likewise.
260 (pp_constant): Likewise.
261 (pp_id_expression): Likewise.
262 (pp_primary_expression): Likewise.
263 (pp_unary_expression): Likewise.
264 (pp_multiplicative_expression): Likewise.
265 (pp_conditional_expression): Likewise.
266 (pp_assignment_expression): Likewise.
267 (pp_expression): Likewise.
268 (pp_c_type_id): Likewise.
269 (pp_c_storage_class_specifier): Likewise.
270 * c-pretty-print.c (pp_c_type_cast): Tidy.
271 (pp_c_pointer): Likewise.
272 (pp_c_type_specifier): Likewise.
273 (pp_c_parameter_type_list): Likewise.
274 (pp_c_function_definition): Likewise.
275 (pp_c_init_declarator): Likewise.
276 (pp_c_initializer_list): Likewise.
277 (pp_c_constructor_elts): Likewise.
278 (c_pretty_printer::direct_abstract_declarator): Likewise.
279 (c_pretty_printer::declaration_specifiers): Likewise.
280 (c_pretty_printer::primary_expression): Likewise.
281 (c_pretty_printer::postfix_expression): Likewise.
282 (c_pretty_printer::type_id): Rename from pp_c_type_id.
283 (c_pretty_printer::storage_class_specifier): Rename from
284 pp_c_storage_class_specifier.
285 (c_pretty_printer::initializer): Rename from pp_c_initializer.
286 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
287 storage_class_specifier, initializer, offset_list, flags.
289 2013-08-30 Marek Polacek <polacek@redhat.com>
291 * c-ubsan.c: New file.
292 * c-ubsan.h: New file.
294 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
296 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
298 (c_pretty_printer::declaration_specifiers): Likewise.
299 (c_pretty_printer::declarator): Likewise.
300 (c_pretty_printer::abstract_declarator): Likewise.
301 (c_pretty_printer::direct_abstract_declarator): Likewise.
302 (c_pretty_printer::direct_declarator): Likewise.
303 (c_pretty_printer::function_specifier): Likewise.
304 (pp_declaration): Adjust.
305 (pp_declaration_specifiers): Likewise.
306 (pp_abstract_declarator): Likewise.
307 (pp_direct_declarator): Likewise.
308 (pp_function_specifier): Likewise.
309 (pp_direct_abstract_declarator): Remove as unused.
310 (pp_c_declaration): Remove.
311 (pp_c_declaration_specifiers): Likewise.
312 (pp_c_declarator): Likewise.
313 (pp_c_direct_declarator): Likewise.
314 (pp_c_function_specifier): Likewise.
315 (pp_c_direct_abstract_declarator): Likewise.
316 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
317 from pp_c_abstract_declarator. Adjust.
318 (c_pretty_printer::direct_abstract_declarator): Rename from
319 pp_c_direct_abstract_declarator. Adjust.
320 (c_pretty_printer::function_specifier): Rename from
321 pp_c_function_specifier. Adjust.
322 (c_pretty_printer::declaration_specifiers): Rename from
323 pp_c_declaration_specifiers. Adjust.
324 (c_pretty_printer::direct_declarator): Rename from
325 pp_c_direct_declarator. Adjust.
326 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
327 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
328 (c_pretty_printer::c_pretty_printer): Do not assign to
329 declaration, declaration_specifiers, declarator,
330 direct_declarator, direct_abstract_declarator, function_specifier.
332 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
334 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
335 virtual member function.
336 (c_pretty_printer::multiplicative_expression): Likewise.
337 (c_pretty_printer::conditional_expression): Likewise.
338 (c_pretty_printer::assignment_expression): Likewise.
339 (c_pretty_printer::expression): Likewise.
340 (pp_unary_expression): Adjust.
341 (pp_multiplicative_expression): Likewise.
342 (pp_assignment_expression): Likewise.
343 (pp_conditional_expression): Likewise.
344 (pp_expression): Likewise.
345 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
346 from pp_c_unary_expression. Adjust.
347 (c_pretty_printer::multiplicative_expression): Rename from
348 pp_c_multiplicative_expression. Adjust.
349 (c_pretty_printer::conditional_expression): Rename from
350 pp_c_conditional_expression. Adjust.
351 (c_pretty_printer::assignment_expression): Rename from
352 pp_c_assignment_expression. Adjust.
353 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
354 (c_pretty_printer::c_pretty_printer): Do not assign to
355 unary_expression, multiplicative_expression,
356 conditional_expression, expression.
358 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
360 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
361 virtual member function.
362 (pp_postfix_expression): Adjust.
363 (pp_c_postfix_expression): Remove.
364 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
365 from pp_c_postfix_expression. Adjust.
366 (c_pretty_printer::c_pretty_printer): Do not assign to
369 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
371 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
372 virtua member function.
373 (pp_primary_expression): Adjust.
374 (pp_c_primary_expression): Remove.
375 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
376 from pp_c_primary_expression. Adjust.
377 (pp_c_initializer_list): Use pp_primary_expression.
378 (c_pretty_printer::c_pretty_printer): Do not assign to
381 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
383 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
384 * c-pretty-print.c (M_): Remove.
385 (c_pretty_printer::translate_string): Define.
386 (pp_c_type_specifier): Use it.
387 (pp_c_primary_expression): Likewise.
388 (pp_c_expression): Likewise.
390 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
392 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
394 (pp_c_id_expression): Remove.
395 (pp_id_expression): Adjust.
396 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
397 pp_c_id_expression. Adjust.
398 (pp_c_postfix_expression): Use pp_id_expression.
399 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
401 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
403 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
405 (pp_constant): Adjust.
406 (pp_c_constant): Remove.
407 * c-pretty-print.c (c_pretty_printer::constant): Rename from
408 pp_c_constant. Adjust.
410 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
411 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
413 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
415 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
416 (c_pretty_printer::c_pretty_printer): Declare.
417 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
418 c_pretty_printer_init. Adjust.
419 (print_c_tree): Do not call c_pretty_printer_init.
420 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
422 2013-08-09 Arnaud Charlet <charlet@adacore.com>
424 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
426 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
429 * c-common.c (pointer_int_sum): Add bool parameter.
430 * c-common.h (pointer_int_sum): Adjust declaration.
432 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
434 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
435 c_pretty_printer variable.
437 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
439 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
441 (pp_c_base): Likewise. Adjust users.
442 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
443 (pp_c_whitespace): Do not call pp_base.
444 (pp_c_left_paren): Likewise.
445 (pp_c_right_paren): Likewise.
446 (pp_c_left_brace): Likewise.
447 (pp_c_right_brace): Likewise.
448 (pp_c_left_bracket): Likewise.
449 (pp_c_right_bracket): Likewise.
450 (pp_c_dot): Likewise.
451 (pp_c_ampersand): Likewise.
452 (pp_c_star): Likewise.
453 (pp_c_arrow): Likewise.
454 (pp_c_semicolon): Likewise.
455 (pp_c_complement): Likewise.
456 (pp_c_exclamation): Likewise.
457 (pp_c_direct_declarator): Likewise.
458 (pp_c_ws_string): Likewise.
459 (pp_c_identifier): Likewise.
460 (pp_c_statement): Likewise.
461 (print_c_tree): Likewise.
463 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
466 * c-common.c (c_parse_error): Catch user-defined literal tokens and
467 provide useful error strings.
469 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
471 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
472 printer functions instead of pp_string or operators and punctuators.
473 (dump_generic_ada_node): Likewise.
474 * c-pretty-print.c (pp_c_type_specifier): Likewise.
475 (pp_c_relational_expression): Likewise.
476 (pp_c_logical_or_expression): Likewise.
478 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
480 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
481 functions instead of pp_character.
482 (pp_ada_tree_identifier): Likewise.
483 (dump_ada_double_name): Likewise.
484 (dump_ada_function_declaration): Likewise.
485 (dump_ada_array_domains): Likewise.
486 (dump_template_types): Likewise.
487 (dump_generic_ada_node): Likewise.
488 (print_ada_declaration): Likewise.
489 (print_ada_struct_decl): Likewise.
490 * c-pretty-print.c (pp_c_integer_constant): Likewise.
492 2013-07-23 Tom Tromey <tromey@redhat.com>
494 * c-common.h (enum rid) <RID_GENERIC>: New constant.
495 * c-common.c (c_common_reswords): Add _Generic.
497 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
499 * c-common.c: Fix typos.
500 * c-common.h: Likewise.
502 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
505 * c-common.c (c_common_attribute_table): Add warn_unused.
506 (handle_warn_unused_attribute): New.
508 2013-07-10 Jakub Jelinek <jakub@redhat.com>
510 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
511 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
513 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
516 * c.opt: Add Wconditionally-supported.
518 2013-07-08 Graham Stott <graham.stott@btinternet.com>
520 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
521 unused variables l_length and l_node.
523 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
526 * c-common.c (complete_array_type): Delay folding first index
527 like other indices. When folding, check for index overflow.
529 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
532 * c-common.h (c_build_vec_perm_expr): New complain argument.
533 * c-common.c (c_build_vec_perm_expr): Likewise.
534 Use save_expr also in C++.
536 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
538 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
539 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
540 * c-opts.c (c_common_post_options): Likewise.
542 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
544 * array-notation-common.c (length_mismatch_in_expr): Changed the
545 parameter type's from a dynamic array to a vec_tree. Also removed
547 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
550 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
552 * c-common.h (struct cilkplus_an_parts): New structure.
553 (struct cilkplus_an_loop_parts): Likewise.
554 (cilkplus_extract_an_triplets): New prototype.
555 (fix_sec_implicit_args): Likewise.
556 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
557 (fix_sec_implicit_args): Likewise.
559 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
561 * array-notation-common.c (find_inv_trees): Removed an unwanted
563 * c-common.h (struct inv_list::additional_tcodes): Changed type from
564 enum rid to enum tree_code.
566 2013-06-11 Jan Hubicka <jh@suse.cz>
568 * c-common.c (handle_alias_ifunc_attribute): Do not set
569 DECL_EXTERNAL for weakref variables.
570 * c-pragma.c (handle_pragma_weak): Make sure aliases
571 are not declared as external.
573 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
575 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
576 function from c/c-array-notation.c.
577 (is_cilkplus_reduce_builtin): Likewise.
578 (find_rank): Likewise.
579 (extract_array_notation_exprs): Likewise.
580 (replace_array_notations): Likewise.
581 (find_inv_trees): Likewise.
582 (replace_inv_trees): Likewise.
583 (contains_array_notation_expr): Likewise.
584 (find_correct_array_notation_type): Likewise.
585 * c-common.h (struct inv_list): Moved this struct from the file
586 c/c-array-notation.c and added a new field called additional tcodes.
587 (length_mismatch_in_expr_p): New prototype.
588 (is_cilkplus_reduce_builtin): Likewise.
589 (find_rank): Likewise.
590 (extract_array_notation_exprs): Likewise.
591 (replace_array_notation): Likewise.
592 (find_inv_trees): Likewise.
593 (replace_inv_trees): Likewise.
594 (find_correct_array_notation_type): Likewise.
596 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
598 * c-common.c (c_define_builtins): When cilkplus is enabled, the
599 function array_notation_init_builtins is called.
600 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
601 * c-common.def (ARRAY_NOTATION_REF): New tree.
602 * c-common.h (build_array_notation_expr): New function declaration.
603 (build_array_notation_ref): Likewise.
604 (extract_sec_implicit_index_arg): New extern declaration.
605 (is_sec_implicit_index_fn): Likewise.
606 (ARRAY_NOTATION_CHECK): New define.
607 (ARRAY_NOTATION_ARRAY): Likewise.
608 (ARRAY_NOTATION_START): Likewise.
609 (ARRAY_NOTATION_LENGTH): Likewise.
610 (ARRAY_NOTATION_STRIDE): Likewise.
611 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
613 (pp_c_expression): Likewise.
614 * c.opt (flag_enable_cilkplus): New flag.
615 * array-notation-common.c: New file.
617 2013-05-14 Jakub Jelinek <jakub@redhat.com>
620 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
622 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
624 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
627 2013-05-07 Han Shen <shenhan@google.com>
629 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
631 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
633 * c-common.c (check_user_alignment): Emit error for negative values.
635 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
637 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
639 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
641 * c-cppbuiltin.c (c_cpp_builtins): Do not define
642 __GXX_EXPERIMENTAL_CXX1Y__.
644 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
645 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
647 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
648 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
649 to simply use OPT_Wpointer_arith.
650 (c_sizeof_or_alignof_type): Likewise.
652 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
654 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
656 2013-04-12 Jakub Jelinek <jakub@redhat.com>
658 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
659 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
662 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
664 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
666 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
668 * c-common.c (pointer_int_sum): Remove dead code.
670 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
673 * c-common.c (handle_optimize_attribute): Don't call
674 save_optabs_if_changed.
676 2013-03-05 Jakub Jelinek <jakub@redhat.com>
679 * c-pch.c (pch_init): Free target_validity at the end.
681 2013-03-04 Jakub Jelinek <jakub@redhat.com>
683 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
685 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
686 Jakub Jelinek <jakub@redhat.com>
689 * c-common.c (handle_no_sanitize_address_attribute): New function.
690 (c_common_attribute_table): Add no_sanitize_address attribute.
691 (handle_no_address_safety_analysis_attribute): Add
692 no_sanitize_address attribute, not no_address_safety_analysis
695 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
698 * c-common.c (handle_optimize_attribute): Call
699 save_optabs_if_changed.
701 2013-02-18 Jakub Jelinek <jakub@redhat.com>
702 Steven Bosscher <steven@gcc.gnu.org>
705 * c-opts.c (c_common_post_options): If debug info is enabled
706 and non-dwarf*, refuse to load PCH files and when writing PCH
709 2013-02-05 Jakub Jelinek <jakub@redhat.com>
712 * c-common.c (handle_error_attribute): Fix condition.
714 2013-01-30 Jakub Jelinek <jakub@redhat.com>
717 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
719 2013-01-18 Jason Merrill <jason@redhat.com>
722 * c.opt (-fextern-tls-init): New.
723 * c-opts.c (c_common_post_options): Handle it.
725 2013-01-09 Jakub Jelinek <jakub@redhat.com>
728 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
729 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
730 and is either negative or bigger or equal to type precision
731 of the first operand.
733 2012-12-03 Marek Polacek <polacek@redhat.com>
736 * c-common.c (check_user_alignment): Swap order of tests,
737 check TREE_CODE first.
739 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
742 * c-common.h (overflow_type): New enum.
743 (build_userdef_literal): Add overflow_type argument.
744 (tree_userdef_literal): Add overflow_type.
745 (USERDEF_LITERAL_OVERFLOW): New access macro.
746 * c-common.c (build_userdef_literal): Add overflow_type
748 * c-lex.c (c_lex_with_flags): Add overflow_type to
749 build_userdef_literal calls.
750 (interpret_integer, interpret_float): Add overflow_type argument.
752 2012-11-28 Richard Biener <rguenther@suse.de>
755 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
756 here and use a type with proper overflow behavior for types that would
757 need to be promoted for the arithmetic.
759 2012-11-23 Jakub Jelinek <jakub@redhat.com>
762 * c-common.c (handle_no_address_safety_analysis_attribute): New
764 (c_common_attribute_table): Add no_address_safety_analysis.
766 2012-11-16 Simon Baldwin <simonb@google.com>
768 * c.opt: Add f[no-]canonical-system-headers.
769 * c-opts.c (c_common_handle_option): Handle
770 OPT_fcanonical_system_headers.
772 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
775 * c-opts.c (c_common_handle_option): Set new flags.
776 * c.opt: Describe new flags.
778 2012-11-09 Jason Merrill <jason@redhat.com>
780 * c.opt (Wabi-tag): New.
782 2012-11-09 Andi Kleen <ak@linux.intel.com>
785 * c-common.c (get_atomic_generic_size): Mask with
788 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
791 * c.opt (Wformat): Make it Alias Wformat=1.
792 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
793 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
795 (Wformat=): RejectNegative. Use LangEnabledBy.
796 (Wnonnull): Use LangEnabledBy.
797 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
798 * c-format.c (set_Wformat): Delete.
799 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
800 (maybe_read_dollar_number): Likewise.
801 (avoid_dollar_number): Likewise.
802 (finish_dollar_format_checking): Likewise.
803 (check_format_info): Likewise.
804 (check_format_info_main): Likewise.
805 (check_format_types): Likewise.
806 (format_type_warning): Likewise.
807 * c-common.c (int): Likewise.
808 (check_function_sentinel): Likewise.
809 * c-common.h (warn_format,set_Wformat): Do not declare here.
811 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
814 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
815 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
817 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
819 (Wvariadic-macros): Init(1).
820 * c-opts.c (c_common_handle_option): Do not handle them
822 (c_common_post_options): Likewise.
823 (sanitize_cpp_opts): warn_unused_macros is now
824 cpp_warn_unused_macros.
825 (push_command_line_include): Likewise.
826 * c-common.c (warn_unknown_pragmas): Do not define.
827 * c-common.h (warn_unknown_pragmas): Do not declare.
829 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
832 * c-common.c (conversion_warning): Handle conditional expressions.
834 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
837 * c.opt (Wreturn_local_addr): Define new option.
839 2012-10-25 Jason Merrill <jason@redhat.com>
841 * c.opt (Wvirtual-move-assign): New.
843 * c.opt (Winherited-variadic-ctor): New.
845 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
848 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
850 2012-10-23 Joseph Myers <joseph@codesourcery.com>
852 * c-common.h (pch_cpp_save_state): Declare.
853 * c-target.def (c_preinclude): New hook.
854 * c-opts.c (done_preinclude): New.
855 (push_command_line_include): Handle default preincluded header.
856 (cb_file_change): Call pch_cpp_save_state when calling
857 push_command_line_include.
858 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
859 (pch_cpp_save_state): New.
860 (pch_init): Call pch_cpp_save_state conditionally, instead of
861 calling cpp_save_state.
863 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
867 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
868 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
869 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
870 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
871 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
872 * c-opts.c (c_common_handle_option): Remove explicit handling from
874 (c_common_post_options): Likewise.
876 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
878 * c-ada-spec.c (LOCATION_COL): Delete.
879 (compare_location): New function.
880 (compare_node): Use it.
881 (compare_comment): Likewise.
883 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
887 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
888 * c-opts.c (c_common_handle_option): Do not set them here. Add
890 (c_common_post_options): Likewise.
892 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
894 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
895 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
896 Remove POINTER_TYPE handling, add large unsigned handling and use
897 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
899 2012-10-12 Jakub Jelinek <jakub@redhat.com>
902 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
903 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
904 locs and array of 3 trees instead of just single loc and single
905 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
906 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
907 For *cmp* builtins that take two sources strings report warnings
908 about first and second source, not about destination and source.
910 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
913 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
915 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
917 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
918 declaring something coming from another file.
920 2012-10-10 Arnaud Charlet <charlet@adacore.com>
923 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
925 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
928 * c-common.c (warn_about_parentheses): Add location_t parameter;
930 * c-common.h: Update declaration.
932 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
935 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
936 more operations. Make error messages optional.
937 * c-common.h (enum stv_conv): Moved from c-typeck.c.
938 (scalar_to_vector): Declare.
940 2012-10-08 Jason Merrill <jason@redhat.com>
942 * c-common.c (c_common_reswords): Add thread_local.
944 2012-10-08 Dodji Seketeli <dodji@redhat.com>
946 PR c++/53528 C++11 attribute support
947 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
949 * c-common.c (check_cxx_fundamental_alignment_constraints): New
951 (handle_aligned_attribute): In choose strictest alignment
952 among many. Use new check_cxx_fundamental_alignment_constraints.
953 (handle_transparent_union_attribute): In c++11 attribute syntax,
954 don't look through typedefs.
956 2012-10-04 Arnaud Charlet <charlet@adacore.com>
958 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
959 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
962 2012-09-25 Dehao Chen <dehao@google.com>
965 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
966 map when read in the pch.
968 2012-09-18 Arnaud Charlet <charlet@adacore.com>
970 * c-ada-spec.c: Style fixes.
972 2012-09-18 Thomas Quinot <quinot@adacore.com>
974 * c.opt (-fada-spec-parent): Define new command line switch.
975 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
976 is specified, generate binding spec as a child of the specified unit.
978 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
979 Manuel López-Ibáñez <manu@gcc.gnu.org>
982 * c.opt ([Winit-self]): Enabled by -Wall in C++.
984 2012-08-23 Arnaud Charlet <charlet@adacore.com>
986 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
987 for pointers, and add missing Convention C pragma.
988 (print_ada_struct_decl): Add missing aliased keyword.
989 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
991 2012-08-17 Jakub Jelinek <jakub@redhat.com>
993 * c-common.c (sizeof_pointer_memaccess_warning): New function.
994 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
995 * c-opts.c (c_common_handle_option): Enable it for -Wall.
996 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
997 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
999 2012-08-10 Richard Guenther <rguenther@suse.de>
1001 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1003 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1005 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1006 instead of separate pp_newline and pp_flush.
1007 (print_c_tree): Likewise.
1009 2012-07-26 Richard Henderson <rth@redhat.com>
1011 * c-common.c (handle_hot_attribute): Allow labels.
1012 (handle_cold_attribute): Likewise.
1014 2012-07-20 Jakub Jelinek <jakub@redhat.com>
1017 * c-common.c (check_function_nonnull): Handle multiple nonnull
1018 attributes properly.
1020 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1022 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1023 * c-ada-spec.c: Likewise.
1024 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1026 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1028 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1029 Remove code conditional on it.
1031 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1033 * c-gimplify.c: Do not include basic-block.h.
1034 * c-common.c: Do not include linfuncs.h.
1036 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1038 * c-common.h: Include tree.h.
1040 2012-07-02 Jason Merrill <jason@redhat.com>
1043 * c-common.c (get_priority): Call default_conversion.
1045 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
1047 * c-pch.c (c_common_write_pch): Remove unused variables.
1049 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1051 * cppspec.c: Moved from gcc/ to here.
1053 2012-06-27 Kai Tietz <ktietz@redhat.com>
1055 PR preprocessor/37215
1056 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1058 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1060 * c-common.h (c_common_print_pch_checksum): Remove.
1061 * c-pch.c: Do not include output.h.
1062 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1063 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1064 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1065 (struct c_pch_header): Remove.
1066 (get_ident): Update gpch version.
1067 (pch_init): Do not print executable_checksum to asm_out_file.
1068 Do not fail if there is no asm_out_file to read back from. Set
1069 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1070 (c_common_write_pch): Verify that nothing was written to asm_out_file
1071 since pch_init was called. Do not write a c_pch_header, and do not
1072 copy from asm_out_file to the PCH.
1073 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1074 the content of asm_out_file from the PCH.
1075 (c_common_print_pch_checksum): Remove.
1076 * c-opts.c (c_common_init): Print out executable_checksum directly.
1078 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1080 * c-target.def (objc_declare_unresolved_class_reference,
1081 objc_declare_class_definition): Add new hooks.
1083 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1085 * c-lex.c: Do not include output.h.
1086 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1087 Remove uses of ASM_OUTPUT_IDENT.
1089 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1092 * c-common.h (c_build_vec_perm_expr): Move decl here.
1093 * c-common.c (c_build_vec_perm_expr): Move definition
1096 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1098 * c.opt (fconserve-space): Turn into a no-op.
1100 2012-06-04 Sterling Augustine <saugustine@google.com>
1102 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1103 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1104 both the start and end of the function.
1106 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1108 * c-common.c: Do not include output.h.
1109 * c-pragma.c: Likewise.
1111 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1113 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1114 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1115 (lang_decl_name): Handle namespace decls.
1117 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1119 * c-ada-spec.c: Do not include output.h.
1120 * c-semantics.c: Likewise.
1122 2012-05-29 Joseph Myers <joseph@codesourcery.com>
1124 * c-common.c: Fix typo.
1126 2012-05-29 Michael Matz <matz@suse.de>
1128 * c-common.h (c_expand_decl): Remove prototype.
1130 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1132 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1133 * c-opts.c (c_common_handle_option): Remove code handling
1134 warn_missing_braces.
1136 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1139 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1142 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1145 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1147 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1149 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1150 * c-opts.c (c_common_handle_option): Do not handle explicitly
1151 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1153 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1155 PR preprocessor/7263
1156 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1157 to cpp_classify_number. For diagnostics, use the precise location
1158 instead of the global input_location.
1160 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1163 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1165 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1167 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1169 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1172 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1173 Wreorder): Use LangEnabledBy.
1174 * c-opts.c (c_common_handle_option): Do not enable them
1175 explicitly. Call lang-specific generated functions.
1176 (c_common_post_options): Do not set them here.
1178 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1180 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1181 Wmissing-field-initializers,Wmissing-parameter-type,
1182 Wold-style-declaration,Woverride-init): Use EnabledBy.
1183 * c-opts.c (c_common_post_options): Do not set here explicitly.
1185 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1188 * c-opts.c (c_common_handle_option): Use handle_generated_option
1189 to enable sub-options.
1191 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1194 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1196 2012-05-10 Richard Guenther <rguenther@suse.de>
1198 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1199 adjust commentary about TYPE_IS_SIZETYPE types.
1201 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1204 * c-common.c (warn_logical_operator): Check that argument of
1205 integer_zerop is not NULL.
1207 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1210 * c-common.c (warn_logical_operator): Do not warn if either side
1211 is already true or false.
1213 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1216 * c-common.c (expr_original_type): New.
1217 (shorten_compare): Do not warn for enumeration types.
1219 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1221 * c.opt (fpermissive): Add Var(flag_permissive).
1223 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1226 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1227 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1229 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1231 Add -Wvarargs option
1232 * c.opt (Wvarargs): Define new option.
1234 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1236 * c-common.c (check_function_arguments): Replace
1237 Wmissing-format-attribute with Wsuggest-attribute=format.
1239 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1241 * c.opt (Wsuggest-attribute=format): New. Alias of
1242 Wmissing-format-attribute.
1243 * c-format.c (decode_format_type): Replace
1244 Wmissing-format-attribute with Wsuggest-attribute=format.
1245 (check_function_format): Likewise.
1247 2012-04-27 Ollie Wild <aaw@google.com>
1249 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1250 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1251 * c.opt: Add Wliteral-suffix.
1253 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1256 * c.opt (Wpedantic): New.
1257 (pedantic): Alias Wpedantic.
1258 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1259 (c_common_post_options): Likewise.
1260 (sanitize_cpp_opts): Likewise.
1261 * c-lex.c (interpret_float): Likewise.
1262 * c-format.c (check_format_types): Likewise.
1263 * c-common.c (pointer_int_sum): Likewise.
1264 (c_sizeof_or_alignof_type): Likewise.
1265 (c_add_case_label): Likewise.
1266 (c_do_switch_warnings): Likewise.
1267 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1269 2012-04-15 Jason Merrill <jason@redhat.com>
1272 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1273 (C_STD_NAME): Distinguish between C++98 and C++11.
1275 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1278 * c-common.h (uint16_type_node): Rename into...
1279 (c_uint16_type_node): ...this.
1280 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1281 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1283 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1285 * c-common.c (warn_if_unused_value): Move definition to here.
1286 * c-common.h (warn_if_unused_value): Move declaration to here.
1288 2012-03-23 William Bader <williambader@hotmail.com>
1290 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1292 2012-03-20 Jason Merrill <jason@redhat.com>
1294 * c-common.h (enum cxx_dialect): Add cxx1y.
1295 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1297 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1298 * c-opts.c (c_common_post_options): Likewise.
1299 (set_std_cxx1y): New.
1300 (c_common_handle_option): Call it.
1301 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1303 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1306 * c.opt ([Wuseless-cast]): Add.
1308 2012-03-16 Richard Guenther <rguenther@suse.de>
1310 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1312 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1315 * c.opt (ftemplate-backtrace-limit) Add.
1317 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1319 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1321 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1322 (init_pragma): Don't register extern_prefix.
1324 2012-03-12 Richard Guenther <rguenther@suse.de>
1326 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1327 (builtin_type_for_size): Likewise.
1329 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1332 * c-common.c (sync_resolve_params): Don't decide whether to convert
1333 or not based on TYPE_SIZE comparison, convert whenever arg_type
1334 is unsigned INTEGER_TYPE.
1336 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1339 * c.opt ([Wunused-local-typedefs]): Fix description.
1341 2012-01-24 Mike Stump <mikestump@comcast.net>
1343 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1346 2012-01-18 Richard Guenther <rguenther@suse.de>
1348 * c-opts.c (c_common_post_options): Reset LTO flags if
1349 we are about to generate a PCH.
1351 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1354 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1355 use pp_unsigned_wide_integer.
1357 2012-01-10 Richard Guenther <rguenther@suse.de>
1360 * c-opts.c (c_common_handle_option): Move -Werror handling
1361 to language independent code.
1363 2012-01-05 Richard Guenther <rguenther@suse.de>
1366 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1369 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1372 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1373 of array types with an unknown bound.
1375 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1377 * c-common.c (flag_isoc99): Update comment to refer to C11.
1378 (flag_isoc1x): Change to flag_isoc11.
1379 * c-common.h (flag_isoc99): Update comment to refer to C11.
1380 (flag_isoc1x): Change to flag_isoc11.
1381 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1383 * c-opts.c (set_std_c1x): Change to set_std_c11.
1384 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1386 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1387 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1388 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1390 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1391 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1392 (std=gnu1x): Make alias of std=gnu11.
1394 2011-12-19 Jason Merrill <jason@redhat.com>
1397 * c-common.c (handle_transparent_union_attribute): Check the first
1398 field if the type is complete.
1400 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1403 * c-common.c (RID_IS_FINAL): Add.
1404 * c-common.h (RID_IS_FINAL): Add.
1406 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1408 * c.opt (fgnu-runtime): Provide full description.
1409 (fnext-runtime): Likewise.
1410 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1412 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1414 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1415 predefines in one place. Add LOCK_FREE predefines.
1416 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1419 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1422 * c-common.c (get_atomic_generic_size): Check for various error
1424 (resolve_overloaded_atomic_exchange,
1425 resolve_overloaded_atomic_compare_exchange,
1426 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1427 error_mark_node for error conditions.
1429 2011-11-08 Richard Guenther <rguenther@suse.de>
1434 2011-11-07 Richard Henderson <rth@redhat.com>
1435 Aldy Hernandez <aldyh@redhat.com>
1436 Torvald Riegel <triegel@redhat.com>
1438 Merged from transactional-memory.
1440 * c-common.c (handle_tm_wrap_attribute,
1441 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1442 (struct c_common_reswords): Added __transaction* keywords.
1443 (struct c_common_attribute_table): Added transaction* and tm_regparm
1445 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1447 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1448 find_tm_attribute): Declare.
1450 2011-11-07 Jason Merrill <jason@redhat.com>
1453 * c-common.c, c-common.h: Revert yesterday's changes.
1455 2011-11-06 Jason Merrill <jason@redhat.com>
1458 * c-common.c (decl_has_visibility_attr): Split out from...
1459 (c_determine_visibility): ...here.
1460 * c-common.h: Declare it.
1462 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1464 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1465 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1467 (check_user_alignment): New. Split out of
1468 handle_aligned_attribute. Disallow integer constants with
1469 noninteger types. Conditionally allow zero.
1470 (handle_aligned_attribute): Use check_user_alignment.
1471 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1473 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1474 Richard Henderson <rth@redhat.com>
1476 Merged from cxx-mem-model.
1478 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1479 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1480 parameters that are the same type size.
1481 (get_atomic_generic_size): New. Find size of generic
1482 atomic function parameters and do typechecking.
1483 (add_atomic_size_parameter): New. Insert size into parameter list.
1484 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1485 either __atomic_exchange_n or external library call.
1486 (resolve_overloaded_atomic_compare_exchange): Restructure
1487 __atomic_compare_exchange to either _n variant or external library call.
1488 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1489 __atomic_load_n or an external library call.
1490 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1491 __atomic_store_n or an external library call.
1492 (resolve_overloaded_builtin): Handle new __atomic builtins.
1494 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1497 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1498 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1499 <INDIRECT_REF>: Return the argument.
1500 <ARRAY_REF>: Remove special code for negative offset.
1501 Call fold_build_pointer_plus instead of size_binop.
1502 (fold_offsetof): Remove STOP_REF argument and adjust.
1503 * c-common.h (fold_offsetof_1): Declare.
1504 (fold_offsetof): Remove STOP_REF argument.
1506 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1509 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1510 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1511 Wnarrowing for C++0x and C++98.
1512 * c.opt ([Wnarrowing]): Update.
1514 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1517 * c.opt: Add Wzero-as-null-pointer-constant.
1519 2011-10-31 Jason Merrill <jason@redhat.com>
1521 * c.opt (-fdeduce-init-list): Off by default.
1524 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1525 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1527 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1529 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1532 * c.opt (fvisibility-inlines-hidden): Description change.
1534 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1536 Implement C++11 user-defined literals.
1537 * c-common.c (build_userdef_literal): New.
1538 * c-common.def: New tree code.
1539 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1540 * c-lex.c (interpret_float): Add suffix parm.
1541 (c_lex_with_flags): Build literal tokens.
1543 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1547 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1550 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1551 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1552 Wnarrowing for C++0x and C++98.
1553 * c.opt ([Wnarrowing]): Update.
1555 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1558 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1559 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1560 Wnarrowing for C++0x and C++98.
1561 * c.opt ([Wnarrowing]): Update.
1563 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1566 * c-common.c (conversion_warning): Remove code looking for
1567 artificial operands.
1569 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1572 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1573 !NO_IMPLICIT_EXTERN_C.
1575 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1577 * c-common.c (c_common_reswords): Add __bases,
1579 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1581 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1584 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1586 2011-10-15 Tom Tromey <tromey@redhat.com>
1587 Dodji Seketeli <dodji@redhat.com>
1589 * c.opt (fdebug-cpp): New option.
1590 * c-opts.c (c_common_handle_option): Handle the option.
1591 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1592 output stream in parameter. Factorized from ...
1593 (maybe_print_line): ... this. Dump location debug information when
1594 -fdebug-cpp is in effect.
1595 (print_line_1): New static function. Takes an output stream in
1596 parameter. Factorized from ...
1597 (print_line): ... here. Dump location information when -fdebug-cpp
1599 (scan_translation_unit): Dump location information when
1600 -fdebug-cpp is in effect.
1602 2011-10-15 Tom Tromey <tromey@redhat.com>
1603 Dodji Seketeli <dodji@redhat.com>
1605 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1607 * c-opts.c (c_common_handle_option)<case
1608 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1609 cases. Handle -ftrack-macro-expansion with and without argument.
1611 2011-10-15 Tom Tromey <tromey@redhat.com>
1612 Dodji Seketeli <dodji@redhat.com>
1614 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1615 (print_line, cb_define, do_line_change): Adjust to avoid touching
1616 the internals of struct line_map. Use the public API instead.
1617 * c-pch.c (c_common_read_pch): Likewise.
1618 * c-lex.c (fe_file_change): Likewise.
1620 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1623 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1625 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1628 * c-pretty-print.c (pp_c_floating_constant): Output
1629 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1631 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1633 * c-common.c (def_builtin_1): Delete old interface with two
1634 parallel arrays to hold standard builtin declarations, and replace
1635 it with a function based interface that can support creating
1636 builtins on the fly in the future. Change all uses, and poison
1637 the old names. Make sure 0 is not a legitimate builtin index.
1638 * c-omp.c (c_finish_omp_barrier): Ditto.
1639 (c_finish_omp_taskwait): Ditto.
1640 (c_finish_omp_flush): Ditto.
1642 2011-10-11 Tristan Gingold <gingold@adacore.com>
1644 * c.opt: (fallow-parameterless-variadic-functions): New.
1646 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1648 PR c++/33255 - Support -Wunused-local-typedefs warning
1649 * c-common.h (struct c_language_function::local_typedefs): New
1651 (record_locally_defined_typedef, maybe_record_typedef_use)
1652 (maybe_warn_unused_local_typedefs): Declare new functions.
1653 * c-common.c (record_locally_defined_typedef)
1654 (maybe_record_typedef_use)
1655 (maybe_warn_unused_local_typedefs): Define new functions.
1656 * c.opt: Declare new -Wunused-local-typedefs flag.
1658 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1661 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1664 2011-09-05 Richard Guenther <rguenther@suse.de>
1666 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1667 of integer_minus_one_node for empty array upper bounds.
1669 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1671 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1672 it's the first time it's being called on this main TU.
1674 2011-08-24 Richard Guenther <rguenther@suse.de>
1677 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1679 2011-08-22 Gabriel Charette <gchare@google.com>
1681 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1682 defined in cpp_init_builtins and c_cpp_builtins.
1684 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1686 * c-common.c (c_common_reswords): Add __builtin_complex.
1687 * c-common.h (RID_BUILTIN_COMPLEX): New.
1689 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1691 * c-common.c (c_common_reswords): Add _Noreturn.
1692 (keyword_is_function_specifier): Handle RID_NORETURN.
1693 * c-common.h (RID_NORETURN): New.
1695 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1697 * c-common.c (unsafe_conversion_p): New function. Check if it is
1698 unsafe to convert an expression to the type.
1699 (conversion_warning): Adjust, use unsafe_conversion_p.
1700 * c-common.h (unsafe_conversion_p): New function declaration.
1702 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1704 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1705 (c_finish_omp_taskyield): New prototype.
1706 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1707 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1708 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1709 or RHS1 have side-effects, evaluate those too in the right spot,
1710 if it is a decl and LHS is also a decl, error out if they
1712 (c_finish_omp_taskyield): New function.
1713 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1714 * c-pragma.c (omp_pragmas): Add taskyield.
1715 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1716 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1717 PRAGMA_OMP_CLAUSE_MERGEABLE.
1719 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1721 * c-common.h (set_underlying_type): Remove parm name from
1724 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1726 * c-pretty-print.h: Search c-common.h in c-family.
1728 2011-07-22 Jason Merrill <jason@redhat.com>
1731 * c.opt (Wnarrowing): New.
1734 * c-common.h: Declare c_linkage_bindings.
1735 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1738 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1739 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1740 as flag_isoc99 for 'restrict'.
1741 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1743 2011-07-21 Ian Lance Taylor <iant@google.com>
1746 * c-common.c (c_disable_warnings): New static function.
1747 (c_enable_warnings): New static function.
1748 (c_fully_fold_internal): Change local unused_p to bool. Call
1749 c_disable_warnings and c_enable_warnings rather than change
1750 c_inhibit_evaluation_warnings.
1752 2011-07-20 Jason Merrill <jason@redhat.com>
1754 PR c++/6709 (DR 743)
1755 PR c++/42603 (DR 950)
1756 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1757 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1758 (CPP_DECLTYPE): New.
1759 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1761 2011-07-19 Richard Guenther <rguenther@suse.de>
1763 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1764 * c-omp.c (c_finish_omp_for): Likewise.
1766 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1768 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1769 body on the next line.
1771 2011-07-08 Jason Merrill <jason@redhat.com>
1774 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1777 * c-common.c (c_apply_type_quals_to_decl): Don't check
1778 TYPE_NEEDS_CONSTRUCTING.
1780 2011-07-06 Richard Guenther <rguenther@suse.de>
1782 * c-common.c (c_common_nodes_and_builtins):
1783 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1785 2011-07-05 Richard Guenther <rguenther@suse.de>
1787 * c-common.c (c_common_nodes_and_builtins): Build all common
1790 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1792 * c-common.h (c_tree_chain_next): New static inline function.
1794 * c-common.c (check_builtin_function_arguments): Handle
1795 BUILT_IN_ASSUME_ALIGNED.
1797 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1799 * c-common.c: Add sync_ or SYNC__ to builtin names.
1800 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1802 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1804 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1806 (gen_pragma_handler): New union.
1807 (internal_pragma_handler): New type.
1808 (c_register_pragma_with_data)
1809 (c_register_pragma_with_expansion_and_data): New functions.
1811 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1812 (c_register_pragma, c_register_pragma_with_expansion)
1813 (c_invoke_pragma_handler): Changed to work with
1814 internal_pragma_handler.
1815 (c_register_pragma_with_data)
1816 (c_register_pragma_with_expansion_and_data): New functions.
1818 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1820 * c-common.c: Include common/common-target.h.
1821 (handle_section_attribute): Use
1822 targetm_common.have_named_sections.
1823 * c-cppbuiltin.c: Include common/common-target.h.
1824 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1826 2011-06-10 Richard Guenther <rguenther@suse.de>
1828 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1829 to print a IDENTIFIER_NODE.
1831 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1832 Joseph Myers <joseph@codesourcery.com>
1834 * c.opt (fbuilding-libgcc): New option.
1835 * c-cppbuiltin.c (c_cpp_builtins): Define
1836 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1838 2011-06-07 Jason Merrill <jason@redhat.com>
1840 * c-common.c (max_tinst_depth): Lower default to 900.
1842 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1844 2011-06-07 Richard Guenther <rguenther@suse.de>
1846 * c-common.c (c_common_nodes_and_builtins): Do not set
1847 size_type_node or call set_sizetype.
1849 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1852 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1853 type when using pointer comparison to compare types.
1855 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1857 * c.opt: Add -Wdelete-non-virtual-dtor.
1858 * c-opts.c (c_common_handle_option): Include it in -Wall.
1860 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1865 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1867 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1870 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1873 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1874 C++ don't call c_common_truthvalue_conversion on void type arms.
1876 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1878 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1879 (stmt_list_stack): Define.
1880 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1881 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1883 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1885 * c-common.c (warning_candidate_p): Check for BLOCKs.
1887 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1889 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1892 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1894 * c-common.c (def_fn_type): Remove extra va_end.
1896 2011-05-23 Jason Merrill <jason@redhat.com>
1899 * c-common.c (c_common_get_narrower): New.
1900 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1902 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1904 * c-common.h (check_function_arguments): Tweak prototype of
1905 check_function_arguments.
1906 * c-common.c (check_function_arguments): Likewise. Adjust
1907 calls to check_function_nonnull, check_function_format, and
1908 check_function_sentinel.
1909 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1910 separate attributes and typelist arguments. Use
1911 FOREACH_FUNCTION_ARGS to iterate over argument types.
1913 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1915 * c-common.c (c_common_reswords): Reorder.
1916 * c-common.h (rid): Likewise.
1918 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1920 * c-common.c (def_fn_type): Don't call build_function_type, call
1921 build_function_type_array or build_varargs_function_type_array
1923 (c_common_nodes_and_builtins): Likewise.
1925 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1927 * c-common.c (c_add_case_label): Omit the loc argument to
1929 * c-common.h (build_case_label): Remove.
1930 * c-semantics.c (build_case_label): Remove.
1932 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1934 * c-objc.h (objc_start_method_definition): Update prototype.
1935 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1937 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1939 * c-common.c (check_main_parameter_types): Reindent. Don't use
1940 TYPE_ARG_TYPES directly.
1941 (handle_nonnull_attribute): Likewise.
1942 (sync_resolve_params): Likewise.
1943 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1944 to check_format_string.
1945 (handle_format_attribute): Likewise.
1946 (check_format_string): Take a function type to examine instead of
1947 a type list. Use a function_arg_iterator to step through argument
1950 2011-05-04 Richard Guenther <rguenther@suse.de>
1952 * c-common.c (fix_string_type): Use size_int for index type bounds.
1953 (start_fname_decls): Do not pass NULL to build_int_cst.
1954 (c_init_attributes): Likewise.
1955 * c-lex.c (c_lex_with_flags): Likewise.
1957 2011-04-27 Jason Merrill <jason@redhat.com>
1959 * c-common.c (make_tree_vector_from_list): New.
1960 * c-common.h: Declare it.
1962 2011-04-26 Richard Guenther <rguenther@suse.de>
1964 PR preprocessor/48248
1965 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1966 for output size with -P.
1968 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1970 * c-common.c (struct c_common_resword): Add __underlying_type.
1971 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1973 2011-04-20 Jim Meyering <meyering@redhat.com>
1975 * c-format.c (init_dollar_format_checking): Remove useless
1978 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1980 * c-objc.h (objc_get_interface_ivars): Removed.
1981 (objc_detect_field_duplicates): New.
1982 * stub-objc.c: Likewise.
1984 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1986 * stub-objc.c (objc_declare_protocols): Renamed to
1987 objc_declare_protocol.
1988 * c-objc.h: Likewise.
1990 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1992 * stub-objc.c (objc_declare_class): Updated argument name.
1994 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1996 * c-common.h (c_common_init_ts): Declare.
1997 * c-common.c (c_common_init_ts): Define.
1999 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2001 * c-objc.h (objc_build_message_expr): Updated prototype.
2002 * stub-objc.c (objc_build_message_expr): Likewise.
2004 2011-04-12 Martin Jambor <mjambor@suse.cz>
2006 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2009 2011-04-11 Richard Guenther <rguenther@suse.de>
2011 * c-common.c (complete_array_type): Build a range type of
2014 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2016 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2017 (handle_type_generic_attribute): Likewise.
2019 2011-04-07 Jason Merrill <jason@redhat.com>
2022 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2023 conversion from C++0x scoped enum.
2025 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2027 * c-target-def.h: New file.
2028 * c-target.def: New file.
2029 * c-target.h: New file.
2030 * c-common.c (targetcm): Don't define here.
2031 * c-common.h (default_handle_c_option): Declare.
2032 * c-format.c: Include c-target.h instead of target.h.
2033 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2035 (default_handle_c_option): Move from targhooks.c.
2037 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2039 PR preprocessor/48248
2040 * c-ppoutput.c (print): Add src_file field.
2041 (init_pp_output): Initialize it.
2042 (maybe_print_line): Don't optimize by adding up to 8 newlines
2043 if map->to_file and print.src_file are different file.
2044 (print_line): Update print.src_file.
2046 2011-03-25 Kai Tietz <ktietz@redhat.com>
2048 * c-ada-spec.c (compare_comment): Use filename_cmp
2049 instead of strcmp for filename.
2051 2011-03-25 Jeff Law <law@redhat.com>
2053 * c-family/c-common.c (def_fn_type): Add missing va_end.
2055 2011-03-25 Jason Merrill <jason@redhat.com>
2057 * c.opt: Add -std=c++03.
2059 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2061 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2063 2011-03-17 Kai Tietz
2066 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2067 Display allowed attributes for function pointer types.
2068 (pp_c_attributes_display): New function to display
2069 attributes having affects_type_identity flag set to true.
2070 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2072 * c-common.c (c_common_attribute_table):
2074 (c_common_format_attribute_table): Likewise.
2076 2011-03-18 Jason Merrill <jason@redhat.com>
2078 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2079 * c-common.h: Don't declare it here.
2080 * c-common.c: Or define it here.
2081 * c-opts.c (c_common_handle_option): Or set it here.
2084 * c-common.c (handle_transparent_union_attribute): Don't
2085 make a duplicate type in C++.
2087 2011-03-15 Jason Merrill <jason@redhat.com>
2089 * c-common.c (max_constexpr_depth): New.
2090 * c-common.h: Declare it.
2091 * c-opts.c (c_common_handle_option): Set it.
2092 * c.opt (fconstexpr-depth): New option.
2094 2011-03-11 Jason Merrill <jason@redhat.com>
2096 * c-common.c (attribute_takes_identifier_p): Add missing const.
2099 * c-common.c (attribute_takes_identifier_p): Assume that an
2100 unknown attribute takes an identifier.
2102 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2105 * c-common.c (c_type_hash): Call list_length instead of iterating
2106 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2108 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2111 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2113 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2115 * c.opt (fobjc-abi-version=) New.
2116 (fobjc-nilcheck): New.
2118 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2121 * c-common.h (keyword_is_decl_specifier): Declare.
2122 * c-common.c (keyword_is_decl_specifier): Define.
2123 (keyword_is_function_specifier): New function.
2125 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2128 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2129 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2132 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2134 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2136 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2139 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2140 after init_c_lex if pch_file is set.
2142 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2145 * c.opt (-fkeep-inline-dllexport): New switch.
2147 2011-01-12 Richard Guenther <rguenther@suse.de>
2150 * c-common.c (handle_weak_attribute): Warn instead of error
2151 on declaring an inline function weak.
2153 2011-01-05 Tom Tromey <tromey@redhat.com>
2155 * c-common.h (lvalue_error): Update.
2156 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2159 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
2162 * c-objc.h (objc_finish_message_expr): Added argument to
2165 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2167 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2170 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2172 * c-objc.h (objc_maybe_warn_exceptions): New.
2173 * stub-objc.c (objc_maybe_warn_exceptions): New.
2175 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2177 * c-common.h (readonly_error): Declare.
2178 * c-common.c (readonly_error): Define.
2180 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2182 * c-common.h (invalid_indirection_error): Declare.
2183 * c-common.c (invalid_indirection_error): Define.
2185 2010-12-03 Richard Guenther <rguenther@suse.de>
2188 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2189 (pp_c_unary_expression): Likewise.
2190 (pp_c_expression): Likewise.
2192 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2194 * c-common.h (objc_finish_function): New.
2195 (objc_non_volatilized_type): Removed.
2196 (objc_type_quals_match): Removed.
2197 * stub-objc.c (objc_finish_function): New.
2198 (objc_non_volatilized_type): Removed.
2199 (objc_type_quals_match): Removed.
2201 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2203 * c-common.h (parse_optimize_options): Declare.
2204 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2205 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2207 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2209 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2211 * c-pch.c (O_BINARY): Don't define here.
2212 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2214 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2216 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2217 targetm.except_unwind_info.
2219 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2221 * c-opts.c (c_common_handle_option): Pass location to
2222 set_struct_debug_option.
2224 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2226 * c-common.c (visibility_options): Move from ../opts.c.
2227 * c-common.h (struct visibility_flags, visibility_options):
2229 * c-opts.c (finish_options): Rename to c_finish_options.
2230 (c_common_init): Update call to finish_options.
2232 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2235 * c-lex.c (lex_string): Check that each string in an Objective-C
2236 string concat sequence starts with either one or zero '@', and
2237 that there are no spurious '@' signs at the end.
2239 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2241 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2242 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2243 HANDLE_PRAGMA_VISIBILITY.
2244 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2245 HANDLE_PRAGMA_VISIBILITY): Don't define.
2246 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2248 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2253 * c-common.h (keyword_begins_type_specifier): Declare.
2254 (keyword_is_storage_class_specifier): Declare.
2255 (keyword_is_type_qualifier): Declare.
2256 * c-common.c (keyword_begins_type_specifier): New function.
2257 (keyword_is_storage_class_specifier): New function.
2258 (keyword_is_type_qualifier): Declare.
2260 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2263 * c-common.c (in_late_binary_op): Define.
2264 (c_common_truthvalue_conversion): Check in_late_binary_op before
2265 calling c_save_expr.
2266 * c-common.h (in_late_binary_op): Declare.
2268 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2270 * c-opts.c (c_common_handle_option): Update calls to
2271 set_struct_debug_option.
2273 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2275 * c-common.h (objc_declare_protocols): Added additional argument.
2276 * stub-objc.c (objc_declare_protocol): Same change.
2278 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2281 * c-common.h (build_real_imag_expr): Declare.
2282 * c-semantics.c (build_real_imag_expr): Define.
2284 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2286 * c-opts.c (c_common_parse_file): Take no arguments.
2287 * c-common.h (c_common_parse_file): Update prototype.
2289 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2292 * c-common.c (warning_candidate_p): Don't track non-const calls
2295 2010-11-15 Ian Lance Taylor <iant@google.com>
2297 * c-lex.c (init_c_lex): Set macro debug callbacks if
2298 flag_dump_go_spec is set.
2300 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2302 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2303 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2305 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2307 PR preprocessor/45038
2308 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2311 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2313 * c-common.h (c_family_lang_mask): Declare.
2314 * c-opts.c (c_family_lang_mask): Make extern.
2315 * c-pragma.c (handle_pragma_diagnostic): Use
2316 control_warning_option.
2318 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2320 * c-common.c (parse_optimize_options): Update call to
2322 * c-common.h (c_common_handle_option): Update prototype.
2323 * c-opts.c (c_common_handle_option): Take location_t parameter and
2324 pass it to other functions.
2326 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2328 * c-opts.c (warning_as_error_callback): Remove.
2329 (c_common_initialize_diagnostics): Don't call
2330 register_warning_as_error_callback.
2331 (c_common_handle_option): Handle -Werror=normalized= here.
2333 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2335 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2337 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2339 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2340 Remove trailing '.' from diagnostics.
2341 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2343 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2345 * c-common.c (parse_optimize_options): Pass global_dc to
2347 * c-opts.c (c_common_handle_option): Pass &global_options to
2348 set_Wstrict_aliasing.
2349 * c.opt (v): Don't mark Common or document here.
2351 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2354 * c-format.c (format_type): New type gcc_objc_string_format_type.
2355 (valid_stringptr_type_p): New.
2356 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2357 (check_format_string): Pass expected type, use
2358 valid_stringptr_type_p (), check that the format string types are
2359 consistent with the format specification.
2360 (decode_format_attr): Warn if NSString is used outside objective-c.
2361 (format_types_orig): Add NSString.
2363 (format_flags): New.
2364 (check_format_arg): Handle format strings requiring an external parser.
2365 first_target_format_type: New variable.
2366 (handle_format_attribute): Set up first_target_format_type, pass the
2367 expected format arg string type to check_format_string().
2368 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2369 * stub-objc.c (objc_string_ref_type_p): New.
2370 (objc_check_format_arg): New.
2372 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2374 Fixed using the Objective-C 2.0 dot-syntax with class names.
2375 * c-common.h (objc_build_class_component_ref): New.
2376 * stub-objc.c (objc_build_class_component_ref): New.
2378 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2380 * c.opt (Wproperty-assign-default): New option.
2382 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2384 Implemented -fobjc-std=objc1 flag.
2385 * c.opt (fobjc-std=objc1): New option.
2387 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2389 Implemented format and noreturn attributes for Objective-C methods.
2390 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2391 attribute for Objective-C methods.
2393 2010-10-31 Jason Merrill <jason@redhat.com>
2395 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2398 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2400 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2401 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2402 (objc_add_property_declaration): Removed arguments for copies and
2404 (objc_build_getter_call): Renamed to
2405 objc_maybe_build_component_ref.
2406 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2407 (objc_is_property_ref): New.
2408 * c-common.c (c_common_reswords): Removed copies and ivar.
2409 * stub-objc.c (objc_add_property_declaration): Removed arguments
2410 for copies and ivar.
2411 (objc_build_getter_call): Renamed to
2412 objc_maybe_build_component_ref.
2413 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2414 (objc_is_property_ref): New.
2416 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2417 Matthew Gingell <gingell@adacore.com>
2419 * c-ada-spec.c (separate_class_package): New function.
2420 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2421 name of their enclosing package.
2422 (print_ada_declaration): Use separate_class_package.
2424 2010-10-27 Jason Merrill <jason@redhat.com>
2426 * c-common.c (c_common_reswords): Add __is_literal_type.
2427 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2429 * c-common.c (check_case_value): Remove special C++ code.
2431 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2433 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2434 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2436 (objc_add_property_declaration): Added additional arguments.
2437 (objc_property_attribute_kind): Removed.
2438 (objc_set_property_attr): Removed.
2439 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2441 * stub-objc.c (objc_add_property_declaration): Added additional
2443 (objc_set_property_attr): Removed.
2445 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2447 * c-common.h (objc_add_property_variable): Renamed to
2448 objc_add_property_declaration. Added location argument.
2449 * stub-objc.c (objc_add_property_variable): Same change.
2451 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2453 * c-common.h (objc_maybe_printable_name): New.
2454 * stub-objc.c (objc_maybe_printable_name): New.
2456 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2457 Andrew Pinski <pinskia@gmail.com>
2459 * c-common.h (c_common_mark_addressable_vec): Declare.
2460 * c-common.c (c_common_mark_addressable_vec): New function.
2462 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2464 * c-common.h (objc_set_method_type): Removed.
2465 (objc_add_method_declaration): Added boolean argument.
2466 (objc_start_method_definition): Same change.
2467 (objc_build_method_signature): Same change.
2468 * stub-objc.c (objc_set_method_type): Removed.
2469 (objc_add_method_declaration): Added boolean argument.
2470 (objc_start_method_definition): Same change.
2471 (objc_build_method_signature): Same change.
2473 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2475 * c-common.h (finish_file): Removed.
2476 (objc_write_global_declarations): New.
2477 * c-opts.c (c_common_parse_file): Do not call finish_file.
2478 * stub-objc.c (objc_write_global_declarations): New.
2480 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2482 Implemented parsing @synthesize and @dynamic for
2483 Objective-C/Objective-C++.
2484 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2485 (objc_add_synthesize_declaration): New.
2486 (objc_add_dynamic_declaration): New.
2487 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2488 * stub-objc.c (objc_add_synthesize_declaration): New.
2489 (objc_add_dynamic_declaration): New.
2491 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2494 * c-cppbuiltin.c (mode_has_fma): Move function here from
2495 builtins.c. Don't use the fma optab, instead just use the
2496 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2499 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2501 Merge from 'apple/trunk' branch on FSF servers.
2503 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2506 * c-common.h (objc_non_volatilized_type): New declaration
2507 * stub-objc.c (objc_non_volatilized_type): New stub.
2509 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2511 Merge from 'apple/trunk' branch on FSF servers.
2513 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2516 * c-common.h (objc_diagnose_private_ivar): New decl.
2517 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2519 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2521 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2522 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2523 (objc_ivar_visibility_kind): New enum.
2524 (objc_set_visibility): Adjust prototype to use visibility enum.
2525 * stub-objc.c (objc_set_visibility): Adjust stub to use
2528 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2530 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2531 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2532 has the appropriate fma builtins.
2533 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2535 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2537 merge from FSF apple 'trunk' branch.
2538 2006 Fariborz Jahanian <fjahanian@apple.com>
2540 Radars 4436866, 4505126, 4506903, 4517826
2541 * c-common.c (c_common_resword): Define @property and its attributes.
2542 * c-common.h: Define property attribute enum entries.
2543 (OBJC_IS_PATTR_KEYWORD): New.
2544 (objc_property_attribute_kind): New enum.
2545 Declare objc_set_property_attr (), objc_add_property_variable (),
2546 objc_build_getter_call () and objc_build_setter_call ().
2547 * stub-objc.c (objc_set_property_attr): New stub.
2548 (objc_add_property_variable): Likewise.
2549 (objc_build_getter_call): Likewise.
2550 (objc_build_setter_call) Likewise.
2552 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2554 merge from FSF apple 'trunk' branch.
2555 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2557 Radar 3803157 (method attributes)
2558 * c-common.c (handle_deprecated_attribute): Recognize
2559 objc methods as valid declarations.
2560 * c-common.h: Declare objc_method_decl ().
2561 * stub-objc.c (objc_method_decl): New stub.
2563 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2565 * c-common.c (parse_optimize_options): Call
2566 decode_cmdline_options_to_array_default_mask before
2567 decode_options. Update arguments to decode_options.
2568 * c-common.h (c_common_init_options_struct): Declare.
2569 * c-opts.c (c_common_init_options_struct): New. Split out from
2570 c_common_init_options.
2572 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2574 Implemented fast enumeration for Objective-C.
2575 * c-common.h (objc_finish_foreach_loop): New.
2576 * stub-objc.c (objc_finish_foreach_loop): New.
2578 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2580 * c-common.h (struct diagnostic_context): Don't declare here.
2581 (c_common_initialize_diagnostics): Declare using
2582 diagnostic_context typedef.
2583 * c-opts.c (c_common_handle_option): Pass global_dc to
2584 handle_generated_option.
2586 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2588 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2589 handle_generated_option.
2591 2010-10-03 Ian Lance Taylor <iant@google.com>
2593 * c.opt (-fplan9-extensions): New option.
2595 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2597 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2599 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2600 of duplicating code.
2602 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2604 * c-common.c: Add two new entries for @optional
2605 and @required keywords.
2607 merge from FSF 'apple/trunk' branch.
2608 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2611 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2612 objective-c keywords.
2613 (objc_set_method_opt): New declaration.
2614 * stub-objc.c (objc_set_method_opt): New stub.
2616 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2618 * c-common.c (handle_optimize_attribute): Pass &global_options to
2619 cl_optimization_save and cl_optimization_restore.
2620 * c-opts.c (c_common_handle_option): Pass &global_options to
2621 handle_generated_option.
2622 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2623 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2624 &global_options to cl_optimization_restore.
2626 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2628 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2629 Objective-C/Objective-C++ keywords.
2631 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2633 Merge from 'apple/trunk' branch on FSF servers.
2635 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2638 * c-common.h (objc_check_global_decl): New declaration.
2639 * stub-objc.c (objc_check_global_decl): New stub.
2641 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2643 * c.opt: Don't use VarExists.
2645 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2647 * c-common.c (c_cpp_error): Update names of diagnostic_context
2649 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2650 cl_optimization members.
2651 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2652 sanitize_cpp_opts, finish_options): Update names of cpp_options
2655 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2657 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2658 (objc_is_reserved_word): Removed.
2659 * c-common.c: Updated comments.
2660 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2661 objc_is_reserved_word.
2662 * stub-objc.c (objc_is_reserved_word): Removed.
2664 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2666 * c-common.h (objc_add_method_declaration): Adjust prototype to
2668 (objc_start_method_definition): Likewise.
2669 (objc_build_keyword_decl): Likewise.
2670 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2671 (objc_start_method_definition): Likewise.
2672 (objc_build_keyword_decl): Likewise.
2674 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2676 * c-common.h (objc_start_class_interface): Adjust prototype.
2677 (objc_start_category_interface): Likewise.
2678 (objc_start_protocol): Likewise.
2679 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2680 (objc_start_class_interface): Likewise.
2681 (objc_start_category_interface): Likewise.
2683 2010-09-27 Ian Lance Taylor <iant@google.com>
2685 * c-common.c (c_common_attribute_table): Add no_split_stack.
2686 (handle_no_split_stack_attribute): New static function.
2688 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2690 Merge from 'apple/trunk' branch on FSF servers.
2692 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2695 * c-common.h (objc_have_common_type): New declaration.
2696 * stub-objc.c (objc_have_common_type): New stub.
2698 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2701 * c-common.h (objc_common_type): New prototype.
2702 * stub-objc.c (objc_common_type): New stub.
2704 2010-09-24 Jan Hubicka <jh@suse.cz>
2706 * c-common.c (handle_leaf_attribute): New function.
2707 (struct attribute_spec c_common_att): Add leaf.
2709 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2711 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2712 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2713 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2714 -include-barrier, -include-directory, -include-directory=,
2715 -include-directory-after, -include-directory-after=,
2716 -include-prefix, -include-prefix=, -include-with-prefix,
2717 -include-with-prefix=, -include-with-prefix-after,
2718 -include-with-prefix-after=, -include-with-prefix-before,
2719 -include-with-prefix-before=, -no-integrated-cpp,
2720 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2721 -output=, -pedantic, -pedantic-errors, -preprocess,
2722 -print-missing-file-dependencies, -trace-includes, -traditional,
2723 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2724 -user-dependencies, -verbose, -write-dependencies,
2725 -write-user-dependencies, no-integrated-cpp, traditional): New.
2727 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2730 * c-common.h (objc_start_method_definition): Return bool instead
2732 * stub-objc.c (objc_start_method_definition): Return bool instead
2735 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2738 * c-common.h (objc_get_interface_ivars): New declaration.
2739 * stub-objc.c (objc_get_interface_ivars): New stub.
2741 2010-09-15 Ian Lance Taylor <iant@google.com>
2743 * c-common.c (parse_optimize_options): Do not capitalize warning
2744 messages. Remove period at end of warning message.
2746 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2748 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2749 (handle_alias_attribute): ... here.
2750 (handle_ifunc_attribute): New.
2752 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2754 * c-common.h (do_warn_double_promotion): Declare.
2755 * c-common.c (do_warn_double_promotion): Define.
2757 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2759 * c.opt (Wdouble-promotion): New.
2761 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2763 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2764 fvtable-thunks, fxref): Mark no longer supported in help text.
2766 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2768 * c.opt (Wimport, fall-virtual, falt-external-templates,
2769 fdefault-inline, fenum-int-equiv, fexternal-templates,
2770 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2771 fname-mangling-version-, fnew-abi, fnonnull-objects,
2772 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2773 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2775 (fhandle-exceptions): Mark with Alias and Warn.
2776 * c-opts.c (c_common_handle_option): Don't handle options marked
2779 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2781 * c.opt (Wcomments, Werror-implicit-function-declaration,
2782 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2783 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2785 * c-common.c (option_codes): Use OPT_Wcomment instead of
2787 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2788 Don't handle options marked as aliases.
2790 2010-08-25 Richard Guenther <rguenther@suse.de>
2792 * c-common.c (c_common_get_alias_set): Remove special
2793 handling for pointers.
2795 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2797 * c-common.c: Use FOR_EACH_VEC_ELT.
2798 * c-gimplify.c: Likewise.
2799 * c-pragma.c: Likewise.
2801 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2803 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2805 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2807 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2808 instead of OPT_MDX and OPT_MMDX.
2810 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2812 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2814 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2816 * c.opt (MD, MMD): Change to MDX and MMDX.
2817 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2819 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2821 * c-opts.c (c_common_handle_option): Call handle_generated_option
2822 instead of handle_option.
2824 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2826 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2827 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2829 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2831 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2832 (pending_redefine_extname): Change type to a VEC.
2833 (add_to_renaming_pragma_list): Update for new type of
2834 pending_redefine_extname.
2835 (maybe_apply_renaming_pragma): Likewise.
2837 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2839 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2841 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2842 decide whether a type has already been declared/seen.
2843 Do not go to the original type.
2844 (dump_nested_types): New parameter forward.
2845 Generate forward declaration if needed and mark type as visited.
2846 (print_ada_declaration): Call dump_nested_types if not already done.
2847 Mark types as visited.
2849 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2851 * c.opt (-print-pch-checksum): Remove option.
2852 * c-opts.c (c_common_handle_option): Don't handle
2853 OPT_print_pch_checksum.
2855 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2857 * c-common.h (c_common_handle_option): Update prototype and return
2859 * c-opts.c (c_common_handle_option): Update prototype and return
2860 value type. Update calls to handle_option and
2861 enable_warning_as_error.
2863 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2866 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2868 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2870 * c-common.h (c_common_missing_argument): Remove.
2871 * c-opts.c (c_common_missing_argument): Remove.
2872 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2873 idirafter, imacros, include, isysroot, isystem, iquote): Add
2875 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2877 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2879 * c-common.h (c_common_option_lang_mask,
2880 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2882 (c_common_init_options): Update prototype.
2883 * c-opts.c (c_common_option_lang_mask): New.
2884 (c_common_initialize_diagnostics): Split out of
2885 c_common_init_options.
2886 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2888 (c_common_init_options): Update prototype. Use decoded options in
2889 search for -lang-asm.
2891 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2893 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2894 * c-format.c: Likewise.
2896 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2898 * c-common.h: Include diagnostic-core.h. Error if already
2900 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2902 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2904 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2905 Do not include expr.h
2906 (vector_mode_valid_p): Move here.
2908 2010-06-21 DJ Delorie <dj@redhat.com>
2910 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2911 allow these pragmas anywhere.
2913 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2916 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2917 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2918 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2919 ggc_strdup instead of xstrdup.
2921 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2923 * c-cppbuiltin.c: Include cpp-id-data.h.
2924 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2925 (lazy_hex_fp_value): New function.
2926 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2928 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2930 * c-gimplify.c: Do not include tree-flow.h
2932 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2935 * c-common.c: Rename targetm member:
2936 targetm.enum_va_list -> targetm.enum_va_list_p
2938 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2940 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2942 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2944 * c-cppbuiltin.c: Do not include except.h.
2946 2010-06-24 Andi Kleen <ak@linux.intel.com>
2948 * c-common.c (warn_for_omitted_condop): New.
2949 * c-common.h (warn_for_omitted_condop): Add prototype.
2951 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2953 * c.opt (lang-objc): Remove.
2954 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2956 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2958 * c-opts.c: Include "tm_p.h".
2960 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2962 * c-common.c (parse_optimize_options): Update call to
2965 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2967 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2968 new type of types_used_by_cur_var_decl.
2970 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2973 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2974 for C++ standard compliance.
2976 2010-06-16 Jason Merrill <jason@redhat.com>
2978 * c.opt: Add -Wnoexcept.
2980 2010-06-16 Richard Guenther <rguenther@suse.de>
2983 * c-common.c (c_common_truthvalue_conversion): Remove
2984 premature and wrong optimization concering ADDR_EXPRs.
2986 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2988 * c-ada-spec.c (dump_sloc): Remove column info.
2989 (is_simple_enum): New function.
2990 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2991 enum types when relevant.
2993 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2995 * c-common.c (conversion_warning): Warn at expression
2998 2010-06-10 Joseph Myers <joseph@codesourcery.com>
3000 * c-opts.c (c_common_handle_option): Don't handle
3003 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3005 * c-pragma.c (push_alignment): Use typed GC allocation.
3006 (handle_pragma_push_options): Likewise.
3008 * c-common.c (parse_optimize_options): Likewise.
3010 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3013 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3015 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3016 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3017 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3018 flag_signed_bitfields, warn_strict_null_sentinel,
3019 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3020 flag_gen_declaration, flag_no_gnu_keywords,
3021 flag_implement_inlines, flag_implicit_templates,
3022 flag_implicit_inline_templates, flag_optional_diags,
3023 flag_elide_constructors, flag_default_inline, flag_rtti,
3024 flag_conserve_space, flag_access_control, flag_check_new,
3025 flag_new_for_scope, flag_weak, flag_working_directory,
3026 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3027 flag_enforce_eh_specs, flag_threadsafe_statics,
3028 flag_pretty_templates): Remove.
3029 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3030 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3031 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3032 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3033 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3034 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3035 flag_no_gnu_keywords, flag_implement_inlines,
3036 flag_implicit_templates, flag_implicit_inline_templates,
3037 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3038 flag_rtti, flag_conserve_space, flag_access_control,
3039 flag_check_new, flag_new_for_scope, flag_weak,
3040 flag_working_directory, flag_use_cxa_atexit,
3041 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3042 flag_threadsafe_statics, flag_pretty_templates,
3043 warn_strict_null_sentinel): Remove.
3044 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3045 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3046 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3047 fimplicit-inline-templates, fimplicit-templates,
3048 flax-vector-conversions, fms-extensions, fnil-receivers,
3049 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3050 frtti, fshort-double, fshort-enums, fshort-wchar,
3051 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3052 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3053 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3054 gen-decls, undef): Use Var.
3055 (fdefault-inline, foptional-diags): Document as doing nothing.
3056 * c-opts.c (c_common_handle_option): Remove cases for options now
3057 using Var. Mark ignored options as such.
3059 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3061 * c-common.c: Moved to here from parent directory.
3062 * c-common.def: Likewise.
3063 * c-common.h: Likewise.
3064 * c-cppbuiltin.c: Likewise.
3065 * c-dump.c: Likewise.
3066 * c-format.c: Likewise.
3067 * c-format.h : Likewise.
3068 * c-gimplify.c: Likewise.
3069 * c-lex.c: Likewise.
3070 * c-omp.c: Likewise.
3072 * c-opts.c: Likewise.
3073 * c-pch.c: Likewise.
3074 * c-ppoutput.c: Likewise.
3075 * c-pragma.c: Likewise.
3076 * c-pragma.h: Likewise.
3077 * c-pretty-print.c: Likewise.
3078 * c-pretty-print.h: Likewise.
3079 * c-semantics.c: Likewise.
3080 * stub-objc.c: Likewise.
3082 * c-common.c: Include gt-c-family-c-common.h.
3083 * c-pragma.c: Include gt-c-family-c-pragma.h.
3085 Copyright (C) 2010-2013 Free Software Foundation, Inc.
3087 Copying and distribution of this file, with or without modification,
3088 are permitted in any medium without royalty provided the copyright
3089 notice and this notice are preserved.