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