]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
* sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
bc61cadb 12013-11-22 Andrew MacLeod <amacleod@redhat.com>
2
3 * c-common.c: Add required include files from gimple.h.
4 * c-gimplify.c: Likewise
5 * cilk.c: Likewise
6
3df42822 72013-11-22 David Malcolm <dmalcolm@redhat.com>
8
9 * c-common.c (unsafe_conversion_p): Remove use of
10 EXPR_LOC_OR_HERE macro.
11 (conversion_warning): Likewise.
12 (warnings_for_convert_and_check): Likewise.
13 (warn_for_collisions_1): Likewise.
14 (shorten_compare): Likewise, and remove use of in_system_header
15 macro, using the location from the former.
16 * c-lex.c (dump_one_header): Remove use of input_filename macro.
17 (cb_def_pragma): Remove use of in_system_header macro.
18 (lex_string): Likewise.
19 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
20
8c53c46c 212013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
22 Mike Stump <mikestump@comcast.net>
23 Richard Sandiford <rdsandiford@googlemail.com>
24
25 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
26 instead of TREE_INT_CST_LOW, in cases where there is a protecting
27 tree_fits_shwi_p or tree_fits_uhwi_p.
28 (dump_generic_ada_node): Likewise.
29 * c-format.c (check_format_arg): Likewise.
30 * c-pretty-print.c (pp_c_integer_constant): Likewise.
31
5200ef07 322013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
33
34 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
35
ca9d7d74 362013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
37
38 PR c/53001
39 * c-common.c (unsafe_conversion_p): Make this function
40 return an enumeration with more detail.
41 (conversion_warning): Use the new return type of
42 unsafe_conversion_p to separately warn either about conversions
43 that lower floating point number precision or about the other
44 kinds of conversions.
45 * c-common.h (enum conversion_safety): New enumeration.
46 (unsafe_conversion_p): switching return type to
47 conversion_safety enumeration.
48 * c.opt: Adding new warning -Wfloat-conversion and
49 enabling it with -Wconversion.
50
0391a567 512013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
52
53 * c-opts.c: Include plugin.h.
54 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
55
19b928d9 562013-11-19 Marek Polacek <polacek@redhat.com>
57
58 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
59 call.
60 (ubsan_instrument_shift): Likewise.
61 (ubsan_instrument_vla): Likewise.
62
aa59f000 632013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
64
65 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
66 cast to unsigned type.
67
08f817b3 682013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
69
70 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
71 tree_low_cst.
72 (complete_array_type): Update comment to refer to tree_to_[su]hwi
73 rather than tree_low_cst.
74
6a0712d4 752013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
76
77 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
78 tree_to_uhwi throughout.
79
fcb97e84 802013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
81
82 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
83 tree_low_cst (..., 0) with tree_to_shwi throughout.
84
cd4547bf 852013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
86
87 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
88 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
89
35ec552a 902013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
91
92 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
93 host_integerp (..., 0) with tree_fits_shwi_p throughout.
94
f2697631 952013-11-15 Aldy Hernandez <aldyh@redhat.com>
96
97 * c-cilkplus.c: New file.
98 * c-common.c (readonly_error): Add location argument.
99 * c-common.h (readonly_error): Same.
100 (c_finish_cilk_clauses): Protoize.
101 (c_check_cilk_loop): Same.
102 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
103 Do not fail on error_mark_node.
104 Abstract increment canonicalization to here...
105 (c_omp_for_incr_canonicalize_ptr): New.
106 c-pragma.c (init_pragma): Register "simd" pragma.
107 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
108 (enum pragma_cilk_clause): New.
109
0aa8c34e 1102013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
111
112 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
113 wchar_type and host_integerp checks.
114
e795d6e1 1152013-11-14 Andrew MacLeod <amacleod@redhat.com>
116
117 * c-common.c: Likewise.
118 * c-gimplify.c: Likewise.
119 * cilk.c: Likewise.
120
9ed99284 1212013-11-14 Diego Novillo <dnovillo@google.com>
122
123 * c-common.c: Include fold-const.h.
124 Include stor-layout.h.
125 Include calls.h.
126 Include stringpool.h.
127 Include attribs.h.
128 Include varasm.h.
129 Include trans-mem.h.
130 * c-cppbuiltin.c: Include stor-layout.h.
131 Include stringpool.h.
132 * c-format.c: Include stringpool.h.
133 * c-lex.c: Include stringpool.h.
134 Include stor-layout.h.
135 * c-pragma.c: Include stringpool.h.
136 Include attribs.h.
137 Include varasm.h.
138 Include gcc-symtab.h.
139 * c-pretty-print.c: Include stor-layout.h.
140 Include attribs.h.
141 * cilk.c: Include stringpool.h.
142 Include calls.h.
143
4fba5eb9 1442013-11-13 Joseph Myers <joseph@codesourcery.com>
145
146 * c-common.h (enum rid): Add RID_AUTO_TYPE.
147 * c-common.c (c_common_reswords): Add __auto_type.
148 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
149
a8783bee 1502013-11-12 Andrew MacLeod <amacleod@redhat.com>
151
e795d6e1 152 * c-common.c: Include gimplify.h.
153 * c-gimplify.c: Likewise.
154 * cilk.c: Likewise.
155 * c-omp.c: Include gimple-expr.h instead of gimple.h.
156 * c-ubsan.c: Don't include gimple.h.
a8783bee 157
d184e0c0 1582013-11-12 Joseph Myers <joseph@codesourcery.com>
159
160 * c-common.c (c_common_reswords): Add _Thread_local.
161
a056826c 1622013-11-09 Joseph Myers <joseph@codesourcery.com>
163
164 * c-common.c (atomic_size_supported_p): New function.
165 (resolve_overloaded_atomic_exchange)
166 (resolve_overloaded_atomic_compare_exchange)
167 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
168 Use it instead of comparing size with a local list of sizes.
169
b560fabd 1702013-11-07 Andrew MacLeod <amacleod@redhat.com>
171 Joseph Myers <joseph@codesourcery.com>
172
173 * c-common.h (enum rid): Add RID_ATOMIC.
174 * c-common.c (c_common_reswords): Add _Atomic.
175 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
176 (keyword_is_type_qualifier): Accept RID_ATOMIC.
177 * c-format.c (check_format_types): Check for extra _Atomic
178 qualifiers in format argument.
179 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
180 (pp_c_type_qualifier_list): Mention _Atomic in comment.
181
5b1a0622 1822013-11-06 Tobias Burnus <burnus@net-b.de>
183
184 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
185
4f8f4cb8 1862013-11-06 Joseph Myers <joseph@codesourcery.com>
187
188 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
189 standards modes.
190 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
191 to mean lack of IEEE 754 support.
192
9148bda3 1932013-11-05 Tobias Burnus <burnus@net-b.de>
194
195 * c.opt (-Wdate-time): New option
196 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
197
08c5f4d5 1982013-11-05 Joseph Myers <joseph@codesourcery.com>
199
200 * c-cppbuiltin.c (cpp_iec_559_value): Test
201 flag_excess_precision_cmdline not flag_excess_precision.
202
c630ef93 2032013-11-05 Tobias Burnus <burnus@net-b.de>
204
205 * c.opt (fopenmp-simd): New option.
206 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
207 (omp_pragmas): ... this new struct.
208 (c_pp_lookup_pragma): Also walk omp_pragmas.
209 (init_pragma): Init pragmas for -fopenmp-simd.
210
7354a89b 2112013-11-04 Marek Polacek <polacek@redhat.com>
212
213 PR c++/58979
214 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
215
4c866b9b 2162013-11-04 Joseph Myers <joseph@codesourcery.com>
217
218 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
219 New functions.
220 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
221
e2a6a333 2222013-11-04 Eric Botcazou <ebotcazou@adacore.com>
223
224 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
225 (dump_ada_specs): Adjust prototype of second callback.
226 * c-ada-spec.c (cpp_check): New global variable.
227 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
228 (print_generic_ada_decl): Likewise.
229 (has_static_fields): Change return type to bool and add guard.
230 (has_nontrivial_methods): New predicate.
231 (is_tagged_type): Change return type to bool.
232 (separate_class_package): Call has_nontrivial_methods.
233 (pp_ada_tree_identifier): Minor tweaks.
234 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
235 (dump_ada_array_domains): Likewise.
236 (dump_ada_array_type): Likewise.
237 (dump_template_types): Remove cpp_check parameter and do not pass it to
238 dump_generic_ada_node.
239 (dump_ada_template): Likewise.
240 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
241 recursively.
242 (print_ada_methods): Change return type to integer. Remove cpp_check
243 parameter and do not pass it down.
244 (dump_nested_types): Remove cpp_check parameter and do not pass it to
245 dump_generic_ada_node.
246 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
247 accessing methods.
248 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
249 down. Use has_nontrivial_methods to recognize C++ classes. Use return
250 value of print_ada_methods.
251 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
252 Set cpp_check to it before invoking dump_ada_nodes.
253 (dump_ada_specs): Likewise.
254
2c4c3477 2552013-11-03 Marek Polacek <polacek@redhat.com>
256
257 * c-ubsan.c: Don't include hash-table.h.
258 (ubsan_instrument_vla): New function.
259 * c-ubsan.h: Declare it.
260
452659af 2612013-10-31 David Malcolm <dmalcolm@redhat.com>
262
263 Automated part of renaming of symtab_node_base to symtab_node.
264
265 Patch autogenerated by rename_symtab.py from
266 https://github.com/davidmalcolm/gcc-refactoring-scripts
267 revision 58bb219cc090b2f4516a9297d868c245495ee622
268
269 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
270 symtab_node_base to symtab_node.
271
4d6f7dd4 2722013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
273
274 Implement C++14 digit separators.
275 * c-lex.c (interpret_float): Remove digit separators from scratch string
276 before building real literal.
277
06cfe805 2782013-10-30 Jakub Jelinek <jakub@redhat.com>
279
280 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
281
d037099f 2822013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
283
284 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
285 fields.
286 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
287 enabled.
288 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
289 (insert_cilk_frame): New prototype.
290 (cilk_init_builtins): Likewise.
291 (gimplify_cilk_spawn): Likewise.
292 (c_cilk_install_body_w_frame_cleanup): Likewise.
293 (cilk_detect_spawn_and_unwrap): Likewise.
294 (cilk_set_spawn_marker): Likewise.
295 (build_cilk_sync): Likewise.
296 (build_cilk_spawn): Likewise.
297 * cilk.c: New file.
298
02774f2d 2992013-10-29 David Malcolm <dmalcolm@redhat.com>
300
301 Patch autogenerated by refactor_symtab.py from
302 https://github.com/davidmalcolm/gcc-refactoring-scripts
303 revision 58bb219cc090b2f4516a9297d868c245495ee622
304
305 * c-gimplify.c (c_genericize): Update for conversion of symtab types
306 to a true class hierarchy.
307 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
308
31fe10fd 3092013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
310
311 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
312
b1c06ff9 3132013-10-26 Jeff Law <law@redhat.com>
314
315 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
316 * c-family/c.opt: Ignore and warn for mudflap options.
317
48a972c8 3182013-10-24 Tobias Burnus <burnus@net-b.de>
4644b593 319
320 PR other/33426
321 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
322 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
323
546a04b1 3242013-10-23 Jason Merrill <jason@redhat.com>
325
326 * c-format.c (gcc_cxxdiag_char_table): Add %X.
327
bc7bff74 3282013-10-11 Jakub Jelinek <jakub@redhat.com>
329
d62c713e 330 * c-common.h (omp_clause_mask::operator !=): New method.
331 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
332 instead of if (mask & something) tests everywhere.
333
bc7bff74 334 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
335 201307 instead of 201107.
336 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
337 (c_common_attribute_table): Add "omp declare target" and
338 "omp declare simd" attributes.
339 (handle_omp_declare_target_attribute,
340 handle_omp_declare_simd_attribute): New functions.
341 * c-omp.c: Include c-pragma.h.
342 (c_finish_omp_taskgroup): New function.
343 (c_finish_omp_atomic): Add swapped argument, if true,
344 build the operation first with rhs, lhs arguments and use NOP_EXPR
345 build_modify_expr.
346 (c_finish_omp_for): Add code argument, pass it down to make_code.
347 (c_omp_split_clauses): New function.
348 (c_split_parallel_clauses): Removed.
349 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
350 c_omp_declare_simd_clauses_to_decls): New functions.
351 * c-common.h (omp_clause_mask): New type.
352 (OMP_CLAUSE_MASK_1): Define.
353 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
354 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
355 omp_clause_mask::operator |, omp_clause_mask::operator &,
356 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
357 omp_clause_mask::operator ==): New methods.
358 (enum c_omp_clause_split): New.
359 (c_finish_omp_taskgroup): New prototype.
360 (c_finish_omp_atomic): Add swapped argument.
361 (c_finish_omp_for): Add code argument.
362 (c_omp_split_clauses): New prototype.
363 (c_split_parallel_clauses): Removed.
364 (c_omp_declare_simd_clauses_to_numbers,
365 c_omp_declare_simd_clauses_to_decls): New prototypes.
366 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
367 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
368 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
369 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
370 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
371 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
372 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
373 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
374 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
375 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
376 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
377 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
378 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
379 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
380 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
381 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
382 PRAGMA_OMP_CLAUSE_UNIFORM.
383
d7dcba40 3842013-10-09 Marc Glisse <marc.glisse@inria.fr>
385
386 PR tree-optimization/20318
387 * c-common.c (handle_returns_nonnull_attribute): New function.
388 (c_common_attribute_table): Add returns_nonnull.
389
0b7282f1 3902013-10-03 Marc Glisse <marc.glisse@inria.fr>
391
392 PR c++/19476
393 * c.opt (fcheck-new): Move to common.opt.
394
51f553af 3952013-09-25 Marek Polacek <polacek@redhat.com>
396 Jakub Jelinek <jakub@redhat.com>
397
398 PR sanitizer/58413
399 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
400 an expression if we can prove it is correct.
401 (ubsan_instrument_division): Likewise. Remove unnecessary
402 check.
403
05f893e1 4042013-09-18 Marek Polacek <polacek@redhat.com>
405
406 PR sanitizer/58411
407 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
408 Declare it.
409 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
410
236ce1d1 4112013-09-14 Iain Sandoe <iain@codesourcery.com>
412
413 PR target/48094
414 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
415 fobjc-gc, freplace-objc-classes): Accept for LTO.
416
f9f68d35 4172013-09-13 Jacek Caban <jacek@codeweavers.com>
418
419 * c-target.def: New hook
420
ba2f764e 4212013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
422
423 PR c++/43452
424 * c.opt (Wdelete-incomplete): Add.
425
73437615 4262013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
427
428 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
429 (vector_types_compatible_elements_p): New function.
430 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
431 declaration.
432 (vector_types_compatible_elements_p): Declare.
433
95af4c75 4342013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
435
436 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
437 a virtual member function.
438 (pp_simple_type_specifier): Remove.
439 (pp_c_type_specifier): Likewise.
440 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
441 Rename from pp_c_type_specifier. Adjust.
442 (c_pretty_printer::c_pretty_printer): Do not assign to
443 simple_type_specifier.
444
eaab24b9 4452013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
446
447 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
448 member function.
449 (c_pretty_printer::storage_class_specifier): Likewise.
450 (c_pretty_printer::initializer): Likewise.
451 (pp_declaration): Remove.
452 (pp_declaration_specifiers): Likewise.
453 (pp_abstract_declarator): Likewise.
454 (pp_declarator): Likewise.
455 (pp_type_id): Likewise.
456 (pp_statement): Likewise.
457 (pp_constant): Likewise.
458 (pp_id_expression): Likewise.
459 (pp_primary_expression): Likewise.
460 (pp_unary_expression): Likewise.
461 (pp_multiplicative_expression): Likewise.
462 (pp_conditional_expression): Likewise.
463 (pp_assignment_expression): Likewise.
464 (pp_expression): Likewise.
465 (pp_c_type_id): Likewise.
466 (pp_c_storage_class_specifier): Likewise.
467 * c-pretty-print.c (pp_c_type_cast): Tidy.
468 (pp_c_pointer): Likewise.
469 (pp_c_type_specifier): Likewise.
470 (pp_c_parameter_type_list): Likewise.
471 (pp_c_function_definition): Likewise.
472 (pp_c_init_declarator): Likewise.
473 (pp_c_initializer_list): Likewise.
474 (pp_c_constructor_elts): Likewise.
475 (c_pretty_printer::direct_abstract_declarator): Likewise.
476 (c_pretty_printer::declaration_specifiers): Likewise.
477 (c_pretty_printer::primary_expression): Likewise.
478 (c_pretty_printer::postfix_expression): Likewise.
479 (c_pretty_printer::type_id): Rename from pp_c_type_id.
480 (c_pretty_printer::storage_class_specifier): Rename from
481 pp_c_storage_class_specifier.
482 (c_pretty_printer::initializer): Rename from pp_c_initializer.
483 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
484 storage_class_specifier, initializer, offset_list, flags.
485
9e46467d 4862013-08-30 Marek Polacek <polacek@redhat.com>
487
488 * c-ubsan.c: New file.
489 * c-ubsan.h: New file.
490
36a8d9b9 4912013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
492
493 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
494 member function.
495 (c_pretty_printer::declaration_specifiers): Likewise.
496 (c_pretty_printer::declarator): Likewise.
497 (c_pretty_printer::abstract_declarator): Likewise.
498 (c_pretty_printer::direct_abstract_declarator): Likewise.
499 (c_pretty_printer::direct_declarator): Likewise.
500 (c_pretty_printer::function_specifier): Likewise.
501 (pp_declaration): Adjust.
502 (pp_declaration_specifiers): Likewise.
503 (pp_abstract_declarator): Likewise.
504 (pp_direct_declarator): Likewise.
505 (pp_function_specifier): Likewise.
506 (pp_direct_abstract_declarator): Remove as unused.
507 (pp_c_declaration): Remove.
508 (pp_c_declaration_specifiers): Likewise.
509 (pp_c_declarator): Likewise.
510 (pp_c_direct_declarator): Likewise.
511 (pp_c_function_specifier): Likewise.
512 (pp_c_direct_abstract_declarator): Likewise.
513 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
514 from pp_c_abstract_declarator. Adjust.
515 (c_pretty_printer::direct_abstract_declarator): Rename from
516 pp_c_direct_abstract_declarator. Adjust.
517 (c_pretty_printer::function_specifier): Rename from
518 pp_c_function_specifier. Adjust.
519 (c_pretty_printer::declaration_specifiers): Rename from
520 pp_c_declaration_specifiers. Adjust.
521 (c_pretty_printer::direct_declarator): Rename from
522 pp_c_direct_declarator. Adjust.
523 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
524 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
525 (c_pretty_printer::c_pretty_printer): Do not assign to
526 declaration, declaration_specifiers, declarator,
527 direct_declarator, direct_abstract_declarator, function_specifier.
528
30635c2e 5292013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
530
531 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
532 virtual member function.
533 (c_pretty_printer::multiplicative_expression): Likewise.
534 (c_pretty_printer::conditional_expression): Likewise.
535 (c_pretty_printer::assignment_expression): Likewise.
536 (c_pretty_printer::expression): Likewise.
537 (pp_unary_expression): Adjust.
538 (pp_multiplicative_expression): Likewise.
539 (pp_assignment_expression): Likewise.
540 (pp_conditional_expression): Likewise.
541 (pp_expression): Likewise.
542 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
543 from pp_c_unary_expression. Adjust.
544 (c_pretty_printer::multiplicative_expression): Rename from
545 pp_c_multiplicative_expression. Adjust.
546 (c_pretty_printer::conditional_expression): Rename from
547 pp_c_conditional_expression. Adjust.
548 (c_pretty_printer::assignment_expression): Rename from
549 pp_c_assignment_expression. Adjust.
550 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
551 (c_pretty_printer::c_pretty_printer): Do not assign to
552 unary_expression, multiplicative_expression,
553 conditional_expression, expression.
554
027d08ed 5552013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
556
557 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
558 virtual member function.
559 (pp_postfix_expression): Adjust.
560 (pp_c_postfix_expression): Remove.
561 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
562 from pp_c_postfix_expression. Adjust.
563 (c_pretty_printer::c_pretty_printer): Do not assign to
564 postfix_expression.
565
f873303a 5662013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
567
568 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
569 virtua member function.
570 (pp_primary_expression): Adjust.
571 (pp_c_primary_expression): Remove.
572 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
573 from pp_c_primary_expression. Adjust.
574 (pp_c_initializer_list): Use pp_primary_expression.
575 (c_pretty_printer::c_pretty_printer): Do not assign to
576 primary_expression.
577
08e3e481 5782013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
579
580 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
581 * c-pretty-print.c (M_): Remove.
582 (c_pretty_printer::translate_string): Define.
583 (pp_c_type_specifier): Use it.
584 (pp_c_primary_expression): Likewise.
585 (pp_c_expression): Likewise.
586
1fc4a87f 5872013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
588
589 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
590 virtual function.
591 (pp_c_id_expression): Remove.
592 (pp_id_expression): Adjust.
593 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
594 pp_c_id_expression. Adjust.
595 (pp_c_postfix_expression): Use pp_id_expression.
596 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
597
a6cb161b 5982013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
599
600 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
601 member function.
602 (pp_constant): Adjust.
603 (pp_c_constant): Remove.
604 * c-pretty-print.c (c_pretty_printer::constant): Rename from
605 pp_c_constant. Adjust.
606 (pp_c_constant)
607 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
608 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
609
eed6bc21 6102013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
611
612 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
613 (c_pretty_printer::c_pretty_printer): Declare.
614 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
615 c_pretty_printer_init. Adjust.
616 (print_c_tree): Do not call c_pretty_printer_init.
617 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
618
df558d2e 6192013-08-09 Arnaud Charlet <charlet@adacore.com>
620
621 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
622
42f9a786 6232013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
624
625 PR c++/58080
626 * c-common.c (pointer_int_sum): Add bool parameter.
627 * c-common.h (pointer_int_sum): Adjust declaration.
628
f874ddad 6292013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
630
631 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
632 c_pretty_printer variable.
633
a94db6b0 6342013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
635
636 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
637 (pp_base): Remove.
638 (pp_c_base): Likewise. Adjust users.
639 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
640 (pp_c_whitespace): Do not call pp_base.
641 (pp_c_left_paren): Likewise.
642 (pp_c_right_paren): Likewise.
643 (pp_c_left_brace): Likewise.
644 (pp_c_right_brace): Likewise.
645 (pp_c_left_bracket): Likewise.
646 (pp_c_right_bracket): Likewise.
647 (pp_c_dot): Likewise.
648 (pp_c_ampersand): Likewise.
649 (pp_c_star): Likewise.
650 (pp_c_arrow): Likewise.
651 (pp_c_semicolon): Likewise.
652 (pp_c_complement): Likewise.
653 (pp_c_exclamation): Likewise.
654 (pp_c_direct_declarator): Likewise.
655 (pp_c_ws_string): Likewise.
656 (pp_c_identifier): Likewise.
657 (pp_c_statement): Likewise.
658 (print_c_tree): Likewise.
659
1898176c 6602013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
661
662 PR c++/58072
663 * c-common.c (c_parse_error): Catch user-defined literal tokens and
664 provide useful error strings.
665
70d60d1d 6662013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
667
668 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
669 printer functions instead of pp_string or operators and punctuators.
670 (dump_generic_ada_node): Likewise.
671 * c-pretty-print.c (pp_c_type_specifier): Likewise.
672 (pp_c_relational_expression): Likewise.
673 (pp_c_logical_or_expression): Likewise.
674
dda4f0ec 6752013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
676
677 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
678 functions instead of pp_character.
679 (pp_ada_tree_identifier): Likewise.
680 (dump_ada_double_name): Likewise.
681 (dump_ada_function_declaration): Likewise.
682 (dump_ada_array_domains): Likewise.
683 (dump_template_types): Likewise.
684 (dump_generic_ada_node): Likewise.
685 (print_ada_declaration): Likewise.
686 (print_ada_struct_decl): Likewise.
687 * c-pretty-print.c (pp_c_integer_constant): Likewise.
688
7aa04c8d 6892013-07-23 Tom Tromey <tromey@redhat.com>
690
691 * c-common.h (enum rid) <RID_GENERIC>: New constant.
692 * c-common.c (c_common_reswords): Add _Generic.
693
a04e8d62 6942013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
695
696 * c-common.c: Fix typos.
697 * c-common.h: Likewise.
698
a96c3cc1 6992013-07-13 Lubos Lunak <l.lunak@suse.cz>
700
701 PR c++/55203
702 * c-common.c (c_common_attribute_table): Add warn_unused.
703 (handle_warn_unused_attribute): New.
704
da31536d 7052013-07-10 Jakub Jelinek <jakub@redhat.com>
706
707 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
708 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
709
839f2f70 7102013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
711
712 PR c++/57869
713 * c.opt: Add Wconditionally-supported.
714
73f353d0 7152013-07-08 Graham Stott <graham.stott@btinternet.com>
716
717 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
718 unused variables l_length and l_node.
719
21ebaa24 7202013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
f5298614 721
722 PR c/57821
723 * c-common.c (complete_array_type): Delay folding first index
724 like other indices. When folding, check for index overflow.
725
68ea4406 7262013-06-27 Marc Glisse <marc.glisse@inria.fr>
727
728 PR c++/57509
729 * c-common.h (c_build_vec_perm_expr): New complain argument.
730 * c-common.c (c_build_vec_perm_expr): Likewise.
731 Use save_expr also in C++.
732
60777f69 7332013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
734
735 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
736 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
737 * c-opts.c (c_common_post_options): Likewise.
738
839f2f70 7392013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
50acebe0 740
741 * array-notation-common.c (length_mismatch_in_expr): Changed the
742 parameter type's from a dynamic array to a vec_tree. Also removed
743 the size parameters.
744 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
745 the change above.
746
e9331eab 7472013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
748
749 * c-common.h (struct cilkplus_an_parts): New structure.
750 (struct cilkplus_an_loop_parts): Likewise.
751 (cilkplus_extract_an_triplets): New prototype.
752 (fix_sec_implicit_args): Likewise.
753 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
754 (fix_sec_implicit_args): Likewise.
60777f69 755
a9c99fc4 7562013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
757
758 * array-notation-common.c (find_inv_trees): Removed an unwanted
759 typecasting.
760 * c-common.h (struct inv_list::additional_tcodes): Changed type from
761 enum rid to enum tree_code.
762
f2526cce 7632013-06-11 Jan Hubicka <jh@suse.cz>
764
765 * c-common.c (handle_alias_ifunc_attribute): Do not set
766 DECL_EXTERNAL for weakref variables.
767 * c-pragma.c (handle_pragma_weak): Make sure aliases
768 are not declared as external.
769
09970d67 7702013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
771
772 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
773 function from c/c-array-notation.c.
774 (is_cilkplus_reduce_builtin): Likewise.
775 (find_rank): Likewise.
776 (extract_array_notation_exprs): Likewise.
777 (replace_array_notations): Likewise.
778 (find_inv_trees): Likewise.
779 (replace_inv_trees): Likewise.
780 (contains_array_notation_expr): Likewise.
781 (find_correct_array_notation_type): Likewise.
782 * c-common.h (struct inv_list): Moved this struct from the file
783 c/c-array-notation.c and added a new field called additional tcodes.
784 (length_mismatch_in_expr_p): New prototype.
785 (is_cilkplus_reduce_builtin): Likewise.
786 (find_rank): Likewise.
787 (extract_array_notation_exprs): Likewise.
788 (replace_array_notation): Likewise.
789 (find_inv_trees): Likewise.
790 (replace_inv_trees): Likewise.
791 (find_correct_array_notation_type): Likewise.
839f2f70 792
3c6d4197 7932013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
794
795 * c-common.c (c_define_builtins): When cilkplus is enabled, the
796 function array_notation_init_builtins is called.
797 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
798 * c-common.def (ARRAY_NOTATION_REF): New tree.
799 * c-common.h (build_array_notation_expr): New function declaration.
800 (build_array_notation_ref): Likewise.
801 (extract_sec_implicit_index_arg): New extern declaration.
802 (is_sec_implicit_index_fn): Likewise.
803 (ARRAY_NOTATION_CHECK): New define.
804 (ARRAY_NOTATION_ARRAY): Likewise.
805 (ARRAY_NOTATION_START): Likewise.
806 (ARRAY_NOTATION_LENGTH): Likewise.
807 (ARRAY_NOTATION_STRIDE): Likewise.
808 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
809 ARRAY_NOTATION_REF.
810 (pp_c_expression): Likewise.
811 * c.opt (flag_enable_cilkplus): New flag.
812 * array-notation-common.c: New file.
813
8e71dad2 8142013-05-14 Jakub Jelinek <jakub@redhat.com>
815
816 PR c++/57274
817 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
818
432dd330 8192013-05-10 Marc Glisse <marc.glisse@inria.fr>
820
821 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
822 vectors.
823
b156ec37 8242013-05-07 Han Shen <shenhan@google.com>
825
826 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
827
1a087624 8282013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
829
830 * c-common.c (check_user_alignment): Emit error for negative values.
831
1638c736 8322013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
833
834 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
835
949dbf93 8362013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
837
838 * c-cppbuiltin.c (c_cpp_builtins): Do not define
839 __GXX_EXPERIMENTAL_CXX1Y__.
840
9205a6cc 8412013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
842 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
843
844 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
845 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
846 to simply use OPT_Wpointer_arith.
847 (c_sizeof_or_alignof_type): Likewise.
848
05d0bce1 8492013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
850
851 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
852
41609f8b 8532013-04-12 Jakub Jelinek <jakub@redhat.com>
854
855 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
856 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
857 specifiers.
858
c671dc4f 8592013-04-07 Steven Bosscher <steven@gcc.gnu.org>
860
861 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
862
ba125576 8632013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
864
865 * c-common.c (pointer_int_sum): Remove dead code.
866
9d3fa937 8672013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
868
869 PR middle-end/56524
870 * c-common.c (handle_optimize_attribute): Don't call
871 save_optabs_if_changed.
872
5ceebb21 8732013-03-05 Jakub Jelinek <jakub@redhat.com>
874
875 PR middle-end/56461
876 * c-pch.c (pch_init): Free target_validity at the end.
877
18eeed2b 8782013-03-04 Jakub Jelinek <jakub@redhat.com>
879
880 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
881
a9196da9 8822013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
883 Jakub Jelinek <jakub@redhat.com>
884
885 PR sanitizer/56454
886 * c-common.c (handle_no_sanitize_address_attribute): New function.
887 (c_common_attribute_table): Add no_sanitize_address attribute.
888 (handle_no_address_safety_analysis_attribute): Add
889 no_sanitize_address attribute, not no_address_safety_analysis
890 attribute.
891
15c27dda 8922013-02-18 Aldy Hernandez <aldyh@redhat.com>
08c7d04b 893
894 PR target/52555
895 * c-common.c (handle_optimize_attribute): Call
896 save_optabs_if_changed.
897
19426fe1 8982013-02-18 Jakub Jelinek <jakub@redhat.com>
899 Steven Bosscher <steven@gcc.gnu.org>
900
901 PR pch/54117
902 * c-opts.c (c_common_post_options): If debug info is enabled
903 and non-dwarf*, refuse to load PCH files and when writing PCH
904 file warn.
905
df936998 9062013-02-05 Jakub Jelinek <jakub@redhat.com>
907
908 PR middle-end/56167
909 * c-common.c (handle_error_attribute): Fix condition.
910
ae0c3984 9112013-01-30 Jakub Jelinek <jakub@redhat.com>
912
913 PR c++/55742
914 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
915
1c4973d7 9162013-01-18 Jason Merrill <jason@redhat.com>
917
918 PR target/54908
919 * c.opt (-fextern-tls-init): New.
920 * c-opts.c (c_common_post_options): Handle it.
921
7c834436 9222013-01-09 Jakub Jelinek <jakub@redhat.com>
923
924 PR c/48418
925 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
926 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
927 and is either negative or bigger or equal to type precision
928 of the first operand.
929
5abaa10a 9302012-12-03 Marek Polacek <polacek@redhat.com>
931
932 PR c/55570
933 * c-common.c (check_user_alignment): Swap order of tests,
934 check TREE_CODE first.
935
324ca377 9362012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
937
938 PR c++/52654
939 * c-common.h (overflow_type): New enum.
940 (build_userdef_literal): Add overflow_type argument.
941 (tree_userdef_literal): Add overflow_type.
942 (USERDEF_LITERAL_OVERFLOW): New access macro.
943 * c-common.c (build_userdef_literal): Add overflow_type
944 argument.
945 * c-lex.c (c_lex_with_flags): Add overflow_type to
946 build_userdef_literal calls.
947 (interpret_integer, interpret_float): Add overflow_type argument.
948
b4c4a429 9492012-11-28 Richard Biener <rguenther@suse.de>
950
951 PR c/35634
952 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
953 here and use a type with proper overflow behavior for types that would
954 need to be promoted for the arithmetic.
955
d413ffdd 9562012-11-23 Jakub Jelinek <jakub@redhat.com>
957
958 PR sanitizer/55435
959 * c-common.c (handle_no_address_safety_analysis_attribute): New
960 function.
961 (c_common_attribute_table): Add no_address_safety_analysis.
962
52bc861d 9632012-11-16 Simon Baldwin <simonb@google.com>
964
965 * c.opt: Add f[no-]canonical-system-headers.
966 * c-opts.c (c_common_handle_option): Handle
967 OPT_fcanonical_system_headers.
968
2dd00636 9692012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
970
971 PR c++/54413
972 * c-opts.c (c_common_handle_option): Set new flags.
973 * c.opt: Describe new flags.
974
d4701f6c 9752012-11-09 Jason Merrill <jason@redhat.com>
976
977 * c.opt (Wabi-tag): New.
978
72d65da9 9792012-11-09 Andi Kleen <ak@linux.intel.com>
980
981 PR 55139
982 * c-common.c (get_atomic_generic_size): Mask with
983 MEMMODEL_MASK
984
77a357e3 9852012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
986
987 PR c/53063
988 * c.opt (Wformat): Make it Alias Wformat=1.
989 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
990 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
991 LangEnabledBy.
992 (Wformat=): RejectNegative. Use LangEnabledBy.
993 (Wnonnull): Use LangEnabledBy.
994 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
995 * c-format.c (set_Wformat): Delete.
996 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
997 (maybe_read_dollar_number): Likewise.
998 (avoid_dollar_number): Likewise.
999 (finish_dollar_format_checking): Likewise.
1000 (check_format_info): Likewise.
1001 (check_format_info_main): Likewise.
1002 (check_format_types): Likewise.
1003 (format_type_warning): Likewise.
1004 * c-common.c (int): Likewise.
1005 (check_function_sentinel): Likewise.
1006 * c-common.h (warn_format,set_Wformat): Do not declare here.
1007
45efa6b9 10082012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1009
1010 PR c/53063
1011 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1012 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1013 Use LangEnabledBy.
1014 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1015 common.opt.
1016 (Wvariadic-macros): Init(1).
1017 * c-opts.c (c_common_handle_option): Do not handle them
1018 explicitly.
1019 (c_common_post_options): Likewise.
1020 (sanitize_cpp_opts): warn_unused_macros is now
1021 cpp_warn_unused_macros.
1022 (push_command_line_include): Likewise.
1023 * c-common.c (warn_unknown_pragmas): Do not define.
1024 * c-common.h (warn_unknown_pragmas): Do not declare.
1025
0e4e775a 10262012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1027
1028 PR c/51294
1029 * c-common.c (conversion_warning): Handle conditional expressions.
1030
8b447d3f 10312012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1032
1033 PR c++/54930
1034 * c.opt (Wreturn_local_addr): Define new option.
1035
f4a61754 10362012-10-25 Jason Merrill <jason@redhat.com>
1037
ecb10e6a 1038 * c.opt (Wvirtual-move-assign): New.
1039
f4a61754 1040 * c.opt (Winherited-variadic-ctor): New.
1041
7b463b19 10422012-10-25 Marc Glisse <marc.glisse@inria.fr>
1043
1044 PR c++/54427
1045 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1046
6adc88f8 10472012-10-23 Joseph Myers <joseph@codesourcery.com>
1048
1049 * c-common.h (pch_cpp_save_state): Declare.
1050 * c-target.def (c_preinclude): New hook.
1051 * c-opts.c (done_preinclude): New.
1052 (push_command_line_include): Handle default preincluded header.
1053 (cb_file_change): Call pch_cpp_save_state when calling
1054 push_command_line_include.
1055 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1056 (pch_cpp_save_state): New.
1057 (pch_init): Call pch_cpp_save_state conditionally, instead of
1058 calling cpp_save_state.
1059
fa816b0b 10602012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1061
1062 PR c/53063
1063 PR c/40989
1064 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1065 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1066 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1067 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1068 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1069 * c-opts.c (c_common_handle_option): Remove explicit handling from
1070 here.
1071 (c_common_post_options): Likewise.
1072
d214ccee 10732012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1074
1075 * c-ada-spec.c (LOCATION_COL): Delete.
1076 (compare_location): New function.
1077 (compare_node): Use it.
1078 (compare_comment): Likewise.
1079
77b27208 10802012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1081
1082 PR c/53063
1083 PR c/40989
1084 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1085 * c-opts.c (c_common_handle_option): Do not set them here. Add
1086 comment.
1087 (c_common_post_options): Likewise.
1088
cc02ca4d 10892012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1090
1091 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1092 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1093 Remove POINTER_TYPE handling, add large unsigned handling and use
1094 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1095
57f872a2 10962012-10-12 Jakub Jelinek <jakub@redhat.com>
1097
1098 PR c/54381
1099 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1100 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1101 locs and array of 3 trees instead of just single loc and single
1102 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1103 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1104 For *cmp* builtins that take two sources strings report warnings
1105 about first and second source, not about destination and source.
1106
7354ad2e 11072012-10-12 Marc Glisse <marc.glisse@inria.fr>
1108
1109 PR c++/53055
1110 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1111
1ac7f120 11122012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1113
1114 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1115 declaring something coming from another file.
1116
1e0cc9e3 11172012-10-10 Arnaud Charlet <charlet@adacore.com>
1118
1ac7f120 1119 PR ada/54845
1e0cc9e3 1120 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1121
b0e7825e 11222012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1123
1124 PR c++/54194
1125 * c-common.c (warn_about_parentheses): Add location_t parameter;
1126 use EXPR_LOC_OR_LOC.
1127 * c-common.h: Update declaration.
1128
41ed701a 11292012-10-09 Marc Glisse <marc.glisse@inria.fr>
1130
1131 PR c++/54427
1132 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1133 more operations. Make error messages optional.
1134 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1135 (scalar_to_vector): Declare.
1136
3740094c 11372012-10-08 Jason Merrill <jason@redhat.com>
1138
1139 * c-common.c (c_common_reswords): Add thread_local.
1140
ffcdbf9c 11412012-10-08 Dodji Seketeli <dodji@redhat.com>
1142
1143 PR c++/53528 C++11 attribute support
1144 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1145 new functions.
1146 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1147 static function.
1148 (handle_aligned_attribute): In choose strictest alignment
1149 among many. Use new check_cxx_fundamental_alignment_constraints.
1150 (handle_transparent_union_attribute): In c++11 attribute syntax,
1151 don't look through typedefs.
1152
ef34afc1 11532012-10-04 Arnaud Charlet <charlet@adacore.com>
1154
1155 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1156 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1157 out of dumpfile.h.
1158
f1ff4562 11592012-09-25 Dehao Chen <dehao@google.com>
1160
1161 PR middle-end/54645
ef34afc1 1162 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 1163 map when read in the pch.
1164
735538a1 11652012-09-18 Arnaud Charlet <charlet@adacore.com>
1166
1167 * c-ada-spec.c: Style fixes.
1168
9120cdc8 11692012-09-18 Thomas Quinot <quinot@adacore.com>
1170
1171 * c.opt (-fada-spec-parent): Define new command line switch.
1172 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1173 is specified, generate binding spec as a child of the specified unit.
1174
8eba82c2 11752012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1176 Manuel López-Ibáñez <manu@gcc.gnu.org>
1177
1178 PR c++/53210
1179 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1180
38682990 11812012-08-23 Arnaud Charlet <charlet@adacore.com>
1182
1183 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1184 for pointers, and add missing Convention C pragma.
1185 (print_ada_struct_decl): Add missing aliased keyword.
1186 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1187
f003f5dc 11882012-08-17 Jakub Jelinek <jakub@redhat.com>
1189
1190 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1191 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1192 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1193 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1194 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1195
ec11736b 11962012-08-10 Richard Guenther <rguenther@suse.de>
1197
1198 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1199
5f7f600e 12002012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1201
1202 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1203 instead of separate pp_newline and pp_flush.
1204 (print_c_tree): Likewise.
1205
758a38ab 12062012-07-26 Richard Henderson <rth@redhat.com>
1207
1208 * c-common.c (handle_hot_attribute): Allow labels.
1209 (handle_cold_attribute): Likewise.
1210
9ca77b08 12112012-07-20 Jakub Jelinek <jakub@redhat.com>
1212
1213 PR c++/28656
1214 * c-common.c (check_function_nonnull): Handle multiple nonnull
1215 attributes properly.
1216
b9ed1410 12172012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1218
1219 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1220 * c-ada-spec.c: Likewise.
1221 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1222
c2a65b90 12232012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1224
1225 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1226 Remove code conditional on it.
1227
88c5a1d1 12282012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1229
1230 * c-gimplify.c: Do not include basic-block.h.
1231 * c-common.c: Do not include linfuncs.h.
1232
4a020a8c 12332012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1234
1235 * c-common.h: Include tree.h.
1236
c28ddc97 12372012-07-02 Jason Merrill <jason@redhat.com>
1238
1239 PR c++/53524
1240 * c-common.c (get_priority): Call default_conversion.
1241
405ed67f 12422012-07-01 Uros Bizjak <ubizjak@gmail.com>
1243
1244 * c-pch.c (c_common_write_pch): Remove unused variables.
1245
e53d55e7 12462012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1247
1248 * cppspec.c: Moved from gcc/ to here.
1249
3d9c25ec 12502012-06-27 Kai Tietz <ktietz@redhat.com>
1251
1252 PR preprocessor/37215
1253 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1254
3169c57a 12552012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1256
1257 * c-common.h (c_common_print_pch_checksum): Remove.
1258 * c-pch.c: Do not include output.h.
1259 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1260 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1261 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1262 (struct c_pch_header): Remove.
1263 (get_ident): Update gpch version.
1264 (pch_init): Do not print executable_checksum to asm_out_file.
1265 Do not fail if there is no asm_out_file to read back from. Set
1266 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1267 (c_common_write_pch): Verify that nothing was written to asm_out_file
1268 since pch_init was called. Do not write a c_pch_header, and do not
1269 copy from asm_out_file to the PCH.
1270 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1271 the content of asm_out_file from the PCH.
1272 (c_common_print_pch_checksum): Remove.
1273 * c-opts.c (c_common_init): Print out executable_checksum directly.
1274
ff6624bc 12752012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1276
1277 * c-target.def (objc_declare_unresolved_class_reference,
1278 objc_declare_class_definition): Add new hooks.
1279
367b1459 12802012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1281
1282 * c-lex.c: Do not include output.h.
1283 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1284 Remove uses of ASM_OUTPUT_IDENT.
1285
bf0cb017 12862012-06-15 Marc Glisse <marc.glisse@inria.fr>
1287
1288 PR c++/51033
1289 * c-common.h (c_build_vec_perm_expr): Move decl here.
1290 * c-common.c (c_build_vec_perm_expr): Move definition
1291 here.
1292
b37a3600 12932012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1294
1295 * c.opt (fconserve-space): Turn into a no-op.
1296
19931eea 12972012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 1298
1299 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1300 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1301 both the start and end of the function.
1302
dff12c10 13032012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1304
1305 * c-common.c: Do not include output.h.
1306 * c-pragma.c: Likewise.
1307
5f9e7dd5 13082012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1309
1310 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1311 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1312 (lang_decl_name): Handle namespace decls.
1313
b5369b7d 13142012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1315
1316 * c-ada-spec.c: Do not include output.h.
1317 * c-semantics.c: Likewise.
1318
8032877c 13192012-05-29 Joseph Myers <joseph@codesourcery.com>
1320
1321 * c-common.c: Fix typo.
1322
7843e4bc 13232012-05-29 Michael Matz <matz@suse.de>
1324
1325 * c-common.h (c_expand_decl): Remove prototype.
1326
8cf857d4 13272012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1328
1329 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1330 * c-opts.c (c_common_handle_option): Remove code handling
1331 warn_missing_braces.
1332
8b64dc3c 13332012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1334
1335 PR c++/25137
1336 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1337 -Wmissing_braces.
1338
43cbde16 13392012-05-22 Dodji Seketeli <dodji@redhat.com>
1340
1341 PR c++/53322
1342 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1343
db490cb6 13442012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1345
1346 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1347 * c-opts.c (c_common_handle_option): Do not handle explicitly
1348 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1349
a60f3e81 13502012-05-16 Dodji Seketeli <dodji@redhat.com>
1351
1352 PR preprocessor/7263
1353 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1354 to cpp_classify_number. For diagnostics, use the precise location
1355 instead of the global input_location.
1356
82e6ef7c 13572012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1358
cd4797ff 1359 PR c++/11856
82e6ef7c 1360 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1361
258a168d 13622012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1363
82e6ef7c 1364 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 1365
d3b7ee7c 13662012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1367
1368 PR 53063
1369 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1370 Wreorder): Use LangEnabledBy.
1371 * c-opts.c (c_common_handle_option): Do not enable them
1372 explicitly. Call lang-specific generated functions.
1373 (c_common_post_options): Do not set them here.
1374
70059cea 13752012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1376
1377 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1378 Wmissing-field-initializers,Wmissing-parameter-type,
1379 Wold-style-declaration,Woverride-init): Use EnabledBy.
1380 * c-opts.c (c_common_post_options): Do not set here explicitly.
1381
fbb6fbd8 13822012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1383
1384 PR 53063
1385 * c-opts.c (c_common_handle_option): Use handle_generated_option
1386 to enable sub-options.
1387
61f69bc9 13882012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1389
1390 PR c++/53158
1391 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1392
5a1fe2db 13932012-05-10 Richard Guenther <rguenther@suse.de>
1394
1395 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1396 adjust commentary about TYPE_IS_SIZETYPE types.
1397
d42e7c5a 13982012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1399
1400 PR c++/53261
1401 * c-common.c (warn_logical_operator): Check that argument of
1402 integer_zerop is not NULL.
1403
686369e8 14042012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1405
1406 PR c/43772
1407 * c-common.c (warn_logical_operator): Do not warn if either side
1408 is already true or false.
1409
03fe1dc2 14102012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1411
1412 PR c/51712
1413 * c-common.c (expr_original_type): New.
1414 (shorten_compare): Do not warn for enumeration types.
1415
bba5a206 14162012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1417
1418 * c.opt (fpermissive): Add Var(flag_permissive).
1419
7059d45d 14202012-04-30 Marc Glisse <marc.glisse@inria.fr>
1421
1422 PR c++/51033
1423 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1424 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1425
7edb1062 14262012-04-30 Dodji Seketeli <dodji@redhat.com>
1427
1428 Add -Wvarargs option
1429 * c.opt (Wvarargs): Define new option.
1430
068bea1e 14312012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1432
1433 * c-common.c (check_function_arguments): Replace
1434 Wmissing-format-attribute with Wsuggest-attribute=format.
1435
b86527d8 14362012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1437
1438 * c.opt (Wsuggest-attribute=format): New. Alias of
1439 Wmissing-format-attribute.
1440 * c-format.c (decode_format_type): Replace
1441 Wmissing-format-attribute with Wsuggest-attribute=format.
1442 (check_function_format): Likewise.
1443
19931eea 14442012-04-27 Ollie Wild <aaw@google.com>
76d340ac 1445
1446 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1447 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1448 * c.opt: Add Wliteral-suffix.
1449
29438999 14502012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1451
1452 PR c/44774
1453 * c.opt (Wpedantic): New.
1454 (pedantic): Alias Wpedantic.
1455 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1456 (c_common_post_options): Likewise.
1457 (sanitize_cpp_opts): Likewise.
1458 * c-lex.c (interpret_float): Likewise.
1459 * c-format.c (check_format_types): Likewise.
1460 * c-common.c (pointer_int_sum): Likewise.
1461 (c_sizeof_or_alignof_type): Likewise.
1462 (c_add_case_label): Likewise.
1463 (c_do_switch_warnings): Likewise.
1464 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1465
4f9d6b8b 14662012-04-15 Jason Merrill <jason@redhat.com>
1467
1468 PR c++/52818
1469 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1470 (C_STD_NAME): Distinguish between C++98 and C++11.
1471
74bdbe96 14722012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1473
1474 PR target/52624
1475 * c-common.h (uint16_type_node): Rename into...
1476 (c_uint16_type_node): ...this.
1477 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1478 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1479
3d177e8c 14802012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1481
1482 * c-common.c (warn_if_unused_value): Move definition to here.
1483 * c-common.h (warn_if_unused_value): Move declaration to here.
1484
6a9a958f 14852012-03-23 William Bader <williambader@hotmail.com>
1486
1487 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1488
543efdbe 14892012-03-20 Jason Merrill <jason@redhat.com>
1490
1491 * c-common.h (enum cxx_dialect): Add cxx1y.
1492 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1493 test.
1494 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1495 * c-opts.c (c_common_post_options): Likewise.
1496 (set_std_cxx1y): New.
1497 (c_common_handle_option): Call it.
1498 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1499
62206d34 15002012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1501
1502 PR c++/14710
1503 * c.opt ([Wuseless-cast]): Add.
1504
fadf62f4 15052012-03-16 Richard Guenther <rguenther@suse.de>
1506
1507 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1508
249faa35 15092012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1510
1511 PR c++/44783
1512 * c.opt (ftemplate-backtrace-limit) Add.
1513
126b6848 15142012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1515
1516 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1517 handling.
1518 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1519 (init_pragma): Don't register extern_prefix.
1520
a51edb4c 15212012-03-12 Richard Guenther <rguenther@suse.de>
1522
1523 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1524 (builtin_type_for_size): Likewise.
1525
0f6a7cb7 15262012-02-13 Jakub Jelinek <jakub@redhat.com>
1527
1528 PR c++/52215
1529 * c-common.c (sync_resolve_params): Don't decide whether to convert
1530 or not based on TYPE_SIZE comparison, convert whenever arg_type
1531 is unsigned INTEGER_TYPE.
1532
0779e32c 15332012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1534
1535 PR c/52118
1536 * c.opt ([Wunused-local-typedefs]): Fix description.
1537
baec58e1 15382012-01-24 Mike Stump <mikestump@comcast.net>
1539
1540 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1541 exactly.
1542
c779d8cc 15432012-01-18 Richard Guenther <rguenther@suse.de>
1544
1545 * c-opts.c (c_common_post_options): Reset LTO flags if
1546 we are about to generate a PCH.
1547
ee917d24 15482012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1549
1550 PR c++/51777
1551 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1552 use pp_unsigned_wide_integer.
1553
90e2341f 15542012-01-10 Richard Guenther <rguenther@suse.de>
1555
1556 PR middle-end/51806
1557 * c-opts.c (c_common_handle_option): Move -Werror handling
1558 to language independent code.
1559
9ea022ce 15602012-01-05 Richard Guenther <rguenther@suse.de>
1561
1562 PR middle-end/51764
1563 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1564 from common.opt.
1565
3df19e1b 15662011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1567
1568 PR c++/51316
1569 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1570 of array types with an unknown bound.
1571
32074525 15722011-12-20 Joseph Myers <joseph@codesourcery.com>
1573
1574 * c-common.c (flag_isoc99): Update comment to refer to C11.
1575 (flag_isoc1x): Change to flag_isoc11.
1576 * c-common.h (flag_isoc99): Update comment to refer to C11.
1577 (flag_isoc1x): Change to flag_isoc11.
1578 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1579 C11.
1580 * c-opts.c (set_std_c1x): Change to set_std_c11.
1581 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1582 Call set_std_c11.
1583 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1584 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1585 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1586 standard.
1587 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1588 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1589 (std=gnu1x): Make alias of std=gnu11.
1590
fca86134 15912011-12-19 Jason Merrill <jason@redhat.com>
1592
1593 PR c++/51228
1594 * c-common.c (handle_transparent_union_attribute): Check the first
1595 field if the type is complete.
1596
aa4313eb 15972011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1598
1599 PR libstdc++/51365
1600 * c-common.c (RID_IS_FINAL): Add.
1601 * c-common.h (RID_IS_FINAL): Add.
1602
3f3d5ad4 16032011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1604
1605 * c.opt (fgnu-runtime): Provide full description.
1606 (fnext-runtime): Likewise.
1607 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1608
c4606d19 16092011-11-28 Andrew MacLeod <amacleod@redhat.com>
1610
1611 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1612 predefines in one place. Add LOCK_FREE predefines.
1613 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1614 new func.
1615
1d581089 16162011-11-24 Andrew MacLeod <amacleod@redhat.com>
1617
1618 PR c/51256
19931eea 1619 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 1620 conditions
19931eea 1621 (resolve_overloaded_atomic_exchange,
1622 resolve_overloaded_atomic_compare_exchange,
1d581089 1623 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1624 error_mark_node for error conditions.
19931eea 1625
6aa221fa 16262011-11-08 Richard Guenther <rguenther@suse.de>
1627
1628 PR middle-end/51010
1629 c-family/
1630
4c0315d0 16312011-11-07 Richard Henderson <rth@redhat.com>
1632 Aldy Hernandez <aldyh@redhat.com>
1633 Torvald Riegel <triegel@redhat.com>
1634
1635 Merged from transactional-memory.
1636
1637 * c-common.c (handle_tm_wrap_attribute,
1638 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1639 (struct c_common_reswords): Added __transaction* keywords.
1640 (struct c_common_attribute_table): Added transaction* and tm_regparm
1641 attributes.
1642 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1643 masks.
1644 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1645 find_tm_attribute): Declare.
1646
920f5a70 16472011-11-07 Jason Merrill <jason@redhat.com>
1648
1649 PR c++/35688
1650 * c-common.c, c-common.h: Revert yesterday's changes.
1651
b4f861b4 16522011-11-06 Jason Merrill <jason@redhat.com>
1653
1654 PR c++/35688
1655 * c-common.c (decl_has_visibility_attr): Split out from...
1656 (c_determine_visibility): ...here.
1657 * c-common.h: Declare it.
1658
83e25171 16592011-11-06 Joseph Myers <joseph@codesourcery.com>
1660
1661 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1662 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1663 type.
1664 (check_user_alignment): New. Split out of
1665 handle_aligned_attribute. Disallow integer constants with
1666 noninteger types. Conditionally allow zero.
1667 (handle_aligned_attribute): Use check_user_alignment.
1668 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1669
1cd6e20d 16702011-11-06 Andrew MacLeod <amacleod@redhat.com>
1671 Richard Henderson <rth@redhat.com>
1672
1673 Merged from cxx-mem-model.
1674
1675 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 1676 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 1677 parameters that are the same type size.
1678 (get_atomic_generic_size): New. Find size of generic
1679 atomic function parameters and do typechecking.
1680 (add_atomic_size_parameter): New. Insert size into parameter list.
1681 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1682 either __atomic_exchange_n or external library call.
19931eea 1683 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 1684 __atomic_compare_exchange to either _n variant or external library call.
19931eea 1685 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 1686 __atomic_load_n or an external library call.
1687 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1688 __atomic_store_n or an external library call.
1689 (resolve_overloaded_builtin): Handle new __atomic builtins.
1690
7549df0d 16912011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1692
1693 PR c++/50608
1694 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1695 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1696 <INDIRECT_REF>: Return the argument.
1697 <ARRAY_REF>: Remove special code for negative offset.
1698 Call fold_build_pointer_plus instead of size_binop.
1699 (fold_offsetof): Remove STOP_REF argument and adjust.
1700 * c-common.h (fold_offsetof_1): Declare.
1701 (fold_offsetof): Remove STOP_REF argument.
1702
7e783eb3 17032011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1704
1705 PR c++/50810
1706 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1707 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1708 Wnarrowing for C++0x and C++98.
1709 * c.opt ([Wnarrowing]): Update.
1710
8fe701f5 17112011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1712
1713 PR c++/44277
1714 * c.opt: Add Wzero-as-null-pointer-constant.
1715
0d84dc2d 17162011-10-31 Jason Merrill <jason@redhat.com>
1717
67031f52 1718 * c.opt (-fdeduce-init-list): Off by default.
1719
0d84dc2d 1720 PR c++/50920
1721 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1722 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1723 and -Wc++11-compat.
1724 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1725
66f24c41 17262011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1727
1728 PR c++/30066
1729 * c.opt (fvisibility-inlines-hidden): Description change.
1730
244db24d 17312011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1732
1733 Implement C++11 user-defined literals.
1734 * c-common.c (build_userdef_literal): New.
1735 * c-common.def: New tree code.
1736 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1737 * c-lex.c (interpret_float): Add suffix parm.
1738 (c_lex_with_flags): Build literal tokens.
1739
235be70f 17402011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1741
1742 PR c++/50841
1743 Revert:
1744 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1745
1746 PR c++/50810
1747 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1748 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1749 Wnarrowing for C++0x and C++98.
1750 * c.opt ([Wnarrowing]): Update.
1751
4fe0fb1c 17522011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1753
1754 PR c++/50810
1755 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1756 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1757 Wnarrowing for C++0x and C++98.
1758 * c.opt ([Wnarrowing]): Update.
1759
5f7504f9 17602011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1761
1762 PR c++/45385
1763 * c-common.c (conversion_warning): Remove code looking for
1764 artificial operands.
1765
2a688977 17662011-10-18 Dodji Seketeli <dodji@redhat.com>
1767
1768 PR bootstrap/50760
1769 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 1770 !NO_IMPLICIT_EXTERN_C.
2a688977 1771
326e3391 17722011-10-17 Michael Spertus <mike_spertus@symantec.com>
1773
1774 * c-common.c (c_common_reswords): Add __bases,
1775 __direct_bases.
1776 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1777
17782011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1779
1780 PR c++/50757
1781 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1782
62db153a 17832011-10-15 Tom Tromey <tromey@redhat.com>
1784 Dodji Seketeli <dodji@redhat.com>
1785
1786 * c.opt (fdebug-cpp): New option.
1787 * c-opts.c (c_common_handle_option): Handle the option.
1788 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1789 output stream in parameter. Factorized from ...
1790 (maybe_print_line): ... this. Dump location debug information when
1791 -fdebug-cpp is in effect.
1792 (print_line_1): New static function. Takes an output stream in
1793 parameter. Factorized from ...
1794 (print_line): ... here. Dump location information when -fdebug-cpp
1795 is in effect.
1796 (scan_translation_unit): Dump location information when
1797 -fdebug-cpp is in effect.
1798
ce70f433 17992011-10-15 Tom Tromey <tromey@redhat.com>
1800 Dodji Seketeli <dodji@redhat.com>
1801
1802 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1803 without argument.
1804 * c-opts.c (c_common_handle_option)<case
1805 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1806 cases. Handle -ftrack-macro-expansion with and without argument.
1807
97bfb9ef 18082011-10-15 Tom Tromey <tromey@redhat.com>
1809 Dodji Seketeli <dodji@redhat.com>
1810
1811 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1812 (print_line, cb_define, do_line_change): Adjust to avoid touching
1813 the internals of struct line_map. Use the public API instead.
1814 * c-pch.c (c_common_read_pch): Likewise.
1815 * c-lex.c (fe_file_change): Likewise.
1816
326e3391 18172011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1818
1819 PR c++/17212
1820 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1821
18222011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1823
1824 PR c++/33067
1825 * c-pretty-print.c (pp_c_floating_constant): Output
1826 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1827
b9a16870 18282011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1829
1830 * c-common.c (def_builtin_1): Delete old interface with two
1831 parallel arrays to hold standard builtin declarations, and replace
1832 it with a function based interface that can support creating
1833 builtins on the fly in the future. Change all uses, and poison
1834 the old names. Make sure 0 is not a legitimate builtin index.
1835 * c-omp.c (c_finish_omp_barrier): Ditto.
1836 (c_finish_omp_taskwait): Ditto.
1837 (c_finish_omp_flush): Ditto.
1838
c7964868 18392011-10-11 Tristan Gingold <gingold@adacore.com>
1840
1841 * c.opt: (fallow-parameterless-variadic-functions): New.
1842
a4e3ffad 18432011-09-08 Dodji Seketeli <dodji@redhat.com>
1844
1845 PR c++/33255 - Support -Wunused-local-typedefs warning
1846 * c-common.h (struct c_language_function::local_typedefs): New
1847 field.
19931eea 1848 (record_locally_defined_typedef, maybe_record_typedef_use)
1849 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 1850 * c-common.c (record_locally_defined_typedef)
19931eea 1851 (maybe_record_typedef_use)
1852 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 1853 * c.opt: Declare new -Wunused-local-typedefs flag.
1854
737a23cc 18552011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1856
1857 PR middle-end/50266
1858 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1859 computations.
1860
7542c3b4 18612011-09-05 Richard Guenther <rguenther@suse.de>
1862
1863 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1864 of integer_minus_one_node for empty array upper bounds.
1865
1dc92c59 18662011-08-28 Dodji Seketeli <dodji@redhat.com>
1867
1868 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1869 it's the first time it's being called on this main TU.
1870
2bdf2b6e 18712011-08-24 Richard Guenther <rguenther@suse.de>
1872
1873 PR c/49396
1874 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1875
18762011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 1877
1878 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1879 defined in cpp_init_builtins and c_cpp_builtins.
1880
bff4ad11 18812011-08-19 Joseph Myers <joseph@codesourcery.com>
1882
1883 * c-common.c (c_common_reswords): Add __builtin_complex.
1884 * c-common.h (RID_BUILTIN_COMPLEX): New.
1885
985c6e3a 18862011-08-18 Joseph Myers <joseph@codesourcery.com>
1887
1888 * c-common.c (c_common_reswords): Add _Noreturn.
1889 (keyword_is_function_specifier): Handle RID_NORETURN.
1890 * c-common.h (RID_NORETURN): New.
1891
7dfa155b 18922011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1893
1894 * c-common.c (unsafe_conversion_p): New function. Check if it is
1895 unsafe to convert an expression to the type.
1896 (conversion_warning): Adjust, use unsafe_conversion_p.
1897 * c-common.h (unsafe_conversion_p): New function declaration.
1898
2169f33b 18992011-08-02 Jakub Jelinek <jakub@redhat.com>
1900
1901 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1902 (c_finish_omp_taskyield): New prototype.
1903 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1904 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1905 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1906 or RHS1 have side-effects, evaluate those too in the right spot,
1907 if it is a decl and LHS is also a decl, error out if they
1908 aren't the same.
1909 (c_finish_omp_taskyield): New function.
1910 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1911 * c-pragma.c (omp_pragmas): Add taskyield.
1912 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1913 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1914 PRAGMA_OMP_CLAUSE_MERGEABLE.
1915
ab77850e 19162011-07-25 Dodji Seketeli <dodji@redhat.com>
1917
1918 * c-common.h (set_underlying_type): Remove parm name from
1919 declaration.
1920
6ee97920 19212011-07-25 Romain Geissler <romain.geissler@gmail.com>
1922
1923 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 1924
dc251364 19252011-07-22 Jason Merrill <jason@redhat.com>
1926
1a2a35f0 1927 PR c++/49793
1928 * c.opt (Wnarrowing): New.
1929
27282252 1930 PR c++/30112
1931 * c-common.h: Declare c_linkage_bindings.
1932 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1933
dc251364 1934 PR c++/49813
1935 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1936 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1937 as flag_isoc99 for 'restrict'.
1938 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1939
fc501191 19402011-07-21 Ian Lance Taylor <iant@google.com>
1941
1942 PR middle-end/49705
1943 * c-common.c (c_disable_warnings): New static function.
1944 (c_enable_warnings): New static function.
1945 (c_fully_fold_internal): Change local unused_p to bool. Call
1946 c_disable_warnings and c_enable_warnings rather than change
1947 c_inhibit_evaluation_warnings.
1948
07b8f133 19492011-07-20 Jason Merrill <jason@redhat.com>
1950
1951 PR c++/6709 (DR 743)
1952 PR c++/42603 (DR 950)
1953 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1954 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1955 (CPP_DECLTYPE): New.
1956 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1957
2cc66f2a 19582011-07-19 Richard Guenther <rguenther@suse.de>
1959
1960 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1961 * c-omp.c (c_finish_omp_for): Likewise.
1962
3c802a1e 19632011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1964
1965 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1966 body on the next line.
1967
98a33d9f 19682011-07-08 Jason Merrill <jason@redhat.com>
1969
3115bda0 1970 PR c++/45437
1971 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1972
98a33d9f 1973 PR c++/49673
1974 * c-common.c (c_apply_type_quals_to_decl): Don't check
1975 TYPE_NEEDS_CONSTRUCTING.
1976
c38a75b7 19772011-07-06 Richard Guenther <rguenther@suse.de>
1978
1979 * c-common.c (c_common_nodes_and_builtins):
1980 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1981
e593356b 19822011-07-05 Richard Guenther <rguenther@suse.de>
1983
1984 * c-common.c (c_common_nodes_and_builtins): Build all common
1985 tree nodes first.
1986
fca0886c 19872011-06-27 Jakub Jelinek <jakub@redhat.com>
1988
a68f7a8d 1989 * c-common.h (c_tree_chain_next): New static inline function.
1990
fca0886c 1991 * c-common.c (check_builtin_function_arguments): Handle
1992 BUILT_IN_ASSUME_ALIGNED.
1993
2797f13a 19942011-06-21 Andrew MacLeod <amacleod@redhat.com>
1995
1996 * c-common.c: Add sync_ or SYNC__ to builtin names.
1997 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 1998
19992011-06-20 Pierre Vittet <piervit@pvittet.com>
2000
2001 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
2002 handler.
2003 (gen_pragma_handler): New union.
2004 (internal_pragma_handler): New type.
2005 (c_register_pragma_with_data)
2006 (c_register_pragma_with_expansion_and_data): New functions.
2007
2008 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2009 (c_register_pragma, c_register_pragma_with_expansion)
2010 (c_invoke_pragma_handler): Changed to work with
2011 internal_pragma_handler.
2012 (c_register_pragma_with_data)
2013 (c_register_pragma_with_expansion_and_data): New functions.
2014
218e3e4e 20152011-06-14 Joseph Myers <joseph@codesourcery.com>
2016
2017 * c-common.c: Include common/common-target.h.
2018 (handle_section_attribute): Use
2019 targetm_common.have_named_sections.
2020 * c-cppbuiltin.c: Include common/common-target.h.
2021 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2022
41e53ed2 20232011-06-10 Richard Guenther <rguenther@suse.de>
2024
2025 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2026 to print a IDENTIFIER_NODE.
2027
a6f06169 20282011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2029 Joseph Myers <joseph@codesourcery.com>
2030
2031 * c.opt (fbuilding-libgcc): New option.
2032 * c-cppbuiltin.c (c_cpp_builtins): Define
2033 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2034
1ea9269b 20352011-06-07 Jason Merrill <jason@redhat.com>
2036
8ce59854 2037 * c-common.c (max_tinst_depth): Lower default to 900.
2038
1ea9269b 2039 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2040
1af0124d 20412011-06-07 Richard Guenther <rguenther@suse.de>
2042
2043 * c-common.c (c_common_nodes_and_builtins): Do not set
2044 size_type_node or call set_sizetype.
2045
0e9a4c01 20462011-06-07 Dodji Seketeli <dodji@redhat.com>
2047
2048 PR debug/49130
2049 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 2050 type when using pointer comparison to compare types.
0e9a4c01 2051
90b40725 20522011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2053
2054 * c.opt: Add -Wdelete-non-virtual-dtor.
2055 * c-opts.c (c_common_handle_option): Include it in -Wall.
2056
fc9c9e87 20572011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2058
2059 PR bootstrap/49190
2060
2061 Revert:
2062 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2063
2064 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2065 not tree_common.
2066
d0389adc 20672011-05-27 Jakub Jelinek <jakub@redhat.com>
2068
2069 PR c++/49165
2070 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2071 C++ don't call c_common_truthvalue_conversion on void type arms.
2072
cacfdc02 20732011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2074
2075 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2076 (stmt_list_stack): Define.
2077 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2078 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2079
027fc6ef 20802011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2081
2082 * c-common.c (warning_candidate_p): Check for BLOCKs.
2083
f21317a1 20842011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2085
2086 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2087 not tree_common.
2088
789e953d 20892011-05-25 Jakub Jelinek <jakub@redhat.com>
2090
2091 * c-common.c (def_fn_type): Remove extra va_end.
2092
7f506bca 20932011-05-23 Jason Merrill <jason@redhat.com>
2094
2095 PR c++/48106
2096 * c-common.c (c_common_get_narrower): New.
2097 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2098
774e9d58 20992011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2100
2101 * c-common.h (check_function_arguments): Tweak prototype of
2102 check_function_arguments.
2103 * c-common.c (check_function_arguments): Likewise. Adjust
2104 calls to check_function_nonnull, check_function_format, and
2105 check_function_sentinel.
2106 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2107 separate attributes and typelist arguments. Use
2108 FOREACH_FUNCTION_ARGS to iterate over argument types.
2109
23407dc9 21102011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2111
2112 * c-common.c (c_common_reswords): Reorder.
2113 * c-common.h (rid): Likewise.
2114
3a939d12 21152011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2116
2117 * c-common.c (def_fn_type): Don't call build_function_type, call
2118 build_function_type_array or build_varargs_function_type_array
2119 instead.
2120 (c_common_nodes_and_builtins): Likewise.
2121
b6e3dd65 21222011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2123
2124 * c-common.c (c_add_case_label): Omit the loc argument to
2125 build_case_label.
2126 * c-common.h (build_case_label): Remove.
2127 * c-semantics.c (build_case_label): Remove.
2128
4232a958 21292011-05-05 Joseph Myers <joseph@codesourcery.com>
2130
2131 * c-objc.h (objc_start_method_definition): Update prototype.
2132 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2133
d0af78c5 21342011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2135
2136 * c-common.c (check_main_parameter_types): Reindent. Don't use
2137 TYPE_ARG_TYPES directly.
2138 (handle_nonnull_attribute): Likewise.
2139 (sync_resolve_params): Likewise.
2140 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2141 to check_format_string.
2142 (handle_format_attribute): Likewise.
2143 (check_format_string): Take a function type to examine instead of
2144 a type list. Use a function_arg_iterator to step through argument
2145 types.
2146
ceb7b692 21472011-05-04 Richard Guenther <rguenther@suse.de>
2148
2149 * c-common.c (fix_string_type): Use size_int for index type bounds.
2150 (start_fname_decls): Do not pass NULL to build_int_cst.
2151 (c_init_attributes): Likewise.
2152 * c-lex.c (c_lex_with_flags): Likewise.
2153
c66c81be 21542011-04-27 Jason Merrill <jason@redhat.com>
2155
2156 * c-common.c (make_tree_vector_from_list): New.
2157 * c-common.h: Declare it.
2158
16930c72 21592011-04-26 Richard Guenther <rguenther@suse.de>
2160
2161 PR preprocessor/48248
2162 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2163 for output size with -P.
2164
23407dc9 21652011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2166
2167 * c-common.c (struct c_common_resword): Add __underlying_type.
2168 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2169
dd045aee 21702011-04-20 Jim Meyering <meyering@redhat.com>
2171
2172 * c-format.c (init_dollar_format_checking): Remove useless
2173 if-before-free.
2174
394dd737 21752011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2176
2177 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 2178 (objc_detect_field_duplicates): New.
394dd737 2179 * stub-objc.c: Likewise.
23407dc9 2180
a758bf7d 21812011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2182
2183 * stub-objc.c (objc_declare_protocols): Renamed to
2184 objc_declare_protocol.
2185 * c-objc.h: Likewise.
23407dc9 2186
29d7200d 21872011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2188
2189 * stub-objc.c (objc_declare_class): Updated argument name.
2190
9b88d08d 21912011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2192
2193 * c-common.h (c_common_init_ts): Declare.
2194 * c-common.c (c_common_init_ts): Define.
2195
4185cf58 21962011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2197
2198 * c-objc.h (objc_build_message_expr): Updated prototype.
2199 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 2200
5a90471f 22012011-04-12 Martin Jambor <mjambor@suse.cz>
2202
2203 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2204 of cgraph_node.
2205
783bb57e 22062011-04-11 Richard Guenther <rguenther@suse.de>
2207
2208 * c-common.c (complete_array_type): Build a range type of
2209 proper type.
2210
c33080b9 22112011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2212
2213 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2214 (handle_type_generic_attribute): Likewise.
2215
f8913d47 22162011-04-07 Jason Merrill <jason@redhat.com>
2217
2218 PR c++/48450
2219 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2220 conversion from C++0x scoped enum.
2221
c94b1d0e 22222011-04-06 Joseph Myers <joseph@codesourcery.com>
2223
2224 * c-target-def.h: New file.
2225 * c-target.def: New file.
2226 * c-target.h: New file.
2227 * c-common.c (targetcm): Don't define here.
2228 * c-common.h (default_handle_c_option): Declare.
2229 * c-format.c: Include c-target.h instead of target.h.
2230 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2231 include tm.h.
2232 (default_handle_c_option): Move from targhooks.c.
2233
acb10f41 22342011-03-29 Jakub Jelinek <jakub@redhat.com>
2235
2236 PR preprocessor/48248
2237 * c-ppoutput.c (print): Add src_file field.
2238 (init_pp_output): Initialize it.
2239 (maybe_print_line): Don't optimize by adding up to 8 newlines
2240 if map->to_file and print.src_file are different file.
2241 (print_line): Update print.src_file.
2242
82715bcd 22432011-03-25 Kai Tietz <ktietz@redhat.com>
2244
2245 * c-ada-spec.c (compare_comment): Use filename_cmp
2246 instead of strcmp for filename.
2247
451c8e2f 22482011-03-25 Jeff Law <law@redhat.com>
2249
2250 * c-family/c-common.c (def_fn_type): Add missing va_end.
2251
3c47771c 22522011-03-25 Jason Merrill <jason@redhat.com>
2253
2254 * c.opt: Add -std=c++03.
2255
97e6200f 22562011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2257
2258 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2259
ac86af5d 22602011-03-17 Kai Tietz
2261
2262 PR target/12171
ee212425 2263 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2264 Display allowed attributes for function pointer types.
2265 (pp_c_attributes_display): New function to display
2266 attributes having affects_type_identity flag set to true.
2267 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2268
ac86af5d 2269 * c-common.c (c_common_attribute_table):
2270 Add new element.
2271 (c_common_format_attribute_table): Likewise.
2272
914d1151 22732011-03-18 Jason Merrill <jason@redhat.com>
2274
69788bdf 2275 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2276 * c-common.h: Don't declare it here.
2277 * c-common.c: Or define it here.
2278 * c-opts.c (c_common_handle_option): Or set it here.
2279
914d1151 2280 PR c++/35315
2281 * c-common.c (handle_transparent_union_attribute): Don't
2282 make a duplicate type in C++.
2283
54cf6eed 22842011-03-15 Jason Merrill <jason@redhat.com>
2285
2286 * c-common.c (max_constexpr_depth): New.
2287 * c-common.h: Declare it.
2288 * c-opts.c (c_common_handle_option): Set it.
2289 * c.opt (fconstexpr-depth): New option.
2290
02cb1060 22912011-03-11 Jason Merrill <jason@redhat.com>
2292
9bf1c74e 2293 * c-common.c (attribute_takes_identifier_p): Add missing const.
2294
02cb1060 2295 PR c++/46803
2296 * c-common.c (attribute_takes_identifier_p): Assume that an
2297 unknown attribute takes an identifier.
2298
ecf2703d 22992011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2300
2301 PR c/47786
2302 * c-common.c (c_type_hash): Call list_length instead of iterating
2303 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2304
2b19dfe4 23052011-02-19 Jakub Jelinek <jakub@redhat.com>
2306
2307 PR c/47809
2308 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2309
29cf2335 23102011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2311
2312 * c.opt (fobjc-abi-version=) New.
2313 (fobjc-nilcheck): New.
2314
fad3f658 23152011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2316
2317 PR c++/46890
2318 * c-common.h (keyword_is_decl_specifier): Declare.
2319 * c-common.c (keyword_is_decl_specifier): Define.
2320 (keyword_is_function_specifier): New function.
2321
a12319b3 23222011-01-26 Jakub Jelinek <jakub@redhat.com>
2323
2324 PR c/47473
2325 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2326 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2327 REAL_TYPE.
2328
5c128dc8 23292011-01-26 Arnaud Charlet <charlet@adacore.com>
2330
2331 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2332
8d67b0c7 23332011-01-26 Jakub Jelinek <jakub@redhat.com>
2334
2335 PR pch/47430
2336 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2337 after init_c_lex if pch_file is set.
2338
0675168d 23392011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2340
e8911163 2341 PR c++/43601
0675168d 2342 * c.opt (-fkeep-inline-dllexport): New switch.
2343
0725e25c 23442011-01-12 Richard Guenther <rguenther@suse.de>
2345
2346 PR middle-end/32511
2347 * c-common.c (handle_weak_attribute): Warn instead of error
2348 on declaring an inline function weak.
2349
fdd84b77 23502011-01-05 Tom Tromey <tromey@redhat.com>
2351
2352 * c-common.h (lvalue_error): Update.
2353 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2354 not error.
2355
e6e73d14 23562010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 2357
d67e8485 2358 PR objc/47075
2359 * c-objc.h (objc_finish_message_expr): Added argument to
2360 prototype.
2361
a36cf284 23622010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2363
2364 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2365 Use prototype_p.
2366
33b3681f 23672010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2368
2369 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 2370 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 2371
a1f90215 23722010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2373
2374 * c-common.h (readonly_error): Declare.
2375 * c-common.c (readonly_error): Define.
2376
b1bbc8e5 23772010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2378
2379 * c-common.h (invalid_indirection_error): Declare.
2380 * c-common.c (invalid_indirection_error): Define.
2381
b0d55af9 23822010-12-03 Richard Guenther <rguenther@suse.de>
2383
2384 PR c/46745
2385 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2386 (pp_c_unary_expression): Likewise.
2387 (pp_c_expression): Likewise.
2388
d7489d8d 23892010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2390
2391 * c-common.h (objc_finish_function): New.
2392 (objc_non_volatilized_type): Removed.
2393 (objc_type_quals_match): Removed.
2394 * stub-objc.c (objc_finish_function): New.
2395 (objc_non_volatilized_type): Removed.
2396 (objc_type_quals_match): Removed.
19931eea 2397
92468061 23982010-11-30 Joseph Myers <joseph@codesourcery.com>
2399
2400 * c-common.h (parse_optimize_options): Declare.
2401 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2402 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2403
967958e4 24042010-11-29 Joseph Myers <joseph@codesourcery.com>
2405
2406 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2407 GET_ENVIRONMENT.
2408 * c-pch.c (O_BINARY): Don't define here.
2409 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2410
b213bf24 24112010-11-25 Joseph Myers <joseph@codesourcery.com>
2412
2413 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2414 targetm.except_unwind_info.
2415
9faf44d6 24162010-11-23 Joseph Myers <joseph@codesourcery.com>
2417
2418 * c-opts.c (c_common_handle_option): Pass location to
2419 set_struct_debug_option.
2420
79396169 24212010-11-23 Joseph Myers <joseph@codesourcery.com>
2422
2423 * c-common.c (visibility_options): Move from ../opts.c.
2424 * c-common.h (struct visibility_flags, visibility_options):
2425 Declare here.
2426 * c-opts.c (finish_options): Rename to c_finish_options.
2427 (c_common_init): Update call to finish_options.
2428
b4aa4123 24292010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2430
2431 PR objc/34033
2432 * c-lex.c (lex_string): Check that each string in an Objective-C
2433 string concat sequence starts with either one or zero '@', and
2434 that there are no spurious '@' signs at the end.
2435
3e0e49f2 24362010-11-20 Joseph Myers <joseph@codesourcery.com>
2437
2438 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2439 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2440 HANDLE_PRAGMA_VISIBILITY.
2441 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2442 HANDLE_PRAGMA_VISIBILITY): Don't define.
2443 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2444
a9ffdd35 24452010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2446
2447 PR c++/16189
2448 PR c++/36888
2449 PR c++/45331
2450 * c-common.h (keyword_begins_type_specifier): Declare.
2451 (keyword_is_storage_class_specifier): Declare.
2452 (keyword_is_type_qualifier): Declare.
2453 * c-common.c (keyword_begins_type_specifier): New function.
2454 (keyword_is_storage_class_specifier): New function.
2455 (keyword_is_type_qualifier): Declare.
2456
93be21c0 24572010-11-19 Joseph Myers <joseph@codesourcery.com>
2458
2459 PR c/46547
2460 * c-common.c (in_late_binary_op): Define.
2461 (c_common_truthvalue_conversion): Check in_late_binary_op before
2462 calling c_save_expr.
2463 * c-common.h (in_late_binary_op): Declare.
2464
d7175aef 24652010-11-19 Joseph Myers <joseph@codesourcery.com>
2466
2467 * c-opts.c (c_common_handle_option): Update calls to
2468 set_struct_debug_option.
2469
c213e196 24702010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2471
2472 * c-common.h (objc_declare_protocols): Added additional argument.
2473 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 2474
0b5fc5d6 24752010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2476
2477 PR c/33193
2478 * c-common.h (build_real_imag_expr): Declare.
2479 * c-semantics.c (build_real_imag_expr): Define.
2480
b8ba44e7 24812010-11-17 Joseph Myers <joseph@codesourcery.com>
2482
2483 * c-opts.c (c_common_parse_file): Take no arguments.
2484 * c-common.h (c_common_parse_file): Update prototype.
2485
6ef8d12f 24862010-11-16 Jakub Jelinek <jakub@redhat.com>
2487
2488 PR c++/46401
2489 * c-common.c (warning_candidate_p): Don't track non-const calls
2490 or STRING_CSTs.
2491
929d2a90 24922010-11-15 Ian Lance Taylor <iant@google.com>
2493
2494 * c-lex.c (init_c_lex): Set macro debug callbacks if
2495 flag_dump_go_spec is set.
2496
e4a7640a 24972010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2498
2499 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2500 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2501
597d2d81 25022010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2503
2504 PR preprocessor/45038
2505 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2506 dialects.
2507
c123f04d 25082010-11-12 Joseph Myers <joseph@codesourcery.com>
2509
2510 * c-common.h (c_family_lang_mask): Declare.
2511 * c-opts.c (c_family_lang_mask): Make extern.
2512 * c-pragma.c (handle_pragma_diagnostic): Use
2513 control_warning_option.
2514
3c6c0e40 25152010-11-12 Joseph Myers <joseph@codesourcery.com>
2516
2517 * c-common.c (parse_optimize_options): Update call to
2518 decode_options.
2519 * c-common.h (c_common_handle_option): Update prototype.
2520 * c-opts.c (c_common_handle_option): Take location_t parameter and
2521 pass it to other functions.
2522
19ec5c9e 25232010-11-11 Joseph Myers <joseph@codesourcery.com>
2524
2525 * c-opts.c (warning_as_error_callback): Remove.
2526 (c_common_initialize_diagnostics): Don't call
2527 register_warning_as_error_callback.
2528 (c_common_handle_option): Handle -Werror=normalized= here.
2529
bf776685 25302010-11-10 Joseph Myers <joseph@codesourcery.com>
2531
2532 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2533 in diagnostic.
2534 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2535 letter.
2536 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2537 Remove trailing '.' from diagnostics.
2538 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2539
6bd9d862 25402010-11-10 Joseph Myers <joseph@codesourcery.com>
2541
2542 * c-common.c (parse_optimize_options): Pass global_dc to
2543 decode_options.
2544 * c-opts.c (c_common_handle_option): Pass &global_options to
2545 set_Wstrict_aliasing.
2546 * c.opt (v): Don't mark Common or document here.
2547
1f6616ee 25482010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2549
2550 PR target/44981
2551 * c-format.c (format_type): New type gcc_objc_string_format_type.
2552 (valid_stringptr_type_p): New.
2553 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 2554 (check_format_string): Pass expected type, use
1f6616ee 2555 valid_stringptr_type_p (), check that the format string types are
2556 consistent with the format specification.
2557 (decode_format_attr): Warn if NSString is used outside objective-c.
2558 (format_types_orig): Add NSString.
2559 (format_name): New.
2560 (format_flags): New.
2561 (check_format_arg): Handle format strings requiring an external parser.
2562 first_target_format_type: New variable.
2563 (handle_format_attribute): Set up first_target_format_type, pass the
2564 expected format arg string type to check_format_string().
2565 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2566 * stub-objc.c (objc_string_ref_type_p): New.
2567 (objc_check_format_arg): New.
2568
b0d0931f 25692010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2570
19931eea 2571 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 2572 * c-common.h (objc_build_class_component_ref): New.
2573 * stub-objc.c (objc_build_class_component_ref): New.
2574
f26877d5 25752010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2576
2577 * c.opt (Wproperty-assign-default): New option.
2578
1ef143b6 25792010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2580
2581 Implemented -fobjc-std=objc1 flag.
2582 * c.opt (fobjc-std=objc1): New option.
2583
8c582e4f 25842010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2585
2586 Implemented format and noreturn attributes for Objective-C methods.
2587 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2588 attribute for Objective-C methods.
2589
8637f1db 25902010-10-31 Jason Merrill <jason@redhat.com>
2591
2592 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2593 EXPR_LOC_OR_HERE.
2594
9d9f5bb3 25952010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2596
2597 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2598 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2599 (objc_add_property_declaration): Removed arguments for copies and
2600 ivar.
2601 (objc_build_getter_call): Renamed to
2602 objc_maybe_build_component_ref.
2603 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2604 (objc_is_property_ref): New.
2605 * c-common.c (c_common_reswords): Removed copies and ivar.
2606 * stub-objc.c (objc_add_property_declaration): Removed arguments
2607 for copies and ivar.
2608 (objc_build_getter_call): Renamed to
2609 objc_maybe_build_component_ref.
2610 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2611 (objc_is_property_ref): New.
19931eea 2612
56f907a0 26132010-10-29 Arnaud Charlet <charlet@adacore.com>
2614 Matthew Gingell <gingell@adacore.com>
2615
2616 * c-ada-spec.c (separate_class_package): New function.
2617 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2618 name of their enclosing package.
2619 (print_ada_declaration): Use separate_class_package.
2620
b5fa273e 26212010-10-27 Jason Merrill <jason@redhat.com>
2622
5290e253 2623 * c-common.c (c_common_reswords): Add __is_literal_type.
2624 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2625
b5fa273e 2626 * c-common.c (check_case_value): Remove special C++ code.
2627
7590f0e5 26282010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2629
2630 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2631 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2632 and RID_LAST_PATTR.
2633 (objc_add_property_declaration): Added additional arguments.
2634 (objc_property_attribute_kind): Removed.
2635 (objc_set_property_attr): Removed.
2636 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2637 copy and nonatomic.
2638 * stub-objc.c (objc_add_property_declaration): Added additional
2639 arguments.
2640 (objc_set_property_attr): Removed.
19931eea 2641
1d894bcf 26422010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2643
2644 * c-common.h (objc_add_property_variable): Renamed to
2645 objc_add_property_declaration. Added location argument.
2646 * stub-objc.c (objc_add_property_variable): Same change.
2647
e23bf1fb 26482010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2649
2650 * c-common.h (objc_maybe_printable_name): New.
2651 * stub-objc.c (objc_maybe_printable_name): New.
2652
93426222 26532010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2654 Andrew Pinski <pinskia@gmail.com>
2655
2656 * c-common.h (c_common_mark_addressable_vec): Declare.
2657 * c-common.c (c_common_mark_addressable_vec): New function.
2658
45b2b110 26592010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2660
2661 * c-common.h (objc_set_method_type): Removed.
2662 (objc_add_method_declaration): Added boolean argument.
2663 (objc_start_method_definition): Same change.
2664 (objc_build_method_signature): Same change.
2665 * stub-objc.c (objc_set_method_type): Removed.
2666 (objc_add_method_declaration): Added boolean argument.
2667 (objc_start_method_definition): Same change.
2668 (objc_build_method_signature): Same change.
2669
64cd9619 26702010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2671
2672 * c-common.h (finish_file): Removed.
2673 (objc_write_global_declarations): New.
2674 * c-opts.c (c_common_parse_file): Do not call finish_file.
2675 * stub-objc.c (objc_write_global_declarations): New.
19931eea 2676
e1f293c0 26772010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2678
2679 Implemented parsing @synthesize and @dynamic for
2680 Objective-C/Objective-C++.
2681 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2682 (objc_add_synthesize_declaration): New.
2683 (objc_add_dynamic_declaration): New.
2684 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2685 * stub-objc.c (objc_add_synthesize_declaration): New.
2686 (objc_add_dynamic_declaration): New.
19931eea 2687
ef97a312 26882010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2689
2690 PR target/46041
2691 * c-cppbuiltin.c (mode_has_fma): Move function here from
2692 builtins.c. Don't use the fma optab, instead just use the
2693 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2694 using -save-temps.
2695
69b07042 26962010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2697
2698 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 2699
69b07042 2700 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2701
19931eea 2702 Radar 4330422
69b07042 2703 * c-common.h (objc_non_volatilized_type): New declaration
2704 * stub-objc.c (objc_non_volatilized_type): New stub.
2705
f15f2e56 27062010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2707
69b07042 2708 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 2709
2710 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2711
19931eea 2712 Radar 4133425
f15f2e56 2713 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 2714 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 2715
4a8875ed 27162010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2717
2718 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2719 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2720 (objc_ivar_visibility_kind): New enum.
2721 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 2722 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 2723 visibility enum.
2724
7e0713b1 27252010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2726
2727 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2728 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2729 has the appropriate fma builtins.
2730 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2731
86c110ac 27322010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2733
7e0713b1 2734 merge from FSF apple 'trunk' branch.
86c110ac 2735 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 2736
86c110ac 2737 Radars 4436866, 4505126, 4506903, 4517826
2738 * c-common.c (c_common_resword): Define @property and its attributes.
2739 * c-common.h: Define property attribute enum entries.
2740 (OBJC_IS_PATTR_KEYWORD): New.
2741 (objc_property_attribute_kind): New enum.
2742 Declare objc_set_property_attr (), objc_add_property_variable (),
2743 objc_build_getter_call () and objc_build_setter_call ().
2744 * stub-objc.c (objc_set_property_attr): New stub.
2745 (objc_add_property_variable): Likewise.
2746 (objc_build_getter_call): Likewise.
2747 (objc_build_setter_call) Likewise.
7e0713b1 2748
40c8d1dd 27492010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2750
7e0713b1 2751 merge from FSF apple 'trunk' branch.
40c8d1dd 2752 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2753
2754 Radar 3803157 (method attributes)
2755 * c-common.c (handle_deprecated_attribute): Recognize
2756 objc methods as valid declarations.
2757 * c-common.h: Declare objc_method_decl ().
7e0713b1 2758 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 2759
f3f006ad 27602010-10-08 Joseph Myers <joseph@codesourcery.com>
2761
2762 * c-common.c (parse_optimize_options): Call
2763 decode_cmdline_options_to_array_default_mask before
2764 decode_options. Update arguments to decode_options.
2765 * c-common.h (c_common_init_options_struct): Declare.
2766 * c-opts.c (c_common_init_options_struct): New. Split out from
2767 c_common_init_options.
2768
0a65c3bb 27692010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2770
2771 Implemented fast enumeration for Objective-C.
2772 * c-common.h (objc_finish_foreach_loop): New.
2773 * stub-objc.c (objc_finish_foreach_loop): New.
2774
24ca3b4e 27752010-10-05 Joseph Myers <joseph@codesourcery.com>
2776
2777 * c-common.h (struct diagnostic_context): Don't declare here.
2778 (c_common_initialize_diagnostics): Declare using
2779 diagnostic_context typedef.
2780 * c-opts.c (c_common_handle_option): Pass global_dc to
2781 handle_generated_option.
2782
f83b64ca 27832010-10-04 Joseph Myers <joseph@codesourcery.com>
2784
2785 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2786 handle_generated_option.
2787
2fdec027 27882010-10-03 Ian Lance Taylor <iant@google.com>
2789
2790 * c.opt (-fplan9-extensions): New option.
2791
41acdfa4 27922010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2793
2794 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2795 Remove.
2796 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2797 of duplicating code.
2798
069761fb 27992010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2800
2801 * c-common.c: Add two new entries for @optional
2802 and @required keywords.
2803
2804 merge from FSF 'apple/trunk' branch.
2805 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2806
2807 Radar 4386773
2808 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2809 objective-c keywords.
2810 (objc_set_method_opt): New declaration.
2811 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 2812
2c5d2e39 28132010-09-30 Joseph Myers <joseph@codesourcery.com>
2814
2815 * c-common.c (handle_optimize_attribute): Pass &global_options to
2816 cl_optimization_save and cl_optimization_restore.
2817 * c-opts.c (c_common_handle_option): Pass &global_options to
2818 handle_generated_option.
2819 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2820 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2821 &global_options to cl_optimization_restore.
2822
e5c75ac3 28232010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2824
2825 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2826 Objective-C/Objective-C++ keywords.
2827
3511333e 28282010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 2829
19931eea 2830 Merge from 'apple/trunk' branch on FSF servers.
2831
e147d6aa 2832 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2833
2834 Radar 4281748
2835 * c-common.h (objc_check_global_decl): New declaration.
2836 * stub-objc.c (objc_check_global_decl): New stub.
2837
5461e683 28382010-09-29 Joseph Myers <joseph@codesourcery.com>
2839
2840 * c.opt: Don't use VarExists.
2841
5ae82d58 28422010-09-29 Joseph Myers <joseph@codesourcery.com>
2843
2844 * c-common.c (c_cpp_error): Update names of diagnostic_context
2845 members.
2846 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2847 cl_optimization members.
2848 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2849 sanitize_cpp_opts, finish_options): Update names of cpp_options
2850 members.
2851
b27e241e 28522010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2853
2854 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2855 (objc_is_reserved_word): Removed.
2856 * c-common.c: Updated comments.
2857 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2858 objc_is_reserved_word.
2859 * stub-objc.c (objc_is_reserved_word): Removed.
2860
03fc2271 28612010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2862
19931eea 2863 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 2864 include attributes.
2865 (objc_start_method_definition): Likewise.
2866 (objc_build_keyword_decl): Likewise.
2867 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2868 (objc_start_method_definition): Likewise.
2869 (objc_build_keyword_decl): Likewise.
2870
a336eb4b 28712010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2872
2873 * c-common.h (objc_start_class_interface): Adjust prototype.
2874 (objc_start_category_interface): Likewise.
2875 (objc_start_protocol): Likewise.
2876 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2877 (objc_start_class_interface): Likewise.
2878 (objc_start_category_interface): Likewise.
2879
48b14f50 28802010-09-27 Ian Lance Taylor <iant@google.com>
2881
2882 * c-common.c (c_common_attribute_table): Add no_split_stack.
2883 (handle_no_split_stack_attribute): New static function.
2884
4abfc532 28852010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2886
19931eea 2887 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 2888
2889 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2890
19931eea 2891 Radar 4229905
4abfc532 2892 * c-common.h (objc_have_common_type): New declaration.
2893 * stub-objc.c (objc_have_common_type): New stub.
2894
2895 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2896
2897 Radar 4154928
2898 * c-common.h (objc_common_type): New prototype.
19931eea 2899 * stub-objc.c (objc_common_type): New stub.
4abfc532 2900
7bd95dfd 29012010-09-24 Jan Hubicka <jh@suse.cz>
2902
2903 * c-common.c (handle_leaf_attribute): New function.
2904 (struct attribute_spec c_common_att): Add leaf.
2905
5789e05b 29062010-09-22 Joseph Myers <joseph@codesourcery.com>
2907
2908 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2909 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2910 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2911 -include-barrier, -include-directory, -include-directory=,
2912 -include-directory-after, -include-directory-after=,
2913 -include-prefix, -include-prefix=, -include-with-prefix,
2914 -include-with-prefix=, -include-with-prefix-after,
2915 -include-with-prefix-after=, -include-with-prefix-before,
2916 -include-with-prefix-before=, -no-integrated-cpp,
2917 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2918 -output=, -pedantic, -pedantic-errors, -preprocess,
2919 -print-missing-file-dependencies, -trace-includes, -traditional,
2920 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2921 -user-dependencies, -verbose, -write-dependencies,
2922 -write-user-dependencies, no-integrated-cpp, traditional): New.
2923
e6fb54ba 29242010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2925
2926 PR objc/23710
9b60f3b0 2927 * c-common.h (objc_start_method_definition): Return bool instead
2928 of void.
2929 * stub-objc.c (objc_start_method_definition): Return bool instead
2930 of void.
2931
29322010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2933
2934 PR objc/25965
2935 * c-common.h (objc_get_interface_ivars): New declaration.
2936 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 2937
e44b0a1f 29382010-09-15 Ian Lance Taylor <iant@google.com>
2939
2940 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 2941 messages. Remove period at end of warning message.
e44b0a1f 2942
85c0a25c 29432010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2944
2945 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2946 (handle_alias_attribute): ... here.
2947 (handle_ifunc_attribute): New.
2948
5ba33bf4 29492010-09-06 Mark Mitchell <mark@codesourcery.com>
2950
2951 * c-common.h (do_warn_double_promotion): Declare.
2952 * c-common.c (do_warn_double_promotion): Define.
2953
c920faa3 29542010-09-05 Mark Mitchell <mark@codesourcery.com>
2955
2956 * c.opt (Wdouble-promotion): New.
2957
9604e070 29582010-09-02 Joseph Myers <joseph@codesourcery.com>
2959
2960 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2961 fvtable-thunks, fxref): Mark no longer supported in help text.
2962
3b0273a1 29632010-09-02 Joseph Myers <joseph@codesourcery.com>
2964
2965 * c.opt (Wimport, fall-virtual, falt-external-templates,
2966 fdefault-inline, fenum-int-equiv, fexternal-templates,
2967 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2968 fname-mangling-version-, fnew-abi, fnonnull-objects,
2969 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2970 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2971 applicable.
2972 (fhandle-exceptions): Mark with Alias and Warn.
2973 * c-opts.c (c_common_handle_option): Don't handle options marked
2974 as ignored.
2975
67089c6b 29762010-09-02 Joseph Myers <joseph@codesourcery.com>
2977
2978 * c.opt (Wcomments, Werror-implicit-function-declaration,
2979 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2980 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2981 aliases.
2982 * c-common.c (option_codes): Use OPT_Wcomment instead of
2983 OPT_Wcomments.
2984 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2985 Don't handle options marked as aliases.
2986
2af087f2 29872010-08-25 Richard Guenther <rguenther@suse.de>
2988
2989 * c-common.c (c_common_get_alias_set): Remove special
2990 handling for pointers.
2991
48148244 29922010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2993
2994 * c-common.c: Use FOR_EACH_VEC_ELT.
2995 * c-gimplify.c: Likewise.
2996 * c-pragma.c: Likewise.
2997
89c69892 29982010-08-16 Joseph Myers <joseph@codesourcery.com>
2999
3000 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
3001 RejectDriver.
3002 (MMDX): Change back to MMD. Mark NoDriverArg instead of
3003 RejectDriver.
3004 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
3005 instead of OPT_MDX and OPT_MMDX.
3006
e28aa114 30072010-08-16 Joseph Myers <joseph@codesourcery.com>
3008
3009 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3010
99b66d21 30112010-08-12 Joseph Myers <joseph@codesourcery.com>
3012
3013 * c.opt (MD, MMD): Change to MDX and MMDX.
3014 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3015
666f4bf0 30162010-08-11 Joseph Myers <joseph@codesourcery.com>
3017
3018 * c-opts.c (c_common_handle_option): Call handle_generated_option
3019 instead of handle_option.
3020
5ec815f6 30212010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3022
3023 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3024 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3025
d13143cf 30262010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3027
3028 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3029 (pending_redefine_extname): Change type to a VEC.
3030 (add_to_renaming_pragma_list): Update for new type of
3031 pending_redefine_extname.
5ec815f6 3032 (maybe_apply_renaming_pragma): Likewise.
d13143cf 3033
2008c983 30342010-08-04 Arnaud Charlet <charlet@adacore.com>
3035
3036 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3037 visited.
3038 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3039 decide whether a type has already been declared/seen.
3040 Do not go to the original type.
3041 (dump_nested_types): New parameter forward.
3042 Generate forward declaration if needed and mark type as visited.
3043 (print_ada_declaration): Call dump_nested_types if not already done.
3044 Mark types as visited.
3045
9b091a73 30462010-08-03 Joseph Myers <joseph@codesourcery.com>
3047
3048 * c.opt (-print-pch-checksum): Remove option.
3049 * c-opts.c (c_common_handle_option): Don't handle
3050 OPT_print_pch_checksum.
3051
b78351e5 30522010-07-27 Joseph Myers <joseph@codesourcery.com>
3053
3054 * c-common.h (c_common_handle_option): Update prototype and return
3055 value type.
3056 * c-opts.c (c_common_handle_option): Update prototype and return
3057 value type. Update calls to handle_option and
3058 enable_warning_as_error.
3059
34416a90 30602010-07-27 Jakub Jelinek <jakub@redhat.com>
3061
3062 PR c/45079
3063 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3064
fecf9011 30652010-07-27 Joseph Myers <joseph@codesourcery.com>
3066
3067 * c-common.h (c_common_missing_argument): Remove.
3068 * c-opts.c (c_common_missing_argument): Remove.
3069 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3070 idirafter, imacros, include, isysroot, isystem, iquote): Add
3071 MissingArgError.
3072 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3073
e88d34f6 30742010-07-27 Joseph Myers <joseph@codesourcery.com>
3075
3076 * c-common.h (c_common_option_lang_mask,
3077 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3078 New.
3079 (c_common_init_options): Update prototype.
3080 * c-opts.c (c_common_option_lang_mask): New.
3081 (c_common_initialize_diagnostics): Split out of
3082 c_common_init_options.
3083 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3084 New.
3085 (c_common_init_options): Update prototype. Use decoded options in
3086 search for -lang-asm.
3087
1767a056 30882010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3089
3090 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3091 * c-format.c: Likewise.
3092
0b205f4c 30932010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3094
3095 * c-common.h: Include diagnostic-core.h. Error if already
3096 included.
3097 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3098
1c58e3f1 30992010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3100
3101 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3102 Do not include expr.h
3103 (vector_mode_valid_p): Move here.
3104
33cc157c 31052010-06-21 DJ Delorie <dj@redhat.com>
3106
3107 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3108 allow these pragmas anywhere.
3109
31102010-06-14 Jakub Jelinek <jakub@redhat.com>
3111
3112 PR bootstrap/44509
3113 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3114 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3115 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3116 ggc_strdup instead of xstrdup.
3117
31182010-06-10 Jakub Jelinek <jakub@redhat.com>
3119
3120 * c-cppbuiltin.c: Include cpp-id-data.h.
3121 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3122 (lazy_hex_fp_value): New function.
3123 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3124
9b40bfbf 31252010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3126
3127 * c-gimplify.c: Do not include tree-flow.h
3128
202d6e5f 31292010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3130
3131 PR other/44034
3132 * c-common.c: Rename targetm member:
3133 targetm.enum_va_list -> targetm.enum_va_list_p
3134
d3237426 31352010-06-28 Anatoly Sokolov <aesok@post.ru>
3136
3137 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3138
596981c8 31392010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3140
3141 * c-cppbuiltin.c: Do not include except.h.
3142
b9bdfa0b 31432010-06-24 Andi Kleen <ak@linux.intel.com>
3144
19931eea 3145 * c-common.c (warn_for_omitted_condop): New.
3146 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 3147
55ad092d 31482010-06-21 Joseph Myers <joseph@codesourcery.com>
3149
3150 * c.opt (lang-objc): Remove.
3151 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3152
9e7c2572 31532010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3154
3155 * c-opts.c: Include "tm_p.h".
3156
615ef0bb 31572010-06-20 Joseph Myers <joseph@codesourcery.com>
3158
3159 * c-common.c (parse_optimize_options): Update call to
3160 decode_options.
3161
aef48c9a 31622010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3163
3164 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3165 new type of types_used_by_cur_var_decl.
3166
d74003b4 31672010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3168
3169 PR bootstrap/44512
3170 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3171 for C++ standard compliance.
3172
1194d077 31732010-06-16 Jason Merrill <jason@redhat.com>
3174
3175 * c.opt: Add -Wnoexcept.
3176
d473d901 31772010-06-16 Richard Guenther <rguenther@suse.de>
3178
3179 PR c/44555
3180 * c-common.c (c_common_truthvalue_conversion): Remove
3181 premature and wrong optimization concering ADDR_EXPRs.
3182
b62dbfd3 31832010-06-15 Arnaud Charlet <charlet@adacore.com>
3184
3185 * c-ada-spec.c (dump_sloc): Remove column info.
3186 (is_simple_enum): New function.
3187 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3188 enum types when relevant.
3189
200dd99c 31902010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3191
19931eea 3192 * c-common.c (conversion_warning): Warn at expression
200dd99c 3193 location.
3194
abf6a617 31952010-06-10 Joseph Myers <joseph@codesourcery.com>
3196
3197 * c-opts.c (c_common_handle_option): Don't handle
3198 OPT_fshow_column.
3199
ba72912a 32002010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3201
3202 * c-pragma.c (push_alignment): Use typed GC allocation.
3203 (handle_pragma_push_options): Likewise.
3204
3205 * c-common.c (parse_optimize_options): Likewise.
3206
3207 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3208 option.
3209
4aafe913 32102010-06-07 Joseph Myers <joseph@codesourcery.com>
3211
3212 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3213 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3214 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3215 flag_signed_bitfields, warn_strict_null_sentinel,
3216 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3217 flag_gen_declaration, flag_no_gnu_keywords,
3218 flag_implement_inlines, flag_implicit_templates,
3219 flag_implicit_inline_templates, flag_optional_diags,
3220 flag_elide_constructors, flag_default_inline, flag_rtti,
3221 flag_conserve_space, flag_access_control, flag_check_new,
3222 flag_new_for_scope, flag_weak, flag_working_directory,
3223 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3224 flag_enforce_eh_specs, flag_threadsafe_statics,
3225 flag_pretty_templates): Remove.
3226 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3227 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3228 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3229 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3230 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3231 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3232 flag_no_gnu_keywords, flag_implement_inlines,
3233 flag_implicit_templates, flag_implicit_inline_templates,
3234 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3235 flag_rtti, flag_conserve_space, flag_access_control,
3236 flag_check_new, flag_new_for_scope, flag_weak,
3237 flag_working_directory, flag_use_cxa_atexit,
3238 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3239 flag_threadsafe_statics, flag_pretty_templates,
3240 warn_strict_null_sentinel): Remove.
3241 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3242 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3243 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3244 fimplicit-inline-templates, fimplicit-templates,
3245 flax-vector-conversions, fms-extensions, fnil-receivers,
3246 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3247 frtti, fshort-double, fshort-enums, fshort-wchar,
3248 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3249 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3250 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3251 gen-decls, undef): Use Var.
3252 (fdefault-inline, foptional-diags): Document as doing nothing.
3253 * c-opts.c (c_common_handle_option): Remove cases for options now
3254 using Var. Mark ignored options as such.
3255
7bedc3a0 32562010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3257
19931eea 3258 * c-common.c: Moved to here from parent directory.
7bedc3a0 3259 * c-common.def: Likewise.
3260 * c-common.h: Likewise.
3261 * c-cppbuiltin.c: Likewise.
3262 * c-dump.c: Likewise.
3263 * c-format.c: Likewise.
3264 * c-format.h : Likewise.
3265 * c-gimplify.c: Likewise.
3266 * c-lex.c: Likewise.
3267 * c-omp.c: Likewise.
3268 * c.opt: Likewise.
3269 * c-opts.c: Likewise.
3270 * c-pch.c: Likewise.
3271 * c-ppoutput.c: Likewise.
3272 * c-pragma.c: Likewise.
3273 * c-pragma.h: Likewise.
3274 * c-pretty-print.c: Likewise.
3275 * c-pretty-print.h: Likewise.
3276 * c-semantics.c: Likewise.
3277 * stub-objc.c: Likewise.
3278
3279 * c-common.c: Include gt-c-family-c-common.h.
3280 * c-pragma.c: Include gt-c-family-c-pragma.h.
3281\f
711789cc 3282Copyright (C) 2010-2013 Free Software Foundation, Inc.
7bedc3a0 3283
3284Copying and distribution of this file, with or without modification,
3285are permitted in any medium without royalty provided the copyright
3286notice and this notice are preserved.