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