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