]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR target/59216 (ARM negdi*extendsidi regression)
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
8400e75e
DM
12013-11-22 David Malcolm <dmalcolm@redhat.com>
2
3 * c-common.c (unsafe_conversion_p): Remove use of
4 EXPR_LOC_OR_HERE macro.
5 (conversion_warning): Likewise.
6 (warnings_for_convert_and_check): Likewise.
7 (warn_for_collisions_1): Likewise.
8 (shorten_compare): Likewise, and remove use of in_system_header
9 macro, using the location from the former.
10 * c-lex.c (dump_one_header): Remove use of input_filename macro.
11 (cb_def_pragma): Remove use of in_system_header macro.
12 (lex_string): Likewise.
13 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
14
eb1ce453
KZ
152013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
16 Mike Stump <mikestump@comcast.net>
17 Richard Sandiford <rdsandiford@googlemail.com>
18
19 * c-ada-spec.c (is_simple_enum): Use tree_to_shwi and tree_to_uhwi
20 instead of TREE_INT_CST_LOW, in cases where there is a protecting
21 tree_fits_shwi_p or tree_fits_uhwi_p.
22 (dump_generic_ada_node): Likewise.
23 * c-format.c (check_format_arg): Likewise.
24 * c-pretty-print.c (pp_c_integer_constant): Likewise.
25
6b3b8c27
KZ
262013-11-20 Kenneth Zadeck <zadeck@naturalbridge.com>
27
28 * c-common.c (check_function_arguments_recurse): Use tree_to_uhwi.
29
49b0aa18
JC
302013-11-19 Joshua J Cogliati <jrincayc@yahoo.com>
31
32 PR c/53001
33 * c-common.c (unsafe_conversion_p): Make this function
34 return an enumeration with more detail.
35 (conversion_warning): Use the new return type of
36 unsafe_conversion_p to separately warn either about conversions
37 that lower floating point number precision or about the other
38 kinds of conversions.
39 * c-common.h (enum conversion_safety): New enumeration.
40 (unsafe_conversion_p): switching return type to
41 conversion_safety enumeration.
42 * c.opt: Adding new warning -Wfloat-conversion and
43 enabling it with -Wconversion.
44
b826515a
BS
452013-11-19 Basile Starynkevitch <basile@starynkevitch.net>
46
47 * c-opts.c: Include plugin.h.
48 (cb_file_change): Invoke plugin event PLUGIN_INCLUDE_FILE.
49
b9a55b13
MP
502013-11-19 Marek Polacek <polacek@redhat.com>
51
52 * c-ubsan.c (ubsan_instrument_division): Adjust ubsan_create_data
53 call.
54 (ubsan_instrument_shift): Likewise.
55 (ubsan_instrument_vla): Likewise.
56
7d362f6c
RS
572013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
58
59 * c-common.c (convert_vector_to_pointer_for_subscript): Remove
60 cast to unsigned type.
61
386b1f1f
RS
622013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
63
64 * c-common.c (fold_offsetof_1): Use tree_to_uhwi rather than
65 tree_low_cst.
66 (complete_array_type): Update comment to refer to tree_to_[su]hwi
67 rather than tree_low_cst.
68
ae7e9ddd
RS
692013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
70
71 * c-common.c, c-cppbuiltin.c: Replace tree_low_cst (..., 1) with
72 tree_to_uhwi throughout.
73
9439e9a1
RS
742013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
75
76 * c-common.c, c-format.c, c-omp.c, c-pretty-print.c: Replace
77 tree_low_cst (..., 0) with tree_to_shwi throughout.
78
cc269bb6
RS
792013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
80
81 * c-ada-spec.c, c-common.c, c-pretty-print.c: Replace
82 host_integerp (..., 1) with tree_fits_uhwi_p throughout.
83
9541ffee
RS
842013-11-18 Richard Sandiford <rdsandiford@googlemail.com>
85
86 * c-ada-spec.c, c-common.c, c-format.c, c-pretty-print.c: Replace
87 host_integerp (..., 0) with tree_fits_shwi_p throughout.
88
c02065fc
AH
892013-11-15 Aldy Hernandez <aldyh@redhat.com>
90
91 * c-cilkplus.c: New file.
92 * c-common.c (readonly_error): Add location argument.
93 * c-common.h (readonly_error): Same.
94 (c_finish_cilk_clauses): Protoize.
95 (c_check_cilk_loop): Same.
96 c-omp.c (c_finish_omp_for): Handle CILK_SIMD nodes.
97 Do not fail on error_mark_node.
98 Abstract increment canonicalization to here...
99 (c_omp_for_incr_canonicalize_ptr): New.
100 c-pragma.c (init_pragma): Register "simd" pragma.
101 c-pragma.h (enum pragma_kind): Add PRAGMA_CILK_SIMD.
102 (enum pragma_cilk_clause): New.
103
9cc65f15
RS
1042013-11-15 Richard Sandiford <rdsandiford@googlemail.com>
105
106 * c-pretty-print.c (pp_c_character_constant): Remove unnecessary
107 wchar_type and host_integerp checks.
108
18f429e2
AM
1092013-11-14 Andrew MacLeod <amacleod@redhat.com>
110
111 * c-common.c: Likewise.
112 * c-gimplify.c: Likewise.
113 * cilk.c: Likewise.
114
d8a2d370
DN
1152013-11-14 Diego Novillo <dnovillo@google.com>
116
117 * c-common.c: Include fold-const.h.
118 Include stor-layout.h.
119 Include calls.h.
120 Include stringpool.h.
121 Include attribs.h.
122 Include varasm.h.
123 Include trans-mem.h.
124 * c-cppbuiltin.c: Include stor-layout.h.
125 Include stringpool.h.
126 * c-format.c: Include stringpool.h.
127 * c-lex.c: Include stringpool.h.
128 Include stor-layout.h.
129 * c-pragma.c: Include stringpool.h.
130 Include attribs.h.
131 Include varasm.h.
132 Include gcc-symtab.h.
133 * c-pretty-print.c: Include stor-layout.h.
134 Include attribs.h.
135 * cilk.c: Include stringpool.h.
136 Include calls.h.
137
38b7bc7f
JM
1382013-11-13 Joseph Myers <joseph@codesourcery.com>
139
140 * c-common.h (enum rid): Add RID_AUTO_TYPE.
141 * c-common.c (c_common_reswords): Add __auto_type.
142 (keyword_begins_type_specifier): Handle RID_AUTO_TYPE.
143
45b0be94
AM
1442013-11-12 Andrew MacLeod <amacleod@redhat.com>
145
18f429e2
AM
146 * c-common.c: Include gimplify.h.
147 * c-gimplify.c: Likewise.
148 * cilk.c: Likewise.
149 * c-omp.c: Include gimple-expr.h instead of gimple.h.
150 * c-ubsan.c: Don't include gimple.h.
45b0be94 151
582d9b50
JM
1522013-11-12 Joseph Myers <joseph@codesourcery.com>
153
154 * c-common.c (c_common_reswords): Add _Thread_local.
155
6b28e197
JM
1562013-11-09 Joseph Myers <joseph@codesourcery.com>
157
158 * c-common.c (atomic_size_supported_p): New function.
159 (resolve_overloaded_atomic_exchange)
160 (resolve_overloaded_atomic_compare_exchange)
161 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
162 Use it instead of comparing size with a local list of sizes.
163
267bac10
JM
1642013-11-07 Andrew MacLeod <amacleod@redhat.com>
165 Joseph Myers <joseph@codesourcery.com>
166
167 * c-common.h (enum rid): Add RID_ATOMIC.
168 * c-common.c (c_common_reswords): Add _Atomic.
169 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
170 (keyword_is_type_qualifier): Accept RID_ATOMIC.
171 * c-format.c (check_format_types): Check for extra _Atomic
172 qualifiers in format argument.
173 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
174 (pp_c_type_qualifier_list): Mention _Atomic in comment.
175
5157b91e
TB
1762013-11-06 Tobias Burnus <burnus@net-b.de>
177
178 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
179
6dbe0958
JM
1802013-11-06 Joseph Myers <joseph@codesourcery.com>
181
182 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
183 standards modes.
184 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
185 to mean lack of IEEE 754 support.
186
e8ff5196
TB
1872013-11-05 Tobias Burnus <burnus@net-b.de>
188
189 * c.opt (-Wdate-time): New option
190 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
191
254a0760
JM
1922013-11-05 Joseph Myers <joseph@codesourcery.com>
193
194 * c-cppbuiltin.c (cpp_iec_559_value): Test
195 flag_excess_precision_cmdline not flag_excess_precision.
196
6d7f7e0a
TB
1972013-11-05 Tobias Burnus <burnus@net-b.de>
198
199 * c.opt (fopenmp-simd): New option.
200 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
201 (omp_pragmas): ... this new struct.
202 (c_pp_lookup_pragma): Also walk omp_pragmas.
203 (init_pragma): Init pragmas for -fopenmp-simd.
204
55a7f02f
MP
2052013-11-04 Marek Polacek <polacek@redhat.com>
206
207 PR c++/58979
208 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
209
9193fb05
JM
2102013-11-04 Joseph Myers <joseph@codesourcery.com>
211
212 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
213 New functions.
214 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
215
94159ecf
EB
2162013-11-04 Eric Botcazou <ebotcazou@adacore.com>
217
218 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
219 (dump_ada_specs): Adjust prototype of second callback.
220 * c-ada-spec.c (cpp_check): New global variable.
221 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
222 (print_generic_ada_decl): Likewise.
223 (has_static_fields): Change return type to bool and add guard.
224 (has_nontrivial_methods): New predicate.
225 (is_tagged_type): Change return type to bool.
226 (separate_class_package): Call has_nontrivial_methods.
227 (pp_ada_tree_identifier): Minor tweaks.
228 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
229 (dump_ada_array_domains): Likewise.
230 (dump_ada_array_type): Likewise.
231 (dump_template_types): Remove cpp_check parameter and do not pass it to
232 dump_generic_ada_node.
233 (dump_ada_template): Likewise.
234 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
235 recursively.
236 (print_ada_methods): Change return type to integer. Remove cpp_check
237 parameter and do not pass it down.
238 (dump_nested_types): Remove cpp_check parameter and do not pass it to
239 dump_generic_ada_node.
240 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
241 accessing methods.
242 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
243 down. Use has_nontrivial_methods to recognize C++ classes. Use return
244 value of print_ada_methods.
245 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
246 Set cpp_check to it before invoking dump_ada_nodes.
247 (dump_ada_specs): Likewise.
248
b906f4ca
MP
2492013-11-03 Marek Polacek <polacek@redhat.com>
250
251 * c-ubsan.c: Don't include hash-table.h.
252 (ubsan_instrument_vla): New function.
253 * c-ubsan.h: Declare it.
254
5e20cdc9
DM
2552013-10-31 David Malcolm <dmalcolm@redhat.com>
256
257 Automated part of renaming of symtab_node_base to symtab_node.
258
259 Patch autogenerated by rename_symtab.py from
260 https://github.com/davidmalcolm/gcc-refactoring-scripts
261 revision 58bb219cc090b2f4516a9297d868c245495ee622
262
263 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
264 symtab_node_base to symtab_node.
265
7057e645
ESR
2662013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
267
268 Implement C++14 digit separators.
269 * c-lex.c (interpret_float): Remove digit separators from scratch string
270 before building real literal.
271
193ea7bc
JJ
2722013-10-30 Jakub Jelinek <jakub@redhat.com>
273
274 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
275
939b37da
BI
2762013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
277
278 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
279 fields.
280 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
281 enabled.
282 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
283 (insert_cilk_frame): New prototype.
284 (cilk_init_builtins): Likewise.
285 (gimplify_cilk_spawn): Likewise.
286 (c_cilk_install_body_w_frame_cleanup): Likewise.
287 (cilk_detect_spawn_and_unwrap): Likewise.
288 (cilk_set_spawn_marker): Likewise.
289 (build_cilk_sync): Likewise.
290 (build_cilk_spawn): Likewise.
291 * cilk.c: New file.
292
67348ccc
DM
2932013-10-29 David Malcolm <dmalcolm@redhat.com>
294
295 Patch autogenerated by refactor_symtab.py from
296 https://github.com/davidmalcolm/gcc-refactoring-scripts
297 revision 58bb219cc090b2f4516a9297d868c245495ee622
298
299 * c-gimplify.c (c_genericize): Update for conversion of symtab types
300 to a true class hierarchy.
301 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
302
d570872d
RS
3032013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
304
305 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
306
98906124
JL
3072013-10-26 Jeff Law <law@redhat.com>
308
309 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
310 * c-family/c.opt: Ignore and warn for mudflap options.
311
d73749df 3122013-10-24 Tobias Burnus <burnus@net-b.de>
8170608b
TB
313
314 PR other/33426
315 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
316 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
317
3f04b1bb
JM
3182013-10-23 Jason Merrill <jason@redhat.com>
319
320 * c-format.c (gcc_cxxdiag_char_table): Add %X.
321
acf0174b
JJ
3222013-10-11 Jakub Jelinek <jakub@redhat.com>
323
acd15a28
JJ
324 * c-common.h (omp_clause_mask::operator !=): New method.
325 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
326 instead of if (mask & something) tests everywhere.
327
acf0174b
JJ
328 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
329 201307 instead of 201107.
330 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
331 (c_common_attribute_table): Add "omp declare target" and
332 "omp declare simd" attributes.
333 (handle_omp_declare_target_attribute,
334 handle_omp_declare_simd_attribute): New functions.
335 * c-omp.c: Include c-pragma.h.
336 (c_finish_omp_taskgroup): New function.
337 (c_finish_omp_atomic): Add swapped argument, if true,
338 build the operation first with rhs, lhs arguments and use NOP_EXPR
339 build_modify_expr.
340 (c_finish_omp_for): Add code argument, pass it down to make_code.
341 (c_omp_split_clauses): New function.
342 (c_split_parallel_clauses): Removed.
343 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
344 c_omp_declare_simd_clauses_to_decls): New functions.
345 * c-common.h (omp_clause_mask): New type.
346 (OMP_CLAUSE_MASK_1): Define.
347 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
348 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
349 omp_clause_mask::operator |, omp_clause_mask::operator &,
350 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
351 omp_clause_mask::operator ==): New methods.
352 (enum c_omp_clause_split): New.
353 (c_finish_omp_taskgroup): New prototype.
354 (c_finish_omp_atomic): Add swapped argument.
355 (c_finish_omp_for): Add code argument.
356 (c_omp_split_clauses): New prototype.
357 (c_split_parallel_clauses): Removed.
358 (c_omp_declare_simd_clauses_to_numbers,
359 c_omp_declare_simd_clauses_to_decls): New prototypes.
360 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
361 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
362 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
363 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
364 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
365 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
366 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
367 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
368 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
369 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
370 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
371 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
372 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
373 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
374 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
375 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
376 PRAGMA_OMP_CLAUSE_UNIFORM.
377
826cacfe
MG
3782013-10-09 Marc Glisse <marc.glisse@inria.fr>
379
380 PR tree-optimization/20318
381 * c-common.c (handle_returns_nonnull_attribute): New function.
382 (c_common_attribute_table): Add returns_nonnull.
383
2284b034
MG
3842013-10-03 Marc Glisse <marc.glisse@inria.fr>
385
386 PR c++/19476
387 * c.opt (fcheck-new): Move to common.opt.
388
b56e9788
MP
3892013-09-25 Marek Polacek <polacek@redhat.com>
390 Jakub Jelinek <jakub@redhat.com>
391
392 PR sanitizer/58413
393 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
394 an expression if we can prove it is correct.
395 (ubsan_instrument_division): Likewise. Remove unnecessary
396 check.
397
ce6923c5
MP
3982013-09-18 Marek Polacek <polacek@redhat.com>
399
400 PR sanitizer/58411
401 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
402 Declare it.
403 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
404
fb5610fb
IS
4052013-09-14 Iain Sandoe <iain@codesourcery.com>
406
407 PR target/48094
408 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
409 fobjc-gc, freplace-objc-classes): Accept for LTO.
410
88b0e79e
JC
4112013-09-13 Jacek Caban <jacek@codeweavers.com>
412
413 * c-target.def: New hook
414
c9b0866a
PC
4152013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
416
417 PR c++/43452
418 * c.opt (Wdelete-incomplete): Add.
419
0af94e6f
JR
4202013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
421
422 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
423 (vector_types_compatible_elements_p): New function.
424 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
425 declaration.
426 (vector_types_compatible_elements_p): Declare.
427
7c26172c
GDR
4282013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
429
430 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
431 a virtual member function.
432 (pp_simple_type_specifier): Remove.
433 (pp_c_type_specifier): Likewise.
434 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
435 Rename from pp_c_type_specifier. Adjust.
436 (c_pretty_printer::c_pretty_printer): Do not assign to
437 simple_type_specifier.
438
20059c8b
GDR
4392013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
440
441 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
442 member function.
443 (c_pretty_printer::storage_class_specifier): Likewise.
444 (c_pretty_printer::initializer): Likewise.
445 (pp_declaration): Remove.
446 (pp_declaration_specifiers): Likewise.
447 (pp_abstract_declarator): Likewise.
448 (pp_declarator): Likewise.
449 (pp_type_id): Likewise.
450 (pp_statement): Likewise.
451 (pp_constant): Likewise.
452 (pp_id_expression): Likewise.
453 (pp_primary_expression): Likewise.
454 (pp_unary_expression): Likewise.
455 (pp_multiplicative_expression): Likewise.
456 (pp_conditional_expression): Likewise.
457 (pp_assignment_expression): Likewise.
458 (pp_expression): Likewise.
459 (pp_c_type_id): Likewise.
460 (pp_c_storage_class_specifier): Likewise.
461 * c-pretty-print.c (pp_c_type_cast): Tidy.
462 (pp_c_pointer): Likewise.
463 (pp_c_type_specifier): Likewise.
464 (pp_c_parameter_type_list): Likewise.
465 (pp_c_function_definition): Likewise.
466 (pp_c_init_declarator): Likewise.
467 (pp_c_initializer_list): Likewise.
468 (pp_c_constructor_elts): Likewise.
469 (c_pretty_printer::direct_abstract_declarator): Likewise.
470 (c_pretty_printer::declaration_specifiers): Likewise.
471 (c_pretty_printer::primary_expression): Likewise.
472 (c_pretty_printer::postfix_expression): Likewise.
473 (c_pretty_printer::type_id): Rename from pp_c_type_id.
474 (c_pretty_printer::storage_class_specifier): Rename from
475 pp_c_storage_class_specifier.
476 (c_pretty_printer::initializer): Rename from pp_c_initializer.
477 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
478 storage_class_specifier, initializer, offset_list, flags.
479
de5a5fa1
MP
4802013-08-30 Marek Polacek <polacek@redhat.com>
481
482 * c-ubsan.c: New file.
483 * c-ubsan.h: New file.
484
8f0e4d72
GDR
4852013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
486
487 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
488 member function.
489 (c_pretty_printer::declaration_specifiers): Likewise.
490 (c_pretty_printer::declarator): Likewise.
491 (c_pretty_printer::abstract_declarator): Likewise.
492 (c_pretty_printer::direct_abstract_declarator): Likewise.
493 (c_pretty_printer::direct_declarator): Likewise.
494 (c_pretty_printer::function_specifier): Likewise.
495 (pp_declaration): Adjust.
496 (pp_declaration_specifiers): Likewise.
497 (pp_abstract_declarator): Likewise.
498 (pp_direct_declarator): Likewise.
499 (pp_function_specifier): Likewise.
500 (pp_direct_abstract_declarator): Remove as unused.
501 (pp_c_declaration): Remove.
502 (pp_c_declaration_specifiers): Likewise.
503 (pp_c_declarator): Likewise.
504 (pp_c_direct_declarator): Likewise.
505 (pp_c_function_specifier): Likewise.
506 (pp_c_direct_abstract_declarator): Likewise.
507 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
508 from pp_c_abstract_declarator. Adjust.
509 (c_pretty_printer::direct_abstract_declarator): Rename from
510 pp_c_direct_abstract_declarator. Adjust.
511 (c_pretty_printer::function_specifier): Rename from
512 pp_c_function_specifier. Adjust.
513 (c_pretty_printer::declaration_specifiers): Rename from
514 pp_c_declaration_specifiers. Adjust.
515 (c_pretty_printer::direct_declarator): Rename from
516 pp_c_direct_declarator. Adjust.
517 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
518 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
519 (c_pretty_printer::c_pretty_printer): Do not assign to
520 declaration, declaration_specifiers, declarator,
521 direct_declarator, direct_abstract_declarator, function_specifier.
522
00d34d3a
GDR
5232013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
524
525 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
526 virtual member function.
527 (c_pretty_printer::multiplicative_expression): Likewise.
528 (c_pretty_printer::conditional_expression): Likewise.
529 (c_pretty_printer::assignment_expression): Likewise.
530 (c_pretty_printer::expression): Likewise.
531 (pp_unary_expression): Adjust.
532 (pp_multiplicative_expression): Likewise.
533 (pp_assignment_expression): Likewise.
534 (pp_conditional_expression): Likewise.
535 (pp_expression): Likewise.
536 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
537 from pp_c_unary_expression. Adjust.
538 (c_pretty_printer::multiplicative_expression): Rename from
539 pp_c_multiplicative_expression. Adjust.
540 (c_pretty_printer::conditional_expression): Rename from
541 pp_c_conditional_expression. Adjust.
542 (c_pretty_printer::assignment_expression): Rename from
543 pp_c_assignment_expression. Adjust.
544 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
545 (c_pretty_printer::c_pretty_printer): Do not assign to
546 unary_expression, multiplicative_expression,
547 conditional_expression, expression.
548
fb22178f
GDR
5492013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
550
551 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
552 virtual member function.
553 (pp_postfix_expression): Adjust.
554 (pp_c_postfix_expression): Remove.
555 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
556 from pp_c_postfix_expression. Adjust.
557 (c_pretty_printer::c_pretty_printer): Do not assign to
558 postfix_expression.
559
7ecc2600
GDR
5602013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
561
562 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
563 virtua member function.
564 (pp_primary_expression): Adjust.
565 (pp_c_primary_expression): Remove.
566 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
567 from pp_c_primary_expression. Adjust.
568 (pp_c_initializer_list): Use pp_primary_expression.
569 (c_pretty_printer::c_pretty_printer): Do not assign to
570 primary_expression.
571
0691175f
GDR
5722013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
573
574 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
575 * c-pretty-print.c (M_): Remove.
576 (c_pretty_printer::translate_string): Define.
577 (pp_c_type_specifier): Use it.
578 (pp_c_primary_expression): Likewise.
579 (pp_c_expression): Likewise.
580
66dfe4c4
GDR
5812013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
582
583 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
584 virtual function.
585 (pp_c_id_expression): Remove.
586 (pp_id_expression): Adjust.
587 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
588 pp_c_id_expression. Adjust.
589 (pp_c_postfix_expression): Use pp_id_expression.
590 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
591
ca43e9d5
GDR
5922013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
593
594 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
595 member function.
596 (pp_constant): Adjust.
597 (pp_c_constant): Remove.
598 * c-pretty-print.c (c_pretty_printer::constant): Rename from
599 pp_c_constant. Adjust.
600 (pp_c_constant)
601 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
602 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
603
da6ca2b5
GDR
6042013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
605
606 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
607 (c_pretty_printer::c_pretty_printer): Declare.
608 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
609 c_pretty_printer_init. Adjust.
610 (print_c_tree): Do not call c_pretty_printer_init.
611 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
612
65a372f4
AC
6132013-08-09 Arnaud Charlet <charlet@adacore.com>
614
615 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
616
fd9b0f32
PC
6172013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
618
619 PR c++/58080
620 * c-common.c (pointer_int_sum): Add bool parameter.
621 * c-common.h (pointer_int_sum): Adjust declaration.
622
e0aec1e9
GDR
6232013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
624
625 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
626 c_pretty_printer variable.
627
b066401f
GDR
6282013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
629
630 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
631 (pp_base): Remove.
632 (pp_c_base): Likewise. Adjust users.
633 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
634 (pp_c_whitespace): Do not call pp_base.
635 (pp_c_left_paren): Likewise.
636 (pp_c_right_paren): Likewise.
637 (pp_c_left_brace): Likewise.
638 (pp_c_right_brace): Likewise.
639 (pp_c_left_bracket): Likewise.
640 (pp_c_right_bracket): Likewise.
641 (pp_c_dot): Likewise.
642 (pp_c_ampersand): Likewise.
643 (pp_c_star): Likewise.
644 (pp_c_arrow): Likewise.
645 (pp_c_semicolon): Likewise.
646 (pp_c_complement): Likewise.
647 (pp_c_exclamation): Likewise.
648 (pp_c_direct_declarator): Likewise.
649 (pp_c_ws_string): Likewise.
650 (pp_c_identifier): Likewise.
651 (pp_c_statement): Likewise.
652 (print_c_tree): Likewise.
653
65e5a578
ESR
6542013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
655
656 PR c++/58072
657 * c-common.c (c_parse_error): Catch user-defined literal tokens and
658 provide useful error strings.
659
137a1a27
GDR
6602013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
661
662 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
663 printer functions instead of pp_string or operators and punctuators.
664 (dump_generic_ada_node): Likewise.
665 * c-pretty-print.c (pp_c_type_specifier): Likewise.
666 (pp_c_relational_expression): Likewise.
667 (pp_c_logical_or_expression): Likewise.
668
07838b13
GDR
6692013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
670
671 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
672 functions instead of pp_character.
673 (pp_ada_tree_identifier): Likewise.
674 (dump_ada_double_name): Likewise.
675 (dump_ada_function_declaration): Likewise.
676 (dump_ada_array_domains): Likewise.
677 (dump_template_types): Likewise.
678 (dump_generic_ada_node): Likewise.
679 (print_ada_declaration): Likewise.
680 (print_ada_struct_decl): Likewise.
681 * c-pretty-print.c (pp_c_integer_constant): Likewise.
682
433cc7b0
TT
6832013-07-23 Tom Tromey <tromey@redhat.com>
684
685 * c-common.h (enum rid) <RID_GENERIC>: New constant.
686 * c-common.c (c_common_reswords): Add _Generic.
687
688010ba
OB
6882013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
689
690 * c-common.c: Fix typos.
691 * c-common.h: Likewise.
692
2a99e5e6
LL
6932013-07-13 Lubos Lunak <l.lunak@suse.cz>
694
695 PR c++/55203
696 * c-common.c (c_common_attribute_table): Add warn_unused.
697 (handle_warn_unused_attribute): New.
698
c26302d5
JJ
6992013-07-10 Jakub Jelinek <jakub@redhat.com>
700
701 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
702 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
703
dfeadaa0
PC
7042013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
705
706 PR c++/57869
707 * c.opt: Add Wconditionally-supported.
708
6a2fa4b2
GS
7092013-07-08 Graham Stott <graham.stott@btinternet.com>
710
711 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
712 unused variables l_length and l_node.
713
ecdbd01a 7142013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
715
716 PR c/57821
717 * c-common.c (complete_array_type): Delay folding first index
718 like other indices. When folding, check for index overflow.
719
bedc293e
MG
7202013-06-27 Marc Glisse <marc.glisse@inria.fr>
721
722 PR c++/57509
723 * c-common.h (c_build_vec_perm_expr): New complain argument.
724 * c-common.c (c_build_vec_perm_expr): Likewise.
725 Use save_expr also in C++.
726
604b2bfc
GDR
7272013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
728
729 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
730 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
731 * c-opts.c (c_common_post_options): Likewise.
732
dfeadaa0 7332013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
734
735 * array-notation-common.c (length_mismatch_in_expr): Changed the
736 parameter type's from a dynamic array to a vec_tree. Also removed
737 the size parameters.
738 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
739 the change above.
740
2ce86d2e
BI
7412013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
742
743 * c-common.h (struct cilkplus_an_parts): New structure.
744 (struct cilkplus_an_loop_parts): Likewise.
745 (cilkplus_extract_an_triplets): New prototype.
746 (fix_sec_implicit_args): Likewise.
747 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
748 (fix_sec_implicit_args): Likewise.
604b2bfc 749
07a6825b
BI
7502013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
751
752 * array-notation-common.c (find_inv_trees): Removed an unwanted
753 typecasting.
754 * c-common.h (struct inv_list::additional_tcodes): Changed type from
755 enum rid to enum tree_code.
756
08346abd
JH
7572013-06-11 Jan Hubicka <jh@suse.cz>
758
759 * c-common.c (handle_alias_ifunc_attribute): Do not set
760 DECL_EXTERNAL for weakref variables.
761 * c-pragma.c (handle_pragma_weak): Make sure aliases
762 are not declared as external.
763
d60f1706
BI
7642013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
765
766 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
767 function from c/c-array-notation.c.
768 (is_cilkplus_reduce_builtin): Likewise.
769 (find_rank): Likewise.
770 (extract_array_notation_exprs): Likewise.
771 (replace_array_notations): Likewise.
772 (find_inv_trees): Likewise.
773 (replace_inv_trees): Likewise.
774 (contains_array_notation_expr): Likewise.
775 (find_correct_array_notation_type): Likewise.
776 * c-common.h (struct inv_list): Moved this struct from the file
777 c/c-array-notation.c and added a new field called additional tcodes.
778 (length_mismatch_in_expr_p): New prototype.
779 (is_cilkplus_reduce_builtin): Likewise.
780 (find_rank): Likewise.
781 (extract_array_notation_exprs): Likewise.
782 (replace_array_notation): Likewise.
783 (find_inv_trees): Likewise.
784 (replace_inv_trees): Likewise.
785 (find_correct_array_notation_type): Likewise.
dfeadaa0 786
36536d79
BI
7872013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
788
789 * c-common.c (c_define_builtins): When cilkplus is enabled, the
790 function array_notation_init_builtins is called.
791 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
792 * c-common.def (ARRAY_NOTATION_REF): New tree.
793 * c-common.h (build_array_notation_expr): New function declaration.
794 (build_array_notation_ref): Likewise.
795 (extract_sec_implicit_index_arg): New extern declaration.
796 (is_sec_implicit_index_fn): Likewise.
797 (ARRAY_NOTATION_CHECK): New define.
798 (ARRAY_NOTATION_ARRAY): Likewise.
799 (ARRAY_NOTATION_START): Likewise.
800 (ARRAY_NOTATION_LENGTH): Likewise.
801 (ARRAY_NOTATION_STRIDE): Likewise.
802 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
803 ARRAY_NOTATION_REF.
804 (pp_c_expression): Likewise.
805 * c.opt (flag_enable_cilkplus): New flag.
806 * array-notation-common.c: New file.
807
f7716d57
JJ
8082013-05-14 Jakub Jelinek <jakub@redhat.com>
809
810 PR c++/57274
811 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
812
a5e0cd1d
MG
8132013-05-10 Marc Glisse <marc.glisse@inria.fr>
814
815 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
816 vectors.
817
f6bc1c4a
HS
8182013-05-07 Han Shen <shenhan@google.com>
819
820 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
821
3f12f6e9
SKS
8222013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
823
824 * c-common.c (check_user_alignment): Emit error for negative values.
825
61949153
PC
8262013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
827
828 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
829
e93e18e9
PC
8302013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
831
832 * c-cppbuiltin.c (c_cpp_builtins): Do not define
833 __GXX_EXPERIMENTAL_CXX1Y__.
834
44d90fe1
PC
8352013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
836 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
837
838 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
839 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
840 to simply use OPT_Wpointer_arith.
841 (c_sizeof_or_alignof_type): Likewise.
842
13f39b2e
PC
8432013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
844
845 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
846
4b84d650
JJ
8472013-04-12 Jakub Jelinek <jakub@redhat.com>
848
849 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
850 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
851 specifiers.
852
fb037b5d
SB
8532013-04-07 Steven Bosscher <steven@gcc.gnu.org>
854
855 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
856
4e856798
PC
8572013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
858
859 * c-common.c (pointer_int_sum): Remove dead code.
860
4b1baac8
RS
8612013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
862
863 PR middle-end/56524
864 * c-common.c (handle_optimize_attribute): Don't call
865 save_optabs_if_changed.
866
0b50e654
JJ
8672013-03-05 Jakub Jelinek <jakub@redhat.com>
868
869 PR middle-end/56461
870 * c-pch.c (pch_init): Free target_validity at the end.
871
48c41403
JJ
8722013-03-04 Jakub Jelinek <jakub@redhat.com>
873
874 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
875
e664c61c
KS
8762013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
877 Jakub Jelinek <jakub@redhat.com>
878
879 PR sanitizer/56454
880 * c-common.c (handle_no_sanitize_address_attribute): New function.
881 (c_common_attribute_table): Add no_sanitize_address attribute.
882 (handle_no_address_safety_analysis_attribute): Add
883 no_sanitize_address attribute, not no_address_safety_analysis
884 attribute.
885
a475fd3d 8862013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
887
888 PR target/52555
889 * c-common.c (handle_optimize_attribute): Call
890 save_optabs_if_changed.
891
f6007d99
JJ
8922013-02-18 Jakub Jelinek <jakub@redhat.com>
893 Steven Bosscher <steven@gcc.gnu.org>
894
895 PR pch/54117
896 * c-opts.c (c_common_post_options): If debug info is enabled
897 and non-dwarf*, refuse to load PCH files and when writing PCH
898 file warn.
899
cf35e2b1
JJ
9002013-02-05 Jakub Jelinek <jakub@redhat.com>
901
902 PR middle-end/56167
903 * c-common.c (handle_error_attribute): Fix condition.
904
32887460
JJ
9052013-01-30 Jakub Jelinek <jakub@redhat.com>
906
907 PR c++/55742
908 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
909
5af057d8
JM
9102013-01-18 Jason Merrill <jason@redhat.com>
911
912 PR target/54908
913 * c.opt (-fextern-tls-init): New.
914 * c-opts.c (c_common_post_options): Handle it.
915
cc83c823
JJ
9162013-01-09 Jakub Jelinek <jakub@redhat.com>
917
918 PR c/48418
919 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
920 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
921 and is either negative or bigger or equal to type precision
922 of the first operand.
923
a859517f
MP
9242012-12-03 Marek Polacek <polacek@redhat.com>
925
926 PR c/55570
927 * c-common.c (check_user_alignment): Swap order of tests,
928 check TREE_CODE first.
929
2d7aa578
ESR
9302012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
931
932 PR c++/52654
933 * c-common.h (overflow_type): New enum.
934 (build_userdef_literal): Add overflow_type argument.
935 (tree_userdef_literal): Add overflow_type.
936 (USERDEF_LITERAL_OVERFLOW): New access macro.
937 * c-common.c (build_userdef_literal): Add overflow_type
938 argument.
939 * c-lex.c (c_lex_with_flags): Add overflow_type to
940 build_userdef_literal calls.
941 (interpret_integer, interpret_float): Add overflow_type argument.
942
cc3c4f62
RB
9432012-11-28 Richard Biener <rguenther@suse.de>
944
945 PR c/35634
946 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
947 here and use a type with proper overflow behavior for types that would
948 need to be promoted for the arithmetic.
949
77bc5132
JJ
9502012-11-23 Jakub Jelinek <jakub@redhat.com>
951
952 PR sanitizer/55435
953 * c-common.c (handle_no_address_safety_analysis_attribute): New
954 function.
955 (c_common_attribute_table): Add no_address_safety_analysis.
956
5dc99c46
SB
9572012-11-16 Simon Baldwin <simonb@google.com>
958
959 * c.opt: Add f[no-]canonical-system-headers.
960 * c-opts.c (c_common_handle_option): Handle
961 OPT_fcanonical_system_headers.
962
a4a0016d
ESR
9632012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
964
965 PR c++/54413
966 * c-opts.c (c_common_handle_option): Set new flags.
967 * c.opt: Describe new flags.
968
7dbb85a7
JM
9692012-11-09 Jason Merrill <jason@redhat.com>
970
971 * c.opt (Wabi-tag): New.
972
ad7bac31
AK
9732012-11-09 Andi Kleen <ak@linux.intel.com>
974
975 PR 55139
976 * c-common.c (get_atomic_generic_size): Mask with
977 MEMMODEL_MASK
978
7332899a
MLI
9792012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
980
981 PR c/53063
982 * c.opt (Wformat): Make it Alias Wformat=1.
983 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
984 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
985 LangEnabledBy.
986 (Wformat=): RejectNegative. Use LangEnabledBy.
987 (Wnonnull): Use LangEnabledBy.
988 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
989 * c-format.c (set_Wformat): Delete.
990 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
991 (maybe_read_dollar_number): Likewise.
992 (avoid_dollar_number): Likewise.
993 (finish_dollar_format_checking): Likewise.
994 (check_format_info): Likewise.
995 (check_format_info_main): Likewise.
996 (check_format_types): Likewise.
997 (format_type_warning): Likewise.
998 * c-common.c (int): Likewise.
999 (check_function_sentinel): Likewise.
1000 * c-common.h (warn_format,set_Wformat): Do not declare here.
1001
34a180a6
MLI
10022012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1003
1004 PR c/53063
1005 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
1006 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
1007 Use LangEnabledBy.
1008 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
1009 common.opt.
1010 (Wvariadic-macros): Init(1).
1011 * c-opts.c (c_common_handle_option): Do not handle them
1012 explicitly.
1013 (c_common_post_options): Likewise.
1014 (sanitize_cpp_opts): warn_unused_macros is now
1015 cpp_warn_unused_macros.
1016 (push_command_line_include): Likewise.
1017 * c-common.c (warn_unknown_pragmas): Do not define.
1018 * c-common.h (warn_unknown_pragmas): Do not declare.
1019
3f46d6a5
MLI
10202012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
1021
1022 PR c/51294
1023 * c-common.c (conversion_warning): Handle conditional expressions.
1024
880661a4
JW
10252012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
1026
1027 PR c++/54930
1028 * c.opt (Wreturn_local_addr): Define new option.
1029
4514a96b
JM
10302012-10-25 Jason Merrill <jason@redhat.com>
1031
f14edc1a
JM
1032 * c.opt (Wvirtual-move-assign): New.
1033
4514a96b
JM
1034 * c.opt (Winherited-variadic-ctor): New.
1035
93100c6b
MG
10362012-10-25 Marc Glisse <marc.glisse@inria.fr>
1037
1038 PR c++/54427
1039 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
1040
1efcb8c6
JM
10412012-10-23 Joseph Myers <joseph@codesourcery.com>
1042
1043 * c-common.h (pch_cpp_save_state): Declare.
1044 * c-target.def (c_preinclude): New hook.
1045 * c-opts.c (done_preinclude): New.
1046 (push_command_line_include): Handle default preincluded header.
1047 (cb_file_change): Call pch_cpp_save_state when calling
1048 push_command_line_include.
1049 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
1050 (pch_cpp_save_state): New.
1051 (pch_init): Call pch_cpp_save_state conditionally, instead of
1052 calling cpp_save_state.
1053
4a0ae68e
MLI
10542012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
1055
1056 PR c/53063
1057 PR c/40989
1058 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
1059 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
1060 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
1061 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
1062 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
1063 * c-opts.c (c_common_handle_option): Remove explicit handling from
1064 here.
1065 (c_common_post_options): Likewise.
1066
67e4210b
EB
10672012-10-18 Eric Botcazou <ebotcazou@adacore.com>
1068
1069 * c-ada-spec.c (LOCATION_COL): Delete.
1070 (compare_location): New function.
1071 (compare_node): Use it.
1072 (compare_comment): Likewise.
1073
65d4f2cd
MLI
10742012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
1075
1076 PR c/53063
1077 PR c/40989
1078 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
1079 * c-opts.c (c_common_handle_option): Do not set them here. Add
1080 comment.
1081 (c_common_post_options): Likewise.
1082
909881cb
EB
10832012-10-16 Eric Botcazou <ebotcazou@adacore.com>
1084
1085 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
1086 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
1087 Remove POINTER_TYPE handling, add large unsigned handling and use
1088 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
1089
3a785c97
JJ
10902012-10-12 Jakub Jelinek <jakub@redhat.com>
1091
1092 PR c/54381
1093 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
1094 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
1095 locs and array of 3 trees instead of just single loc and single
1096 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
1097 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
1098 For *cmp* builtins that take two sources strings report warnings
1099 about first and second source, not about destination and source.
1100
5e54f81d
MG
11012012-10-12 Marc Glisse <marc.glisse@inria.fr>
1102
1103 PR c++/53055
1104 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
1105
f5b02f1e
EB
11062012-10-11 Eric Botcazou <ebotcazou@adacore.com>
1107
1108 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
1109 declaring something coming from another file.
1110
b46dbc6c
AC
11112012-10-10 Arnaud Charlet <charlet@adacore.com>
1112
f5b02f1e 1113 PR ada/54845
b46dbc6c
AC
1114 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
1115
5d9de0d0
PC
11162012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
1117
1118 PR c++/54194
1119 * c-common.c (warn_about_parentheses): Add location_t parameter;
1120 use EXPR_LOC_OR_LOC.
1121 * c-common.h: Update declaration.
1122
a212e43f
MG
11232012-10-09 Marc Glisse <marc.glisse@inria.fr>
1124
1125 PR c++/54427
1126 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
1127 more operations. Make error messages optional.
1128 * c-common.h (enum stv_conv): Moved from c-typeck.c.
1129 (scalar_to_vector): Declare.
1130
b1db7f91
JM
11312012-10-08 Jason Merrill <jason@redhat.com>
1132
1133 * c-common.c (c_common_reswords): Add thread_local.
1134
e28d52cf
DS
11352012-10-08 Dodji Seketeli <dodji@redhat.com>
1136
1137 PR c++/53528 C++11 attribute support
1138 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
1139 new functions.
1140 * c-common.c (check_cxx_fundamental_alignment_constraints): New
1141 static function.
1142 (handle_aligned_attribute): In choose strictest alignment
1143 among many. Use new check_cxx_fundamental_alignment_constraints.
1144 (handle_transparent_union_attribute): In c++11 attribute syntax,
1145 don't look through typedefs.
1146
3b78de56
AC
11472012-10-04 Arnaud Charlet <charlet@adacore.com>
1148
1149 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
1150 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1151 out of dumpfile.h.
1152
6040bb5f
DC
11532012-09-25 Dehao Chen <dehao@google.com>
1154
1155 PR middle-end/54645
3b78de56 1156 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
1157 map when read in the pch.
1158
0b07a57e
AC
11592012-09-18 Arnaud Charlet <charlet@adacore.com>
1160
1161 * c-ada-spec.c: Style fixes.
1162
da5182be
TQ
11632012-09-18 Thomas Quinot <quinot@adacore.com>
1164
1165 * c.opt (-fada-spec-parent): Define new command line switch.
1166 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1167 is specified, generate binding spec as a child of the specified unit.
1168
0ccb505d
PC
11692012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1170 Manuel López-Ibáñez <manu@gcc.gnu.org>
1171
1172 PR c++/53210
1173 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1174
c583af79
AC
11752012-08-23 Arnaud Charlet <charlet@adacore.com>
1176
1177 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1178 for pointers, and add missing Convention C pragma.
1179 (print_ada_struct_decl): Add missing aliased keyword.
1180 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1181
1a4049e7
JJ
11822012-08-17 Jakub Jelinek <jakub@redhat.com>
1183
1184 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1185 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1186 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1187 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1188 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1189
70b5e7dc
RG
11902012-08-10 Richard Guenther <rguenther@suse.de>
1191
1192 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1193
f8923f7e
SB
11942012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1195
1196 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1197 instead of separate pp_newline and pp_flush.
1198 (print_c_tree): Likewise.
1199
e45abe1f
RH
12002012-07-26 Richard Henderson <rth@redhat.com>
1201
1202 * c-common.c (handle_hot_attribute): Allow labels.
1203 (handle_cold_attribute): Likewise.
1204
332f1d24
JJ
12052012-07-20 Jakub Jelinek <jakub@redhat.com>
1206
1207 PR c++/28656
1208 * c-common.c (check_function_nonnull): Handle multiple nonnull
1209 attributes properly.
1210
7ee2468b
SB
12112012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1212
1213 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1214 * c-ada-spec.c: Likewise.
1215 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1216
ee7b28eb
SB
12172012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1218
1219 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1220 Remove code conditional on it.
1221
6bdf3519
SB
12222012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1223
1224 * c-gimplify.c: Do not include basic-block.h.
1225 * c-common.c: Do not include linfuncs.h.
1226
532aafad
SB
12272012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1228
1229 * c-common.h: Include tree.h.
1230
8d0d1915
JM
12312012-07-02 Jason Merrill <jason@redhat.com>
1232
1233 PR c++/53524
1234 * c-common.c (get_priority): Call default_conversion.
1235
fbc873ad
UB
12362012-07-01 Uros Bizjak <ubizjak@gmail.com>
1237
1238 * c-pch.c (c_common_write_pch): Remove unused variables.
1239
d4a10d0a
SB
12402012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1241
1242 * cppspec.c: Moved from gcc/ to here.
1243
6f3a2e23
KT
12442012-06-27 Kai Tietz <ktietz@redhat.com>
1245
1246 PR preprocessor/37215
1247 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1248
8ca92d04
SB
12492012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1250
1251 * c-common.h (c_common_print_pch_checksum): Remove.
1252 * c-pch.c: Do not include output.h.
1253 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1254 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1255 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1256 (struct c_pch_header): Remove.
1257 (get_ident): Update gpch version.
1258 (pch_init): Do not print executable_checksum to asm_out_file.
1259 Do not fail if there is no asm_out_file to read back from. Set
1260 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1261 (c_common_write_pch): Verify that nothing was written to asm_out_file
1262 since pch_init was called. Do not write a c_pch_header, and do not
1263 copy from asm_out_file to the PCH.
1264 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1265 the content of asm_out_file from the PCH.
1266 (c_common_print_pch_checksum): Remove.
1267 * c-opts.c (c_common_init): Print out executable_checksum directly.
1268
70f42967
SB
12692012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1270
1271 * c-target.def (objc_declare_unresolved_class_reference,
1272 objc_declare_class_definition): Add new hooks.
1273
a8781821
SB
12742012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1275
1276 * c-lex.c: Do not include output.h.
1277 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1278 Remove uses of ASM_OUTPUT_IDENT.
1279
9e1a8dd1
RR
12802012-06-15 Marc Glisse <marc.glisse@inria.fr>
1281
1282 PR c++/51033
1283 * c-common.h (c_build_vec_perm_expr): Move decl here.
1284 * c-common.c (c_build_vec_perm_expr): Move definition
1285 here.
1286
6f07a821
SB
12872012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1288
1289 * c.opt (fconserve-space): Turn into a no-op.
1290
9faeb493 12912012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
1292
1293 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1294 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1295 both the start and end of the function.
1296
a4b7d13c
SB
12972012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1298
1299 * c-common.c: Do not include output.h.
1300 * c-pragma.c: Likewise.
1301
c265f413
SA
13022012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1303
1304 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1305 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1306 (lang_decl_name): Handle namespace decls.
1307
be7a421e
SB
13082012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1309
1310 * c-ada-spec.c: Do not include output.h.
1311 * c-semantics.c: Likewise.
1312
65de6659
JM
13132012-05-29 Joseph Myers <joseph@codesourcery.com>
1314
1315 * c-common.c: Fix typo.
1316
ca5f4331
MM
13172012-05-29 Michael Matz <matz@suse.de>
1318
1319 * c-common.h (c_expand_decl): Remove prototype.
1320
4f7f7aca
MLI
13212012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1322
1323 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1324 * c-opts.c (c_common_handle_option): Remove code handling
1325 warn_missing_braces.
1326
4a792f9b
PC
13272012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1328
1329 PR c++/25137
1330 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1331 -Wmissing_braces.
1332
650dc14a
DS
13332012-05-22 Dodji Seketeli <dodji@redhat.com>
1334
1335 PR c++/53322
1336 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1337
9b095bf1
MLI
13382012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1339
1340 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1341 * c-opts.c (c_common_handle_option): Do not handle explicitly
1342 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1343
0b2c4be5
DS
13442012-05-16 Dodji Seketeli <dodji@redhat.com>
1345
1346 PR preprocessor/7263
1347 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1348 to cpp_classify_number. For diagnostics, use the precise location
1349 instead of the global input_location.
1350
a1bde5af
PC
13512012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1352
d02924ef 1353 PR c++/11856
a1bde5af
PC
1354 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1355
d1ede5f4
BS
13562012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1357
a1bde5af 1358 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1359
f2bc201f
MLI
13602012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1361
1362 PR 53063
1363 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1364 Wreorder): Use LangEnabledBy.
1365 * c-opts.c (c_common_handle_option): Do not enable them
1366 explicitly. Call lang-specific generated functions.
1367 (c_common_post_options): Do not set them here.
1368
95744782
MLI
13692012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1370
1371 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1372 Wmissing-field-initializers,Wmissing-parameter-type,
1373 Wold-style-declaration,Woverride-init): Use EnabledBy.
1374 * c-opts.c (c_common_post_options): Do not set here explicitly.
1375
7d5a5747
MLI
13762012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1377
1378 PR 53063
1379 * c-opts.c (c_common_handle_option): Use handle_generated_option
1380 to enable sub-options.
1381
5a3c9cf2
PC
13822012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1383
1384 PR c++/53158
1385 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1386
3ac8781c
RG
13872012-05-10 Richard Guenther <rguenther@suse.de>
1388
1389 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1390 adjust commentary about TYPE_IS_SIZETYPE types.
1391
1e537948
MLI
13922012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1393
1394 PR c++/53261
1395 * c-common.c (warn_logical_operator): Check that argument of
1396 integer_zerop is not NULL.
1397
f2c4a785
MLI
13982012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1399
1400 PR c/43772
1401 * c-common.c (warn_logical_operator): Do not warn if either side
1402 is already true or false.
1403
50f305ca
MLI
14042012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1405
1406 PR c/51712
1407 * c-common.c (expr_original_type): New.
1408 (shorten_compare): Do not warn for enumeration types.
1409
0c3641b0
MLI
14102012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1411
1412 * c.opt (fpermissive): Add Var(flag_permissive).
1413
7edaa4d2
MG
14142012-04-30 Marc Glisse <marc.glisse@inria.fr>
1415
1416 PR c++/51033
1417 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1418 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1419
b9c8da34
DS
14202012-04-30 Dodji Seketeli <dodji@redhat.com>
1421
1422 Add -Wvarargs option
1423 * c.opt (Wvarargs): Define new option.
1424
e6c69da0
MLI
14252012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1426
1427 * c-common.c (check_function_arguments): Replace
1428 Wmissing-format-attribute with Wsuggest-attribute=format.
1429
90137d8f
MLI
14302012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1431
1432 * c.opt (Wsuggest-attribute=format): New. Alias of
1433 Wmissing-format-attribute.
1434 * c-format.c (decode_format_type): Replace
1435 Wmissing-format-attribute with Wsuggest-attribute=format.
1436 (check_function_format): Likewise.
1437
9faeb493 14382012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1439
1440 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1441 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1442 * c.opt: Add Wliteral-suffix.
1443
c1771a20
MLI
14442012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1445
1446 PR c/44774
1447 * c.opt (Wpedantic): New.
1448 (pedantic): Alias Wpedantic.
1449 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1450 (c_common_post_options): Likewise.
1451 (sanitize_cpp_opts): Likewise.
1452 * c-lex.c (interpret_float): Likewise.
1453 * c-format.c (check_format_types): Likewise.
1454 * c-common.c (pointer_int_sum): Likewise.
1455 (c_sizeof_or_alignof_type): Likewise.
1456 (c_add_case_label): Likewise.
1457 (c_do_switch_warnings): Likewise.
1458 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1459
04b391c1
JM
14602012-04-15 Jason Merrill <jason@redhat.com>
1461
1462 PR c++/52818
1463 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1464 (C_STD_NAME): Distinguish between C++98 and C++11.
1465
ac868f29
EB
14662012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1467
1468 PR target/52624
1469 * c-common.h (uint16_type_node): Rename into...
1470 (c_uint16_type_node): ...this.
1471 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1472 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1473
fd4116f4
MLI
14742012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1475
1476 * c-common.c (warn_if_unused_value): Move definition to here.
1477 * c-common.h (warn_if_unused_value): Move declaration to here.
1478
573ac65e
WB
14792012-03-23 William Bader <williambader@hotmail.com>
1480
1481 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1482
552b8185
JM
14832012-03-20 Jason Merrill <jason@redhat.com>
1484
1485 * c-common.h (enum cxx_dialect): Add cxx1y.
1486 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1487 test.
1488 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1489 * c-opts.c (c_common_post_options): Likewise.
1490 (set_std_cxx1y): New.
1491 (c_common_handle_option): Call it.
1492 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1493
04398fa8
PC
14942012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1495
1496 PR c++/14710
1497 * c.opt ([Wuseless-cast]): Add.
1498
d2a12ae7
RG
14992012-03-16 Richard Guenther <rguenther@suse.de>
1500
1501 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1502
a12bf402
MLI
15032012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1504
1505 PR c++/44783
1506 * c.opt (ftemplate-backtrace-limit) Add.
1507
5c30094f
RO
15082012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1509
1510 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1511 handling.
1512 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1513 (init_pragma): Don't register extern_prefix.
1514
21fa2faf
RG
15152012-03-12 Richard Guenther <rguenther@suse.de>
1516
1517 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1518 (builtin_type_for_size): Likewise.
1519
e3793c6f
JJ
15202012-02-13 Jakub Jelinek <jakub@redhat.com>
1521
1522 PR c++/52215
1523 * c-common.c (sync_resolve_params): Don't decide whether to convert
1524 or not based on TYPE_SIZE comparison, convert whenever arg_type
1525 is unsigned INTEGER_TYPE.
1526
93286335
PC
15272012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1528
1529 PR c/52118
1530 * c.opt ([Wunused-local-typedefs]): Fix description.
1531
7a421706
MS
15322012-01-24 Mike Stump <mikestump@comcast.net>
1533
1534 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1535 exactly.
1536
ba9b1f11
RG
15372012-01-18 Richard Guenther <rguenther@suse.de>
1538
1539 * c-opts.c (c_common_post_options): Reset LTO flags if
1540 we are about to generate a PCH.
1541
465406be
PC
15422012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1543
1544 PR c++/51777
1545 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1546 use pp_unsigned_wide_integer.
1547
aee15221
RG
15482012-01-10 Richard Guenther <rguenther@suse.de>
1549
1550 PR middle-end/51806
1551 * c-opts.c (c_common_handle_option): Move -Werror handling
1552 to language independent code.
1553
5720c0dc
RG
15542012-01-05 Richard Guenther <rguenther@suse.de>
1555
1556 PR middle-end/51764
1557 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1558 from common.opt.
1559
73ac190a
PC
15602011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1561
1562 PR c++/51316
1563 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1564 of array types with an unknown bound.
1565
48b0b196
JM
15662011-12-20 Joseph Myers <joseph@codesourcery.com>
1567
1568 * c-common.c (flag_isoc99): Update comment to refer to C11.
1569 (flag_isoc1x): Change to flag_isoc11.
1570 * c-common.h (flag_isoc99): Update comment to refer to C11.
1571 (flag_isoc1x): Change to flag_isoc11.
1572 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1573 C11.
1574 * c-opts.c (set_std_c1x): Change to set_std_c11.
1575 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1576 Call set_std_c11.
1577 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1578 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1579 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1580 standard.
1581 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1582 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1583 (std=gnu1x): Make alias of std=gnu11.
1584
d58d6eb5
JM
15852011-12-19 Jason Merrill <jason@redhat.com>
1586
1587 PR c++/51228
1588 * c-common.c (handle_transparent_union_attribute): Check the first
1589 field if the type is complete.
1590
b3908fcc
JW
15912011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1592
1593 PR libstdc++/51365
1594 * c-common.c (RID_IS_FINAL): Add.
1595 * c-common.h (RID_IS_FINAL): Add.
1596
fea3ca91
IS
15972011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1598
1599 * c.opt (fgnu-runtime): Provide full description.
1600 (fnext-runtime): Likewise.
1601 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1602
62bad7cd
AM
16032011-11-28 Andrew MacLeod <amacleod@redhat.com>
1604
1605 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1606 predefines in one place. Add LOCK_FREE predefines.
1607 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1608 new func.
1609
c466c4ff
AM
16102011-11-24 Andrew MacLeod <amacleod@redhat.com>
1611
1612 PR c/51256
9faeb493 1613 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1614 conditions
9faeb493
UB
1615 (resolve_overloaded_atomic_exchange,
1616 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1617 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1618 error_mark_node for error conditions.
9faeb493 1619
a5952633
RG
16202011-11-08 Richard Guenther <rguenther@suse.de>
1621
1622 PR middle-end/51010
1623 c-family/
1624
0a35513e
AH
16252011-11-07 Richard Henderson <rth@redhat.com>
1626 Aldy Hernandez <aldyh@redhat.com>
1627 Torvald Riegel <triegel@redhat.com>
1628
1629 Merged from transactional-memory.
1630
1631 * c-common.c (handle_tm_wrap_attribute,
1632 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1633 (struct c_common_reswords): Added __transaction* keywords.
1634 (struct c_common_attribute_table): Added transaction* and tm_regparm
1635 attributes.
1636 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1637 masks.
1638 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1639 find_tm_attribute): Declare.
1640
6d87092d
JM
16412011-11-07 Jason Merrill <jason@redhat.com>
1642
1643 PR c++/35688
1644 * c-common.c, c-common.h: Revert yesterday's changes.
1645
8e7860a1
JM
16462011-11-06 Jason Merrill <jason@redhat.com>
1647
1648 PR c++/35688
1649 * c-common.c (decl_has_visibility_attr): Split out from...
1650 (c_determine_visibility): ...here.
1651 * c-common.h: Declare it.
1652
d19fa6b5
JM
16532011-11-06 Joseph Myers <joseph@codesourcery.com>
1654
1655 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1656 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1657 type.
1658 (check_user_alignment): New. Split out of
1659 handle_aligned_attribute. Disallow integer constants with
1660 noninteger types. Conditionally allow zero.
1661 (handle_aligned_attribute): Use check_user_alignment.
1662 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1663
86951993
AM
16642011-11-06 Andrew MacLeod <amacleod@redhat.com>
1665 Richard Henderson <rth@redhat.com>
1666
1667 Merged from cxx-mem-model.
1668
1669 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1670 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1671 parameters that are the same type size.
1672 (get_atomic_generic_size): New. Find size of generic
1673 atomic function parameters and do typechecking.
1674 (add_atomic_size_parameter): New. Insert size into parameter list.
1675 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1676 either __atomic_exchange_n or external library call.
9faeb493 1677 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1678 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1679 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1680 __atomic_load_n or an external library call.
1681 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1682 __atomic_store_n or an external library call.
1683 (resolve_overloaded_builtin): Handle new __atomic builtins.
1684
cf9e9959
EB
16852011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1686
1687 PR c++/50608
1688 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1689 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1690 <INDIRECT_REF>: Return the argument.
1691 <ARRAY_REF>: Remove special code for negative offset.
1692 Call fold_build_pointer_plus instead of size_binop.
1693 (fold_offsetof): Remove STOP_REF argument and adjust.
1694 * c-common.h (fold_offsetof_1): Declare.
1695 (fold_offsetof): Remove STOP_REF argument.
1696
25339f10
JM
16972011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1698
1699 PR c++/50810
1700 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1701 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1702 Wnarrowing for C++0x and C++98.
1703 * c.opt ([Wnarrowing]): Update.
1704
89401152
PC
17052011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1706
1707 PR c++/44277
1708 * c.opt: Add Wzero-as-null-pointer-constant.
1709
97e3ad20
JM
17102011-10-31 Jason Merrill <jason@redhat.com>
1711
15694fdd
JM
1712 * c.opt (-fdeduce-init-list): Off by default.
1713
97e3ad20
JM
1714 PR c++/50920
1715 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1716 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1717 and -Wc++11-compat.
1718 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1719
fb9120e3
RAV
17202011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1721
1722 PR c++/30066
1723 * c.opt (fvisibility-inlines-hidden): Description change.
1724
3ce4f9e4
ESR
17252011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1726
1727 Implement C++11 user-defined literals.
1728 * c-common.c (build_userdef_literal): New.
1729 * c-common.def: New tree code.
1730 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1731 * c-lex.c (interpret_float): Add suffix parm.
1732 (c_lex_with_flags): Build literal tokens.
1733
5f53c243
PC
17342011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1735
1736 PR c++/50841
1737 Revert:
1738 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1739
1740 PR c++/50810
1741 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1742 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1743 Wnarrowing for C++0x and C++98.
1744 * c.opt ([Wnarrowing]): Update.
1745
263734e1
PC
17462011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1747
1748 PR c++/50810
1749 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1750 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1751 Wnarrowing for C++0x and C++98.
1752 * c.opt ([Wnarrowing]): Update.
1753
d2e312d7
PC
17542011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1755
1756 PR c++/45385
1757 * c-common.c (conversion_warning): Remove code looking for
1758 artificial operands.
1759
d17687f6
DS
17602011-10-18 Dodji Seketeli <dodji@redhat.com>
1761
1762 PR bootstrap/50760
1763 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1764 !NO_IMPLICIT_EXTERN_C.
d17687f6 1765
fc8396e9
PC
17662011-10-17 Michael Spertus <mike_spertus@symantec.com>
1767
1768 * c-common.c (c_common_reswords): Add __bases,
1769 __direct_bases.
1770 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1771
17722011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1773
1774 PR c++/50757
1775 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1776
847e697a
TT
17772011-10-15 Tom Tromey <tromey@redhat.com>
1778 Dodji Seketeli <dodji@redhat.com>
1779
1780 * c.opt (fdebug-cpp): New option.
1781 * c-opts.c (c_common_handle_option): Handle the option.
1782 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1783 output stream in parameter. Factorized from ...
1784 (maybe_print_line): ... this. Dump location debug information when
1785 -fdebug-cpp is in effect.
1786 (print_line_1): New static function. Takes an output stream in
1787 parameter. Factorized from ...
1788 (print_line): ... here. Dump location information when -fdebug-cpp
1789 is in effect.
1790 (scan_translation_unit): Dump location information when
1791 -fdebug-cpp is in effect.
1792
92582b75
TT
17932011-10-15 Tom Tromey <tromey@redhat.com>
1794 Dodji Seketeli <dodji@redhat.com>
1795
1796 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1797 without argument.
1798 * c-opts.c (c_common_handle_option)<case
1799 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1800 cases. Handle -ftrack-macro-expansion with and without argument.
1801
46427374
TT
18022011-10-15 Tom Tromey <tromey@redhat.com>
1803 Dodji Seketeli <dodji@redhat.com>
1804
1805 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1806 (print_line, cb_define, do_line_change): Adjust to avoid touching
1807 the internals of struct line_map. Use the public API instead.
1808 * c-pch.c (c_common_read_pch): Likewise.
1809 * c-lex.c (fe_file_change): Likewise.
1810
fc8396e9
PC
18112011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1812
1813 PR c++/17212
1814 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1815
18162011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1817
1818 PR c++/33067
1819 * c-pretty-print.c (pp_c_floating_constant): Output
1820 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1821
e79983f4
MM
18222011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1823
1824 * c-common.c (def_builtin_1): Delete old interface with two
1825 parallel arrays to hold standard builtin declarations, and replace
1826 it with a function based interface that can support creating
1827 builtins on the fly in the future. Change all uses, and poison
1828 the old names. Make sure 0 is not a legitimate builtin index.
1829 * c-omp.c (c_finish_omp_barrier): Ditto.
1830 (c_finish_omp_taskwait): Ditto.
1831 (c_finish_omp_flush): Ditto.
1832
6637388f
TG
18332011-10-11 Tristan Gingold <gingold@adacore.com>
1834
1835 * c.opt: (fallow-parameterless-variadic-functions): New.
1836
3797cb21
DS
18372011-09-08 Dodji Seketeli <dodji@redhat.com>
1838
1839 PR c++/33255 - Support -Wunused-local-typedefs warning
1840 * c-common.h (struct c_language_function::local_typedefs): New
1841 field.
9faeb493
UB
1842 (record_locally_defined_typedef, maybe_record_typedef_use)
1843 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1844 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1845 (maybe_record_typedef_use)
1846 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1847 * c.opt: Declare new -Wunused-local-typedefs flag.
1848
693ddb1b
EB
18492011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1850
1851 PR middle-end/50266
1852 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1853 computations.
1854
830c740f
RG
18552011-09-05 Richard Guenther <rguenther@suse.de>
1856
1857 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1858 of integer_minus_one_node for empty array upper bounds.
1859
892a371f
DS
18602011-08-28 Dodji Seketeli <dodji@redhat.com>
1861
1862 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1863 it's the first time it's being called on this main TU.
1864
0e3fdb48
RB
18652011-08-24 Richard Guenther <rguenther@suse.de>
1866
1867 PR c/49396
1868 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1869
18702011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
1871
1872 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1873 defined in cpp_init_builtins and c_cpp_builtins.
1874
d4a83c10
JM
18752011-08-19 Joseph Myers <joseph@codesourcery.com>
1876
1877 * c-common.c (c_common_reswords): Add __builtin_complex.
1878 * c-common.h (RID_BUILTIN_COMPLEX): New.
1879
bbceee64
JM
18802011-08-18 Joseph Myers <joseph@codesourcery.com>
1881
1882 * c-common.c (c_common_reswords): Add _Noreturn.
1883 (keyword_is_function_specifier): Handle RID_NORETURN.
1884 * c-common.h (RID_NORETURN): New.
1885
0e3a99ae
AS
18862011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1887
1888 * c-common.c (unsafe_conversion_p): New function. Check if it is
1889 unsafe to convert an expression to the type.
1890 (conversion_warning): Adjust, use unsafe_conversion_p.
1891 * c-common.h (unsafe_conversion_p): New function declaration.
1892
20906c66
JJ
18932011-08-02 Jakub Jelinek <jakub@redhat.com>
1894
1895 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1896 (c_finish_omp_taskyield): New prototype.
1897 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1898 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1899 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1900 or RHS1 have side-effects, evaluate those too in the right spot,
1901 if it is a decl and LHS is also a decl, error out if they
1902 aren't the same.
1903 (c_finish_omp_taskyield): New function.
1904 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1905 * c-pragma.c (omp_pragmas): Add taskyield.
1906 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1907 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1908 PRAGMA_OMP_CLAUSE_MERGEABLE.
1909
770e5a2e
DS
19102011-07-25 Dodji Seketeli <dodji@redhat.com>
1911
1912 * c-common.h (set_underlying_type): Remove parm name from
1913 declaration.
1914
1baae426
RG
19152011-07-25 Romain Geissler <romain.geissler@gmail.com>
1916
1917 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 1918
fcb21722
JM
19192011-07-22 Jason Merrill <jason@redhat.com>
1920
76f86d00
JM
1921 PR c++/49793
1922 * c.opt (Wnarrowing): New.
1923
3a636414
JM
1924 PR c++/30112
1925 * c-common.h: Declare c_linkage_bindings.
1926 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1927
fcb21722
JM
1928 PR c++/49813
1929 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1930 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1931 as flag_isoc99 for 'restrict'.
1932 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1933
02614448
ILT
19342011-07-21 Ian Lance Taylor <iant@google.com>
1935
1936 PR middle-end/49705
1937 * c-common.c (c_disable_warnings): New static function.
1938 (c_enable_warnings): New static function.
1939 (c_fully_fold_internal): Change local unused_p to bool. Call
1940 c_disable_warnings and c_enable_warnings rather than change
1941 c_inhibit_evaluation_warnings.
1942
34429675
JM
19432011-07-20 Jason Merrill <jason@redhat.com>
1944
1945 PR c++/6709 (DR 743)
1946 PR c++/42603 (DR 950)
1947 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1948 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1949 (CPP_DECLTYPE): New.
1950 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1951
5d49b6a7
RG
19522011-07-19 Richard Guenther <rguenther@suse.de>
1953
1954 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1955 * c-omp.c (c_finish_omp_for): Likewise.
1956
e84a58ff
EB
19572011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1958
1959 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1960 body on the next line.
1961
329af3c7
JM
19622011-07-08 Jason Merrill <jason@redhat.com>
1963
4063e61b
JM
1964 PR c++/45437
1965 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1966
329af3c7
JM
1967 PR c++/49673
1968 * c-common.c (c_apply_type_quals_to_decl): Don't check
1969 TYPE_NEEDS_CONSTRUCTING.
1970
1a072294
RG
19712011-07-06 Richard Guenther <rguenther@suse.de>
1972
1973 * c-common.c (c_common_nodes_and_builtins):
1974 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1975
fce5dddd
RG
19762011-07-05 Richard Guenther <rguenther@suse.de>
1977
1978 * c-common.c (c_common_nodes_and_builtins): Build all common
1979 tree nodes first.
1980
45d439ac
JJ
19812011-06-27 Jakub Jelinek <jakub@redhat.com>
1982
56300785
JJ
1983 * c-common.h (c_tree_chain_next): New static inline function.
1984
45d439ac
JJ
1985 * c-common.c (check_builtin_function_arguments): Handle
1986 BUILT_IN_ASSUME_ALIGNED.
1987
e0a8ecf2
AM
19882011-06-21 Andrew MacLeod <amacleod@redhat.com>
1989
1990 * c-common.c: Add sync_ or SYNC__ to builtin names.
1991 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
1992
19932011-06-20 Pierre Vittet <piervit@pvittet.com>
1994
1995 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1996 handler.
1997 (gen_pragma_handler): New union.
1998 (internal_pragma_handler): New type.
1999 (c_register_pragma_with_data)
2000 (c_register_pragma_with_expansion_and_data): New functions.
2001
2002 * c-pragma.c (registered_pragmas, c_register_pragma_1)
2003 (c_register_pragma, c_register_pragma_with_expansion)
2004 (c_invoke_pragma_handler): Changed to work with
2005 internal_pragma_handler.
2006 (c_register_pragma_with_data)
2007 (c_register_pragma_with_expansion_and_data): New functions.
2008
677f3fa8
JM
20092011-06-14 Joseph Myers <joseph@codesourcery.com>
2010
2011 * c-common.c: Include common/common-target.h.
2012 (handle_section_attribute): Use
2013 targetm_common.have_named_sections.
2014 * c-cppbuiltin.c: Include common/common-target.h.
2015 (c_cpp_builtins): Use targetm_common.except_unwind_info.
2016
d7fc8c14
RG
20172011-06-10 Richard Guenther <rguenther@suse.de>
2018
2019 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
2020 to print a IDENTIFIER_NODE.
2021
10e48e39
RO
20222011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2023 Joseph Myers <joseph@codesourcery.com>
2024
2025 * c.opt (fbuilding-libgcc): New option.
2026 * c-cppbuiltin.c (c_cpp_builtins): Define
2027 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
2028
6976ae51
JM
20292011-06-07 Jason Merrill <jason@redhat.com>
2030
3ff60975
JM
2031 * c-common.c (max_tinst_depth): Lower default to 900.
2032
6976ae51
JM
2033 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
2034
009db074
RG
20352011-06-07 Richard Guenther <rguenther@suse.de>
2036
2037 * c-common.c (c_common_nodes_and_builtins): Do not set
2038 size_type_node or call set_sizetype.
2039
b4592b92
DS
20402011-06-07 Dodji Seketeli <dodji@redhat.com>
2041
2042 PR debug/49130
2043 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 2044 type when using pointer comparison to compare types.
b4592b92 2045
014ab419
JW
20462011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
2047
2048 * c.opt: Add -Wdelete-non-virtual-dtor.
2049 * c-opts.c (c_common_handle_option): Include it in -Wall.
2050
4f60111f
NF
20512011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
2052
2053 PR bootstrap/49190
2054
2055 Revert:
2056 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2057
2058 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2059 not tree_common.
2060
4cc4f2f4
JJ
20612011-05-27 Jakub Jelinek <jakub@redhat.com>
2062
2063 PR c++/49165
2064 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
2065 C++ don't call c_common_truthvalue_conversion on void type arms.
2066
38e01f9e
NF
20672011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2068
2069 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
2070 (stmt_list_stack): Define.
2071 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
2072 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
2073
92e948a8
NF
20742011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2075
2076 * c-common.c (warning_candidate_p): Check for BLOCKs.
2077
a2fc3e63
NF
20782011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2079
2080 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
2081 not tree_common.
2082
0957c029
JJ
20832011-05-25 Jakub Jelinek <jakub@redhat.com>
2084
2085 * c-common.c (def_fn_type): Remove extra va_end.
2086
828fb3ba
JM
20872011-05-23 Jason Merrill <jason@redhat.com>
2088
2089 PR c++/48106
2090 * c-common.c (c_common_get_narrower): New.
2091 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
2092
dde05067
NF
20932011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2094
2095 * c-common.h (check_function_arguments): Tweak prototype of
2096 check_function_arguments.
2097 * c-common.c (check_function_arguments): Likewise. Adjust
2098 calls to check_function_nonnull, check_function_format, and
2099 check_function_sentinel.
2100 (check_function_sentinel): Take a FUNCTION_TYPE rather than
2101 separate attributes and typelist arguments. Use
2102 FOREACH_FUNCTION_ARGS to iterate over argument types.
2103
3c0d13bf
PC
21042011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
2105
2106 * c-common.c (c_common_reswords): Reorder.
2107 * c-common.h (rid): Likewise.
2108
8242dd04
NF
21092011-05-10 Nathan Froyd <froydnj@codesourcery.com>
2110
2111 * c-common.c (def_fn_type): Don't call build_function_type, call
2112 build_function_type_array or build_varargs_function_type_array
2113 instead.
2114 (c_common_nodes_and_builtins): Likewise.
2115
3d528853
NF
21162011-05-05 Nathan Froyd <froydnj@codesourcery.com>
2117
2118 * c-common.c (c_add_case_label): Omit the loc argument to
2119 build_case_label.
2120 * c-common.h (build_case_label): Remove.
2121 * c-semantics.c (build_case_label): Remove.
2122
a04a722b
JM
21232011-05-05 Joseph Myers <joseph@codesourcery.com>
2124
2125 * c-objc.h (objc_start_method_definition): Update prototype.
2126 * stub-objc.c (objc_start_method_definition): Add extra parameter.
2127
e19a18d4
NF
21282011-05-04 Nathan Froyd <froydnj@codesourcery.com>
2129
2130 * c-common.c (check_main_parameter_types): Reindent. Don't use
2131 TYPE_ARG_TYPES directly.
2132 (handle_nonnull_attribute): Likewise.
2133 (sync_resolve_params): Likewise.
2134 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
2135 to check_format_string.
2136 (handle_format_attribute): Likewise.
2137 (check_format_string): Take a function type to examine instead of
2138 a type list. Use a function_arg_iterator to step through argument
2139 types.
2140
c62c040f
RG
21412011-05-04 Richard Guenther <rguenther@suse.de>
2142
2143 * c-common.c (fix_string_type): Use size_int for index type bounds.
2144 (start_fname_decls): Do not pass NULL to build_int_cst.
2145 (c_init_attributes): Likewise.
2146 * c-lex.c (c_lex_with_flags): Likewise.
2147
c12ff9d8
JM
21482011-04-27 Jason Merrill <jason@redhat.com>
2149
2150 * c-common.c (make_tree_vector_from_list): New.
2151 * c-common.h: Declare it.
2152
304dfbe3
RG
21532011-04-26 Richard Guenther <rguenther@suse.de>
2154
2155 PR preprocessor/48248
2156 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2157 for output size with -P.
2158
3c0d13bf
PC
21592011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2160
2161 * c-common.c (struct c_common_resword): Add __underlying_type.
2162 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2163
04695783
JM
21642011-04-20 Jim Meyering <meyering@redhat.com>
2165
2166 * c-format.c (init_dollar_format_checking): Remove useless
2167 if-before-free.
2168
0dc33c3c
NP
21692011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2170
2171 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 2172 (objc_detect_field_duplicates): New.
0dc33c3c 2173 * stub-objc.c: Likewise.
3c0d13bf 2174
c59633d9
NP
21752011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2176
2177 * stub-objc.c (objc_declare_protocols): Renamed to
2178 objc_declare_protocol.
2179 * c-objc.h: Likewise.
3c0d13bf 2180
32dabdaf
NP
21812011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2182
2183 * stub-objc.c (objc_declare_class): Updated argument name.
2184
81f653d6
NF
21852011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2186
2187 * c-common.h (c_common_init_ts): Declare.
2188 * c-common.c (c_common_init_ts): Define.
2189
eb345401
NP
21902011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2191
2192 * c-objc.h (objc_build_message_expr): Updated prototype.
2193 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 2194
a358e188
MJ
21952011-04-12 Martin Jambor <mjambor@suse.cz>
2196
2197 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2198 of cgraph_node.
2199
e6313a78
RG
22002011-04-11 Richard Guenther <rguenther@suse.de>
2201
2202 * c-common.c (complete_array_type): Build a range type of
2203 proper type.
2204
dcf0c47e
NF
22052011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2206
2207 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2208 (handle_type_generic_attribute): Likewise.
2209
1ee44b26
JM
22102011-04-07 Jason Merrill <jason@redhat.com>
2211
2212 PR c++/48450
2213 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2214 conversion from C++0x scoped enum.
2215
acce4e77
JM
22162011-04-06 Joseph Myers <joseph@codesourcery.com>
2217
2218 * c-target-def.h: New file.
2219 * c-target.def: New file.
2220 * c-target.h: New file.
2221 * c-common.c (targetcm): Don't define here.
2222 * c-common.h (default_handle_c_option): Declare.
2223 * c-format.c: Include c-target.h instead of target.h.
2224 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2225 include tm.h.
2226 (default_handle_c_option): Move from targhooks.c.
2227
e2eefb55
JJ
22282011-03-29 Jakub Jelinek <jakub@redhat.com>
2229
2230 PR preprocessor/48248
2231 * c-ppoutput.c (print): Add src_file field.
2232 (init_pp_output): Initialize it.
2233 (maybe_print_line): Don't optimize by adding up to 8 newlines
2234 if map->to_file and print.src_file are different file.
2235 (print_line): Update print.src_file.
2236
ba78087b
KT
22372011-03-25 Kai Tietz <ktietz@redhat.com>
2238
2239 * c-ada-spec.c (compare_comment): Use filename_cmp
2240 instead of strcmp for filename.
2241
0edf1bb2
JL
22422011-03-25 Jeff Law <law@redhat.com>
2243
2244 * c-family/c-common.c (def_fn_type): Add missing va_end.
2245
c7dc8804
JM
22462011-03-25 Jason Merrill <jason@redhat.com>
2247
2248 * c.opt: Add -std=c++03.
2249
d1d879b1
EB
22502011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2251
2252 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2253
62d784f7
KT
22542011-03-17 Kai Tietz
2255
2256 PR target/12171
5050afdf
KT
2257 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2258 Display allowed attributes for function pointer types.
2259 (pp_c_attributes_display): New function to display
2260 attributes having affects_type_identity flag set to true.
2261 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2262
62d784f7
KT
2263 * c-common.c (c_common_attribute_table):
2264 Add new element.
2265 (c_common_format_attribute_table): Likewise.
2266
82d37118
JM
22672011-03-18 Jason Merrill <jason@redhat.com>
2268
49a000c3
JM
2269 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2270 * c-common.h: Don't declare it here.
2271 * c-common.c: Or define it here.
2272 * c-opts.c (c_common_handle_option): Or set it here.
2273
82d37118
JM
2274 PR c++/35315
2275 * c-common.c (handle_transparent_union_attribute): Don't
2276 make a duplicate type in C++.
2277
17bc631c
JM
22782011-03-15 Jason Merrill <jason@redhat.com>
2279
2280 * c-common.c (max_constexpr_depth): New.
2281 * c-common.h: Declare it.
2282 * c-opts.c (c_common_handle_option): Set it.
2283 * c.opt (fconstexpr-depth): New option.
2284
1b9b91a6
JM
22852011-03-11 Jason Merrill <jason@redhat.com>
2286
f231b5ff
JM
2287 * c-common.c (attribute_takes_identifier_p): Add missing const.
2288
1b9b91a6
JM
2289 PR c++/46803
2290 * c-common.c (attribute_takes_identifier_p): Assume that an
2291 unknown attribute takes an identifier.
2292
a19e4d44
NF
22932011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2294
2295 PR c/47786
2296 * c-common.c (c_type_hash): Call list_length instead of iterating
2297 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2298
982d62f6
JJ
22992011-02-19 Jakub Jelinek <jakub@redhat.com>
2300
2301 PR c/47809
2302 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2303
0a256240
NP
23042011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2305
2306 * c.opt (fobjc-abi-version=) New.
2307 (fobjc-nilcheck): New.
2308
ba9e6dd5
NF
23092011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2310
2311 PR c++/46890
2312 * c-common.h (keyword_is_decl_specifier): Declare.
2313 * c-common.c (keyword_is_decl_specifier): Define.
2314 (keyword_is_function_specifier): New function.
2315
7273813a
JJ
23162011-01-26 Jakub Jelinek <jakub@redhat.com>
2317
2318 PR c/47473
2319 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2320 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2321 REAL_TYPE.
2322
908ef79b
AC
23232011-01-26 Arnaud Charlet <charlet@adacore.com>
2324
2325 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2326
237e9384
JJ
23272011-01-26 Jakub Jelinek <jakub@redhat.com>
2328
2329 PR pch/47430
2330 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2331 after init_c_lex if pch_file is set.
2332
47ea1edf
DK
23332011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2334
d4dba752 2335 PR c++/43601
47ea1edf
DK
2336 * c.opt (-fkeep-inline-dllexport): New switch.
2337
2aa9c6ae
RG
23382011-01-12 Richard Guenther <rguenther@suse.de>
2339
2340 PR middle-end/32511
2341 * c-common.c (handle_weak_attribute): Warn instead of error
2342 on declaring an inline function weak.
2343
7bd11157
TT
23442011-01-05 Tom Tromey <tromey@redhat.com>
2345
2346 * c-common.h (lvalue_error): Update.
2347 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2348 not error.
2349
0e66e494 23502010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2351
b4f588c4
NP
2352 PR objc/47075
2353 * c-objc.h (objc_finish_message_expr): Added argument to
2354 prototype.
2355
f4da8dce
NF
23562010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2357
2358 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2359 Use prototype_p.
2360
46270f14
NP
23612010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2362
2363 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2364 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2365
4816c593
NF
23662010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2367
2368 * c-common.h (readonly_error): Declare.
2369 * c-common.c (readonly_error): Define.
2370
7a6daeb0
NF
23712010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2372
2373 * c-common.h (invalid_indirection_error): Declare.
2374 * c-common.c (invalid_indirection_error): Define.
2375
892f6119
RG
23762010-12-03 Richard Guenther <rguenther@suse.de>
2377
2378 PR c/46745
2379 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2380 (pp_c_unary_expression): Likewise.
2381 (pp_c_expression): Likewise.
2382
6c39e757
NP
23832010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2384
2385 * c-common.h (objc_finish_function): New.
2386 (objc_non_volatilized_type): Removed.
2387 (objc_type_quals_match): Removed.
2388 * stub-objc.c (objc_finish_function): New.
2389 (objc_non_volatilized_type): Removed.
2390 (objc_type_quals_match): Removed.
9faeb493 2391
7c475d11
JM
23922010-11-30 Joseph Myers <joseph@codesourcery.com>
2393
2394 * c-common.h (parse_optimize_options): Declare.
2395 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2396 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2397
71f3e391
JM
23982010-11-29 Joseph Myers <joseph@codesourcery.com>
2399
2400 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2401 GET_ENVIRONMENT.
2402 * c-pch.c (O_BINARY): Don't define here.
2403 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2404
d5fabb58
JM
24052010-11-25 Joseph Myers <joseph@codesourcery.com>
2406
2407 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2408 targetm.except_unwind_info.
2409
299404a1
JM
24102010-11-23 Joseph Myers <joseph@codesourcery.com>
2411
2412 * c-opts.c (c_common_handle_option): Pass location to
2413 set_struct_debug_option.
2414
c98cd5bf
JM
24152010-11-23 Joseph Myers <joseph@codesourcery.com>
2416
2417 * c-common.c (visibility_options): Move from ../opts.c.
2418 * c-common.h (struct visibility_flags, visibility_options):
2419 Declare here.
2420 * c-opts.c (finish_options): Rename to c_finish_options.
2421 (c_common_init): Update call to finish_options.
2422
a9546771
NP
24232010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2424
2425 PR objc/34033
2426 * c-lex.c (lex_string): Check that each string in an Objective-C
2427 string concat sequence starts with either one or zero '@', and
2428 that there are no spurious '@' signs at the end.
2429
24a57808
JM
24302010-11-20 Joseph Myers <joseph@codesourcery.com>
2431
2432 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2433 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2434 HANDLE_PRAGMA_VISIBILITY.
2435 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2436 HANDLE_PRAGMA_VISIBILITY): Don't define.
2437 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2438
a9aa2c3a
NF
24392010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2440
2441 PR c++/16189
2442 PR c++/36888
2443 PR c++/45331
2444 * c-common.h (keyword_begins_type_specifier): Declare.
2445 (keyword_is_storage_class_specifier): Declare.
2446 (keyword_is_type_qualifier): Declare.
2447 * c-common.c (keyword_begins_type_specifier): New function.
2448 (keyword_is_storage_class_specifier): New function.
2449 (keyword_is_type_qualifier): Declare.
2450
5386338c
JM
24512010-11-19 Joseph Myers <joseph@codesourcery.com>
2452
2453 PR c/46547
2454 * c-common.c (in_late_binary_op): Define.
2455 (c_common_truthvalue_conversion): Check in_late_binary_op before
2456 calling c_save_expr.
2457 * c-common.h (in_late_binary_op): Declare.
2458
69ccdddb
JM
24592010-11-19 Joseph Myers <joseph@codesourcery.com>
2460
2461 * c-opts.c (c_common_handle_option): Update calls to
2462 set_struct_debug_option.
2463
6b192a09
NP
24642010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2465
2466 * c-common.h (objc_declare_protocols): Added additional argument.
2467 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2468
fb52b50a
NF
24692010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2470
2471 PR c/33193
2472 * c-common.h (build_real_imag_expr): Declare.
2473 * c-semantics.c (build_real_imag_expr): Define.
2474
b37421c6
JM
24752010-11-17 Joseph Myers <joseph@codesourcery.com>
2476
2477 * c-opts.c (c_common_parse_file): Take no arguments.
2478 * c-common.h (c_common_parse_file): Update prototype.
2479
07078664
JJ
24802010-11-16 Jakub Jelinek <jakub@redhat.com>
2481
2482 PR c++/46401
2483 * c-common.c (warning_candidate_p): Don't track non-const calls
2484 or STRING_CSTs.
2485
c6a13190
ILT
24862010-11-15 Ian Lance Taylor <iant@google.com>
2487
2488 * c-lex.c (init_c_lex): Set macro debug callbacks if
2489 flag_dump_go_spec is set.
2490
925e8657
NP
24912010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2492
2493 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2494 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2495
bb0a9581
NF
24962010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2497
2498 PR preprocessor/45038
2499 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2500 dialects.
2501
c5fa0890
JM
25022010-11-12 Joseph Myers <joseph@codesourcery.com>
2503
2504 * c-common.h (c_family_lang_mask): Declare.
2505 * c-opts.c (c_family_lang_mask): Make extern.
2506 * c-pragma.c (handle_pragma_diagnostic): Use
2507 control_warning_option.
2508
a4d8c676
JM
25092010-11-12 Joseph Myers <joseph@codesourcery.com>
2510
2511 * c-common.c (parse_optimize_options): Update call to
2512 decode_options.
2513 * c-common.h (c_common_handle_option): Update prototype.
2514 * c-opts.c (c_common_handle_option): Take location_t parameter and
2515 pass it to other functions.
2516
f954bd2c
JM
25172010-11-11 Joseph Myers <joseph@codesourcery.com>
2518
2519 * c-opts.c (warning_as_error_callback): Remove.
2520 (c_common_initialize_diagnostics): Don't call
2521 register_warning_as_error_callback.
2522 (c_common_handle_option): Handle -Werror=normalized= here.
2523
d8a07487
JM
25242010-11-10 Joseph Myers <joseph@codesourcery.com>
2525
2526 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2527 in diagnostic.
2528 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2529 letter.
2530 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2531 Remove trailing '.' from diagnostics.
2532 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2533
d5478783
JM
25342010-11-10 Joseph Myers <joseph@codesourcery.com>
2535
2536 * c-common.c (parse_optimize_options): Pass global_dc to
2537 decode_options.
2538 * c-opts.c (c_common_handle_option): Pass &global_options to
2539 set_Wstrict_aliasing.
2540 * c.opt (v): Don't mark Common or document here.
2541
91ebb981
IS
25422010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2543
2544 PR target/44981
2545 * c-format.c (format_type): New type gcc_objc_string_format_type.
2546 (valid_stringptr_type_p): New.
2547 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2548 (check_format_string): Pass expected type, use
91ebb981
IS
2549 valid_stringptr_type_p (), check that the format string types are
2550 consistent with the format specification.
2551 (decode_format_attr): Warn if NSString is used outside objective-c.
2552 (format_types_orig): Add NSString.
2553 (format_name): New.
2554 (format_flags): New.
2555 (check_format_arg): Handle format strings requiring an external parser.
2556 first_target_format_type: New variable.
2557 (handle_format_attribute): Set up first_target_format_type, pass the
2558 expected format arg string type to check_format_string().
2559 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2560 * stub-objc.c (objc_string_ref_type_p): New.
2561 (objc_check_format_arg): New.
2562
bede2adc
NP
25632010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2564
9faeb493 2565 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2566 * c-common.h (objc_build_class_component_ref): New.
2567 * stub-objc.c (objc_build_class_component_ref): New.
2568
9a179d01
NP
25692010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2570
2571 * c.opt (Wproperty-assign-default): New option.
2572
22d8d616
NP
25732010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2574
2575 Implemented -fobjc-std=objc1 flag.
2576 * c.opt (fobjc-std=objc1): New option.
2577
2debdb4f
NP
25782010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2579
2580 Implemented format and noreturn attributes for Objective-C methods.
2581 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2582 attribute for Objective-C methods.
2583
ec52b111
JM
25842010-10-31 Jason Merrill <jason@redhat.com>
2585
2586 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2587 EXPR_LOC_OR_HERE.
2588
46a88c12
NP
25892010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2590
2591 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2592 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2593 (objc_add_property_declaration): Removed arguments for copies and
2594 ivar.
2595 (objc_build_getter_call): Renamed to
2596 objc_maybe_build_component_ref.
2597 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2598 (objc_is_property_ref): New.
2599 * c-common.c (c_common_reswords): Removed copies and ivar.
2600 * stub-objc.c (objc_add_property_declaration): Removed arguments
2601 for copies and ivar.
2602 (objc_build_getter_call): Renamed to
2603 objc_maybe_build_component_ref.
2604 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2605 (objc_is_property_ref): New.
9faeb493 2606
1e4bf85b
AC
26072010-10-29 Arnaud Charlet <charlet@adacore.com>
2608 Matthew Gingell <gingell@adacore.com>
2609
2610 * c-ada-spec.c (separate_class_package): New function.
2611 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2612 name of their enclosing package.
2613 (print_ada_declaration): Use separate_class_package.
2614
81f0bab2
JM
26152010-10-27 Jason Merrill <jason@redhat.com>
2616
2b08f2c5
JM
2617 * c-common.c (c_common_reswords): Add __is_literal_type.
2618 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2619
81f0bab2
JM
2620 * c-common.c (check_case_value): Remove special C++ code.
2621
200290f2
NP
26222010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2623
2624 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2625 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2626 and RID_LAST_PATTR.
2627 (objc_add_property_declaration): Added additional arguments.
2628 (objc_property_attribute_kind): Removed.
2629 (objc_set_property_attr): Removed.
2630 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2631 copy and nonatomic.
2632 * stub-objc.c (objc_add_property_declaration): Added additional
2633 arguments.
2634 (objc_set_property_attr): Removed.
9faeb493 2635
f614132b
NP
26362010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2637
2638 * c-common.h (objc_add_property_variable): Renamed to
2639 objc_add_property_declaration. Added location argument.
2640 * stub-objc.c (objc_add_property_variable): Same change.
2641
b8a18805
NP
26422010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2643
2644 * c-common.h (objc_maybe_printable_name): New.
2645 * stub-objc.c (objc_maybe_printable_name): New.
2646
30cd1c5d
AS
26472010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2648 Andrew Pinski <pinskia@gmail.com>
2649
2650 * c-common.h (c_common_mark_addressable_vec): Declare.
2651 * c-common.c (c_common_mark_addressable_vec): New function.
2652
249a82c4
NP
26532010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2654
2655 * c-common.h (objc_set_method_type): Removed.
2656 (objc_add_method_declaration): Added boolean argument.
2657 (objc_start_method_definition): Same change.
2658 (objc_build_method_signature): Same change.
2659 * stub-objc.c (objc_set_method_type): Removed.
2660 (objc_add_method_declaration): Added boolean argument.
2661 (objc_start_method_definition): Same change.
2662 (objc_build_method_signature): Same change.
2663
977e30bc
NP
26642010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2665
2666 * c-common.h (finish_file): Removed.
2667 (objc_write_global_declarations): New.
2668 * c-opts.c (c_common_parse_file): Do not call finish_file.
2669 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2670
da57d1b9
NP
26712010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2672
2673 Implemented parsing @synthesize and @dynamic for
2674 Objective-C/Objective-C++.
2675 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2676 (objc_add_synthesize_declaration): New.
2677 (objc_add_dynamic_declaration): New.
2678 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2679 * stub-objc.c (objc_add_synthesize_declaration): New.
2680 (objc_add_dynamic_declaration): New.
9faeb493 2681
0069111f
MM
26822010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2683
2684 PR target/46041
2685 * c-cppbuiltin.c (mode_has_fma): Move function here from
2686 builtins.c. Don't use the fma optab, instead just use the
2687 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2688 using -save-temps.
2689
e426b47b
NP
26902010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2691
2692 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2693
e426b47b
NP
2694 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2695
9faeb493 2696 Radar 4330422
e426b47b
NP
2697 * c-common.h (objc_non_volatilized_type): New declaration
2698 * stub-objc.c (objc_non_volatilized_type): New stub.
2699
90fbfdc3
NP
27002010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2701
e426b47b 2702 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2703
2704 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2705
9faeb493 2706 Radar 4133425
90fbfdc3 2707 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2708 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2709
c37d8c30
IS
27102010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2711
2712 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2713 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2714 (objc_ivar_visibility_kind): New enum.
2715 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2716 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2717 visibility enum.
2718
1b1562a5
MM
27192010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2720
2721 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2722 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2723 has the appropriate fma builtins.
2724 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2725
668ea4b1
IS
27262010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2727
1b1562a5 2728 merge from FSF apple 'trunk' branch.
668ea4b1 2729 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2730
668ea4b1
IS
2731 Radars 4436866, 4505126, 4506903, 4517826
2732 * c-common.c (c_common_resword): Define @property and its attributes.
2733 * c-common.h: Define property attribute enum entries.
2734 (OBJC_IS_PATTR_KEYWORD): New.
2735 (objc_property_attribute_kind): New enum.
2736 Declare objc_set_property_attr (), objc_add_property_variable (),
2737 objc_build_getter_call () and objc_build_setter_call ().
2738 * stub-objc.c (objc_set_property_attr): New stub.
2739 (objc_add_property_variable): Likewise.
2740 (objc_build_getter_call): Likewise.
2741 (objc_build_setter_call) Likewise.
1b1562a5 2742
a1178b30
IS
27432010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2744
1b1562a5 2745 merge from FSF apple 'trunk' branch.
a1178b30
IS
2746 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2747
2748 Radar 3803157 (method attributes)
2749 * c-common.c (handle_deprecated_attribute): Recognize
2750 objc methods as valid declarations.
2751 * c-common.h: Declare objc_method_decl ().
1b1562a5 2752 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2753
a75bfaa6
JM
27542010-10-08 Joseph Myers <joseph@codesourcery.com>
2755
2756 * c-common.c (parse_optimize_options): Call
2757 decode_cmdline_options_to_array_default_mask before
2758 decode_options. Update arguments to decode_options.
2759 * c-common.h (c_common_init_options_struct): Declare.
2760 * c-opts.c (c_common_init_options_struct): New. Split out from
2761 c_common_init_options.
2762
f05b9d93
NP
27632010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2764
2765 Implemented fast enumeration for Objective-C.
2766 * c-common.h (objc_finish_foreach_loop): New.
2767 * stub-objc.c (objc_finish_foreach_loop): New.
2768
1ebe4b4f
JM
27692010-10-05 Joseph Myers <joseph@codesourcery.com>
2770
2771 * c-common.h (struct diagnostic_context): Don't declare here.
2772 (c_common_initialize_diagnostics): Declare using
2773 diagnostic_context typedef.
2774 * c-opts.c (c_common_handle_option): Pass global_dc to
2775 handle_generated_option.
2776
d4d24ba4
JM
27772010-10-04 Joseph Myers <joseph@codesourcery.com>
2778
2779 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2780 handle_generated_option.
2781
478a1c5b
ILT
27822010-10-03 Ian Lance Taylor <iant@google.com>
2783
2784 * c.opt (-fplan9-extensions): New option.
2785
82a1c2fe
FXC
27862010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2787
2788 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2789 Remove.
2790 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2791 of duplicating code.
2792
92902b1b
IS
27932010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2794
2795 * c-common.c: Add two new entries for @optional
2796 and @required keywords.
2797
2798 merge from FSF 'apple/trunk' branch.
2799 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2800
2801 Radar 4386773
2802 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2803 objective-c keywords.
2804 (objc_set_method_opt): New declaration.
2805 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2806
46625112
JM
28072010-09-30 Joseph Myers <joseph@codesourcery.com>
2808
2809 * c-common.c (handle_optimize_attribute): Pass &global_options to
2810 cl_optimization_save and cl_optimization_restore.
2811 * c-opts.c (c_common_handle_option): Pass &global_options to
2812 handle_generated_option.
2813 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2814 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2815 &global_options to cl_optimization_restore.
2816
49b91f05
NP
28172010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2818
2819 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2820 Objective-C/Objective-C++ keywords.
2821
13ed556f 28222010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2823
9faeb493
UB
2824 Merge from 'apple/trunk' branch on FSF servers.
2825
a6341d57
NP
2826 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2827
2828 Radar 4281748
2829 * c-common.h (objc_check_global_decl): New declaration.
2830 * stub-objc.c (objc_check_global_decl): New stub.
2831
f0036cca
JM
28322010-09-29 Joseph Myers <joseph@codesourcery.com>
2833
2834 * c.opt: Don't use VarExists.
2835
e3339d0f
JM
28362010-09-29 Joseph Myers <joseph@codesourcery.com>
2837
2838 * c-common.c (c_cpp_error): Update names of diagnostic_context
2839 members.
2840 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2841 cl_optimization members.
2842 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2843 sanitize_cpp_opts, finish_options): Update names of cpp_options
2844 members.
2845
1973201f
NP
28462010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2847
2848 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2849 (objc_is_reserved_word): Removed.
2850 * c-common.c: Updated comments.
2851 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2852 objc_is_reserved_word.
2853 * stub-objc.c (objc_is_reserved_word): Removed.
2854
f7e71da5
IS
28552010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2856
9faeb493 2857 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2858 include attributes.
2859 (objc_start_method_definition): Likewise.
2860 (objc_build_keyword_decl): Likewise.
2861 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2862 (objc_start_method_definition): Likewise.
2863 (objc_build_keyword_decl): Likewise.
2864
c165dca7
IS
28652010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2866
2867 * c-common.h (objc_start_class_interface): Adjust prototype.
2868 (objc_start_category_interface): Likewise.
2869 (objc_start_protocol): Likewise.
2870 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2871 (objc_start_class_interface): Likewise.
2872 (objc_start_category_interface): Likewise.
2873
7458026b
ILT
28742010-09-27 Ian Lance Taylor <iant@google.com>
2875
2876 * c-common.c (c_common_attribute_table): Add no_split_stack.
2877 (handle_no_split_stack_attribute): New static function.
2878
b581b85b
NP
28792010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2880
9faeb493 2881 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
2882
2883 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2884
9faeb493 2885 Radar 4229905
b581b85b
NP
2886 * c-common.h (objc_have_common_type): New declaration.
2887 * stub-objc.c (objc_have_common_type): New stub.
2888
2889 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2890
2891 Radar 4154928
2892 * c-common.h (objc_common_type): New prototype.
9faeb493 2893 * stub-objc.c (objc_common_type): New stub.
b581b85b 2894
46a4da10
JH
28952010-09-24 Jan Hubicka <jh@suse.cz>
2896
2897 * c-common.c (handle_leaf_attribute): New function.
2898 (struct attribute_spec c_common_att): Add leaf.
2899
e200444e
JM
29002010-09-22 Joseph Myers <joseph@codesourcery.com>
2901
2902 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2903 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2904 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2905 -include-barrier, -include-directory, -include-directory=,
2906 -include-directory-after, -include-directory-after=,
2907 -include-prefix, -include-prefix=, -include-with-prefix,
2908 -include-with-prefix=, -include-with-prefix-after,
2909 -include-with-prefix-after=, -include-with-prefix-before,
2910 -include-with-prefix-before=, -no-integrated-cpp,
2911 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2912 -output=, -pedantic, -pedantic-errors, -preprocess,
2913 -print-missing-file-dependencies, -trace-includes, -traditional,
2914 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2915 -user-dependencies, -verbose, -write-dependencies,
2916 -write-user-dependencies, no-integrated-cpp, traditional): New.
2917
29a80ea6
NP
29182010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2919
2920 PR objc/23710
ac1fc2fc
NP
2921 * c-common.h (objc_start_method_definition): Return bool instead
2922 of void.
2923 * stub-objc.c (objc_start_method_definition): Return bool instead
2924 of void.
2925
29262010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2927
2928 PR objc/25965
2929 * c-common.h (objc_get_interface_ivars): New declaration.
2930 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 2931
de621752
ILT
29322010-09-15 Ian Lance Taylor <iant@google.com>
2933
2934 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 2935 messages. Remove period at end of warning message.
de621752 2936
ba885ec5
NS
29372010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2938
2939 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2940 (handle_alias_attribute): ... here.
2941 (handle_ifunc_attribute): New.
2942
c5ee1358
MM
29432010-09-06 Mark Mitchell <mark@codesourcery.com>
2944
2945 * c-common.h (do_warn_double_promotion): Declare.
2946 * c-common.c (do_warn_double_promotion): Define.
2947
0a0b3574
MM
29482010-09-05 Mark Mitchell <mark@codesourcery.com>
2949
2950 * c.opt (Wdouble-promotion): New.
2951
d1779886
JM
29522010-09-02 Joseph Myers <joseph@codesourcery.com>
2953
2954 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2955 fvtable-thunks, fxref): Mark no longer supported in help text.
2956
2d2bd949
JM
29572010-09-02 Joseph Myers <joseph@codesourcery.com>
2958
2959 * c.opt (Wimport, fall-virtual, falt-external-templates,
2960 fdefault-inline, fenum-int-equiv, fexternal-templates,
2961 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2962 fname-mangling-version-, fnew-abi, fnonnull-objects,
2963 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2964 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2965 applicable.
2966 (fhandle-exceptions): Mark with Alias and Warn.
2967 * c-opts.c (c_common_handle_option): Don't handle options marked
2968 as ignored.
2969
5de8299c
JM
29702010-09-02 Joseph Myers <joseph@codesourcery.com>
2971
2972 * c.opt (Wcomments, Werror-implicit-function-declaration,
2973 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2974 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2975 aliases.
2976 * c-common.c (option_codes): Use OPT_Wcomment instead of
2977 OPT_Wcomments.
2978 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2979 Don't handle options marked as aliases.
2980
0ceb0201
RG
29812010-08-25 Richard Guenther <rguenther@suse.de>
2982
2983 * c-common.c (c_common_get_alias_set): Remove special
2984 handling for pointers.
2985
ac47786e
NF
29862010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2987
2988 * c-common.c: Use FOR_EACH_VEC_ELT.
2989 * c-gimplify.c: Likewise.
2990 * c-pragma.c: Likewise.
2991
c878765b
JM
29922010-08-16 Joseph Myers <joseph@codesourcery.com>
2993
2994 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2995 RejectDriver.
2996 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2997 RejectDriver.
2998 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2999 instead of OPT_MDX and OPT_MMDX.
3000
603349bf
JM
30012010-08-16 Joseph Myers <joseph@codesourcery.com>
3002
3003 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
3004
644fa7ac
JM
30052010-08-12 Joseph Myers <joseph@codesourcery.com>
3006
3007 * c.opt (MD, MMD): Change to MDX and MMDX.
3008 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
3009
481e1176
JM
30102010-08-11 Joseph Myers <joseph@codesourcery.com>
3011
3012 * c-opts.c (c_common_handle_option): Call handle_generated_option
3013 instead of handle_option.
3014
ac8dc9f7
NF
30152010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3016
3017 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
3018 (maybe_apply_renaming_pragma): Delete unneeded declarations.
3019
4f8c876d
NF
30202010-08-08 Nathan Froyd <froydnj@codesourcery.com>
3021
3022 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
3023 (pending_redefine_extname): Change type to a VEC.
3024 (add_to_renaming_pragma_list): Update for new type of
3025 pending_redefine_extname.
ac8dc9f7 3026 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 3027
3b0c690e
AC
30282010-08-04 Arnaud Charlet <charlet@adacore.com>
3029
3030 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
3031 visited.
3032 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
3033 decide whether a type has already been declared/seen.
3034 Do not go to the original type.
3035 (dump_nested_types): New parameter forward.
3036 Generate forward declaration if needed and mark type as visited.
3037 (print_ada_declaration): Call dump_nested_types if not already done.
3038 Mark types as visited.
3039
1890bccc
JM
30402010-08-03 Joseph Myers <joseph@codesourcery.com>
3041
3042 * c.opt (-print-pch-checksum): Remove option.
3043 * c-opts.c (c_common_handle_option): Don't handle
3044 OPT_print_pch_checksum.
3045
5f20c657
JM
30462010-07-27 Joseph Myers <joseph@codesourcery.com>
3047
3048 * c-common.h (c_common_handle_option): Update prototype and return
3049 value type.
3050 * c-opts.c (c_common_handle_option): Update prototype and return
3051 value type. Update calls to handle_option and
3052 enable_warning_as_error.
3053
f551f80c
JJ
30542010-07-27 Jakub Jelinek <jakub@redhat.com>
3055
3056 PR c/45079
3057 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
3058
61ff2bdc
JM
30592010-07-27 Joseph Myers <joseph@codesourcery.com>
3060
3061 * c-common.h (c_common_missing_argument): Remove.
3062 * c-opts.c (c_common_missing_argument): Remove.
3063 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
3064 idirafter, imacros, include, isysroot, isystem, iquote): Add
3065 MissingArgError.
3066 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
3067
7a9bf9a4
JM
30682010-07-27 Joseph Myers <joseph@codesourcery.com>
3069
3070 * c-common.h (c_common_option_lang_mask,
3071 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
3072 New.
3073 (c_common_init_options): Update prototype.
3074 * c-opts.c (c_common_option_lang_mask): New.
3075 (c_common_initialize_diagnostics): Split out of
3076 c_common_init_options.
3077 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
3078 New.
3079 (c_common_init_options): Update prototype. Use decoded options in
3080 search for -lang-asm.
3081
910ad8de
NF
30822010-07-15 Nathan Froyd <froydnj@codesourcery.com>
3083
3084 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
3085 * c-format.c: Likewise.
3086
718f9c0f
MLI
30872010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
3088
3089 * c-common.h: Include diagnostic-core.h. Error if already
3090 included.
3091 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
3092
4d451982
MLI
30932010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3094
3095 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
3096 Do not include expr.h
3097 (vector_mode_valid_p): Move here.
3098
119fe915
SB
30992010-06-21 DJ Delorie <dj@redhat.com>
3100
3101 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
3102 allow these pragmas anywhere.
3103
31042010-06-14 Jakub Jelinek <jakub@redhat.com>
3105
3106 PR bootstrap/44509
3107 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
3108 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
3109 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
3110 ggc_strdup instead of xstrdup.
3111
31122010-06-10 Jakub Jelinek <jakub@redhat.com>
3113
3114 * c-cppbuiltin.c: Include cpp-id-data.h.
3115 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
3116 (lazy_hex_fp_value): New function.
3117 (builtin_define_with_hex_fp_value): Provide definitions lazily.
3118
6662d794
MLI
31192010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
3120
3121 * c-gimplify.c: Do not include tree-flow.h
3122
38f8b050
JR
31232010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
3124
3125 PR other/44034
3126 * c-common.c: Rename targetm member:
3127 targetm.enum_va_list -> targetm.enum_va_list_p
3128
9589f23e
AS
31292010-06-28 Anatoly Sokolov <aesok@post.ru>
3130
3131 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
3132
3b06d379
SB
31332010-06-28 Steven Bosscher <steven@gcc.gnu.org>
3134
3135 * c-cppbuiltin.c: Do not include except.h.
3136
d166d4c3
AK
31372010-06-24 Andi Kleen <ak@linux.intel.com>
3138
9faeb493
UB
3139 * c-common.c (warn_for_omitted_condop): New.
3140 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 3141
70cb8be6
JM
31422010-06-21 Joseph Myers <joseph@codesourcery.com>
3143
3144 * c.opt (lang-objc): Remove.
3145 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
3146
a4c97feb
JR
31472010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
3148
3149 * c-opts.c: Include "tm_p.h".
3150
6e2f1956
JM
31512010-06-20 Joseph Myers <joseph@codesourcery.com>
3152
3153 * c-common.c (parse_optimize_options): Update call to
3154 decode_options.
3155
bc87224e
NF
31562010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3157
3158 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3159 new type of types_used_by_cur_var_decl.
3160
b49cf425
JR
31612010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3162
3163 PR bootstrap/44512
3164 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3165 for C++ standard compliance.
3166
59f9c2ed
JM
31672010-06-16 Jason Merrill <jason@redhat.com>
3168
3169 * c.opt: Add -Wnoexcept.
3170
33766b66
RG
31712010-06-16 Richard Guenther <rguenther@suse.de>
3172
3173 PR c/44555
3174 * c-common.c (c_common_truthvalue_conversion): Remove
3175 premature and wrong optimization concering ADDR_EXPRs.
3176
eff7e30c
AC
31772010-06-15 Arnaud Charlet <charlet@adacore.com>
3178
3179 * c-ada-spec.c (dump_sloc): Remove column info.
3180 (is_simple_enum): New function.
3181 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3182 enum types when relevant.
3183
6312e84d
MLI
31842010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3185
9faeb493 3186 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
3187 location.
3188
1cb42611
JM
31892010-06-10 Joseph Myers <joseph@codesourcery.com>
3190
3191 * c-opts.c (c_common_handle_option): Don't handle
3192 OPT_fshow_column.
3193
a9429e29
LB
31942010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3195
3196 * c-pragma.c (push_alignment): Use typed GC allocation.
3197 (handle_pragma_push_options): Likewise.
3198
3199 * c-common.c (parse_optimize_options): Likewise.
3200
3201 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3202 option.
3203
5498f011
JM
32042010-06-07 Joseph Myers <joseph@codesourcery.com>
3205
3206 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3207 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3208 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3209 flag_signed_bitfields, warn_strict_null_sentinel,
3210 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3211 flag_gen_declaration, flag_no_gnu_keywords,
3212 flag_implement_inlines, flag_implicit_templates,
3213 flag_implicit_inline_templates, flag_optional_diags,
3214 flag_elide_constructors, flag_default_inline, flag_rtti,
3215 flag_conserve_space, flag_access_control, flag_check_new,
3216 flag_new_for_scope, flag_weak, flag_working_directory,
3217 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3218 flag_enforce_eh_specs, flag_threadsafe_statics,
3219 flag_pretty_templates): Remove.
3220 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3221 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3222 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3223 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3224 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3225 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3226 flag_no_gnu_keywords, flag_implement_inlines,
3227 flag_implicit_templates, flag_implicit_inline_templates,
3228 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3229 flag_rtti, flag_conserve_space, flag_access_control,
3230 flag_check_new, flag_new_for_scope, flag_weak,
3231 flag_working_directory, flag_use_cxa_atexit,
3232 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3233 flag_threadsafe_statics, flag_pretty_templates,
3234 warn_strict_null_sentinel): Remove.
3235 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3236 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3237 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3238 fimplicit-inline-templates, fimplicit-templates,
3239 flax-vector-conversions, fms-extensions, fnil-receivers,
3240 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3241 frtti, fshort-double, fshort-enums, fshort-wchar,
3242 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3243 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3244 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3245 gen-decls, undef): Use Var.
3246 (fdefault-inline, foptional-diags): Document as doing nothing.
3247 * c-opts.c (c_common_handle_option): Remove cases for options now
3248 using Var. Mark ignored options as such.
3249
39dabefd
SB
32502010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3251
9faeb493 3252 * c-common.c: Moved to here from parent directory.
39dabefd
SB
3253 * c-common.def: Likewise.
3254 * c-common.h: Likewise.
3255 * c-cppbuiltin.c: Likewise.
3256 * c-dump.c: Likewise.
3257 * c-format.c: Likewise.
3258 * c-format.h : Likewise.
3259 * c-gimplify.c: Likewise.
3260 * c-lex.c: Likewise.
3261 * c-omp.c: Likewise.
3262 * c.opt: Likewise.
3263 * c-opts.c: Likewise.
3264 * c-pch.c: Likewise.
3265 * c-ppoutput.c: Likewise.
3266 * c-pragma.c: Likewise.
3267 * c-pragma.h: Likewise.
3268 * c-pretty-print.c: Likewise.
3269 * c-pretty-print.h: Likewise.
3270 * c-semantics.c: Likewise.
3271 * stub-objc.c: Likewise.
3272
3273 * c-common.c: Include gt-c-family-c-common.h.
3274 * c-pragma.c: Include gt-c-family-c-pragma.h.
3275\f
d1e082c2 3276Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
3277
3278Copying and distribution of this file, with or without modification,
3279are permitted in any medium without royalty provided the copyright
3280notice and this notice are preserved.
This page took 1.169386 seconds and 5 git commands to generate.