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