c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
[gcc.git] / gcc / c-family / ChangeLog
1 2013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2
3 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4 (dump_ada_specs): Adjust prototype of second callback.
5 * c-ada-spec.c (cpp_check): New global variable.
6 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
7 (print_generic_ada_decl): Likewise.
8 (has_static_fields): Change return type to bool and add guard.
9 (has_nontrivial_methods): New predicate.
10 (is_tagged_type): Change return type to bool.
11 (separate_class_package): Call has_nontrivial_methods.
12 (pp_ada_tree_identifier): Minor tweaks.
13 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
14 (dump_ada_array_domains): Likewise.
15 (dump_ada_array_type): Likewise.
16 (dump_template_types): Remove cpp_check parameter and do not pass it to
17 dump_generic_ada_node.
18 (dump_ada_template): Likewise.
19 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
20 recursively.
21 (print_ada_methods): Change return type to integer. Remove cpp_check
22 parameter and do not pass it down.
23 (dump_nested_types): Remove cpp_check parameter and do not pass it to
24 dump_generic_ada_node.
25 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
26 accessing methods.
27 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
28 down. Use has_nontrivial_methods to recognize C++ classes. Use return
29 value of print_ada_methods.
30 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
31 Set cpp_check to it before invoking dump_ada_nodes.
32 (dump_ada_specs): Likewise.
33
34 2013-11-03 Marek Polacek <polacek@redhat.com>
35
36 * c-ubsan.c: Don't include hash-table.h.
37 (ubsan_instrument_vla): New function.
38 * c-ubsan.h: Declare it.
39
40 2013-10-31 David Malcolm <dmalcolm@redhat.com>
41
42 Automated part of renaming of symtab_node_base to symtab_node.
43
44 Patch autogenerated by rename_symtab.py from
45 https://github.com/davidmalcolm/gcc-refactoring-scripts
46 revision 58bb219cc090b2f4516a9297d868c245495ee622
47
48 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
49 symtab_node_base to symtab_node.
50
51 2013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
52
53 Implement C++14 digit separators.
54 * c-lex.c (interpret_float): Remove digit separators from scratch string
55 before building real literal.
56
57 2013-10-30 Jakub Jelinek <jakub@redhat.com>
58
59 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
60
61 2013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
62
63 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
64 fields.
65 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
66 enabled.
67 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
68 (insert_cilk_frame): New prototype.
69 (cilk_init_builtins): Likewise.
70 (gimplify_cilk_spawn): Likewise.
71 (c_cilk_install_body_w_frame_cleanup): Likewise.
72 (cilk_detect_spawn_and_unwrap): Likewise.
73 (cilk_set_spawn_marker): Likewise.
74 (build_cilk_sync): Likewise.
75 (build_cilk_spawn): Likewise.
76 * cilk.c: New file.
77
78 2013-10-29 David Malcolm <dmalcolm@redhat.com>
79
80 Patch autogenerated by refactor_symtab.py from
81 https://github.com/davidmalcolm/gcc-refactoring-scripts
82 revision 58bb219cc090b2f4516a9297d868c245495ee622
83
84 * c-gimplify.c (c_genericize): Update for conversion of symtab types
85 to a true class hierarchy.
86 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
87
88 2013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
89
90 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
91
92 2013-10-26 Jeff Law <law@redhat.com>
93
94 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
95 * c-family/c.opt: Ignore and warn for mudflap options.
96
97 2013-10-24 Tobias Burnus <burnus@net-b.de>
98
99 PR other/33426
100 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
101 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
102
103 2013-10-23 Jason Merrill <jason@redhat.com>
104
105 * c-format.c (gcc_cxxdiag_char_table): Add %X.
106
107 2013-10-11 Jakub Jelinek <jakub@redhat.com>
108
109 * c-common.h (omp_clause_mask::operator !=): New method.
110 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
111 instead of if (mask & something) tests everywhere.
112
113 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
114 201307 instead of 201107.
115 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
116 (c_common_attribute_table): Add "omp declare target" and
117 "omp declare simd" attributes.
118 (handle_omp_declare_target_attribute,
119 handle_omp_declare_simd_attribute): New functions.
120 * c-omp.c: Include c-pragma.h.
121 (c_finish_omp_taskgroup): New function.
122 (c_finish_omp_atomic): Add swapped argument, if true,
123 build the operation first with rhs, lhs arguments and use NOP_EXPR
124 build_modify_expr.
125 (c_finish_omp_for): Add code argument, pass it down to make_code.
126 (c_omp_split_clauses): New function.
127 (c_split_parallel_clauses): Removed.
128 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
129 c_omp_declare_simd_clauses_to_decls): New functions.
130 * c-common.h (omp_clause_mask): New type.
131 (OMP_CLAUSE_MASK_1): Define.
132 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
133 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
134 omp_clause_mask::operator |, omp_clause_mask::operator &,
135 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
136 omp_clause_mask::operator ==): New methods.
137 (enum c_omp_clause_split): New.
138 (c_finish_omp_taskgroup): New prototype.
139 (c_finish_omp_atomic): Add swapped argument.
140 (c_finish_omp_for): Add code argument.
141 (c_omp_split_clauses): New prototype.
142 (c_split_parallel_clauses): Removed.
143 (c_omp_declare_simd_clauses_to_numbers,
144 c_omp_declare_simd_clauses_to_decls): New prototypes.
145 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
146 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
147 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
148 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
149 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
150 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
151 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
152 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
153 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
154 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
155 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
156 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
157 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
158 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
159 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
160 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
161 PRAGMA_OMP_CLAUSE_UNIFORM.
162
163 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
164
165 PR tree-optimization/20318
166 * c-common.c (handle_returns_nonnull_attribute): New function.
167 (c_common_attribute_table): Add returns_nonnull.
168
169 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
170
171 PR c++/19476
172 * c.opt (fcheck-new): Move to common.opt.
173
174 2013-09-25 Marek Polacek <polacek@redhat.com>
175 Jakub Jelinek <jakub@redhat.com>
176
177 PR sanitizer/58413
178 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
179 an expression if we can prove it is correct.
180 (ubsan_instrument_division): Likewise. Remove unnecessary
181 check.
182
183 2013-09-18 Marek Polacek <polacek@redhat.com>
184
185 PR sanitizer/58411
186 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
187 Declare it.
188 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
189
190 2013-09-14 Iain Sandoe <iain@codesourcery.com>
191
192 PR target/48094
193 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
194 fobjc-gc, freplace-objc-classes): Accept for LTO.
195
196 2013-09-13 Jacek Caban <jacek@codeweavers.com>
197
198 * c-target.def: New hook
199
200 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
201
202 PR c++/43452
203 * c.opt (Wdelete-incomplete): Add.
204
205 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
206
207 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
208 (vector_types_compatible_elements_p): New function.
209 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
210 declaration.
211 (vector_types_compatible_elements_p): Declare.
212
213 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
214
215 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
216 a virtual member function.
217 (pp_simple_type_specifier): Remove.
218 (pp_c_type_specifier): Likewise.
219 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
220 Rename from pp_c_type_specifier. Adjust.
221 (c_pretty_printer::c_pretty_printer): Do not assign to
222 simple_type_specifier.
223
224 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
225
226 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
227 member function.
228 (c_pretty_printer::storage_class_specifier): Likewise.
229 (c_pretty_printer::initializer): Likewise.
230 (pp_declaration): Remove.
231 (pp_declaration_specifiers): Likewise.
232 (pp_abstract_declarator): Likewise.
233 (pp_declarator): Likewise.
234 (pp_type_id): Likewise.
235 (pp_statement): Likewise.
236 (pp_constant): Likewise.
237 (pp_id_expression): Likewise.
238 (pp_primary_expression): Likewise.
239 (pp_unary_expression): Likewise.
240 (pp_multiplicative_expression): Likewise.
241 (pp_conditional_expression): Likewise.
242 (pp_assignment_expression): Likewise.
243 (pp_expression): Likewise.
244 (pp_c_type_id): Likewise.
245 (pp_c_storage_class_specifier): Likewise.
246 * c-pretty-print.c (pp_c_type_cast): Tidy.
247 (pp_c_pointer): Likewise.
248 (pp_c_type_specifier): Likewise.
249 (pp_c_parameter_type_list): Likewise.
250 (pp_c_function_definition): Likewise.
251 (pp_c_init_declarator): Likewise.
252 (pp_c_initializer_list): Likewise.
253 (pp_c_constructor_elts): Likewise.
254 (c_pretty_printer::direct_abstract_declarator): Likewise.
255 (c_pretty_printer::declaration_specifiers): Likewise.
256 (c_pretty_printer::primary_expression): Likewise.
257 (c_pretty_printer::postfix_expression): Likewise.
258 (c_pretty_printer::type_id): Rename from pp_c_type_id.
259 (c_pretty_printer::storage_class_specifier): Rename from
260 pp_c_storage_class_specifier.
261 (c_pretty_printer::initializer): Rename from pp_c_initializer.
262 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
263 storage_class_specifier, initializer, offset_list, flags.
264
265 2013-08-30 Marek Polacek <polacek@redhat.com>
266
267 * c-ubsan.c: New file.
268 * c-ubsan.h: New file.
269
270 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
271
272 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
273 member function.
274 (c_pretty_printer::declaration_specifiers): Likewise.
275 (c_pretty_printer::declarator): Likewise.
276 (c_pretty_printer::abstract_declarator): Likewise.
277 (c_pretty_printer::direct_abstract_declarator): Likewise.
278 (c_pretty_printer::direct_declarator): Likewise.
279 (c_pretty_printer::function_specifier): Likewise.
280 (pp_declaration): Adjust.
281 (pp_declaration_specifiers): Likewise.
282 (pp_abstract_declarator): Likewise.
283 (pp_direct_declarator): Likewise.
284 (pp_function_specifier): Likewise.
285 (pp_direct_abstract_declarator): Remove as unused.
286 (pp_c_declaration): Remove.
287 (pp_c_declaration_specifiers): Likewise.
288 (pp_c_declarator): Likewise.
289 (pp_c_direct_declarator): Likewise.
290 (pp_c_function_specifier): Likewise.
291 (pp_c_direct_abstract_declarator): Likewise.
292 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
293 from pp_c_abstract_declarator. Adjust.
294 (c_pretty_printer::direct_abstract_declarator): Rename from
295 pp_c_direct_abstract_declarator. Adjust.
296 (c_pretty_printer::function_specifier): Rename from
297 pp_c_function_specifier. Adjust.
298 (c_pretty_printer::declaration_specifiers): Rename from
299 pp_c_declaration_specifiers. Adjust.
300 (c_pretty_printer::direct_declarator): Rename from
301 pp_c_direct_declarator. Adjust.
302 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
303 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
304 (c_pretty_printer::c_pretty_printer): Do not assign to
305 declaration, declaration_specifiers, declarator,
306 direct_declarator, direct_abstract_declarator, function_specifier.
307
308 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
309
310 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
311 virtual member function.
312 (c_pretty_printer::multiplicative_expression): Likewise.
313 (c_pretty_printer::conditional_expression): Likewise.
314 (c_pretty_printer::assignment_expression): Likewise.
315 (c_pretty_printer::expression): Likewise.
316 (pp_unary_expression): Adjust.
317 (pp_multiplicative_expression): Likewise.
318 (pp_assignment_expression): Likewise.
319 (pp_conditional_expression): Likewise.
320 (pp_expression): Likewise.
321 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
322 from pp_c_unary_expression. Adjust.
323 (c_pretty_printer::multiplicative_expression): Rename from
324 pp_c_multiplicative_expression. Adjust.
325 (c_pretty_printer::conditional_expression): Rename from
326 pp_c_conditional_expression. Adjust.
327 (c_pretty_printer::assignment_expression): Rename from
328 pp_c_assignment_expression. Adjust.
329 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
330 (c_pretty_printer::c_pretty_printer): Do not assign to
331 unary_expression, multiplicative_expression,
332 conditional_expression, expression.
333
334 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
335
336 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
337 virtual member function.
338 (pp_postfix_expression): Adjust.
339 (pp_c_postfix_expression): Remove.
340 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
341 from pp_c_postfix_expression. Adjust.
342 (c_pretty_printer::c_pretty_printer): Do not assign to
343 postfix_expression.
344
345 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
346
347 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
348 virtua member function.
349 (pp_primary_expression): Adjust.
350 (pp_c_primary_expression): Remove.
351 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
352 from pp_c_primary_expression. Adjust.
353 (pp_c_initializer_list): Use pp_primary_expression.
354 (c_pretty_printer::c_pretty_printer): Do not assign to
355 primary_expression.
356
357 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
358
359 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
360 * c-pretty-print.c (M_): Remove.
361 (c_pretty_printer::translate_string): Define.
362 (pp_c_type_specifier): Use it.
363 (pp_c_primary_expression): Likewise.
364 (pp_c_expression): Likewise.
365
366 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
367
368 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
369 virtual function.
370 (pp_c_id_expression): Remove.
371 (pp_id_expression): Adjust.
372 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
373 pp_c_id_expression. Adjust.
374 (pp_c_postfix_expression): Use pp_id_expression.
375 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
376
377 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
378
379 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
380 member function.
381 (pp_constant): Adjust.
382 (pp_c_constant): Remove.
383 * c-pretty-print.c (c_pretty_printer::constant): Rename from
384 pp_c_constant. Adjust.
385 (pp_c_constant)
386 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
387 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
388
389 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
390
391 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
392 (c_pretty_printer::c_pretty_printer): Declare.
393 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
394 c_pretty_printer_init. Adjust.
395 (print_c_tree): Do not call c_pretty_printer_init.
396 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
397
398 2013-08-09 Arnaud Charlet <charlet@adacore.com>
399
400 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
401
402 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
403
404 PR c++/58080
405 * c-common.c (pointer_int_sum): Add bool parameter.
406 * c-common.h (pointer_int_sum): Adjust declaration.
407
408 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
409
410 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
411 c_pretty_printer variable.
412
413 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
414
415 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
416 (pp_base): Remove.
417 (pp_c_base): Likewise. Adjust users.
418 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
419 (pp_c_whitespace): Do not call pp_base.
420 (pp_c_left_paren): Likewise.
421 (pp_c_right_paren): Likewise.
422 (pp_c_left_brace): Likewise.
423 (pp_c_right_brace): Likewise.
424 (pp_c_left_bracket): Likewise.
425 (pp_c_right_bracket): Likewise.
426 (pp_c_dot): Likewise.
427 (pp_c_ampersand): Likewise.
428 (pp_c_star): Likewise.
429 (pp_c_arrow): Likewise.
430 (pp_c_semicolon): Likewise.
431 (pp_c_complement): Likewise.
432 (pp_c_exclamation): Likewise.
433 (pp_c_direct_declarator): Likewise.
434 (pp_c_ws_string): Likewise.
435 (pp_c_identifier): Likewise.
436 (pp_c_statement): Likewise.
437 (print_c_tree): Likewise.
438
439 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
440
441 PR c++/58072
442 * c-common.c (c_parse_error): Catch user-defined literal tokens and
443 provide useful error strings.
444
445 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
446
447 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
448 printer functions instead of pp_string or operators and punctuators.
449 (dump_generic_ada_node): Likewise.
450 * c-pretty-print.c (pp_c_type_specifier): Likewise.
451 (pp_c_relational_expression): Likewise.
452 (pp_c_logical_or_expression): Likewise.
453
454 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
455
456 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
457 functions instead of pp_character.
458 (pp_ada_tree_identifier): Likewise.
459 (dump_ada_double_name): Likewise.
460 (dump_ada_function_declaration): Likewise.
461 (dump_ada_array_domains): Likewise.
462 (dump_template_types): Likewise.
463 (dump_generic_ada_node): Likewise.
464 (print_ada_declaration): Likewise.
465 (print_ada_struct_decl): Likewise.
466 * c-pretty-print.c (pp_c_integer_constant): Likewise.
467
468 2013-07-23 Tom Tromey <tromey@redhat.com>
469
470 * c-common.h (enum rid) <RID_GENERIC>: New constant.
471 * c-common.c (c_common_reswords): Add _Generic.
472
473 2013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
474
475 * c-common.c: Fix typos.
476 * c-common.h: Likewise.
477
478 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
479
480 PR c++/55203
481 * c-common.c (c_common_attribute_table): Add warn_unused.
482 (handle_warn_unused_attribute): New.
483
484 2013-07-10 Jakub Jelinek <jakub@redhat.com>
485
486 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
487 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
488
489 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
490
491 PR c++/57869
492 * c.opt: Add Wconditionally-supported.
493
494 2013-07-08 Graham Stott <graham.stott@btinternet.com>
495
496 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
497 unused variables l_length and l_node.
498
499 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
500
501 PR c/57821
502 * c-common.c (complete_array_type): Delay folding first index
503 like other indices. When folding, check for index overflow.
504
505 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
506
507 PR c++/57509
508 * c-common.h (c_build_vec_perm_expr): New complain argument.
509 * c-common.c (c_build_vec_perm_expr): Likewise.
510 Use save_expr also in C++.
511
512 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
513
514 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
515 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
516 * c-opts.c (c_common_post_options): Likewise.
517
518 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
519
520 * array-notation-common.c (length_mismatch_in_expr): Changed the
521 parameter type's from a dynamic array to a vec_tree. Also removed
522 the size parameters.
523 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
524 the change above.
525
526 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
527
528 * c-common.h (struct cilkplus_an_parts): New structure.
529 (struct cilkplus_an_loop_parts): Likewise.
530 (cilkplus_extract_an_triplets): New prototype.
531 (fix_sec_implicit_args): Likewise.
532 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
533 (fix_sec_implicit_args): Likewise.
534
535 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
536
537 * array-notation-common.c (find_inv_trees): Removed an unwanted
538 typecasting.
539 * c-common.h (struct inv_list::additional_tcodes): Changed type from
540 enum rid to enum tree_code.
541
542 2013-06-11 Jan Hubicka <jh@suse.cz>
543
544 * c-common.c (handle_alias_ifunc_attribute): Do not set
545 DECL_EXTERNAL for weakref variables.
546 * c-pragma.c (handle_pragma_weak): Make sure aliases
547 are not declared as external.
548
549 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
550
551 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
552 function from c/c-array-notation.c.
553 (is_cilkplus_reduce_builtin): Likewise.
554 (find_rank): Likewise.
555 (extract_array_notation_exprs): Likewise.
556 (replace_array_notations): Likewise.
557 (find_inv_trees): Likewise.
558 (replace_inv_trees): Likewise.
559 (contains_array_notation_expr): Likewise.
560 (find_correct_array_notation_type): Likewise.
561 * c-common.h (struct inv_list): Moved this struct from the file
562 c/c-array-notation.c and added a new field called additional tcodes.
563 (length_mismatch_in_expr_p): New prototype.
564 (is_cilkplus_reduce_builtin): Likewise.
565 (find_rank): Likewise.
566 (extract_array_notation_exprs): Likewise.
567 (replace_array_notation): Likewise.
568 (find_inv_trees): Likewise.
569 (replace_inv_trees): Likewise.
570 (find_correct_array_notation_type): Likewise.
571
572 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
573
574 * c-common.c (c_define_builtins): When cilkplus is enabled, the
575 function array_notation_init_builtins is called.
576 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
577 * c-common.def (ARRAY_NOTATION_REF): New tree.
578 * c-common.h (build_array_notation_expr): New function declaration.
579 (build_array_notation_ref): Likewise.
580 (extract_sec_implicit_index_arg): New extern declaration.
581 (is_sec_implicit_index_fn): Likewise.
582 (ARRAY_NOTATION_CHECK): New define.
583 (ARRAY_NOTATION_ARRAY): Likewise.
584 (ARRAY_NOTATION_START): Likewise.
585 (ARRAY_NOTATION_LENGTH): Likewise.
586 (ARRAY_NOTATION_STRIDE): Likewise.
587 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
588 ARRAY_NOTATION_REF.
589 (pp_c_expression): Likewise.
590 * c.opt (flag_enable_cilkplus): New flag.
591 * array-notation-common.c: New file.
592
593 2013-05-14 Jakub Jelinek <jakub@redhat.com>
594
595 PR c++/57274
596 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
597
598 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
599
600 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
601 vectors.
602
603 2013-05-07 Han Shen <shenhan@google.com>
604
605 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
606
607 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
608
609 * c-common.c (check_user_alignment): Emit error for negative values.
610
611 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
612
613 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
614
615 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
616
617 * c-cppbuiltin.c (c_cpp_builtins): Do not define
618 __GXX_EXPERIMENTAL_CXX1Y__.
619
620 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
621 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
622
623 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
624 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
625 to simply use OPT_Wpointer_arith.
626 (c_sizeof_or_alignof_type): Likewise.
627
628 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
629
630 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
631
632 2013-04-12 Jakub Jelinek <jakub@redhat.com>
633
634 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
635 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
636 specifiers.
637
638 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
639
640 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
641
642 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
643
644 * c-common.c (pointer_int_sum): Remove dead code.
645
646 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
647
648 PR middle-end/56524
649 * c-common.c (handle_optimize_attribute): Don't call
650 save_optabs_if_changed.
651
652 2013-03-05 Jakub Jelinek <jakub@redhat.com>
653
654 PR middle-end/56461
655 * c-pch.c (pch_init): Free target_validity at the end.
656
657 2013-03-04 Jakub Jelinek <jakub@redhat.com>
658
659 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
660
661 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
662 Jakub Jelinek <jakub@redhat.com>
663
664 PR sanitizer/56454
665 * c-common.c (handle_no_sanitize_address_attribute): New function.
666 (c_common_attribute_table): Add no_sanitize_address attribute.
667 (handle_no_address_safety_analysis_attribute): Add
668 no_sanitize_address attribute, not no_address_safety_analysis
669 attribute.
670
671 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
672
673 PR target/52555
674 * c-common.c (handle_optimize_attribute): Call
675 save_optabs_if_changed.
676
677 2013-02-18 Jakub Jelinek <jakub@redhat.com>
678 Steven Bosscher <steven@gcc.gnu.org>
679
680 PR pch/54117
681 * c-opts.c (c_common_post_options): If debug info is enabled
682 and non-dwarf*, refuse to load PCH files and when writing PCH
683 file warn.
684
685 2013-02-05 Jakub Jelinek <jakub@redhat.com>
686
687 PR middle-end/56167
688 * c-common.c (handle_error_attribute): Fix condition.
689
690 2013-01-30 Jakub Jelinek <jakub@redhat.com>
691
692 PR c++/55742
693 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
694
695 2013-01-18 Jason Merrill <jason@redhat.com>
696
697 PR target/54908
698 * c.opt (-fextern-tls-init): New.
699 * c-opts.c (c_common_post_options): Handle it.
700
701 2013-01-09 Jakub Jelinek <jakub@redhat.com>
702
703 PR c/48418
704 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
705 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
706 and is either negative or bigger or equal to type precision
707 of the first operand.
708
709 2012-12-03 Marek Polacek <polacek@redhat.com>
710
711 PR c/55570
712 * c-common.c (check_user_alignment): Swap order of tests,
713 check TREE_CODE first.
714
715 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
716
717 PR c++/52654
718 * c-common.h (overflow_type): New enum.
719 (build_userdef_literal): Add overflow_type argument.
720 (tree_userdef_literal): Add overflow_type.
721 (USERDEF_LITERAL_OVERFLOW): New access macro.
722 * c-common.c (build_userdef_literal): Add overflow_type
723 argument.
724 * c-lex.c (c_lex_with_flags): Add overflow_type to
725 build_userdef_literal calls.
726 (interpret_integer, interpret_float): Add overflow_type argument.
727
728 2012-11-28 Richard Biener <rguenther@suse.de>
729
730 PR c/35634
731 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
732 here and use a type with proper overflow behavior for types that would
733 need to be promoted for the arithmetic.
734
735 2012-11-23 Jakub Jelinek <jakub@redhat.com>
736
737 PR sanitizer/55435
738 * c-common.c (handle_no_address_safety_analysis_attribute): New
739 function.
740 (c_common_attribute_table): Add no_address_safety_analysis.
741
742 2012-11-16 Simon Baldwin <simonb@google.com>
743
744 * c.opt: Add f[no-]canonical-system-headers.
745 * c-opts.c (c_common_handle_option): Handle
746 OPT_fcanonical_system_headers.
747
748 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
749
750 PR c++/54413
751 * c-opts.c (c_common_handle_option): Set new flags.
752 * c.opt: Describe new flags.
753
754 2012-11-09 Jason Merrill <jason@redhat.com>
755
756 * c.opt (Wabi-tag): New.
757
758 2012-11-09 Andi Kleen <ak@linux.intel.com>
759
760 PR 55139
761 * c-common.c (get_atomic_generic_size): Mask with
762 MEMMODEL_MASK
763
764 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
765
766 PR c/53063
767 * c.opt (Wformat): Make it Alias Wformat=1.
768 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
769 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
770 LangEnabledBy.
771 (Wformat=): RejectNegative. Use LangEnabledBy.
772 (Wnonnull): Use LangEnabledBy.
773 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
774 * c-format.c (set_Wformat): Delete.
775 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
776 (maybe_read_dollar_number): Likewise.
777 (avoid_dollar_number): Likewise.
778 (finish_dollar_format_checking): Likewise.
779 (check_format_info): Likewise.
780 (check_format_info_main): Likewise.
781 (check_format_types): Likewise.
782 (format_type_warning): Likewise.
783 * c-common.c (int): Likewise.
784 (check_function_sentinel): Likewise.
785 * c-common.h (warn_format,set_Wformat): Do not declare here.
786
787 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
788
789 PR c/53063
790 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
791 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
792 Use LangEnabledBy.
793 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
794 common.opt.
795 (Wvariadic-macros): Init(1).
796 * c-opts.c (c_common_handle_option): Do not handle them
797 explicitly.
798 (c_common_post_options): Likewise.
799 (sanitize_cpp_opts): warn_unused_macros is now
800 cpp_warn_unused_macros.
801 (push_command_line_include): Likewise.
802 * c-common.c (warn_unknown_pragmas): Do not define.
803 * c-common.h (warn_unknown_pragmas): Do not declare.
804
805 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
806
807 PR c/51294
808 * c-common.c (conversion_warning): Handle conditional expressions.
809
810 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
811
812 PR c++/54930
813 * c.opt (Wreturn_local_addr): Define new option.
814
815 2012-10-25 Jason Merrill <jason@redhat.com>
816
817 * c.opt (Wvirtual-move-assign): New.
818
819 * c.opt (Winherited-variadic-ctor): New.
820
821 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
822
823 PR c++/54427
824 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
825
826 2012-10-23 Joseph Myers <joseph@codesourcery.com>
827
828 * c-common.h (pch_cpp_save_state): Declare.
829 * c-target.def (c_preinclude): New hook.
830 * c-opts.c (done_preinclude): New.
831 (push_command_line_include): Handle default preincluded header.
832 (cb_file_change): Call pch_cpp_save_state when calling
833 push_command_line_include.
834 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
835 (pch_cpp_save_state): New.
836 (pch_init): Call pch_cpp_save_state conditionally, instead of
837 calling cpp_save_state.
838
839 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
840
841 PR c/53063
842 PR c/40989
843 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
844 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
845 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
846 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
847 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
848 * c-opts.c (c_common_handle_option): Remove explicit handling from
849 here.
850 (c_common_post_options): Likewise.
851
852 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
853
854 * c-ada-spec.c (LOCATION_COL): Delete.
855 (compare_location): New function.
856 (compare_node): Use it.
857 (compare_comment): Likewise.
858
859 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
860
861 PR c/53063
862 PR c/40989
863 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
864 * c-opts.c (c_common_handle_option): Do not set them here. Add
865 comment.
866 (c_common_post_options): Likewise.
867
868 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
869
870 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
871 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
872 Remove POINTER_TYPE handling, add large unsigned handling and use
873 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
874
875 2012-10-12 Jakub Jelinek <jakub@redhat.com>
876
877 PR c/54381
878 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
879 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
880 locs and array of 3 trees instead of just single loc and single
881 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
882 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
883 For *cmp* builtins that take two sources strings report warnings
884 about first and second source, not about destination and source.
885
886 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
887
888 PR c++/53055
889 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
890
891 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
892
893 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
894 declaring something coming from another file.
895
896 2012-10-10 Arnaud Charlet <charlet@adacore.com>
897
898 PR ada/54845
899 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
900
901 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
902
903 PR c++/54194
904 * c-common.c (warn_about_parentheses): Add location_t parameter;
905 use EXPR_LOC_OR_LOC.
906 * c-common.h: Update declaration.
907
908 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
909
910 PR c++/54427
911 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
912 more operations. Make error messages optional.
913 * c-common.h (enum stv_conv): Moved from c-typeck.c.
914 (scalar_to_vector): Declare.
915
916 2012-10-08 Jason Merrill <jason@redhat.com>
917
918 * c-common.c (c_common_reswords): Add thread_local.
919
920 2012-10-08 Dodji Seketeli <dodji@redhat.com>
921
922 PR c++/53528 C++11 attribute support
923 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
924 new functions.
925 * c-common.c (check_cxx_fundamental_alignment_constraints): New
926 static function.
927 (handle_aligned_attribute): In choose strictest alignment
928 among many. Use new check_cxx_fundamental_alignment_constraints.
929 (handle_transparent_union_attribute): In c++11 attribute syntax,
930 don't look through typedefs.
931
932 2012-10-04 Arnaud Charlet <charlet@adacore.com>
933
934 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
935 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
936 out of dumpfile.h.
937
938 2012-09-25 Dehao Chen <dehao@google.com>
939
940 PR middle-end/54645
941 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
942 map when read in the pch.
943
944 2012-09-18 Arnaud Charlet <charlet@adacore.com>
945
946 * c-ada-spec.c: Style fixes.
947
948 2012-09-18 Thomas Quinot <quinot@adacore.com>
949
950 * c.opt (-fada-spec-parent): Define new command line switch.
951 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
952 is specified, generate binding spec as a child of the specified unit.
953
954 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
955 Manuel López-Ibáñez <manu@gcc.gnu.org>
956
957 PR c++/53210
958 * c.opt ([Winit-self]): Enabled by -Wall in C++.
959
960 2012-08-23 Arnaud Charlet <charlet@adacore.com>
961
962 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
963 for pointers, and add missing Convention C pragma.
964 (print_ada_struct_decl): Add missing aliased keyword.
965 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
966
967 2012-08-17 Jakub Jelinek <jakub@redhat.com>
968
969 * c-common.c (sizeof_pointer_memaccess_warning): New function.
970 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
971 * c-opts.c (c_common_handle_option): Enable it for -Wall.
972 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
973 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
974
975 2012-08-10 Richard Guenther <rguenther@suse.de>
976
977 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
978
979 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
980
981 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
982 instead of separate pp_newline and pp_flush.
983 (print_c_tree): Likewise.
984
985 2012-07-26 Richard Henderson <rth@redhat.com>
986
987 * c-common.c (handle_hot_attribute): Allow labels.
988 (handle_cold_attribute): Likewise.
989
990 2012-07-20 Jakub Jelinek <jakub@redhat.com>
991
992 PR c++/28656
993 * c-common.c (check_function_nonnull): Handle multiple nonnull
994 attributes properly.
995
996 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
997
998 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
999 * c-ada-spec.c: Likewise.
1000 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1001
1002 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1003
1004 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1005 Remove code conditional on it.
1006
1007 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1008
1009 * c-gimplify.c: Do not include basic-block.h.
1010 * c-common.c: Do not include linfuncs.h.
1011
1012 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1013
1014 * c-common.h: Include tree.h.
1015
1016 2012-07-02 Jason Merrill <jason@redhat.com>
1017
1018 PR c++/53524
1019 * c-common.c (get_priority): Call default_conversion.
1020
1021 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
1022
1023 * c-pch.c (c_common_write_pch): Remove unused variables.
1024
1025 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1026
1027 * cppspec.c: Moved from gcc/ to here.
1028
1029 2012-06-27 Kai Tietz <ktietz@redhat.com>
1030
1031 PR preprocessor/37215
1032 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1033
1034 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1035
1036 * c-common.h (c_common_print_pch_checksum): Remove.
1037 * c-pch.c: Do not include output.h.
1038 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1039 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1040 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1041 (struct c_pch_header): Remove.
1042 (get_ident): Update gpch version.
1043 (pch_init): Do not print executable_checksum to asm_out_file.
1044 Do not fail if there is no asm_out_file to read back from. Set
1045 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1046 (c_common_write_pch): Verify that nothing was written to asm_out_file
1047 since pch_init was called. Do not write a c_pch_header, and do not
1048 copy from asm_out_file to the PCH.
1049 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1050 the content of asm_out_file from the PCH.
1051 (c_common_print_pch_checksum): Remove.
1052 * c-opts.c (c_common_init): Print out executable_checksum directly.
1053
1054 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1055
1056 * c-target.def (objc_declare_unresolved_class_reference,
1057 objc_declare_class_definition): Add new hooks.
1058
1059 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1060
1061 * c-lex.c: Do not include output.h.
1062 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1063 Remove uses of ASM_OUTPUT_IDENT.
1064
1065 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
1066
1067 PR c++/51033
1068 * c-common.h (c_build_vec_perm_expr): Move decl here.
1069 * c-common.c (c_build_vec_perm_expr): Move definition
1070 here.
1071
1072 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1073
1074 * c.opt (fconserve-space): Turn into a no-op.
1075
1076 2012-06-04 Sterling Augustine <saugustine@google.com>
1077
1078 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1079 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1080 both the start and end of the function.
1081
1082 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1083
1084 * c-common.c: Do not include output.h.
1085 * c-pragma.c: Likewise.
1086
1087 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1088
1089 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1090 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1091 (lang_decl_name): Handle namespace decls.
1092
1093 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1094
1095 * c-ada-spec.c: Do not include output.h.
1096 * c-semantics.c: Likewise.
1097
1098 2012-05-29 Joseph Myers <joseph@codesourcery.com>
1099
1100 * c-common.c: Fix typo.
1101
1102 2012-05-29 Michael Matz <matz@suse.de>
1103
1104 * c-common.h (c_expand_decl): Remove prototype.
1105
1106 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1107
1108 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1109 * c-opts.c (c_common_handle_option): Remove code handling
1110 warn_missing_braces.
1111
1112 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1113
1114 PR c++/25137
1115 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1116 -Wmissing_braces.
1117
1118 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1119
1120 PR c++/53322
1121 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1122
1123 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1124
1125 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1126 * c-opts.c (c_common_handle_option): Do not handle explicitly
1127 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1128
1129 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1130
1131 PR preprocessor/7263
1132 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1133 to cpp_classify_number. For diagnostics, use the precise location
1134 instead of the global input_location.
1135
1136 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1137
1138 PR c++/11856
1139 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1140
1141 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1142
1143 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1144
1145 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1146
1147 PR 53063
1148 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1149 Wreorder): Use LangEnabledBy.
1150 * c-opts.c (c_common_handle_option): Do not enable them
1151 explicitly. Call lang-specific generated functions.
1152 (c_common_post_options): Do not set them here.
1153
1154 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1155
1156 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1157 Wmissing-field-initializers,Wmissing-parameter-type,
1158 Wold-style-declaration,Woverride-init): Use EnabledBy.
1159 * c-opts.c (c_common_post_options): Do not set here explicitly.
1160
1161 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1162
1163 PR 53063
1164 * c-opts.c (c_common_handle_option): Use handle_generated_option
1165 to enable sub-options.
1166
1167 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1168
1169 PR c++/53158
1170 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1171
1172 2012-05-10 Richard Guenther <rguenther@suse.de>
1173
1174 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1175 adjust commentary about TYPE_IS_SIZETYPE types.
1176
1177 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1178
1179 PR c++/53261
1180 * c-common.c (warn_logical_operator): Check that argument of
1181 integer_zerop is not NULL.
1182
1183 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1184
1185 PR c/43772
1186 * c-common.c (warn_logical_operator): Do not warn if either side
1187 is already true or false.
1188
1189 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1190
1191 PR c/51712
1192 * c-common.c (expr_original_type): New.
1193 (shorten_compare): Do not warn for enumeration types.
1194
1195 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1196
1197 * c.opt (fpermissive): Add Var(flag_permissive).
1198
1199 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1200
1201 PR c++/51033
1202 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1203 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1204
1205 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1206
1207 Add -Wvarargs option
1208 * c.opt (Wvarargs): Define new option.
1209
1210 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1211
1212 * c-common.c (check_function_arguments): Replace
1213 Wmissing-format-attribute with Wsuggest-attribute=format.
1214
1215 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1216
1217 * c.opt (Wsuggest-attribute=format): New. Alias of
1218 Wmissing-format-attribute.
1219 * c-format.c (decode_format_type): Replace
1220 Wmissing-format-attribute with Wsuggest-attribute=format.
1221 (check_function_format): Likewise.
1222
1223 2012-04-27 Ollie Wild <aaw@google.com>
1224
1225 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1226 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1227 * c.opt: Add Wliteral-suffix.
1228
1229 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1230
1231 PR c/44774
1232 * c.opt (Wpedantic): New.
1233 (pedantic): Alias Wpedantic.
1234 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1235 (c_common_post_options): Likewise.
1236 (sanitize_cpp_opts): Likewise.
1237 * c-lex.c (interpret_float): Likewise.
1238 * c-format.c (check_format_types): Likewise.
1239 * c-common.c (pointer_int_sum): Likewise.
1240 (c_sizeof_or_alignof_type): Likewise.
1241 (c_add_case_label): Likewise.
1242 (c_do_switch_warnings): Likewise.
1243 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1244
1245 2012-04-15 Jason Merrill <jason@redhat.com>
1246
1247 PR c++/52818
1248 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1249 (C_STD_NAME): Distinguish between C++98 and C++11.
1250
1251 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1252
1253 PR target/52624
1254 * c-common.h (uint16_type_node): Rename into...
1255 (c_uint16_type_node): ...this.
1256 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1257 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1258
1259 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1260
1261 * c-common.c (warn_if_unused_value): Move definition to here.
1262 * c-common.h (warn_if_unused_value): Move declaration to here.
1263
1264 2012-03-23 William Bader <williambader@hotmail.com>
1265
1266 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1267
1268 2012-03-20 Jason Merrill <jason@redhat.com>
1269
1270 * c-common.h (enum cxx_dialect): Add cxx1y.
1271 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1272 test.
1273 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1274 * c-opts.c (c_common_post_options): Likewise.
1275 (set_std_cxx1y): New.
1276 (c_common_handle_option): Call it.
1277 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1278
1279 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1280
1281 PR c++/14710
1282 * c.opt ([Wuseless-cast]): Add.
1283
1284 2012-03-16 Richard Guenther <rguenther@suse.de>
1285
1286 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1287
1288 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1289
1290 PR c++/44783
1291 * c.opt (ftemplate-backtrace-limit) Add.
1292
1293 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1294
1295 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1296 handling.
1297 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1298 (init_pragma): Don't register extern_prefix.
1299
1300 2012-03-12 Richard Guenther <rguenther@suse.de>
1301
1302 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1303 (builtin_type_for_size): Likewise.
1304
1305 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1306
1307 PR c++/52215
1308 * c-common.c (sync_resolve_params): Don't decide whether to convert
1309 or not based on TYPE_SIZE comparison, convert whenever arg_type
1310 is unsigned INTEGER_TYPE.
1311
1312 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1313
1314 PR c/52118
1315 * c.opt ([Wunused-local-typedefs]): Fix description.
1316
1317 2012-01-24 Mike Stump <mikestump@comcast.net>
1318
1319 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1320 exactly.
1321
1322 2012-01-18 Richard Guenther <rguenther@suse.de>
1323
1324 * c-opts.c (c_common_post_options): Reset LTO flags if
1325 we are about to generate a PCH.
1326
1327 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1328
1329 PR c++/51777
1330 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1331 use pp_unsigned_wide_integer.
1332
1333 2012-01-10 Richard Guenther <rguenther@suse.de>
1334
1335 PR middle-end/51806
1336 * c-opts.c (c_common_handle_option): Move -Werror handling
1337 to language independent code.
1338
1339 2012-01-05 Richard Guenther <rguenther@suse.de>
1340
1341 PR middle-end/51764
1342 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1343 from common.opt.
1344
1345 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1346
1347 PR c++/51316
1348 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1349 of array types with an unknown bound.
1350
1351 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1352
1353 * c-common.c (flag_isoc99): Update comment to refer to C11.
1354 (flag_isoc1x): Change to flag_isoc11.
1355 * c-common.h (flag_isoc99): Update comment to refer to C11.
1356 (flag_isoc1x): Change to flag_isoc11.
1357 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1358 C11.
1359 * c-opts.c (set_std_c1x): Change to set_std_c11.
1360 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1361 Call set_std_c11.
1362 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1363 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1364 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1365 standard.
1366 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1367 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1368 (std=gnu1x): Make alias of std=gnu11.
1369
1370 2011-12-19 Jason Merrill <jason@redhat.com>
1371
1372 PR c++/51228
1373 * c-common.c (handle_transparent_union_attribute): Check the first
1374 field if the type is complete.
1375
1376 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1377
1378 PR libstdc++/51365
1379 * c-common.c (RID_IS_FINAL): Add.
1380 * c-common.h (RID_IS_FINAL): Add.
1381
1382 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1383
1384 * c.opt (fgnu-runtime): Provide full description.
1385 (fnext-runtime): Likewise.
1386 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1387
1388 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1389
1390 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1391 predefines in one place. Add LOCK_FREE predefines.
1392 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1393 new func.
1394
1395 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1396
1397 PR c/51256
1398 * c-common.c (get_atomic_generic_size): Check for various error
1399 conditions
1400 (resolve_overloaded_atomic_exchange,
1401 resolve_overloaded_atomic_compare_exchange,
1402 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1403 error_mark_node for error conditions.
1404
1405 2011-11-08 Richard Guenther <rguenther@suse.de>
1406
1407 PR middle-end/51010
1408 c-family/
1409
1410 2011-11-07 Richard Henderson <rth@redhat.com>
1411 Aldy Hernandez <aldyh@redhat.com>
1412 Torvald Riegel <triegel@redhat.com>
1413
1414 Merged from transactional-memory.
1415
1416 * c-common.c (handle_tm_wrap_attribute,
1417 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1418 (struct c_common_reswords): Added __transaction* keywords.
1419 (struct c_common_attribute_table): Added transaction* and tm_regparm
1420 attributes.
1421 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1422 masks.
1423 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1424 find_tm_attribute): Declare.
1425
1426 2011-11-07 Jason Merrill <jason@redhat.com>
1427
1428 PR c++/35688
1429 * c-common.c, c-common.h: Revert yesterday's changes.
1430
1431 2011-11-06 Jason Merrill <jason@redhat.com>
1432
1433 PR c++/35688
1434 * c-common.c (decl_has_visibility_attr): Split out from...
1435 (c_determine_visibility): ...here.
1436 * c-common.h: Declare it.
1437
1438 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1439
1440 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1441 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1442 type.
1443 (check_user_alignment): New. Split out of
1444 handle_aligned_attribute. Disallow integer constants with
1445 noninteger types. Conditionally allow zero.
1446 (handle_aligned_attribute): Use check_user_alignment.
1447 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1448
1449 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1450 Richard Henderson <rth@redhat.com>
1451
1452 Merged from cxx-mem-model.
1453
1454 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1455 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1456 parameters that are the same type size.
1457 (get_atomic_generic_size): New. Find size of generic
1458 atomic function parameters and do typechecking.
1459 (add_atomic_size_parameter): New. Insert size into parameter list.
1460 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1461 either __atomic_exchange_n or external library call.
1462 (resolve_overloaded_atomic_compare_exchange): Restructure
1463 __atomic_compare_exchange to either _n variant or external library call.
1464 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1465 __atomic_load_n or an external library call.
1466 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1467 __atomic_store_n or an external library call.
1468 (resolve_overloaded_builtin): Handle new __atomic builtins.
1469
1470 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1471
1472 PR c++/50608
1473 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1474 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1475 <INDIRECT_REF>: Return the argument.
1476 <ARRAY_REF>: Remove special code for negative offset.
1477 Call fold_build_pointer_plus instead of size_binop.
1478 (fold_offsetof): Remove STOP_REF argument and adjust.
1479 * c-common.h (fold_offsetof_1): Declare.
1480 (fold_offsetof): Remove STOP_REF argument.
1481
1482 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1483
1484 PR c++/50810
1485 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1486 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1487 Wnarrowing for C++0x and C++98.
1488 * c.opt ([Wnarrowing]): Update.
1489
1490 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1491
1492 PR c++/44277
1493 * c.opt: Add Wzero-as-null-pointer-constant.
1494
1495 2011-10-31 Jason Merrill <jason@redhat.com>
1496
1497 * c.opt (-fdeduce-init-list): Off by default.
1498
1499 PR c++/50920
1500 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1501 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1502 and -Wc++11-compat.
1503 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1504
1505 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1506
1507 PR c++/30066
1508 * c.opt (fvisibility-inlines-hidden): Description change.
1509
1510 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1511
1512 Implement C++11 user-defined literals.
1513 * c-common.c (build_userdef_literal): New.
1514 * c-common.def: New tree code.
1515 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1516 * c-lex.c (interpret_float): Add suffix parm.
1517 (c_lex_with_flags): Build literal tokens.
1518
1519 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1520
1521 PR c++/50841
1522 Revert:
1523 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1524
1525 PR c++/50810
1526 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1527 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1528 Wnarrowing for C++0x and C++98.
1529 * c.opt ([Wnarrowing]): Update.
1530
1531 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1532
1533 PR c++/50810
1534 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1535 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1536 Wnarrowing for C++0x and C++98.
1537 * c.opt ([Wnarrowing]): Update.
1538
1539 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1540
1541 PR c++/45385
1542 * c-common.c (conversion_warning): Remove code looking for
1543 artificial operands.
1544
1545 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1546
1547 PR bootstrap/50760
1548 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1549 !NO_IMPLICIT_EXTERN_C.
1550
1551 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1552
1553 * c-common.c (c_common_reswords): Add __bases,
1554 __direct_bases.
1555 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1556
1557 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1558
1559 PR c++/50757
1560 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1561
1562 2011-10-15 Tom Tromey <tromey@redhat.com>
1563 Dodji Seketeli <dodji@redhat.com>
1564
1565 * c.opt (fdebug-cpp): New option.
1566 * c-opts.c (c_common_handle_option): Handle the option.
1567 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1568 output stream in parameter. Factorized from ...
1569 (maybe_print_line): ... this. Dump location debug information when
1570 -fdebug-cpp is in effect.
1571 (print_line_1): New static function. Takes an output stream in
1572 parameter. Factorized from ...
1573 (print_line): ... here. Dump location information when -fdebug-cpp
1574 is in effect.
1575 (scan_translation_unit): Dump location information when
1576 -fdebug-cpp is in effect.
1577
1578 2011-10-15 Tom Tromey <tromey@redhat.com>
1579 Dodji Seketeli <dodji@redhat.com>
1580
1581 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1582 without argument.
1583 * c-opts.c (c_common_handle_option)<case
1584 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1585 cases. Handle -ftrack-macro-expansion with and without argument.
1586
1587 2011-10-15 Tom Tromey <tromey@redhat.com>
1588 Dodji Seketeli <dodji@redhat.com>
1589
1590 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1591 (print_line, cb_define, do_line_change): Adjust to avoid touching
1592 the internals of struct line_map. Use the public API instead.
1593 * c-pch.c (c_common_read_pch): Likewise.
1594 * c-lex.c (fe_file_change): Likewise.
1595
1596 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1597
1598 PR c++/17212
1599 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1600
1601 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1602
1603 PR c++/33067
1604 * c-pretty-print.c (pp_c_floating_constant): Output
1605 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1606
1607 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1608
1609 * c-common.c (def_builtin_1): Delete old interface with two
1610 parallel arrays to hold standard builtin declarations, and replace
1611 it with a function based interface that can support creating
1612 builtins on the fly in the future. Change all uses, and poison
1613 the old names. Make sure 0 is not a legitimate builtin index.
1614 * c-omp.c (c_finish_omp_barrier): Ditto.
1615 (c_finish_omp_taskwait): Ditto.
1616 (c_finish_omp_flush): Ditto.
1617
1618 2011-10-11 Tristan Gingold <gingold@adacore.com>
1619
1620 * c.opt: (fallow-parameterless-variadic-functions): New.
1621
1622 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1623
1624 PR c++/33255 - Support -Wunused-local-typedefs warning
1625 * c-common.h (struct c_language_function::local_typedefs): New
1626 field.
1627 (record_locally_defined_typedef, maybe_record_typedef_use)
1628 (maybe_warn_unused_local_typedefs): Declare new functions.
1629 * c-common.c (record_locally_defined_typedef)
1630 (maybe_record_typedef_use)
1631 (maybe_warn_unused_local_typedefs): Define new functions.
1632 * c.opt: Declare new -Wunused-local-typedefs flag.
1633
1634 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1635
1636 PR middle-end/50266
1637 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1638 computations.
1639
1640 2011-09-05 Richard Guenther <rguenther@suse.de>
1641
1642 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1643 of integer_minus_one_node for empty array upper bounds.
1644
1645 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1646
1647 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1648 it's the first time it's being called on this main TU.
1649
1650 2011-08-24 Richard Guenther <rguenther@suse.de>
1651
1652 PR c/49396
1653 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1654
1655 2011-08-22 Gabriel Charette <gchare@google.com>
1656
1657 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1658 defined in cpp_init_builtins and c_cpp_builtins.
1659
1660 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1661
1662 * c-common.c (c_common_reswords): Add __builtin_complex.
1663 * c-common.h (RID_BUILTIN_COMPLEX): New.
1664
1665 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1666
1667 * c-common.c (c_common_reswords): Add _Noreturn.
1668 (keyword_is_function_specifier): Handle RID_NORETURN.
1669 * c-common.h (RID_NORETURN): New.
1670
1671 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1672
1673 * c-common.c (unsafe_conversion_p): New function. Check if it is
1674 unsafe to convert an expression to the type.
1675 (conversion_warning): Adjust, use unsafe_conversion_p.
1676 * c-common.h (unsafe_conversion_p): New function declaration.
1677
1678 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1679
1680 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1681 (c_finish_omp_taskyield): New prototype.
1682 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1683 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1684 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1685 or RHS1 have side-effects, evaluate those too in the right spot,
1686 if it is a decl and LHS is also a decl, error out if they
1687 aren't the same.
1688 (c_finish_omp_taskyield): New function.
1689 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1690 * c-pragma.c (omp_pragmas): Add taskyield.
1691 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1692 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1693 PRAGMA_OMP_CLAUSE_MERGEABLE.
1694
1695 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1696
1697 * c-common.h (set_underlying_type): Remove parm name from
1698 declaration.
1699
1700 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1701
1702 * c-pretty-print.h: Search c-common.h in c-family.
1703
1704 2011-07-22 Jason Merrill <jason@redhat.com>
1705
1706 PR c++/49793
1707 * c.opt (Wnarrowing): New.
1708
1709 PR c++/30112
1710 * c-common.h: Declare c_linkage_bindings.
1711 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1712
1713 PR c++/49813
1714 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1715 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1716 as flag_isoc99 for 'restrict'.
1717 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1718
1719 2011-07-21 Ian Lance Taylor <iant@google.com>
1720
1721 PR middle-end/49705
1722 * c-common.c (c_disable_warnings): New static function.
1723 (c_enable_warnings): New static function.
1724 (c_fully_fold_internal): Change local unused_p to bool. Call
1725 c_disable_warnings and c_enable_warnings rather than change
1726 c_inhibit_evaluation_warnings.
1727
1728 2011-07-20 Jason Merrill <jason@redhat.com>
1729
1730 PR c++/6709 (DR 743)
1731 PR c++/42603 (DR 950)
1732 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1733 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1734 (CPP_DECLTYPE): New.
1735 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1736
1737 2011-07-19 Richard Guenther <rguenther@suse.de>
1738
1739 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1740 * c-omp.c (c_finish_omp_for): Likewise.
1741
1742 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1743
1744 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1745 body on the next line.
1746
1747 2011-07-08 Jason Merrill <jason@redhat.com>
1748
1749 PR c++/45437
1750 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1751
1752 PR c++/49673
1753 * c-common.c (c_apply_type_quals_to_decl): Don't check
1754 TYPE_NEEDS_CONSTRUCTING.
1755
1756 2011-07-06 Richard Guenther <rguenther@suse.de>
1757
1758 * c-common.c (c_common_nodes_and_builtins):
1759 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1760
1761 2011-07-05 Richard Guenther <rguenther@suse.de>
1762
1763 * c-common.c (c_common_nodes_and_builtins): Build all common
1764 tree nodes first.
1765
1766 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1767
1768 * c-common.h (c_tree_chain_next): New static inline function.
1769
1770 * c-common.c (check_builtin_function_arguments): Handle
1771 BUILT_IN_ASSUME_ALIGNED.
1772
1773 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1774
1775 * c-common.c: Add sync_ or SYNC__ to builtin names.
1776 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1777
1778 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1779
1780 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1781 handler.
1782 (gen_pragma_handler): New union.
1783 (internal_pragma_handler): New type.
1784 (c_register_pragma_with_data)
1785 (c_register_pragma_with_expansion_and_data): New functions.
1786
1787 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1788 (c_register_pragma, c_register_pragma_with_expansion)
1789 (c_invoke_pragma_handler): Changed to work with
1790 internal_pragma_handler.
1791 (c_register_pragma_with_data)
1792 (c_register_pragma_with_expansion_and_data): New functions.
1793
1794 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1795
1796 * c-common.c: Include common/common-target.h.
1797 (handle_section_attribute): Use
1798 targetm_common.have_named_sections.
1799 * c-cppbuiltin.c: Include common/common-target.h.
1800 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1801
1802 2011-06-10 Richard Guenther <rguenther@suse.de>
1803
1804 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1805 to print a IDENTIFIER_NODE.
1806
1807 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1808 Joseph Myers <joseph@codesourcery.com>
1809
1810 * c.opt (fbuilding-libgcc): New option.
1811 * c-cppbuiltin.c (c_cpp_builtins): Define
1812 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1813
1814 2011-06-07 Jason Merrill <jason@redhat.com>
1815
1816 * c-common.c (max_tinst_depth): Lower default to 900.
1817
1818 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1819
1820 2011-06-07 Richard Guenther <rguenther@suse.de>
1821
1822 * c-common.c (c_common_nodes_and_builtins): Do not set
1823 size_type_node or call set_sizetype.
1824
1825 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1826
1827 PR debug/49130
1828 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1829 type when using pointer comparison to compare types.
1830
1831 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1832
1833 * c.opt: Add -Wdelete-non-virtual-dtor.
1834 * c-opts.c (c_common_handle_option): Include it in -Wall.
1835
1836 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1837
1838 PR bootstrap/49190
1839
1840 Revert:
1841 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1842
1843 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1844 not tree_common.
1845
1846 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1847
1848 PR c++/49165
1849 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1850 C++ don't call c_common_truthvalue_conversion on void type arms.
1851
1852 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1853
1854 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1855 (stmt_list_stack): Define.
1856 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1857 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1858
1859 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1860
1861 * c-common.c (warning_candidate_p): Check for BLOCKs.
1862
1863 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1864
1865 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1866 not tree_common.
1867
1868 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1869
1870 * c-common.c (def_fn_type): Remove extra va_end.
1871
1872 2011-05-23 Jason Merrill <jason@redhat.com>
1873
1874 PR c++/48106
1875 * c-common.c (c_common_get_narrower): New.
1876 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1877
1878 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1879
1880 * c-common.h (check_function_arguments): Tweak prototype of
1881 check_function_arguments.
1882 * c-common.c (check_function_arguments): Likewise. Adjust
1883 calls to check_function_nonnull, check_function_format, and
1884 check_function_sentinel.
1885 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1886 separate attributes and typelist arguments. Use
1887 FOREACH_FUNCTION_ARGS to iterate over argument types.
1888
1889 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1890
1891 * c-common.c (c_common_reswords): Reorder.
1892 * c-common.h (rid): Likewise.
1893
1894 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1895
1896 * c-common.c (def_fn_type): Don't call build_function_type, call
1897 build_function_type_array or build_varargs_function_type_array
1898 instead.
1899 (c_common_nodes_and_builtins): Likewise.
1900
1901 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1902
1903 * c-common.c (c_add_case_label): Omit the loc argument to
1904 build_case_label.
1905 * c-common.h (build_case_label): Remove.
1906 * c-semantics.c (build_case_label): Remove.
1907
1908 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1909
1910 * c-objc.h (objc_start_method_definition): Update prototype.
1911 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1912
1913 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1914
1915 * c-common.c (check_main_parameter_types): Reindent. Don't use
1916 TYPE_ARG_TYPES directly.
1917 (handle_nonnull_attribute): Likewise.
1918 (sync_resolve_params): Likewise.
1919 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1920 to check_format_string.
1921 (handle_format_attribute): Likewise.
1922 (check_format_string): Take a function type to examine instead of
1923 a type list. Use a function_arg_iterator to step through argument
1924 types.
1925
1926 2011-05-04 Richard Guenther <rguenther@suse.de>
1927
1928 * c-common.c (fix_string_type): Use size_int for index type bounds.
1929 (start_fname_decls): Do not pass NULL to build_int_cst.
1930 (c_init_attributes): Likewise.
1931 * c-lex.c (c_lex_with_flags): Likewise.
1932
1933 2011-04-27 Jason Merrill <jason@redhat.com>
1934
1935 * c-common.c (make_tree_vector_from_list): New.
1936 * c-common.h: Declare it.
1937
1938 2011-04-26 Richard Guenther <rguenther@suse.de>
1939
1940 PR preprocessor/48248
1941 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1942 for output size with -P.
1943
1944 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1945
1946 * c-common.c (struct c_common_resword): Add __underlying_type.
1947 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1948
1949 2011-04-20 Jim Meyering <meyering@redhat.com>
1950
1951 * c-format.c (init_dollar_format_checking): Remove useless
1952 if-before-free.
1953
1954 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1955
1956 * c-objc.h (objc_get_interface_ivars): Removed.
1957 (objc_detect_field_duplicates): New.
1958 * stub-objc.c: Likewise.
1959
1960 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1961
1962 * stub-objc.c (objc_declare_protocols): Renamed to
1963 objc_declare_protocol.
1964 * c-objc.h: Likewise.
1965
1966 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1967
1968 * stub-objc.c (objc_declare_class): Updated argument name.
1969
1970 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1971
1972 * c-common.h (c_common_init_ts): Declare.
1973 * c-common.c (c_common_init_ts): Define.
1974
1975 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1976
1977 * c-objc.h (objc_build_message_expr): Updated prototype.
1978 * stub-objc.c (objc_build_message_expr): Likewise.
1979
1980 2011-04-12 Martin Jambor <mjambor@suse.cz>
1981
1982 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1983 of cgraph_node.
1984
1985 2011-04-11 Richard Guenther <rguenther@suse.de>
1986
1987 * c-common.c (complete_array_type): Build a range type of
1988 proper type.
1989
1990 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1991
1992 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1993 (handle_type_generic_attribute): Likewise.
1994
1995 2011-04-07 Jason Merrill <jason@redhat.com>
1996
1997 PR c++/48450
1998 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1999 conversion from C++0x scoped enum.
2000
2001 2011-04-06 Joseph Myers <joseph@codesourcery.com>
2002
2003 * c-target-def.h: New file.
2004 * c-target.def: New file.
2005 * c-target.h: New file.
2006 * c-common.c (targetcm): Don't define here.
2007 * c-common.h (default_handle_c_option): Declare.
2008 * c-format.c: Include c-target.h instead of target.h.
2009 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2010 include tm.h.
2011 (default_handle_c_option): Move from targhooks.c.
2012
2013 2011-03-29 Jakub Jelinek <jakub@redhat.com>
2014
2015 PR preprocessor/48248
2016 * c-ppoutput.c (print): Add src_file field.
2017 (init_pp_output): Initialize it.
2018 (maybe_print_line): Don't optimize by adding up to 8 newlines
2019 if map->to_file and print.src_file are different file.
2020 (print_line): Update print.src_file.
2021
2022 2011-03-25 Kai Tietz <ktietz@redhat.com>
2023
2024 * c-ada-spec.c (compare_comment): Use filename_cmp
2025 instead of strcmp for filename.
2026
2027 2011-03-25 Jeff Law <law@redhat.com>
2028
2029 * c-family/c-common.c (def_fn_type): Add missing va_end.
2030
2031 2011-03-25 Jason Merrill <jason@redhat.com>
2032
2033 * c.opt: Add -std=c++03.
2034
2035 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2036
2037 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2038
2039 2011-03-17 Kai Tietz
2040
2041 PR target/12171
2042 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2043 Display allowed attributes for function pointer types.
2044 (pp_c_attributes_display): New function to display
2045 attributes having affects_type_identity flag set to true.
2046 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2047
2048 * c-common.c (c_common_attribute_table):
2049 Add new element.
2050 (c_common_format_attribute_table): Likewise.
2051
2052 2011-03-18 Jason Merrill <jason@redhat.com>
2053
2054 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2055 * c-common.h: Don't declare it here.
2056 * c-common.c: Or define it here.
2057 * c-opts.c (c_common_handle_option): Or set it here.
2058
2059 PR c++/35315
2060 * c-common.c (handle_transparent_union_attribute): Don't
2061 make a duplicate type in C++.
2062
2063 2011-03-15 Jason Merrill <jason@redhat.com>
2064
2065 * c-common.c (max_constexpr_depth): New.
2066 * c-common.h: Declare it.
2067 * c-opts.c (c_common_handle_option): Set it.
2068 * c.opt (fconstexpr-depth): New option.
2069
2070 2011-03-11 Jason Merrill <jason@redhat.com>
2071
2072 * c-common.c (attribute_takes_identifier_p): Add missing const.
2073
2074 PR c++/46803
2075 * c-common.c (attribute_takes_identifier_p): Assume that an
2076 unknown attribute takes an identifier.
2077
2078 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2079
2080 PR c/47786
2081 * c-common.c (c_type_hash): Call list_length instead of iterating
2082 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2083
2084 2011-02-19 Jakub Jelinek <jakub@redhat.com>
2085
2086 PR c/47809
2087 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2088
2089 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2090
2091 * c.opt (fobjc-abi-version=) New.
2092 (fobjc-nilcheck): New.
2093
2094 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2095
2096 PR c++/46890
2097 * c-common.h (keyword_is_decl_specifier): Declare.
2098 * c-common.c (keyword_is_decl_specifier): Define.
2099 (keyword_is_function_specifier): New function.
2100
2101 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2102
2103 PR c/47473
2104 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2105 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2106 REAL_TYPE.
2107
2108 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2109
2110 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2111
2112 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2113
2114 PR pch/47430
2115 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2116 after init_c_lex if pch_file is set.
2117
2118 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2119
2120 PR c++/43601
2121 * c.opt (-fkeep-inline-dllexport): New switch.
2122
2123 2011-01-12 Richard Guenther <rguenther@suse.de>
2124
2125 PR middle-end/32511
2126 * c-common.c (handle_weak_attribute): Warn instead of error
2127 on declaring an inline function weak.
2128
2129 2011-01-05 Tom Tromey <tromey@redhat.com>
2130
2131 * c-common.h (lvalue_error): Update.
2132 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2133 not error.
2134
2135 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
2136
2137 PR objc/47075
2138 * c-objc.h (objc_finish_message_expr): Added argument to
2139 prototype.
2140
2141 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2142
2143 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2144 Use prototype_p.
2145
2146 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2147
2148 * c-objc.h (objc_maybe_warn_exceptions): New.
2149 * stub-objc.c (objc_maybe_warn_exceptions): New.
2150
2151 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2152
2153 * c-common.h (readonly_error): Declare.
2154 * c-common.c (readonly_error): Define.
2155
2156 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2157
2158 * c-common.h (invalid_indirection_error): Declare.
2159 * c-common.c (invalid_indirection_error): Define.
2160
2161 2010-12-03 Richard Guenther <rguenther@suse.de>
2162
2163 PR c/46745
2164 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2165 (pp_c_unary_expression): Likewise.
2166 (pp_c_expression): Likewise.
2167
2168 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2169
2170 * c-common.h (objc_finish_function): New.
2171 (objc_non_volatilized_type): Removed.
2172 (objc_type_quals_match): Removed.
2173 * stub-objc.c (objc_finish_function): New.
2174 (objc_non_volatilized_type): Removed.
2175 (objc_type_quals_match): Removed.
2176
2177 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2178
2179 * c-common.h (parse_optimize_options): Declare.
2180 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2181 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2182
2183 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2184
2185 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2186 GET_ENVIRONMENT.
2187 * c-pch.c (O_BINARY): Don't define here.
2188 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2189
2190 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2191
2192 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2193 targetm.except_unwind_info.
2194
2195 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2196
2197 * c-opts.c (c_common_handle_option): Pass location to
2198 set_struct_debug_option.
2199
2200 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2201
2202 * c-common.c (visibility_options): Move from ../opts.c.
2203 * c-common.h (struct visibility_flags, visibility_options):
2204 Declare here.
2205 * c-opts.c (finish_options): Rename to c_finish_options.
2206 (c_common_init): Update call to finish_options.
2207
2208 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2209
2210 PR objc/34033
2211 * c-lex.c (lex_string): Check that each string in an Objective-C
2212 string concat sequence starts with either one or zero '@', and
2213 that there are no spurious '@' signs at the end.
2214
2215 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2216
2217 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2218 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2219 HANDLE_PRAGMA_VISIBILITY.
2220 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2221 HANDLE_PRAGMA_VISIBILITY): Don't define.
2222 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2223
2224 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2225
2226 PR c++/16189
2227 PR c++/36888
2228 PR c++/45331
2229 * c-common.h (keyword_begins_type_specifier): Declare.
2230 (keyword_is_storage_class_specifier): Declare.
2231 (keyword_is_type_qualifier): Declare.
2232 * c-common.c (keyword_begins_type_specifier): New function.
2233 (keyword_is_storage_class_specifier): New function.
2234 (keyword_is_type_qualifier): Declare.
2235
2236 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2237
2238 PR c/46547
2239 * c-common.c (in_late_binary_op): Define.
2240 (c_common_truthvalue_conversion): Check in_late_binary_op before
2241 calling c_save_expr.
2242 * c-common.h (in_late_binary_op): Declare.
2243
2244 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2245
2246 * c-opts.c (c_common_handle_option): Update calls to
2247 set_struct_debug_option.
2248
2249 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2250
2251 * c-common.h (objc_declare_protocols): Added additional argument.
2252 * stub-objc.c (objc_declare_protocol): Same change.
2253
2254 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2255
2256 PR c/33193
2257 * c-common.h (build_real_imag_expr): Declare.
2258 * c-semantics.c (build_real_imag_expr): Define.
2259
2260 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2261
2262 * c-opts.c (c_common_parse_file): Take no arguments.
2263 * c-common.h (c_common_parse_file): Update prototype.
2264
2265 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2266
2267 PR c++/46401
2268 * c-common.c (warning_candidate_p): Don't track non-const calls
2269 or STRING_CSTs.
2270
2271 2010-11-15 Ian Lance Taylor <iant@google.com>
2272
2273 * c-lex.c (init_c_lex): Set macro debug callbacks if
2274 flag_dump_go_spec is set.
2275
2276 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2277
2278 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2279 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2280
2281 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2282
2283 PR preprocessor/45038
2284 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2285 dialects.
2286
2287 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2288
2289 * c-common.h (c_family_lang_mask): Declare.
2290 * c-opts.c (c_family_lang_mask): Make extern.
2291 * c-pragma.c (handle_pragma_diagnostic): Use
2292 control_warning_option.
2293
2294 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2295
2296 * c-common.c (parse_optimize_options): Update call to
2297 decode_options.
2298 * c-common.h (c_common_handle_option): Update prototype.
2299 * c-opts.c (c_common_handle_option): Take location_t parameter and
2300 pass it to other functions.
2301
2302 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2303
2304 * c-opts.c (warning_as_error_callback): Remove.
2305 (c_common_initialize_diagnostics): Don't call
2306 register_warning_as_error_callback.
2307 (c_common_handle_option): Handle -Werror=normalized= here.
2308
2309 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2310
2311 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2312 in diagnostic.
2313 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2314 letter.
2315 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2316 Remove trailing '.' from diagnostics.
2317 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2318
2319 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2320
2321 * c-common.c (parse_optimize_options): Pass global_dc to
2322 decode_options.
2323 * c-opts.c (c_common_handle_option): Pass &global_options to
2324 set_Wstrict_aliasing.
2325 * c.opt (v): Don't mark Common or document here.
2326
2327 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2328
2329 PR target/44981
2330 * c-format.c (format_type): New type gcc_objc_string_format_type.
2331 (valid_stringptr_type_p): New.
2332 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2333 (check_format_string): Pass expected type, use
2334 valid_stringptr_type_p (), check that the format string types are
2335 consistent with the format specification.
2336 (decode_format_attr): Warn if NSString is used outside objective-c.
2337 (format_types_orig): Add NSString.
2338 (format_name): New.
2339 (format_flags): New.
2340 (check_format_arg): Handle format strings requiring an external parser.
2341 first_target_format_type: New variable.
2342 (handle_format_attribute): Set up first_target_format_type, pass the
2343 expected format arg string type to check_format_string().
2344 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2345 * stub-objc.c (objc_string_ref_type_p): New.
2346 (objc_check_format_arg): New.
2347
2348 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2349
2350 Fixed using the Objective-C 2.0 dot-syntax with class names.
2351 * c-common.h (objc_build_class_component_ref): New.
2352 * stub-objc.c (objc_build_class_component_ref): New.
2353
2354 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2355
2356 * c.opt (Wproperty-assign-default): New option.
2357
2358 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2359
2360 Implemented -fobjc-std=objc1 flag.
2361 * c.opt (fobjc-std=objc1): New option.
2362
2363 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2364
2365 Implemented format and noreturn attributes for Objective-C methods.
2366 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2367 attribute for Objective-C methods.
2368
2369 2010-10-31 Jason Merrill <jason@redhat.com>
2370
2371 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2372 EXPR_LOC_OR_HERE.
2373
2374 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2375
2376 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2377 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2378 (objc_add_property_declaration): Removed arguments for copies and
2379 ivar.
2380 (objc_build_getter_call): Renamed to
2381 objc_maybe_build_component_ref.
2382 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2383 (objc_is_property_ref): New.
2384 * c-common.c (c_common_reswords): Removed copies and ivar.
2385 * stub-objc.c (objc_add_property_declaration): Removed arguments
2386 for copies and ivar.
2387 (objc_build_getter_call): Renamed to
2388 objc_maybe_build_component_ref.
2389 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2390 (objc_is_property_ref): New.
2391
2392 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2393 Matthew Gingell <gingell@adacore.com>
2394
2395 * c-ada-spec.c (separate_class_package): New function.
2396 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2397 name of their enclosing package.
2398 (print_ada_declaration): Use separate_class_package.
2399
2400 2010-10-27 Jason Merrill <jason@redhat.com>
2401
2402 * c-common.c (c_common_reswords): Add __is_literal_type.
2403 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2404
2405 * c-common.c (check_case_value): Remove special C++ code.
2406
2407 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2408
2409 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2410 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2411 and RID_LAST_PATTR.
2412 (objc_add_property_declaration): Added additional arguments.
2413 (objc_property_attribute_kind): Removed.
2414 (objc_set_property_attr): Removed.
2415 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2416 copy and nonatomic.
2417 * stub-objc.c (objc_add_property_declaration): Added additional
2418 arguments.
2419 (objc_set_property_attr): Removed.
2420
2421 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2422
2423 * c-common.h (objc_add_property_variable): Renamed to
2424 objc_add_property_declaration. Added location argument.
2425 * stub-objc.c (objc_add_property_variable): Same change.
2426
2427 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2428
2429 * c-common.h (objc_maybe_printable_name): New.
2430 * stub-objc.c (objc_maybe_printable_name): New.
2431
2432 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2433 Andrew Pinski <pinskia@gmail.com>
2434
2435 * c-common.h (c_common_mark_addressable_vec): Declare.
2436 * c-common.c (c_common_mark_addressable_vec): New function.
2437
2438 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2439
2440 * c-common.h (objc_set_method_type): Removed.
2441 (objc_add_method_declaration): Added boolean argument.
2442 (objc_start_method_definition): Same change.
2443 (objc_build_method_signature): Same change.
2444 * stub-objc.c (objc_set_method_type): Removed.
2445 (objc_add_method_declaration): Added boolean argument.
2446 (objc_start_method_definition): Same change.
2447 (objc_build_method_signature): Same change.
2448
2449 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2450
2451 * c-common.h (finish_file): Removed.
2452 (objc_write_global_declarations): New.
2453 * c-opts.c (c_common_parse_file): Do not call finish_file.
2454 * stub-objc.c (objc_write_global_declarations): New.
2455
2456 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2457
2458 Implemented parsing @synthesize and @dynamic for
2459 Objective-C/Objective-C++.
2460 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2461 (objc_add_synthesize_declaration): New.
2462 (objc_add_dynamic_declaration): New.
2463 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2464 * stub-objc.c (objc_add_synthesize_declaration): New.
2465 (objc_add_dynamic_declaration): New.
2466
2467 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2468
2469 PR target/46041
2470 * c-cppbuiltin.c (mode_has_fma): Move function here from
2471 builtins.c. Don't use the fma optab, instead just use the
2472 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2473 using -save-temps.
2474
2475 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2476
2477 Merge from 'apple/trunk' branch on FSF servers.
2478
2479 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2480
2481 Radar 4330422
2482 * c-common.h (objc_non_volatilized_type): New declaration
2483 * stub-objc.c (objc_non_volatilized_type): New stub.
2484
2485 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2486
2487 Merge from 'apple/trunk' branch on FSF servers.
2488
2489 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2490
2491 Radar 4133425
2492 * c-common.h (objc_diagnose_private_ivar): New decl.
2493 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2494
2495 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2496
2497 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2498 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2499 (objc_ivar_visibility_kind): New enum.
2500 (objc_set_visibility): Adjust prototype to use visibility enum.
2501 * stub-objc.c (objc_set_visibility): Adjust stub to use
2502 visibility enum.
2503
2504 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2505
2506 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2507 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2508 has the appropriate fma builtins.
2509 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2510
2511 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2512
2513 merge from FSF apple 'trunk' branch.
2514 2006 Fariborz Jahanian <fjahanian@apple.com>
2515
2516 Radars 4436866, 4505126, 4506903, 4517826
2517 * c-common.c (c_common_resword): Define @property and its attributes.
2518 * c-common.h: Define property attribute enum entries.
2519 (OBJC_IS_PATTR_KEYWORD): New.
2520 (objc_property_attribute_kind): New enum.
2521 Declare objc_set_property_attr (), objc_add_property_variable (),
2522 objc_build_getter_call () and objc_build_setter_call ().
2523 * stub-objc.c (objc_set_property_attr): New stub.
2524 (objc_add_property_variable): Likewise.
2525 (objc_build_getter_call): Likewise.
2526 (objc_build_setter_call) Likewise.
2527
2528 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2529
2530 merge from FSF apple 'trunk' branch.
2531 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2532
2533 Radar 3803157 (method attributes)
2534 * c-common.c (handle_deprecated_attribute): Recognize
2535 objc methods as valid declarations.
2536 * c-common.h: Declare objc_method_decl ().
2537 * stub-objc.c (objc_method_decl): New stub.
2538
2539 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2540
2541 * c-common.c (parse_optimize_options): Call
2542 decode_cmdline_options_to_array_default_mask before
2543 decode_options. Update arguments to decode_options.
2544 * c-common.h (c_common_init_options_struct): Declare.
2545 * c-opts.c (c_common_init_options_struct): New. Split out from
2546 c_common_init_options.
2547
2548 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2549
2550 Implemented fast enumeration for Objective-C.
2551 * c-common.h (objc_finish_foreach_loop): New.
2552 * stub-objc.c (objc_finish_foreach_loop): New.
2553
2554 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2555
2556 * c-common.h (struct diagnostic_context): Don't declare here.
2557 (c_common_initialize_diagnostics): Declare using
2558 diagnostic_context typedef.
2559 * c-opts.c (c_common_handle_option): Pass global_dc to
2560 handle_generated_option.
2561
2562 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2563
2564 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2565 handle_generated_option.
2566
2567 2010-10-03 Ian Lance Taylor <iant@google.com>
2568
2569 * c.opt (-fplan9-extensions): New option.
2570
2571 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2572
2573 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2574 Remove.
2575 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2576 of duplicating code.
2577
2578 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2579
2580 * c-common.c: Add two new entries for @optional
2581 and @required keywords.
2582
2583 merge from FSF 'apple/trunk' branch.
2584 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2585
2586 Radar 4386773
2587 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2588 objective-c keywords.
2589 (objc_set_method_opt): New declaration.
2590 * stub-objc.c (objc_set_method_opt): New stub.
2591
2592 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2593
2594 * c-common.c (handle_optimize_attribute): Pass &global_options to
2595 cl_optimization_save and cl_optimization_restore.
2596 * c-opts.c (c_common_handle_option): Pass &global_options to
2597 handle_generated_option.
2598 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2599 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2600 &global_options to cl_optimization_restore.
2601
2602 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2603
2604 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2605 Objective-C/Objective-C++ keywords.
2606
2607 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2608
2609 Merge from 'apple/trunk' branch on FSF servers.
2610
2611 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2612
2613 Radar 4281748
2614 * c-common.h (objc_check_global_decl): New declaration.
2615 * stub-objc.c (objc_check_global_decl): New stub.
2616
2617 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2618
2619 * c.opt: Don't use VarExists.
2620
2621 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2622
2623 * c-common.c (c_cpp_error): Update names of diagnostic_context
2624 members.
2625 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2626 cl_optimization members.
2627 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2628 sanitize_cpp_opts, finish_options): Update names of cpp_options
2629 members.
2630
2631 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2632
2633 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2634 (objc_is_reserved_word): Removed.
2635 * c-common.c: Updated comments.
2636 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2637 objc_is_reserved_word.
2638 * stub-objc.c (objc_is_reserved_word): Removed.
2639
2640 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2641
2642 * c-common.h (objc_add_method_declaration): Adjust prototype to
2643 include attributes.
2644 (objc_start_method_definition): Likewise.
2645 (objc_build_keyword_decl): Likewise.
2646 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2647 (objc_start_method_definition): Likewise.
2648 (objc_build_keyword_decl): Likewise.
2649
2650 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2651
2652 * c-common.h (objc_start_class_interface): Adjust prototype.
2653 (objc_start_category_interface): Likewise.
2654 (objc_start_protocol): Likewise.
2655 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2656 (objc_start_class_interface): Likewise.
2657 (objc_start_category_interface): Likewise.
2658
2659 2010-09-27 Ian Lance Taylor <iant@google.com>
2660
2661 * c-common.c (c_common_attribute_table): Add no_split_stack.
2662 (handle_no_split_stack_attribute): New static function.
2663
2664 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2665
2666 Merge from 'apple/trunk' branch on FSF servers.
2667
2668 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2669
2670 Radar 4229905
2671 * c-common.h (objc_have_common_type): New declaration.
2672 * stub-objc.c (objc_have_common_type): New stub.
2673
2674 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2675
2676 Radar 4154928
2677 * c-common.h (objc_common_type): New prototype.
2678 * stub-objc.c (objc_common_type): New stub.
2679
2680 2010-09-24 Jan Hubicka <jh@suse.cz>
2681
2682 * c-common.c (handle_leaf_attribute): New function.
2683 (struct attribute_spec c_common_att): Add leaf.
2684
2685 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2686
2687 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2688 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2689 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2690 -include-barrier, -include-directory, -include-directory=,
2691 -include-directory-after, -include-directory-after=,
2692 -include-prefix, -include-prefix=, -include-with-prefix,
2693 -include-with-prefix=, -include-with-prefix-after,
2694 -include-with-prefix-after=, -include-with-prefix-before,
2695 -include-with-prefix-before=, -no-integrated-cpp,
2696 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2697 -output=, -pedantic, -pedantic-errors, -preprocess,
2698 -print-missing-file-dependencies, -trace-includes, -traditional,
2699 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2700 -user-dependencies, -verbose, -write-dependencies,
2701 -write-user-dependencies, no-integrated-cpp, traditional): New.
2702
2703 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2704
2705 PR objc/23710
2706 * c-common.h (objc_start_method_definition): Return bool instead
2707 of void.
2708 * stub-objc.c (objc_start_method_definition): Return bool instead
2709 of void.
2710
2711 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2712
2713 PR objc/25965
2714 * c-common.h (objc_get_interface_ivars): New declaration.
2715 * stub-objc.c (objc_get_interface_ivars): New stub.
2716
2717 2010-09-15 Ian Lance Taylor <iant@google.com>
2718
2719 * c-common.c (parse_optimize_options): Do not capitalize warning
2720 messages. Remove period at end of warning message.
2721
2722 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2723
2724 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2725 (handle_alias_attribute): ... here.
2726 (handle_ifunc_attribute): New.
2727
2728 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2729
2730 * c-common.h (do_warn_double_promotion): Declare.
2731 * c-common.c (do_warn_double_promotion): Define.
2732
2733 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2734
2735 * c.opt (Wdouble-promotion): New.
2736
2737 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2738
2739 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2740 fvtable-thunks, fxref): Mark no longer supported in help text.
2741
2742 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2743
2744 * c.opt (Wimport, fall-virtual, falt-external-templates,
2745 fdefault-inline, fenum-int-equiv, fexternal-templates,
2746 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2747 fname-mangling-version-, fnew-abi, fnonnull-objects,
2748 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2749 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2750 applicable.
2751 (fhandle-exceptions): Mark with Alias and Warn.
2752 * c-opts.c (c_common_handle_option): Don't handle options marked
2753 as ignored.
2754
2755 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2756
2757 * c.opt (Wcomments, Werror-implicit-function-declaration,
2758 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2759 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2760 aliases.
2761 * c-common.c (option_codes): Use OPT_Wcomment instead of
2762 OPT_Wcomments.
2763 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2764 Don't handle options marked as aliases.
2765
2766 2010-08-25 Richard Guenther <rguenther@suse.de>
2767
2768 * c-common.c (c_common_get_alias_set): Remove special
2769 handling for pointers.
2770
2771 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2772
2773 * c-common.c: Use FOR_EACH_VEC_ELT.
2774 * c-gimplify.c: Likewise.
2775 * c-pragma.c: Likewise.
2776
2777 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2778
2779 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2780 RejectDriver.
2781 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2782 RejectDriver.
2783 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2784 instead of OPT_MDX and OPT_MMDX.
2785
2786 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2787
2788 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2789
2790 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2791
2792 * c.opt (MD, MMD): Change to MDX and MMDX.
2793 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2794
2795 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2796
2797 * c-opts.c (c_common_handle_option): Call handle_generated_option
2798 instead of handle_option.
2799
2800 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2801
2802 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2803 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2804
2805 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2806
2807 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2808 (pending_redefine_extname): Change type to a VEC.
2809 (add_to_renaming_pragma_list): Update for new type of
2810 pending_redefine_extname.
2811 (maybe_apply_renaming_pragma): Likewise.
2812
2813 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2814
2815 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2816 visited.
2817 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2818 decide whether a type has already been declared/seen.
2819 Do not go to the original type.
2820 (dump_nested_types): New parameter forward.
2821 Generate forward declaration if needed and mark type as visited.
2822 (print_ada_declaration): Call dump_nested_types if not already done.
2823 Mark types as visited.
2824
2825 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2826
2827 * c.opt (-print-pch-checksum): Remove option.
2828 * c-opts.c (c_common_handle_option): Don't handle
2829 OPT_print_pch_checksum.
2830
2831 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2832
2833 * c-common.h (c_common_handle_option): Update prototype and return
2834 value type.
2835 * c-opts.c (c_common_handle_option): Update prototype and return
2836 value type. Update calls to handle_option and
2837 enable_warning_as_error.
2838
2839 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2840
2841 PR c/45079
2842 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2843
2844 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2845
2846 * c-common.h (c_common_missing_argument): Remove.
2847 * c-opts.c (c_common_missing_argument): Remove.
2848 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2849 idirafter, imacros, include, isysroot, isystem, iquote): Add
2850 MissingArgError.
2851 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2852
2853 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2854
2855 * c-common.h (c_common_option_lang_mask,
2856 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2857 New.
2858 (c_common_init_options): Update prototype.
2859 * c-opts.c (c_common_option_lang_mask): New.
2860 (c_common_initialize_diagnostics): Split out of
2861 c_common_init_options.
2862 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2863 New.
2864 (c_common_init_options): Update prototype. Use decoded options in
2865 search for -lang-asm.
2866
2867 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2868
2869 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2870 * c-format.c: Likewise.
2871
2872 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2873
2874 * c-common.h: Include diagnostic-core.h. Error if already
2875 included.
2876 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2877
2878 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2879
2880 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2881 Do not include expr.h
2882 (vector_mode_valid_p): Move here.
2883
2884 2010-06-21 DJ Delorie <dj@redhat.com>
2885
2886 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2887 allow these pragmas anywhere.
2888
2889 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2890
2891 PR bootstrap/44509
2892 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2893 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2894 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2895 ggc_strdup instead of xstrdup.
2896
2897 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2898
2899 * c-cppbuiltin.c: Include cpp-id-data.h.
2900 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2901 (lazy_hex_fp_value): New function.
2902 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2903
2904 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2905
2906 * c-gimplify.c: Do not include tree-flow.h
2907
2908 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2909
2910 PR other/44034
2911 * c-common.c: Rename targetm member:
2912 targetm.enum_va_list -> targetm.enum_va_list_p
2913
2914 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2915
2916 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2917
2918 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2919
2920 * c-cppbuiltin.c: Do not include except.h.
2921
2922 2010-06-24 Andi Kleen <ak@linux.intel.com>
2923
2924 * c-common.c (warn_for_omitted_condop): New.
2925 * c-common.h (warn_for_omitted_condop): Add prototype.
2926
2927 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2928
2929 * c.opt (lang-objc): Remove.
2930 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2931
2932 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2933
2934 * c-opts.c: Include "tm_p.h".
2935
2936 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2937
2938 * c-common.c (parse_optimize_options): Update call to
2939 decode_options.
2940
2941 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2942
2943 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2944 new type of types_used_by_cur_var_decl.
2945
2946 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2947
2948 PR bootstrap/44512
2949 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2950 for C++ standard compliance.
2951
2952 2010-06-16 Jason Merrill <jason@redhat.com>
2953
2954 * c.opt: Add -Wnoexcept.
2955
2956 2010-06-16 Richard Guenther <rguenther@suse.de>
2957
2958 PR c/44555
2959 * c-common.c (c_common_truthvalue_conversion): Remove
2960 premature and wrong optimization concering ADDR_EXPRs.
2961
2962 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2963
2964 * c-ada-spec.c (dump_sloc): Remove column info.
2965 (is_simple_enum): New function.
2966 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2967 enum types when relevant.
2968
2969 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2970
2971 * c-common.c (conversion_warning): Warn at expression
2972 location.
2973
2974 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2975
2976 * c-opts.c (c_common_handle_option): Don't handle
2977 OPT_fshow_column.
2978
2979 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2980
2981 * c-pragma.c (push_alignment): Use typed GC allocation.
2982 (handle_pragma_push_options): Likewise.
2983
2984 * c-common.c (parse_optimize_options): Likewise.
2985
2986 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2987 option.
2988
2989 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2990
2991 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2992 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2993 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2994 flag_signed_bitfields, warn_strict_null_sentinel,
2995 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2996 flag_gen_declaration, flag_no_gnu_keywords,
2997 flag_implement_inlines, flag_implicit_templates,
2998 flag_implicit_inline_templates, flag_optional_diags,
2999 flag_elide_constructors, flag_default_inline, flag_rtti,
3000 flag_conserve_space, flag_access_control, flag_check_new,
3001 flag_new_for_scope, flag_weak, flag_working_directory,
3002 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3003 flag_enforce_eh_specs, flag_threadsafe_statics,
3004 flag_pretty_templates): Remove.
3005 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3006 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3007 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3008 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3009 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3010 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3011 flag_no_gnu_keywords, flag_implement_inlines,
3012 flag_implicit_templates, flag_implicit_inline_templates,
3013 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3014 flag_rtti, flag_conserve_space, flag_access_control,
3015 flag_check_new, flag_new_for_scope, flag_weak,
3016 flag_working_directory, flag_use_cxa_atexit,
3017 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3018 flag_threadsafe_statics, flag_pretty_templates,
3019 warn_strict_null_sentinel): Remove.
3020 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3021 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3022 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3023 fimplicit-inline-templates, fimplicit-templates,
3024 flax-vector-conversions, fms-extensions, fnil-receivers,
3025 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3026 frtti, fshort-double, fshort-enums, fshort-wchar,
3027 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3028 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3029 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3030 gen-decls, undef): Use Var.
3031 (fdefault-inline, foptional-diags): Document as doing nothing.
3032 * c-opts.c (c_common_handle_option): Remove cases for options now
3033 using Var. Mark ignored options as such.
3034
3035 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3036
3037 * c-common.c: Moved to here from parent directory.
3038 * c-common.def: Likewise.
3039 * c-common.h: Likewise.
3040 * c-cppbuiltin.c: Likewise.
3041 * c-dump.c: Likewise.
3042 * c-format.c: Likewise.
3043 * c-format.h : Likewise.
3044 * c-gimplify.c: Likewise.
3045 * c-lex.c: Likewise.
3046 * c-omp.c: Likewise.
3047 * c.opt: Likewise.
3048 * c-opts.c: Likewise.
3049 * c-pch.c: Likewise.
3050 * c-ppoutput.c: Likewise.
3051 * c-pragma.c: Likewise.
3052 * c-pragma.h: Likewise.
3053 * c-pretty-print.c: Likewise.
3054 * c-pretty-print.h: Likewise.
3055 * c-semantics.c: Likewise.
3056 * stub-objc.c: Likewise.
3057
3058 * c-common.c: Include gt-c-family-c-common.h.
3059 * c-pragma.c: Include gt-c-family-c-pragma.h.
3060 \f
3061 Copyright (C) 2010-2013 Free Software Foundation, Inc.
3062
3063 Copying and distribution of this file, with or without modification,
3064 are permitted in any medium without royalty provided the copyright
3065 notice and this notice are preserved.