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