]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
2013-11-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
e2a6a333 12013-11-04 Eric Botcazou <ebotcazou@adacore.com>
2
3 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
4 (dump_ada_specs): Adjust prototype of second callback.
5 * c-ada-spec.c (cpp_check): New global variable.
6 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
7 (print_generic_ada_decl): Likewise.
8 (has_static_fields): Change return type to bool and add guard.
9 (has_nontrivial_methods): New predicate.
10 (is_tagged_type): Change return type to bool.
11 (separate_class_package): Call has_nontrivial_methods.
12 (pp_ada_tree_identifier): Minor tweaks.
13 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
14 (dump_ada_array_domains): Likewise.
15 (dump_ada_array_type): Likewise.
16 (dump_template_types): Remove cpp_check parameter and do not pass it to
17 dump_generic_ada_node.
18 (dump_ada_template): Likewise.
19 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
20 recursively.
21 (print_ada_methods): Change return type to integer. Remove cpp_check
22 parameter and do not pass it down.
23 (dump_nested_types): Remove cpp_check parameter and do not pass it to
24 dump_generic_ada_node.
25 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
26 accessing methods.
27 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
28 down. Use has_nontrivial_methods to recognize C++ classes. Use return
29 value of print_ada_methods.
30 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
31 Set cpp_check to it before invoking dump_ada_nodes.
32 (dump_ada_specs): Likewise.
33
2c4c3477 342013-11-03 Marek Polacek <polacek@redhat.com>
35
36 * c-ubsan.c: Don't include hash-table.h.
37 (ubsan_instrument_vla): New function.
38 * c-ubsan.h: Declare it.
39
452659af 402013-10-31 David Malcolm <dmalcolm@redhat.com>
41
42 Automated part of renaming of symtab_node_base to symtab_node.
43
44 Patch autogenerated by rename_symtab.py from
45 https://github.com/davidmalcolm/gcc-refactoring-scripts
46 revision 58bb219cc090b2f4516a9297d868c245495ee622
47
48 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
49 symtab_node_base to symtab_node.
50
4d6f7dd4 512013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
52
53 Implement C++14 digit separators.
54 * c-lex.c (interpret_float): Remove digit separators from scratch string
55 before building real literal.
56
06cfe805 572013-10-30 Jakub Jelinek <jakub@redhat.com>
58
59 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
60
d037099f 612013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
62
63 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
64 fields.
65 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
66 enabled.
67 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
68 (insert_cilk_frame): New prototype.
69 (cilk_init_builtins): Likewise.
70 (gimplify_cilk_spawn): Likewise.
71 (c_cilk_install_body_w_frame_cleanup): Likewise.
72 (cilk_detect_spawn_and_unwrap): Likewise.
73 (cilk_set_spawn_marker): Likewise.
74 (build_cilk_sync): Likewise.
75 (build_cilk_spawn): Likewise.
76 * cilk.c: New file.
77
02774f2d 782013-10-29 David Malcolm <dmalcolm@redhat.com>
79
80 Patch autogenerated by refactor_symtab.py from
81 https://github.com/davidmalcolm/gcc-refactoring-scripts
82 revision 58bb219cc090b2f4516a9297d868c245495ee622
83
84 * c-gimplify.c (c_genericize): Update for conversion of symtab types
85 to a true class hierarchy.
86 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
87
31fe10fd 882013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
89
90 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
91
b1c06ff9 922013-10-26 Jeff Law <law@redhat.com>
93
94 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
95 * c-family/c.opt: Ignore and warn for mudflap options.
96
48a972c8 972013-10-24 Tobias Burnus <burnus@net-b.de>
4644b593 98
99 PR other/33426
100 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
101 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
102
546a04b1 1032013-10-23 Jason Merrill <jason@redhat.com>
104
105 * c-format.c (gcc_cxxdiag_char_table): Add %X.
106
bc7bff74 1072013-10-11 Jakub Jelinek <jakub@redhat.com>
108
d62c713e 109 * c-common.h (omp_clause_mask::operator !=): New method.
110 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
111 instead of if (mask & something) tests everywhere.
112
bc7bff74 113 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
114 201307 instead of 201107.
115 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
116 (c_common_attribute_table): Add "omp declare target" and
117 "omp declare simd" attributes.
118 (handle_omp_declare_target_attribute,
119 handle_omp_declare_simd_attribute): New functions.
120 * c-omp.c: Include c-pragma.h.
121 (c_finish_omp_taskgroup): New function.
122 (c_finish_omp_atomic): Add swapped argument, if true,
123 build the operation first with rhs, lhs arguments and use NOP_EXPR
124 build_modify_expr.
125 (c_finish_omp_for): Add code argument, pass it down to make_code.
126 (c_omp_split_clauses): New function.
127 (c_split_parallel_clauses): Removed.
128 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
129 c_omp_declare_simd_clauses_to_decls): New functions.
130 * c-common.h (omp_clause_mask): New type.
131 (OMP_CLAUSE_MASK_1): Define.
132 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
133 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
134 omp_clause_mask::operator |, omp_clause_mask::operator &,
135 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
136 omp_clause_mask::operator ==): New methods.
137 (enum c_omp_clause_split): New.
138 (c_finish_omp_taskgroup): New prototype.
139 (c_finish_omp_atomic): Add swapped argument.
140 (c_finish_omp_for): Add code argument.
141 (c_omp_split_clauses): New prototype.
142 (c_split_parallel_clauses): Removed.
143 (c_omp_declare_simd_clauses_to_numbers,
144 c_omp_declare_simd_clauses_to_decls): New prototypes.
145 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
146 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
147 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
148 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
149 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
150 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
151 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
152 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
153 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
154 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
155 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
156 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
157 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
158 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
159 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
160 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
161 PRAGMA_OMP_CLAUSE_UNIFORM.
162
d7dcba40 1632013-10-09 Marc Glisse <marc.glisse@inria.fr>
164
165 PR tree-optimization/20318
166 * c-common.c (handle_returns_nonnull_attribute): New function.
167 (c_common_attribute_table): Add returns_nonnull.
168
0b7282f1 1692013-10-03 Marc Glisse <marc.glisse@inria.fr>
170
171 PR c++/19476
172 * c.opt (fcheck-new): Move to common.opt.
173
51f553af 1742013-09-25 Marek Polacek <polacek@redhat.com>
175 Jakub Jelinek <jakub@redhat.com>
176
177 PR sanitizer/58413
178 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
179 an expression if we can prove it is correct.
180 (ubsan_instrument_division): Likewise. Remove unnecessary
181 check.
182
05f893e1 1832013-09-18 Marek Polacek <polacek@redhat.com>
184
185 PR sanitizer/58411
186 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
187 Declare it.
188 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
189
236ce1d1 1902013-09-14 Iain Sandoe <iain@codesourcery.com>
191
192 PR target/48094
193 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
194 fobjc-gc, freplace-objc-classes): Accept for LTO.
195
f9f68d35 1962013-09-13 Jacek Caban <jacek@codeweavers.com>
197
198 * c-target.def: New hook
199
ba2f764e 2002013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
201
202 PR c++/43452
203 * c.opt (Wdelete-incomplete): Add.
204
73437615 2052013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
206
207 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
208 (vector_types_compatible_elements_p): New function.
209 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
210 declaration.
211 (vector_types_compatible_elements_p): Declare.
212
95af4c75 2132013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
214
215 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
216 a virtual member function.
217 (pp_simple_type_specifier): Remove.
218 (pp_c_type_specifier): Likewise.
219 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
220 Rename from pp_c_type_specifier. Adjust.
221 (c_pretty_printer::c_pretty_printer): Do not assign to
222 simple_type_specifier.
223
eaab24b9 2242013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
225
226 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
227 member function.
228 (c_pretty_printer::storage_class_specifier): Likewise.
229 (c_pretty_printer::initializer): Likewise.
230 (pp_declaration): Remove.
231 (pp_declaration_specifiers): Likewise.
232 (pp_abstract_declarator): Likewise.
233 (pp_declarator): Likewise.
234 (pp_type_id): Likewise.
235 (pp_statement): Likewise.
236 (pp_constant): Likewise.
237 (pp_id_expression): Likewise.
238 (pp_primary_expression): Likewise.
239 (pp_unary_expression): Likewise.
240 (pp_multiplicative_expression): Likewise.
241 (pp_conditional_expression): Likewise.
242 (pp_assignment_expression): Likewise.
243 (pp_expression): Likewise.
244 (pp_c_type_id): Likewise.
245 (pp_c_storage_class_specifier): Likewise.
246 * c-pretty-print.c (pp_c_type_cast): Tidy.
247 (pp_c_pointer): Likewise.
248 (pp_c_type_specifier): Likewise.
249 (pp_c_parameter_type_list): Likewise.
250 (pp_c_function_definition): Likewise.
251 (pp_c_init_declarator): Likewise.
252 (pp_c_initializer_list): Likewise.
253 (pp_c_constructor_elts): Likewise.
254 (c_pretty_printer::direct_abstract_declarator): Likewise.
255 (c_pretty_printer::declaration_specifiers): Likewise.
256 (c_pretty_printer::primary_expression): Likewise.
257 (c_pretty_printer::postfix_expression): Likewise.
258 (c_pretty_printer::type_id): Rename from pp_c_type_id.
259 (c_pretty_printer::storage_class_specifier): Rename from
260 pp_c_storage_class_specifier.
261 (c_pretty_printer::initializer): Rename from pp_c_initializer.
262 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
263 storage_class_specifier, initializer, offset_list, flags.
264
9e46467d 2652013-08-30 Marek Polacek <polacek@redhat.com>
266
267 * c-ubsan.c: New file.
268 * c-ubsan.h: New file.
269
36a8d9b9 2702013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
271
272 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
273 member function.
274 (c_pretty_printer::declaration_specifiers): Likewise.
275 (c_pretty_printer::declarator): Likewise.
276 (c_pretty_printer::abstract_declarator): Likewise.
277 (c_pretty_printer::direct_abstract_declarator): Likewise.
278 (c_pretty_printer::direct_declarator): Likewise.
279 (c_pretty_printer::function_specifier): Likewise.
280 (pp_declaration): Adjust.
281 (pp_declaration_specifiers): Likewise.
282 (pp_abstract_declarator): Likewise.
283 (pp_direct_declarator): Likewise.
284 (pp_function_specifier): Likewise.
285 (pp_direct_abstract_declarator): Remove as unused.
286 (pp_c_declaration): Remove.
287 (pp_c_declaration_specifiers): Likewise.
288 (pp_c_declarator): Likewise.
289 (pp_c_direct_declarator): Likewise.
290 (pp_c_function_specifier): Likewise.
291 (pp_c_direct_abstract_declarator): Likewise.
292 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
293 from pp_c_abstract_declarator. Adjust.
294 (c_pretty_printer::direct_abstract_declarator): Rename from
295 pp_c_direct_abstract_declarator. Adjust.
296 (c_pretty_printer::function_specifier): Rename from
297 pp_c_function_specifier. Adjust.
298 (c_pretty_printer::declaration_specifiers): Rename from
299 pp_c_declaration_specifiers. Adjust.
300 (c_pretty_printer::direct_declarator): Rename from
301 pp_c_direct_declarator. Adjust.
302 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
303 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
304 (c_pretty_printer::c_pretty_printer): Do not assign to
305 declaration, declaration_specifiers, declarator,
306 direct_declarator, direct_abstract_declarator, function_specifier.
307
30635c2e 3082013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
309
310 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
311 virtual member function.
312 (c_pretty_printer::multiplicative_expression): Likewise.
313 (c_pretty_printer::conditional_expression): Likewise.
314 (c_pretty_printer::assignment_expression): Likewise.
315 (c_pretty_printer::expression): Likewise.
316 (pp_unary_expression): Adjust.
317 (pp_multiplicative_expression): Likewise.
318 (pp_assignment_expression): Likewise.
319 (pp_conditional_expression): Likewise.
320 (pp_expression): Likewise.
321 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
322 from pp_c_unary_expression. Adjust.
323 (c_pretty_printer::multiplicative_expression): Rename from
324 pp_c_multiplicative_expression. Adjust.
325 (c_pretty_printer::conditional_expression): Rename from
326 pp_c_conditional_expression. Adjust.
327 (c_pretty_printer::assignment_expression): Rename from
328 pp_c_assignment_expression. Adjust.
329 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
330 (c_pretty_printer::c_pretty_printer): Do not assign to
331 unary_expression, multiplicative_expression,
332 conditional_expression, expression.
333
027d08ed 3342013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
335
336 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
337 virtual member function.
338 (pp_postfix_expression): Adjust.
339 (pp_c_postfix_expression): Remove.
340 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
341 from pp_c_postfix_expression. Adjust.
342 (c_pretty_printer::c_pretty_printer): Do not assign to
343 postfix_expression.
344
f873303a 3452013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
346
347 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
348 virtua member function.
349 (pp_primary_expression): Adjust.
350 (pp_c_primary_expression): Remove.
351 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
352 from pp_c_primary_expression. Adjust.
353 (pp_c_initializer_list): Use pp_primary_expression.
354 (c_pretty_printer::c_pretty_printer): Do not assign to
355 primary_expression.
356
08e3e481 3572013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
358
359 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
360 * c-pretty-print.c (M_): Remove.
361 (c_pretty_printer::translate_string): Define.
362 (pp_c_type_specifier): Use it.
363 (pp_c_primary_expression): Likewise.
364 (pp_c_expression): Likewise.
365
1fc4a87f 3662013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
367
368 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
369 virtual function.
370 (pp_c_id_expression): Remove.
371 (pp_id_expression): Adjust.
372 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
373 pp_c_id_expression. Adjust.
374 (pp_c_postfix_expression): Use pp_id_expression.
375 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
376
a6cb161b 3772013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
378
379 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
380 member function.
381 (pp_constant): Adjust.
382 (pp_c_constant): Remove.
383 * c-pretty-print.c (c_pretty_printer::constant): Rename from
384 pp_c_constant. Adjust.
385 (pp_c_constant)
386 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
387 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
388
eed6bc21 3892013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
390
391 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
392 (c_pretty_printer::c_pretty_printer): Declare.
393 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
394 c_pretty_printer_init. Adjust.
395 (print_c_tree): Do not call c_pretty_printer_init.
396 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
397
df558d2e 3982013-08-09 Arnaud Charlet <charlet@adacore.com>
399
400 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
401
42f9a786 4022013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
403
404 PR c++/58080
405 * c-common.c (pointer_int_sum): Add bool parameter.
406 * c-common.h (pointer_int_sum): Adjust declaration.
407
f874ddad 4082013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
409
410 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
411 c_pretty_printer variable.
412
a94db6b0 4132013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
414
415 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
416 (pp_base): Remove.
417 (pp_c_base): Likewise. Adjust users.
418 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
419 (pp_c_whitespace): Do not call pp_base.
420 (pp_c_left_paren): Likewise.
421 (pp_c_right_paren): Likewise.
422 (pp_c_left_brace): Likewise.
423 (pp_c_right_brace): Likewise.
424 (pp_c_left_bracket): Likewise.
425 (pp_c_right_bracket): Likewise.
426 (pp_c_dot): Likewise.
427 (pp_c_ampersand): Likewise.
428 (pp_c_star): Likewise.
429 (pp_c_arrow): Likewise.
430 (pp_c_semicolon): Likewise.
431 (pp_c_complement): Likewise.
432 (pp_c_exclamation): Likewise.
433 (pp_c_direct_declarator): Likewise.
434 (pp_c_ws_string): Likewise.
435 (pp_c_identifier): Likewise.
436 (pp_c_statement): Likewise.
437 (print_c_tree): Likewise.
438
1898176c 4392013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
440
441 PR c++/58072
442 * c-common.c (c_parse_error): Catch user-defined literal tokens and
443 provide useful error strings.
444
70d60d1d 4452013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
446
447 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
448 printer functions instead of pp_string or operators and punctuators.
449 (dump_generic_ada_node): Likewise.
450 * c-pretty-print.c (pp_c_type_specifier): Likewise.
451 (pp_c_relational_expression): Likewise.
452 (pp_c_logical_or_expression): Likewise.
453
dda4f0ec 4542013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
455
456 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
457 functions instead of pp_character.
458 (pp_ada_tree_identifier): Likewise.
459 (dump_ada_double_name): Likewise.
460 (dump_ada_function_declaration): Likewise.
461 (dump_ada_array_domains): Likewise.
462 (dump_template_types): Likewise.
463 (dump_generic_ada_node): Likewise.
464 (print_ada_declaration): Likewise.
465 (print_ada_struct_decl): Likewise.
466 * c-pretty-print.c (pp_c_integer_constant): Likewise.
467
7aa04c8d 4682013-07-23 Tom Tromey <tromey@redhat.com>
469
470 * c-common.h (enum rid) <RID_GENERIC>: New constant.
471 * c-common.c (c_common_reswords): Add _Generic.
472
a04e8d62 4732013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
474
475 * c-common.c: Fix typos.
476 * c-common.h: Likewise.
477
a96c3cc1 4782013-07-13 Lubos Lunak <l.lunak@suse.cz>
479
480 PR c++/55203
481 * c-common.c (c_common_attribute_table): Add warn_unused.
482 (handle_warn_unused_attribute): New.
483
da31536d 4842013-07-10 Jakub Jelinek <jakub@redhat.com>
485
486 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
487 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
488
839f2f70 4892013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
490
491 PR c++/57869
492 * c.opt: Add Wconditionally-supported.
493
73f353d0 4942013-07-08 Graham Stott <graham.stott@btinternet.com>
495
496 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
497 unused variables l_length and l_node.
498
21ebaa24 4992013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
f5298614 500
501 PR c/57821
502 * c-common.c (complete_array_type): Delay folding first index
503 like other indices. When folding, check for index overflow.
504
68ea4406 5052013-06-27 Marc Glisse <marc.glisse@inria.fr>
506
507 PR c++/57509
508 * c-common.h (c_build_vec_perm_expr): New complain argument.
509 * c-common.c (c_build_vec_perm_expr): Likewise.
510 Use save_expr also in C++.
511
60777f69 5122013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
513
514 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
515 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
516 * c-opts.c (c_common_post_options): Likewise.
517
839f2f70 5182013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
50acebe0 519
520 * array-notation-common.c (length_mismatch_in_expr): Changed the
521 parameter type's from a dynamic array to a vec_tree. Also removed
522 the size parameters.
523 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
524 the change above.
525
e9331eab 5262013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
527
528 * c-common.h (struct cilkplus_an_parts): New structure.
529 (struct cilkplus_an_loop_parts): Likewise.
530 (cilkplus_extract_an_triplets): New prototype.
531 (fix_sec_implicit_args): Likewise.
532 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
533 (fix_sec_implicit_args): Likewise.
60777f69 534
a9c99fc4 5352013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
536
537 * array-notation-common.c (find_inv_trees): Removed an unwanted
538 typecasting.
539 * c-common.h (struct inv_list::additional_tcodes): Changed type from
540 enum rid to enum tree_code.
541
f2526cce 5422013-06-11 Jan Hubicka <jh@suse.cz>
543
544 * c-common.c (handle_alias_ifunc_attribute): Do not set
545 DECL_EXTERNAL for weakref variables.
546 * c-pragma.c (handle_pragma_weak): Make sure aliases
547 are not declared as external.
548
09970d67 5492013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
550
551 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
552 function from c/c-array-notation.c.
553 (is_cilkplus_reduce_builtin): Likewise.
554 (find_rank): Likewise.
555 (extract_array_notation_exprs): Likewise.
556 (replace_array_notations): Likewise.
557 (find_inv_trees): Likewise.
558 (replace_inv_trees): Likewise.
559 (contains_array_notation_expr): Likewise.
560 (find_correct_array_notation_type): Likewise.
561 * c-common.h (struct inv_list): Moved this struct from the file
562 c/c-array-notation.c and added a new field called additional tcodes.
563 (length_mismatch_in_expr_p): New prototype.
564 (is_cilkplus_reduce_builtin): Likewise.
565 (find_rank): Likewise.
566 (extract_array_notation_exprs): Likewise.
567 (replace_array_notation): Likewise.
568 (find_inv_trees): Likewise.
569 (replace_inv_trees): Likewise.
570 (find_correct_array_notation_type): Likewise.
839f2f70 571
3c6d4197 5722013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
573
574 * c-common.c (c_define_builtins): When cilkplus is enabled, the
575 function array_notation_init_builtins is called.
576 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
577 * c-common.def (ARRAY_NOTATION_REF): New tree.
578 * c-common.h (build_array_notation_expr): New function declaration.
579 (build_array_notation_ref): Likewise.
580 (extract_sec_implicit_index_arg): New extern declaration.
581 (is_sec_implicit_index_fn): Likewise.
582 (ARRAY_NOTATION_CHECK): New define.
583 (ARRAY_NOTATION_ARRAY): Likewise.
584 (ARRAY_NOTATION_START): Likewise.
585 (ARRAY_NOTATION_LENGTH): Likewise.
586 (ARRAY_NOTATION_STRIDE): Likewise.
587 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
588 ARRAY_NOTATION_REF.
589 (pp_c_expression): Likewise.
590 * c.opt (flag_enable_cilkplus): New flag.
591 * array-notation-common.c: New file.
592
8e71dad2 5932013-05-14 Jakub Jelinek <jakub@redhat.com>
594
595 PR c++/57274
596 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
597
432dd330 5982013-05-10 Marc Glisse <marc.glisse@inria.fr>
599
600 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
601 vectors.
602
b156ec37 6032013-05-07 Han Shen <shenhan@google.com>
604
605 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
606
1a087624 6072013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
608
609 * c-common.c (check_user_alignment): Emit error for negative values.
610
1638c736 6112013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
612
613 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
614
949dbf93 6152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
616
617 * c-cppbuiltin.c (c_cpp_builtins): Do not define
618 __GXX_EXPERIMENTAL_CXX1Y__.
619
9205a6cc 6202013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
621 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
622
623 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
624 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
625 to simply use OPT_Wpointer_arith.
626 (c_sizeof_or_alignof_type): Likewise.
627
05d0bce1 6282013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
629
630 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
631
41609f8b 6322013-04-12 Jakub Jelinek <jakub@redhat.com>
633
634 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
635 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
636 specifiers.
637
c671dc4f 6382013-04-07 Steven Bosscher <steven@gcc.gnu.org>
639
640 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
641
ba125576 6422013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
643
644 * c-common.c (pointer_int_sum): Remove dead code.
645
9d3fa937 6462013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
647
648 PR middle-end/56524
649 * c-common.c (handle_optimize_attribute): Don't call
650 save_optabs_if_changed.
651
5ceebb21 6522013-03-05 Jakub Jelinek <jakub@redhat.com>
653
654 PR middle-end/56461
655 * c-pch.c (pch_init): Free target_validity at the end.
656
18eeed2b 6572013-03-04 Jakub Jelinek <jakub@redhat.com>
658
659 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
660
a9196da9 6612013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
662 Jakub Jelinek <jakub@redhat.com>
663
664 PR sanitizer/56454
665 * c-common.c (handle_no_sanitize_address_attribute): New function.
666 (c_common_attribute_table): Add no_sanitize_address attribute.
667 (handle_no_address_safety_analysis_attribute): Add
668 no_sanitize_address attribute, not no_address_safety_analysis
669 attribute.
670
15c27dda 6712013-02-18 Aldy Hernandez <aldyh@redhat.com>
08c7d04b 672
673 PR target/52555
674 * c-common.c (handle_optimize_attribute): Call
675 save_optabs_if_changed.
676
19426fe1 6772013-02-18 Jakub Jelinek <jakub@redhat.com>
678 Steven Bosscher <steven@gcc.gnu.org>
679
680 PR pch/54117
681 * c-opts.c (c_common_post_options): If debug info is enabled
682 and non-dwarf*, refuse to load PCH files and when writing PCH
683 file warn.
684
df936998 6852013-02-05 Jakub Jelinek <jakub@redhat.com>
686
687 PR middle-end/56167
688 * c-common.c (handle_error_attribute): Fix condition.
689
ae0c3984 6902013-01-30 Jakub Jelinek <jakub@redhat.com>
691
692 PR c++/55742
693 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
694
1c4973d7 6952013-01-18 Jason Merrill <jason@redhat.com>
696
697 PR target/54908
698 * c.opt (-fextern-tls-init): New.
699 * c-opts.c (c_common_post_options): Handle it.
700
7c834436 7012013-01-09 Jakub Jelinek <jakub@redhat.com>
702
703 PR c/48418
704 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
705 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
706 and is either negative or bigger or equal to type precision
707 of the first operand.
708
5abaa10a 7092012-12-03 Marek Polacek <polacek@redhat.com>
710
711 PR c/55570
712 * c-common.c (check_user_alignment): Swap order of tests,
713 check TREE_CODE first.
714
324ca377 7152012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
716
717 PR c++/52654
718 * c-common.h (overflow_type): New enum.
719 (build_userdef_literal): Add overflow_type argument.
720 (tree_userdef_literal): Add overflow_type.
721 (USERDEF_LITERAL_OVERFLOW): New access macro.
722 * c-common.c (build_userdef_literal): Add overflow_type
723 argument.
724 * c-lex.c (c_lex_with_flags): Add overflow_type to
725 build_userdef_literal calls.
726 (interpret_integer, interpret_float): Add overflow_type argument.
727
b4c4a429 7282012-11-28 Richard Biener <rguenther@suse.de>
729
730 PR c/35634
731 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
732 here and use a type with proper overflow behavior for types that would
733 need to be promoted for the arithmetic.
734
d413ffdd 7352012-11-23 Jakub Jelinek <jakub@redhat.com>
736
737 PR sanitizer/55435
738 * c-common.c (handle_no_address_safety_analysis_attribute): New
739 function.
740 (c_common_attribute_table): Add no_address_safety_analysis.
741
52bc861d 7422012-11-16 Simon Baldwin <simonb@google.com>
743
744 * c.opt: Add f[no-]canonical-system-headers.
745 * c-opts.c (c_common_handle_option): Handle
746 OPT_fcanonical_system_headers.
747
2dd00636 7482012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
749
750 PR c++/54413
751 * c-opts.c (c_common_handle_option): Set new flags.
752 * c.opt: Describe new flags.
753
d4701f6c 7542012-11-09 Jason Merrill <jason@redhat.com>
755
756 * c.opt (Wabi-tag): New.
757
72d65da9 7582012-11-09 Andi Kleen <ak@linux.intel.com>
759
760 PR 55139
761 * c-common.c (get_atomic_generic_size): Mask with
762 MEMMODEL_MASK
763
77a357e3 7642012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
765
766 PR c/53063
767 * c.opt (Wformat): Make it Alias Wformat=1.
768 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
769 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
770 LangEnabledBy.
771 (Wformat=): RejectNegative. Use LangEnabledBy.
772 (Wnonnull): Use LangEnabledBy.
773 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
774 * c-format.c (set_Wformat): Delete.
775 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
776 (maybe_read_dollar_number): Likewise.
777 (avoid_dollar_number): Likewise.
778 (finish_dollar_format_checking): Likewise.
779 (check_format_info): Likewise.
780 (check_format_info_main): Likewise.
781 (check_format_types): Likewise.
782 (format_type_warning): Likewise.
783 * c-common.c (int): Likewise.
784 (check_function_sentinel): Likewise.
785 * c-common.h (warn_format,set_Wformat): Do not declare here.
786
45efa6b9 7872012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
788
789 PR c/53063
790 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
791 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
792 Use LangEnabledBy.
793 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
794 common.opt.
795 (Wvariadic-macros): Init(1).
796 * c-opts.c (c_common_handle_option): Do not handle them
797 explicitly.
798 (c_common_post_options): Likewise.
799 (sanitize_cpp_opts): warn_unused_macros is now
800 cpp_warn_unused_macros.
801 (push_command_line_include): Likewise.
802 * c-common.c (warn_unknown_pragmas): Do not define.
803 * c-common.h (warn_unknown_pragmas): Do not declare.
804
0e4e775a 8052012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
806
807 PR c/51294
808 * c-common.c (conversion_warning): Handle conditional expressions.
809
8b447d3f 8102012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
811
812 PR c++/54930
813 * c.opt (Wreturn_local_addr): Define new option.
814
f4a61754 8152012-10-25 Jason Merrill <jason@redhat.com>
816
ecb10e6a 817 * c.opt (Wvirtual-move-assign): New.
818
f4a61754 819 * c.opt (Winherited-variadic-ctor): New.
820
7b463b19 8212012-10-25 Marc Glisse <marc.glisse@inria.fr>
822
823 PR c++/54427
824 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
825
6adc88f8 8262012-10-23 Joseph Myers <joseph@codesourcery.com>
827
828 * c-common.h (pch_cpp_save_state): Declare.
829 * c-target.def (c_preinclude): New hook.
830 * c-opts.c (done_preinclude): New.
831 (push_command_line_include): Handle default preincluded header.
832 (cb_file_change): Call pch_cpp_save_state when calling
833 push_command_line_include.
834 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
835 (pch_cpp_save_state): New.
836 (pch_init): Call pch_cpp_save_state conditionally, instead of
837 calling cpp_save_state.
838
fa816b0b 8392012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
840
841 PR c/53063
842 PR c/40989
843 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
844 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
845 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
846 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
847 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
848 * c-opts.c (c_common_handle_option): Remove explicit handling from
849 here.
850 (c_common_post_options): Likewise.
851
d214ccee 8522012-10-18 Eric Botcazou <ebotcazou@adacore.com>
853
854 * c-ada-spec.c (LOCATION_COL): Delete.
855 (compare_location): New function.
856 (compare_node): Use it.
857 (compare_comment): Likewise.
858
77b27208 8592012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
860
861 PR c/53063
862 PR c/40989
863 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
864 * c-opts.c (c_common_handle_option): Do not set them here. Add
865 comment.
866 (c_common_post_options): Likewise.
867
cc02ca4d 8682012-10-16 Eric Botcazou <ebotcazou@adacore.com>
869
870 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
871 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
872 Remove POINTER_TYPE handling, add large unsigned handling and use
873 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
874
57f872a2 8752012-10-12 Jakub Jelinek <jakub@redhat.com>
876
877 PR c/54381
878 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
879 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
880 locs and array of 3 trees instead of just single loc and single
881 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
882 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
883 For *cmp* builtins that take two sources strings report warnings
884 about first and second source, not about destination and source.
885
7354ad2e 8862012-10-12 Marc Glisse <marc.glisse@inria.fr>
887
888 PR c++/53055
889 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
890
1ac7f120 8912012-10-11 Eric Botcazou <ebotcazou@adacore.com>
892
893 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
894 declaring something coming from another file.
895
1e0cc9e3 8962012-10-10 Arnaud Charlet <charlet@adacore.com>
897
1ac7f120 898 PR ada/54845
1e0cc9e3 899 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
900
b0e7825e 9012012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
902
903 PR c++/54194
904 * c-common.c (warn_about_parentheses): Add location_t parameter;
905 use EXPR_LOC_OR_LOC.
906 * c-common.h: Update declaration.
907
41ed701a 9082012-10-09 Marc Glisse <marc.glisse@inria.fr>
909
910 PR c++/54427
911 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
912 more operations. Make error messages optional.
913 * c-common.h (enum stv_conv): Moved from c-typeck.c.
914 (scalar_to_vector): Declare.
915
3740094c 9162012-10-08 Jason Merrill <jason@redhat.com>
917
918 * c-common.c (c_common_reswords): Add thread_local.
919
ffcdbf9c 9202012-10-08 Dodji Seketeli <dodji@redhat.com>
921
922 PR c++/53528 C++11 attribute support
923 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
924 new functions.
925 * c-common.c (check_cxx_fundamental_alignment_constraints): New
926 static function.
927 (handle_aligned_attribute): In choose strictest alignment
928 among many. Use new check_cxx_fundamental_alignment_constraints.
929 (handle_transparent_union_attribute): In c++11 attribute syntax,
930 don't look through typedefs.
931
ef34afc1 9322012-10-04 Arnaud Charlet <charlet@adacore.com>
933
934 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
935 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
936 out of dumpfile.h.
937
f1ff4562 9382012-09-25 Dehao Chen <dehao@google.com>
939
940 PR middle-end/54645
ef34afc1 941 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 942 map when read in the pch.
943
735538a1 9442012-09-18 Arnaud Charlet <charlet@adacore.com>
945
946 * c-ada-spec.c: Style fixes.
947
9120cdc8 9482012-09-18 Thomas Quinot <quinot@adacore.com>
949
950 * c.opt (-fada-spec-parent): Define new command line switch.
951 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
952 is specified, generate binding spec as a child of the specified unit.
953
8eba82c2 9542012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
955 Manuel López-Ibáñez <manu@gcc.gnu.org>
956
957 PR c++/53210
958 * c.opt ([Winit-self]): Enabled by -Wall in C++.
959
38682990 9602012-08-23 Arnaud Charlet <charlet@adacore.com>
961
962 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
963 for pointers, and add missing Convention C pragma.
964 (print_ada_struct_decl): Add missing aliased keyword.
965 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
966
f003f5dc 9672012-08-17 Jakub Jelinek <jakub@redhat.com>
968
969 * c-common.c (sizeof_pointer_memaccess_warning): New function.
970 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
971 * c-opts.c (c_common_handle_option): Enable it for -Wall.
972 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
973 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
974
ec11736b 9752012-08-10 Richard Guenther <rguenther@suse.de>
976
977 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
978
5f7f600e 9792012-08-07 Steven Bosscher <steven@gcc.gnu.org>
980
981 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
982 instead of separate pp_newline and pp_flush.
983 (print_c_tree): Likewise.
984
758a38ab 9852012-07-26 Richard Henderson <rth@redhat.com>
986
987 * c-common.c (handle_hot_attribute): Allow labels.
988 (handle_cold_attribute): Likewise.
989
9ca77b08 9902012-07-20 Jakub Jelinek <jakub@redhat.com>
991
992 PR c++/28656
993 * c-common.c (check_function_nonnull): Handle multiple nonnull
994 attributes properly.
995
b9ed1410 9962012-07-16 Steven Bosscher <steven@gcc.gnu.org>
997
998 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
999 * c-ada-spec.c: Likewise.
1000 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1001
c2a65b90 10022012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1003
1004 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1005 Remove code conditional on it.
1006
88c5a1d1 10072012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1008
1009 * c-gimplify.c: Do not include basic-block.h.
1010 * c-common.c: Do not include linfuncs.h.
1011
4a020a8c 10122012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1013
1014 * c-common.h: Include tree.h.
1015
c28ddc97 10162012-07-02 Jason Merrill <jason@redhat.com>
1017
1018 PR c++/53524
1019 * c-common.c (get_priority): Call default_conversion.
1020
405ed67f 10212012-07-01 Uros Bizjak <ubizjak@gmail.com>
1022
1023 * c-pch.c (c_common_write_pch): Remove unused variables.
1024
e53d55e7 10252012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1026
1027 * cppspec.c: Moved from gcc/ to here.
1028
3d9c25ec 10292012-06-27 Kai Tietz <ktietz@redhat.com>
1030
1031 PR preprocessor/37215
1032 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1033
3169c57a 10342012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1035
1036 * c-common.h (c_common_print_pch_checksum): Remove.
1037 * c-pch.c: Do not include output.h.
1038 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1039 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1040 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1041 (struct c_pch_header): Remove.
1042 (get_ident): Update gpch version.
1043 (pch_init): Do not print executable_checksum to asm_out_file.
1044 Do not fail if there is no asm_out_file to read back from. Set
1045 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1046 (c_common_write_pch): Verify that nothing was written to asm_out_file
1047 since pch_init was called. Do not write a c_pch_header, and do not
1048 copy from asm_out_file to the PCH.
1049 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1050 the content of asm_out_file from the PCH.
1051 (c_common_print_pch_checksum): Remove.
1052 * c-opts.c (c_common_init): Print out executable_checksum directly.
1053
ff6624bc 10542012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1055
1056 * c-target.def (objc_declare_unresolved_class_reference,
1057 objc_declare_class_definition): Add new hooks.
1058
367b1459 10592012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1060
1061 * c-lex.c: Do not include output.h.
1062 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1063 Remove uses of ASM_OUTPUT_IDENT.
1064
bf0cb017 10652012-06-15 Marc Glisse <marc.glisse@inria.fr>
1066
1067 PR c++/51033
1068 * c-common.h (c_build_vec_perm_expr): Move decl here.
1069 * c-common.c (c_build_vec_perm_expr): Move definition
1070 here.
1071
b37a3600 10722012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1073
1074 * c.opt (fconserve-space): Turn into a no-op.
1075
19931eea 10762012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 1077
1078 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1079 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1080 both the start and end of the function.
1081
dff12c10 10822012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1083
1084 * c-common.c: Do not include output.h.
1085 * c-pragma.c: Likewise.
1086
5f9e7dd5 10872012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1088
1089 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1090 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1091 (lang_decl_name): Handle namespace decls.
1092
b5369b7d 10932012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1094
1095 * c-ada-spec.c: Do not include output.h.
1096 * c-semantics.c: Likewise.
1097
8032877c 10982012-05-29 Joseph Myers <joseph@codesourcery.com>
1099
1100 * c-common.c: Fix typo.
1101
7843e4bc 11022012-05-29 Michael Matz <matz@suse.de>
1103
1104 * c-common.h (c_expand_decl): Remove prototype.
1105
8cf857d4 11062012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1107
1108 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1109 * c-opts.c (c_common_handle_option): Remove code handling
1110 warn_missing_braces.
1111
8b64dc3c 11122012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1113
1114 PR c++/25137
1115 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1116 -Wmissing_braces.
1117
43cbde16 11182012-05-22 Dodji Seketeli <dodji@redhat.com>
1119
1120 PR c++/53322
1121 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1122
db490cb6 11232012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1124
1125 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1126 * c-opts.c (c_common_handle_option): Do not handle explicitly
1127 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1128
a60f3e81 11292012-05-16 Dodji Seketeli <dodji@redhat.com>
1130
1131 PR preprocessor/7263
1132 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1133 to cpp_classify_number. For diagnostics, use the precise location
1134 instead of the global input_location.
1135
82e6ef7c 11362012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1137
cd4797ff 1138 PR c++/11856
82e6ef7c 1139 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1140
258a168d 11412012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1142
82e6ef7c 1143 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 1144
d3b7ee7c 11452012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1146
1147 PR 53063
1148 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1149 Wreorder): Use LangEnabledBy.
1150 * c-opts.c (c_common_handle_option): Do not enable them
1151 explicitly. Call lang-specific generated functions.
1152 (c_common_post_options): Do not set them here.
1153
70059cea 11542012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1155
1156 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1157 Wmissing-field-initializers,Wmissing-parameter-type,
1158 Wold-style-declaration,Woverride-init): Use EnabledBy.
1159 * c-opts.c (c_common_post_options): Do not set here explicitly.
1160
fbb6fbd8 11612012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1162
1163 PR 53063
1164 * c-opts.c (c_common_handle_option): Use handle_generated_option
1165 to enable sub-options.
1166
61f69bc9 11672012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1168
1169 PR c++/53158
1170 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1171
5a1fe2db 11722012-05-10 Richard Guenther <rguenther@suse.de>
1173
1174 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1175 adjust commentary about TYPE_IS_SIZETYPE types.
1176
d42e7c5a 11772012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1178
1179 PR c++/53261
1180 * c-common.c (warn_logical_operator): Check that argument of
1181 integer_zerop is not NULL.
1182
686369e8 11832012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1184
1185 PR c/43772
1186 * c-common.c (warn_logical_operator): Do not warn if either side
1187 is already true or false.
1188
03fe1dc2 11892012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1190
1191 PR c/51712
1192 * c-common.c (expr_original_type): New.
1193 (shorten_compare): Do not warn for enumeration types.
1194
bba5a206 11952012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1196
1197 * c.opt (fpermissive): Add Var(flag_permissive).
1198
7059d45d 11992012-04-30 Marc Glisse <marc.glisse@inria.fr>
1200
1201 PR c++/51033
1202 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1203 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1204
7edb1062 12052012-04-30 Dodji Seketeli <dodji@redhat.com>
1206
1207 Add -Wvarargs option
1208 * c.opt (Wvarargs): Define new option.
1209
068bea1e 12102012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1211
1212 * c-common.c (check_function_arguments): Replace
1213 Wmissing-format-attribute with Wsuggest-attribute=format.
1214
b86527d8 12152012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1216
1217 * c.opt (Wsuggest-attribute=format): New. Alias of
1218 Wmissing-format-attribute.
1219 * c-format.c (decode_format_type): Replace
1220 Wmissing-format-attribute with Wsuggest-attribute=format.
1221 (check_function_format): Likewise.
1222
19931eea 12232012-04-27 Ollie Wild <aaw@google.com>
76d340ac 1224
1225 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1226 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1227 * c.opt: Add Wliteral-suffix.
1228
29438999 12292012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1230
1231 PR c/44774
1232 * c.opt (Wpedantic): New.
1233 (pedantic): Alias Wpedantic.
1234 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1235 (c_common_post_options): Likewise.
1236 (sanitize_cpp_opts): Likewise.
1237 * c-lex.c (interpret_float): Likewise.
1238 * c-format.c (check_format_types): Likewise.
1239 * c-common.c (pointer_int_sum): Likewise.
1240 (c_sizeof_or_alignof_type): Likewise.
1241 (c_add_case_label): Likewise.
1242 (c_do_switch_warnings): Likewise.
1243 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1244
4f9d6b8b 12452012-04-15 Jason Merrill <jason@redhat.com>
1246
1247 PR c++/52818
1248 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1249 (C_STD_NAME): Distinguish between C++98 and C++11.
1250
74bdbe96 12512012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1252
1253 PR target/52624
1254 * c-common.h (uint16_type_node): Rename into...
1255 (c_uint16_type_node): ...this.
1256 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1257 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1258
3d177e8c 12592012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1260
1261 * c-common.c (warn_if_unused_value): Move definition to here.
1262 * c-common.h (warn_if_unused_value): Move declaration to here.
1263
6a9a958f 12642012-03-23 William Bader <williambader@hotmail.com>
1265
1266 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1267
543efdbe 12682012-03-20 Jason Merrill <jason@redhat.com>
1269
1270 * c-common.h (enum cxx_dialect): Add cxx1y.
1271 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1272 test.
1273 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1274 * c-opts.c (c_common_post_options): Likewise.
1275 (set_std_cxx1y): New.
1276 (c_common_handle_option): Call it.
1277 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1278
62206d34 12792012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1280
1281 PR c++/14710
1282 * c.opt ([Wuseless-cast]): Add.
1283
fadf62f4 12842012-03-16 Richard Guenther <rguenther@suse.de>
1285
1286 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1287
249faa35 12882012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1289
1290 PR c++/44783
1291 * c.opt (ftemplate-backtrace-limit) Add.
1292
126b6848 12932012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1294
1295 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1296 handling.
1297 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1298 (init_pragma): Don't register extern_prefix.
1299
a51edb4c 13002012-03-12 Richard Guenther <rguenther@suse.de>
1301
1302 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1303 (builtin_type_for_size): Likewise.
1304
0f6a7cb7 13052012-02-13 Jakub Jelinek <jakub@redhat.com>
1306
1307 PR c++/52215
1308 * c-common.c (sync_resolve_params): Don't decide whether to convert
1309 or not based on TYPE_SIZE comparison, convert whenever arg_type
1310 is unsigned INTEGER_TYPE.
1311
0779e32c 13122012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1313
1314 PR c/52118
1315 * c.opt ([Wunused-local-typedefs]): Fix description.
1316
baec58e1 13172012-01-24 Mike Stump <mikestump@comcast.net>
1318
1319 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1320 exactly.
1321
c779d8cc 13222012-01-18 Richard Guenther <rguenther@suse.de>
1323
1324 * c-opts.c (c_common_post_options): Reset LTO flags if
1325 we are about to generate a PCH.
1326
ee917d24 13272012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1328
1329 PR c++/51777
1330 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1331 use pp_unsigned_wide_integer.
1332
90e2341f 13332012-01-10 Richard Guenther <rguenther@suse.de>
1334
1335 PR middle-end/51806
1336 * c-opts.c (c_common_handle_option): Move -Werror handling
1337 to language independent code.
1338
9ea022ce 13392012-01-05 Richard Guenther <rguenther@suse.de>
1340
1341 PR middle-end/51764
1342 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1343 from common.opt.
1344
3df19e1b 13452011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1346
1347 PR c++/51316
1348 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1349 of array types with an unknown bound.
1350
32074525 13512011-12-20 Joseph Myers <joseph@codesourcery.com>
1352
1353 * c-common.c (flag_isoc99): Update comment to refer to C11.
1354 (flag_isoc1x): Change to flag_isoc11.
1355 * c-common.h (flag_isoc99): Update comment to refer to C11.
1356 (flag_isoc1x): Change to flag_isoc11.
1357 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1358 C11.
1359 * c-opts.c (set_std_c1x): Change to set_std_c11.
1360 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1361 Call set_std_c11.
1362 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1363 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1364 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1365 standard.
1366 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1367 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1368 (std=gnu1x): Make alias of std=gnu11.
1369
fca86134 13702011-12-19 Jason Merrill <jason@redhat.com>
1371
1372 PR c++/51228
1373 * c-common.c (handle_transparent_union_attribute): Check the first
1374 field if the type is complete.
1375
aa4313eb 13762011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1377
1378 PR libstdc++/51365
1379 * c-common.c (RID_IS_FINAL): Add.
1380 * c-common.h (RID_IS_FINAL): Add.
1381
3f3d5ad4 13822011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1383
1384 * c.opt (fgnu-runtime): Provide full description.
1385 (fnext-runtime): Likewise.
1386 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1387
c4606d19 13882011-11-28 Andrew MacLeod <amacleod@redhat.com>
1389
1390 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1391 predefines in one place. Add LOCK_FREE predefines.
1392 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1393 new func.
1394
1d581089 13952011-11-24 Andrew MacLeod <amacleod@redhat.com>
1396
1397 PR c/51256
19931eea 1398 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 1399 conditions
19931eea 1400 (resolve_overloaded_atomic_exchange,
1401 resolve_overloaded_atomic_compare_exchange,
1d581089 1402 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1403 error_mark_node for error conditions.
19931eea 1404
6aa221fa 14052011-11-08 Richard Guenther <rguenther@suse.de>
1406
1407 PR middle-end/51010
1408 c-family/
1409
4c0315d0 14102011-11-07 Richard Henderson <rth@redhat.com>
1411 Aldy Hernandez <aldyh@redhat.com>
1412 Torvald Riegel <triegel@redhat.com>
1413
1414 Merged from transactional-memory.
1415
1416 * c-common.c (handle_tm_wrap_attribute,
1417 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1418 (struct c_common_reswords): Added __transaction* keywords.
1419 (struct c_common_attribute_table): Added transaction* and tm_regparm
1420 attributes.
1421 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1422 masks.
1423 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1424 find_tm_attribute): Declare.
1425
920f5a70 14262011-11-07 Jason Merrill <jason@redhat.com>
1427
1428 PR c++/35688
1429 * c-common.c, c-common.h: Revert yesterday's changes.
1430
b4f861b4 14312011-11-06 Jason Merrill <jason@redhat.com>
1432
1433 PR c++/35688
1434 * c-common.c (decl_has_visibility_attr): Split out from...
1435 (c_determine_visibility): ...here.
1436 * c-common.h: Declare it.
1437
83e25171 14382011-11-06 Joseph Myers <joseph@codesourcery.com>
1439
1440 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1441 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1442 type.
1443 (check_user_alignment): New. Split out of
1444 handle_aligned_attribute. Disallow integer constants with
1445 noninteger types. Conditionally allow zero.
1446 (handle_aligned_attribute): Use check_user_alignment.
1447 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1448
1cd6e20d 14492011-11-06 Andrew MacLeod <amacleod@redhat.com>
1450 Richard Henderson <rth@redhat.com>
1451
1452 Merged from cxx-mem-model.
1453
1454 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 1455 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 1456 parameters that are the same type size.
1457 (get_atomic_generic_size): New. Find size of generic
1458 atomic function parameters and do typechecking.
1459 (add_atomic_size_parameter): New. Insert size into parameter list.
1460 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1461 either __atomic_exchange_n or external library call.
19931eea 1462 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 1463 __atomic_compare_exchange to either _n variant or external library call.
19931eea 1464 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 1465 __atomic_load_n or an external library call.
1466 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1467 __atomic_store_n or an external library call.
1468 (resolve_overloaded_builtin): Handle new __atomic builtins.
1469
7549df0d 14702011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1471
1472 PR c++/50608
1473 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1474 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1475 <INDIRECT_REF>: Return the argument.
1476 <ARRAY_REF>: Remove special code for negative offset.
1477 Call fold_build_pointer_plus instead of size_binop.
1478 (fold_offsetof): Remove STOP_REF argument and adjust.
1479 * c-common.h (fold_offsetof_1): Declare.
1480 (fold_offsetof): Remove STOP_REF argument.
1481
7e783eb3 14822011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1483
1484 PR c++/50810
1485 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1486 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1487 Wnarrowing for C++0x and C++98.
1488 * c.opt ([Wnarrowing]): Update.
1489
8fe701f5 14902011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1491
1492 PR c++/44277
1493 * c.opt: Add Wzero-as-null-pointer-constant.
1494
0d84dc2d 14952011-10-31 Jason Merrill <jason@redhat.com>
1496
67031f52 1497 * c.opt (-fdeduce-init-list): Off by default.
1498
0d84dc2d 1499 PR c++/50920
1500 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1501 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1502 and -Wc++11-compat.
1503 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1504
66f24c41 15052011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1506
1507 PR c++/30066
1508 * c.opt (fvisibility-inlines-hidden): Description change.
1509
244db24d 15102011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1511
1512 Implement C++11 user-defined literals.
1513 * c-common.c (build_userdef_literal): New.
1514 * c-common.def: New tree code.
1515 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1516 * c-lex.c (interpret_float): Add suffix parm.
1517 (c_lex_with_flags): Build literal tokens.
1518
235be70f 15192011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1520
1521 PR c++/50841
1522 Revert:
1523 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1524
1525 PR c++/50810
1526 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1527 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1528 Wnarrowing for C++0x and C++98.
1529 * c.opt ([Wnarrowing]): Update.
1530
4fe0fb1c 15312011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1532
1533 PR c++/50810
1534 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1535 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1536 Wnarrowing for C++0x and C++98.
1537 * c.opt ([Wnarrowing]): Update.
1538
5f7504f9 15392011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1540
1541 PR c++/45385
1542 * c-common.c (conversion_warning): Remove code looking for
1543 artificial operands.
1544
2a688977 15452011-10-18 Dodji Seketeli <dodji@redhat.com>
1546
1547 PR bootstrap/50760
1548 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 1549 !NO_IMPLICIT_EXTERN_C.
2a688977 1550
326e3391 15512011-10-17 Michael Spertus <mike_spertus@symantec.com>
1552
1553 * c-common.c (c_common_reswords): Add __bases,
1554 __direct_bases.
1555 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1556
15572011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1558
1559 PR c++/50757
1560 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1561
62db153a 15622011-10-15 Tom Tromey <tromey@redhat.com>
1563 Dodji Seketeli <dodji@redhat.com>
1564
1565 * c.opt (fdebug-cpp): New option.
1566 * c-opts.c (c_common_handle_option): Handle the option.
1567 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1568 output stream in parameter. Factorized from ...
1569 (maybe_print_line): ... this. Dump location debug information when
1570 -fdebug-cpp is in effect.
1571 (print_line_1): New static function. Takes an output stream in
1572 parameter. Factorized from ...
1573 (print_line): ... here. Dump location information when -fdebug-cpp
1574 is in effect.
1575 (scan_translation_unit): Dump location information when
1576 -fdebug-cpp is in effect.
1577
ce70f433 15782011-10-15 Tom Tromey <tromey@redhat.com>
1579 Dodji Seketeli <dodji@redhat.com>
1580
1581 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1582 without argument.
1583 * c-opts.c (c_common_handle_option)<case
1584 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1585 cases. Handle -ftrack-macro-expansion with and without argument.
1586
97bfb9ef 15872011-10-15 Tom Tromey <tromey@redhat.com>
1588 Dodji Seketeli <dodji@redhat.com>
1589
1590 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1591 (print_line, cb_define, do_line_change): Adjust to avoid touching
1592 the internals of struct line_map. Use the public API instead.
1593 * c-pch.c (c_common_read_pch): Likewise.
1594 * c-lex.c (fe_file_change): Likewise.
1595
326e3391 15962011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1597
1598 PR c++/17212
1599 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1600
16012011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1602
1603 PR c++/33067
1604 * c-pretty-print.c (pp_c_floating_constant): Output
1605 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1606
b9a16870 16072011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1608
1609 * c-common.c (def_builtin_1): Delete old interface with two
1610 parallel arrays to hold standard builtin declarations, and replace
1611 it with a function based interface that can support creating
1612 builtins on the fly in the future. Change all uses, and poison
1613 the old names. Make sure 0 is not a legitimate builtin index.
1614 * c-omp.c (c_finish_omp_barrier): Ditto.
1615 (c_finish_omp_taskwait): Ditto.
1616 (c_finish_omp_flush): Ditto.
1617
c7964868 16182011-10-11 Tristan Gingold <gingold@adacore.com>
1619
1620 * c.opt: (fallow-parameterless-variadic-functions): New.
1621
a4e3ffad 16222011-09-08 Dodji Seketeli <dodji@redhat.com>
1623
1624 PR c++/33255 - Support -Wunused-local-typedefs warning
1625 * c-common.h (struct c_language_function::local_typedefs): New
1626 field.
19931eea 1627 (record_locally_defined_typedef, maybe_record_typedef_use)
1628 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 1629 * c-common.c (record_locally_defined_typedef)
19931eea 1630 (maybe_record_typedef_use)
1631 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 1632 * c.opt: Declare new -Wunused-local-typedefs flag.
1633
737a23cc 16342011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1635
1636 PR middle-end/50266
1637 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1638 computations.
1639
7542c3b4 16402011-09-05 Richard Guenther <rguenther@suse.de>
1641
1642 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1643 of integer_minus_one_node for empty array upper bounds.
1644
1dc92c59 16452011-08-28 Dodji Seketeli <dodji@redhat.com>
1646
1647 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1648 it's the first time it's being called on this main TU.
1649
2bdf2b6e 16502011-08-24 Richard Guenther <rguenther@suse.de>
1651
1652 PR c/49396
1653 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1654
16552011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 1656
1657 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1658 defined in cpp_init_builtins and c_cpp_builtins.
1659
bff4ad11 16602011-08-19 Joseph Myers <joseph@codesourcery.com>
1661
1662 * c-common.c (c_common_reswords): Add __builtin_complex.
1663 * c-common.h (RID_BUILTIN_COMPLEX): New.
1664
985c6e3a 16652011-08-18 Joseph Myers <joseph@codesourcery.com>
1666
1667 * c-common.c (c_common_reswords): Add _Noreturn.
1668 (keyword_is_function_specifier): Handle RID_NORETURN.
1669 * c-common.h (RID_NORETURN): New.
1670
7dfa155b 16712011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1672
1673 * c-common.c (unsafe_conversion_p): New function. Check if it is
1674 unsafe to convert an expression to the type.
1675 (conversion_warning): Adjust, use unsafe_conversion_p.
1676 * c-common.h (unsafe_conversion_p): New function declaration.
1677
2169f33b 16782011-08-02 Jakub Jelinek <jakub@redhat.com>
1679
1680 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1681 (c_finish_omp_taskyield): New prototype.
1682 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1683 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1684 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1685 or RHS1 have side-effects, evaluate those too in the right spot,
1686 if it is a decl and LHS is also a decl, error out if they
1687 aren't the same.
1688 (c_finish_omp_taskyield): New function.
1689 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1690 * c-pragma.c (omp_pragmas): Add taskyield.
1691 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1692 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1693 PRAGMA_OMP_CLAUSE_MERGEABLE.
1694
ab77850e 16952011-07-25 Dodji Seketeli <dodji@redhat.com>
1696
1697 * c-common.h (set_underlying_type): Remove parm name from
1698 declaration.
1699
6ee97920 17002011-07-25 Romain Geissler <romain.geissler@gmail.com>
1701
1702 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 1703
dc251364 17042011-07-22 Jason Merrill <jason@redhat.com>
1705
1a2a35f0 1706 PR c++/49793
1707 * c.opt (Wnarrowing): New.
1708
27282252 1709 PR c++/30112
1710 * c-common.h: Declare c_linkage_bindings.
1711 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1712
dc251364 1713 PR c++/49813
1714 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1715 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1716 as flag_isoc99 for 'restrict'.
1717 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1718
fc501191 17192011-07-21 Ian Lance Taylor <iant@google.com>
1720
1721 PR middle-end/49705
1722 * c-common.c (c_disable_warnings): New static function.
1723 (c_enable_warnings): New static function.
1724 (c_fully_fold_internal): Change local unused_p to bool. Call
1725 c_disable_warnings and c_enable_warnings rather than change
1726 c_inhibit_evaluation_warnings.
1727
07b8f133 17282011-07-20 Jason Merrill <jason@redhat.com>
1729
1730 PR c++/6709 (DR 743)
1731 PR c++/42603 (DR 950)
1732 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1733 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1734 (CPP_DECLTYPE): New.
1735 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1736
2cc66f2a 17372011-07-19 Richard Guenther <rguenther@suse.de>
1738
1739 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1740 * c-omp.c (c_finish_omp_for): Likewise.
1741
3c802a1e 17422011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1743
1744 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1745 body on the next line.
1746
98a33d9f 17472011-07-08 Jason Merrill <jason@redhat.com>
1748
3115bda0 1749 PR c++/45437
1750 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1751
98a33d9f 1752 PR c++/49673
1753 * c-common.c (c_apply_type_quals_to_decl): Don't check
1754 TYPE_NEEDS_CONSTRUCTING.
1755
c38a75b7 17562011-07-06 Richard Guenther <rguenther@suse.de>
1757
1758 * c-common.c (c_common_nodes_and_builtins):
1759 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1760
e593356b 17612011-07-05 Richard Guenther <rguenther@suse.de>
1762
1763 * c-common.c (c_common_nodes_and_builtins): Build all common
1764 tree nodes first.
1765
fca0886c 17662011-06-27 Jakub Jelinek <jakub@redhat.com>
1767
a68f7a8d 1768 * c-common.h (c_tree_chain_next): New static inline function.
1769
fca0886c 1770 * c-common.c (check_builtin_function_arguments): Handle
1771 BUILT_IN_ASSUME_ALIGNED.
1772
2797f13a 17732011-06-21 Andrew MacLeod <amacleod@redhat.com>
1774
1775 * c-common.c: Add sync_ or SYNC__ to builtin names.
1776 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 1777
17782011-06-20 Pierre Vittet <piervit@pvittet.com>
1779
1780 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1781 handler.
1782 (gen_pragma_handler): New union.
1783 (internal_pragma_handler): New type.
1784 (c_register_pragma_with_data)
1785 (c_register_pragma_with_expansion_and_data): New functions.
1786
1787 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1788 (c_register_pragma, c_register_pragma_with_expansion)
1789 (c_invoke_pragma_handler): Changed to work with
1790 internal_pragma_handler.
1791 (c_register_pragma_with_data)
1792 (c_register_pragma_with_expansion_and_data): New functions.
1793
218e3e4e 17942011-06-14 Joseph Myers <joseph@codesourcery.com>
1795
1796 * c-common.c: Include common/common-target.h.
1797 (handle_section_attribute): Use
1798 targetm_common.have_named_sections.
1799 * c-cppbuiltin.c: Include common/common-target.h.
1800 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1801
41e53ed2 18022011-06-10 Richard Guenther <rguenther@suse.de>
1803
1804 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1805 to print a IDENTIFIER_NODE.
1806
a6f06169 18072011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1808 Joseph Myers <joseph@codesourcery.com>
1809
1810 * c.opt (fbuilding-libgcc): New option.
1811 * c-cppbuiltin.c (c_cpp_builtins): Define
1812 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1813
1ea9269b 18142011-06-07 Jason Merrill <jason@redhat.com>
1815
8ce59854 1816 * c-common.c (max_tinst_depth): Lower default to 900.
1817
1ea9269b 1818 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1819
1af0124d 18202011-06-07 Richard Guenther <rguenther@suse.de>
1821
1822 * c-common.c (c_common_nodes_and_builtins): Do not set
1823 size_type_node or call set_sizetype.
1824
0e9a4c01 18252011-06-07 Dodji Seketeli <dodji@redhat.com>
1826
1827 PR debug/49130
1828 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 1829 type when using pointer comparison to compare types.
0e9a4c01 1830
90b40725 18312011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1832
1833 * c.opt: Add -Wdelete-non-virtual-dtor.
1834 * c-opts.c (c_common_handle_option): Include it in -Wall.
1835
fc9c9e87 18362011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1837
1838 PR bootstrap/49190
1839
1840 Revert:
1841 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1842
1843 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1844 not tree_common.
1845
d0389adc 18462011-05-27 Jakub Jelinek <jakub@redhat.com>
1847
1848 PR c++/49165
1849 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1850 C++ don't call c_common_truthvalue_conversion on void type arms.
1851
cacfdc02 18522011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1853
1854 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1855 (stmt_list_stack): Define.
1856 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1857 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1858
027fc6ef 18592011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1860
1861 * c-common.c (warning_candidate_p): Check for BLOCKs.
1862
f21317a1 18632011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1864
1865 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1866 not tree_common.
1867
789e953d 18682011-05-25 Jakub Jelinek <jakub@redhat.com>
1869
1870 * c-common.c (def_fn_type): Remove extra va_end.
1871
7f506bca 18722011-05-23 Jason Merrill <jason@redhat.com>
1873
1874 PR c++/48106
1875 * c-common.c (c_common_get_narrower): New.
1876 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1877
774e9d58 18782011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1879
1880 * c-common.h (check_function_arguments): Tweak prototype of
1881 check_function_arguments.
1882 * c-common.c (check_function_arguments): Likewise. Adjust
1883 calls to check_function_nonnull, check_function_format, and
1884 check_function_sentinel.
1885 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1886 separate attributes and typelist arguments. Use
1887 FOREACH_FUNCTION_ARGS to iterate over argument types.
1888
23407dc9 18892011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1890
1891 * c-common.c (c_common_reswords): Reorder.
1892 * c-common.h (rid): Likewise.
1893
3a939d12 18942011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1895
1896 * c-common.c (def_fn_type): Don't call build_function_type, call
1897 build_function_type_array or build_varargs_function_type_array
1898 instead.
1899 (c_common_nodes_and_builtins): Likewise.
1900
b6e3dd65 19012011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1902
1903 * c-common.c (c_add_case_label): Omit the loc argument to
1904 build_case_label.
1905 * c-common.h (build_case_label): Remove.
1906 * c-semantics.c (build_case_label): Remove.
1907
4232a958 19082011-05-05 Joseph Myers <joseph@codesourcery.com>
1909
1910 * c-objc.h (objc_start_method_definition): Update prototype.
1911 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1912
d0af78c5 19132011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1914
1915 * c-common.c (check_main_parameter_types): Reindent. Don't use
1916 TYPE_ARG_TYPES directly.
1917 (handle_nonnull_attribute): Likewise.
1918 (sync_resolve_params): Likewise.
1919 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1920 to check_format_string.
1921 (handle_format_attribute): Likewise.
1922 (check_format_string): Take a function type to examine instead of
1923 a type list. Use a function_arg_iterator to step through argument
1924 types.
1925
ceb7b692 19262011-05-04 Richard Guenther <rguenther@suse.de>
1927
1928 * c-common.c (fix_string_type): Use size_int for index type bounds.
1929 (start_fname_decls): Do not pass NULL to build_int_cst.
1930 (c_init_attributes): Likewise.
1931 * c-lex.c (c_lex_with_flags): Likewise.
1932
c66c81be 19332011-04-27 Jason Merrill <jason@redhat.com>
1934
1935 * c-common.c (make_tree_vector_from_list): New.
1936 * c-common.h: Declare it.
1937
16930c72 19382011-04-26 Richard Guenther <rguenther@suse.de>
1939
1940 PR preprocessor/48248
1941 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1942 for output size with -P.
1943
23407dc9 19442011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1945
1946 * c-common.c (struct c_common_resword): Add __underlying_type.
1947 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1948
dd045aee 19492011-04-20 Jim Meyering <meyering@redhat.com>
1950
1951 * c-format.c (init_dollar_format_checking): Remove useless
1952 if-before-free.
1953
394dd737 19542011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1955
1956 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 1957 (objc_detect_field_duplicates): New.
394dd737 1958 * stub-objc.c: Likewise.
23407dc9 1959
a758bf7d 19602011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1961
1962 * stub-objc.c (objc_declare_protocols): Renamed to
1963 objc_declare_protocol.
1964 * c-objc.h: Likewise.
23407dc9 1965
29d7200d 19662011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1967
1968 * stub-objc.c (objc_declare_class): Updated argument name.
1969
9b88d08d 19702011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1971
1972 * c-common.h (c_common_init_ts): Declare.
1973 * c-common.c (c_common_init_ts): Define.
1974
4185cf58 19752011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1976
1977 * c-objc.h (objc_build_message_expr): Updated prototype.
1978 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 1979
5a90471f 19802011-04-12 Martin Jambor <mjambor@suse.cz>
1981
1982 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1983 of cgraph_node.
1984
783bb57e 19852011-04-11 Richard Guenther <rguenther@suse.de>
1986
1987 * c-common.c (complete_array_type): Build a range type of
1988 proper type.
1989
c33080b9 19902011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1991
1992 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1993 (handle_type_generic_attribute): Likewise.
1994
f8913d47 19952011-04-07 Jason Merrill <jason@redhat.com>
1996
1997 PR c++/48450
1998 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1999 conversion from C++0x scoped enum.
2000
c94b1d0e 20012011-04-06 Joseph Myers <joseph@codesourcery.com>
2002
2003 * c-target-def.h: New file.
2004 * c-target.def: New file.
2005 * c-target.h: New file.
2006 * c-common.c (targetcm): Don't define here.
2007 * c-common.h (default_handle_c_option): Declare.
2008 * c-format.c: Include c-target.h instead of target.h.
2009 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2010 include tm.h.
2011 (default_handle_c_option): Move from targhooks.c.
2012
acb10f41 20132011-03-29 Jakub Jelinek <jakub@redhat.com>
2014
2015 PR preprocessor/48248
2016 * c-ppoutput.c (print): Add src_file field.
2017 (init_pp_output): Initialize it.
2018 (maybe_print_line): Don't optimize by adding up to 8 newlines
2019 if map->to_file and print.src_file are different file.
2020 (print_line): Update print.src_file.
2021
82715bcd 20222011-03-25 Kai Tietz <ktietz@redhat.com>
2023
2024 * c-ada-spec.c (compare_comment): Use filename_cmp
2025 instead of strcmp for filename.
2026
451c8e2f 20272011-03-25 Jeff Law <law@redhat.com>
2028
2029 * c-family/c-common.c (def_fn_type): Add missing va_end.
2030
3c47771c 20312011-03-25 Jason Merrill <jason@redhat.com>
2032
2033 * c.opt: Add -std=c++03.
2034
97e6200f 20352011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2036
2037 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2038
ac86af5d 20392011-03-17 Kai Tietz
2040
2041 PR target/12171
ee212425 2042 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2043 Display allowed attributes for function pointer types.
2044 (pp_c_attributes_display): New function to display
2045 attributes having affects_type_identity flag set to true.
2046 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2047
ac86af5d 2048 * c-common.c (c_common_attribute_table):
2049 Add new element.
2050 (c_common_format_attribute_table): Likewise.
2051
914d1151 20522011-03-18 Jason Merrill <jason@redhat.com>
2053
69788bdf 2054 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2055 * c-common.h: Don't declare it here.
2056 * c-common.c: Or define it here.
2057 * c-opts.c (c_common_handle_option): Or set it here.
2058
914d1151 2059 PR c++/35315
2060 * c-common.c (handle_transparent_union_attribute): Don't
2061 make a duplicate type in C++.
2062
54cf6eed 20632011-03-15 Jason Merrill <jason@redhat.com>
2064
2065 * c-common.c (max_constexpr_depth): New.
2066 * c-common.h: Declare it.
2067 * c-opts.c (c_common_handle_option): Set it.
2068 * c.opt (fconstexpr-depth): New option.
2069
02cb1060 20702011-03-11 Jason Merrill <jason@redhat.com>
2071
9bf1c74e 2072 * c-common.c (attribute_takes_identifier_p): Add missing const.
2073
02cb1060 2074 PR c++/46803
2075 * c-common.c (attribute_takes_identifier_p): Assume that an
2076 unknown attribute takes an identifier.
2077
ecf2703d 20782011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2079
2080 PR c/47786
2081 * c-common.c (c_type_hash): Call list_length instead of iterating
2082 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2083
2b19dfe4 20842011-02-19 Jakub Jelinek <jakub@redhat.com>
2085
2086 PR c/47809
2087 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2088
29cf2335 20892011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2090
2091 * c.opt (fobjc-abi-version=) New.
2092 (fobjc-nilcheck): New.
2093
fad3f658 20942011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2095
2096 PR c++/46890
2097 * c-common.h (keyword_is_decl_specifier): Declare.
2098 * c-common.c (keyword_is_decl_specifier): Define.
2099 (keyword_is_function_specifier): New function.
2100
a12319b3 21012011-01-26 Jakub Jelinek <jakub@redhat.com>
2102
2103 PR c/47473
2104 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2105 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2106 REAL_TYPE.
2107
5c128dc8 21082011-01-26 Arnaud Charlet <charlet@adacore.com>
2109
2110 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2111
8d67b0c7 21122011-01-26 Jakub Jelinek <jakub@redhat.com>
2113
2114 PR pch/47430
2115 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2116 after init_c_lex if pch_file is set.
2117
0675168d 21182011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2119
e8911163 2120 PR c++/43601
0675168d 2121 * c.opt (-fkeep-inline-dllexport): New switch.
2122
0725e25c 21232011-01-12 Richard Guenther <rguenther@suse.de>
2124
2125 PR middle-end/32511
2126 * c-common.c (handle_weak_attribute): Warn instead of error
2127 on declaring an inline function weak.
2128
fdd84b77 21292011-01-05 Tom Tromey <tromey@redhat.com>
2130
2131 * c-common.h (lvalue_error): Update.
2132 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2133 not error.
2134
e6e73d14 21352010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 2136
d67e8485 2137 PR objc/47075
2138 * c-objc.h (objc_finish_message_expr): Added argument to
2139 prototype.
2140
a36cf284 21412010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2142
2143 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2144 Use prototype_p.
2145
33b3681f 21462010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2147
2148 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 2149 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 2150
a1f90215 21512010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2152
2153 * c-common.h (readonly_error): Declare.
2154 * c-common.c (readonly_error): Define.
2155
b1bbc8e5 21562010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2157
2158 * c-common.h (invalid_indirection_error): Declare.
2159 * c-common.c (invalid_indirection_error): Define.
2160
b0d55af9 21612010-12-03 Richard Guenther <rguenther@suse.de>
2162
2163 PR c/46745
2164 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2165 (pp_c_unary_expression): Likewise.
2166 (pp_c_expression): Likewise.
2167
d7489d8d 21682010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2169
2170 * c-common.h (objc_finish_function): New.
2171 (objc_non_volatilized_type): Removed.
2172 (objc_type_quals_match): Removed.
2173 * stub-objc.c (objc_finish_function): New.
2174 (objc_non_volatilized_type): Removed.
2175 (objc_type_quals_match): Removed.
19931eea 2176
92468061 21772010-11-30 Joseph Myers <joseph@codesourcery.com>
2178
2179 * c-common.h (parse_optimize_options): Declare.
2180 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2181 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2182
967958e4 21832010-11-29 Joseph Myers <joseph@codesourcery.com>
2184
2185 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2186 GET_ENVIRONMENT.
2187 * c-pch.c (O_BINARY): Don't define here.
2188 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2189
b213bf24 21902010-11-25 Joseph Myers <joseph@codesourcery.com>
2191
2192 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2193 targetm.except_unwind_info.
2194
9faf44d6 21952010-11-23 Joseph Myers <joseph@codesourcery.com>
2196
2197 * c-opts.c (c_common_handle_option): Pass location to
2198 set_struct_debug_option.
2199
79396169 22002010-11-23 Joseph Myers <joseph@codesourcery.com>
2201
2202 * c-common.c (visibility_options): Move from ../opts.c.
2203 * c-common.h (struct visibility_flags, visibility_options):
2204 Declare here.
2205 * c-opts.c (finish_options): Rename to c_finish_options.
2206 (c_common_init): Update call to finish_options.
2207
b4aa4123 22082010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2209
2210 PR objc/34033
2211 * c-lex.c (lex_string): Check that each string in an Objective-C
2212 string concat sequence starts with either one or zero '@', and
2213 that there are no spurious '@' signs at the end.
2214
3e0e49f2 22152010-11-20 Joseph Myers <joseph@codesourcery.com>
2216
2217 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2218 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2219 HANDLE_PRAGMA_VISIBILITY.
2220 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2221 HANDLE_PRAGMA_VISIBILITY): Don't define.
2222 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2223
a9ffdd35 22242010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2225
2226 PR c++/16189
2227 PR c++/36888
2228 PR c++/45331
2229 * c-common.h (keyword_begins_type_specifier): Declare.
2230 (keyword_is_storage_class_specifier): Declare.
2231 (keyword_is_type_qualifier): Declare.
2232 * c-common.c (keyword_begins_type_specifier): New function.
2233 (keyword_is_storage_class_specifier): New function.
2234 (keyword_is_type_qualifier): Declare.
2235
93be21c0 22362010-11-19 Joseph Myers <joseph@codesourcery.com>
2237
2238 PR c/46547
2239 * c-common.c (in_late_binary_op): Define.
2240 (c_common_truthvalue_conversion): Check in_late_binary_op before
2241 calling c_save_expr.
2242 * c-common.h (in_late_binary_op): Declare.
2243
d7175aef 22442010-11-19 Joseph Myers <joseph@codesourcery.com>
2245
2246 * c-opts.c (c_common_handle_option): Update calls to
2247 set_struct_debug_option.
2248
c213e196 22492010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2250
2251 * c-common.h (objc_declare_protocols): Added additional argument.
2252 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 2253
0b5fc5d6 22542010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2255
2256 PR c/33193
2257 * c-common.h (build_real_imag_expr): Declare.
2258 * c-semantics.c (build_real_imag_expr): Define.
2259
b8ba44e7 22602010-11-17 Joseph Myers <joseph@codesourcery.com>
2261
2262 * c-opts.c (c_common_parse_file): Take no arguments.
2263 * c-common.h (c_common_parse_file): Update prototype.
2264
6ef8d12f 22652010-11-16 Jakub Jelinek <jakub@redhat.com>
2266
2267 PR c++/46401
2268 * c-common.c (warning_candidate_p): Don't track non-const calls
2269 or STRING_CSTs.
2270
929d2a90 22712010-11-15 Ian Lance Taylor <iant@google.com>
2272
2273 * c-lex.c (init_c_lex): Set macro debug callbacks if
2274 flag_dump_go_spec is set.
2275
e4a7640a 22762010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2277
2278 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2279 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2280
597d2d81 22812010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2282
2283 PR preprocessor/45038
2284 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2285 dialects.
2286
c123f04d 22872010-11-12 Joseph Myers <joseph@codesourcery.com>
2288
2289 * c-common.h (c_family_lang_mask): Declare.
2290 * c-opts.c (c_family_lang_mask): Make extern.
2291 * c-pragma.c (handle_pragma_diagnostic): Use
2292 control_warning_option.
2293
3c6c0e40 22942010-11-12 Joseph Myers <joseph@codesourcery.com>
2295
2296 * c-common.c (parse_optimize_options): Update call to
2297 decode_options.
2298 * c-common.h (c_common_handle_option): Update prototype.
2299 * c-opts.c (c_common_handle_option): Take location_t parameter and
2300 pass it to other functions.
2301
19ec5c9e 23022010-11-11 Joseph Myers <joseph@codesourcery.com>
2303
2304 * c-opts.c (warning_as_error_callback): Remove.
2305 (c_common_initialize_diagnostics): Don't call
2306 register_warning_as_error_callback.
2307 (c_common_handle_option): Handle -Werror=normalized= here.
2308
bf776685 23092010-11-10 Joseph Myers <joseph@codesourcery.com>
2310
2311 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2312 in diagnostic.
2313 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2314 letter.
2315 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2316 Remove trailing '.' from diagnostics.
2317 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2318
6bd9d862 23192010-11-10 Joseph Myers <joseph@codesourcery.com>
2320
2321 * c-common.c (parse_optimize_options): Pass global_dc to
2322 decode_options.
2323 * c-opts.c (c_common_handle_option): Pass &global_options to
2324 set_Wstrict_aliasing.
2325 * c.opt (v): Don't mark Common or document here.
2326
1f6616ee 23272010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2328
2329 PR target/44981
2330 * c-format.c (format_type): New type gcc_objc_string_format_type.
2331 (valid_stringptr_type_p): New.
2332 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 2333 (check_format_string): Pass expected type, use
1f6616ee 2334 valid_stringptr_type_p (), check that the format string types are
2335 consistent with the format specification.
2336 (decode_format_attr): Warn if NSString is used outside objective-c.
2337 (format_types_orig): Add NSString.
2338 (format_name): New.
2339 (format_flags): New.
2340 (check_format_arg): Handle format strings requiring an external parser.
2341 first_target_format_type: New variable.
2342 (handle_format_attribute): Set up first_target_format_type, pass the
2343 expected format arg string type to check_format_string().
2344 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2345 * stub-objc.c (objc_string_ref_type_p): New.
2346 (objc_check_format_arg): New.
2347
b0d0931f 23482010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2349
19931eea 2350 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 2351 * c-common.h (objc_build_class_component_ref): New.
2352 * stub-objc.c (objc_build_class_component_ref): New.
2353
f26877d5 23542010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2355
2356 * c.opt (Wproperty-assign-default): New option.
2357
1ef143b6 23582010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2359
2360 Implemented -fobjc-std=objc1 flag.
2361 * c.opt (fobjc-std=objc1): New option.
2362
8c582e4f 23632010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2364
2365 Implemented format and noreturn attributes for Objective-C methods.
2366 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2367 attribute for Objective-C methods.
2368
8637f1db 23692010-10-31 Jason Merrill <jason@redhat.com>
2370
2371 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2372 EXPR_LOC_OR_HERE.
2373
9d9f5bb3 23742010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2375
2376 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2377 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2378 (objc_add_property_declaration): Removed arguments for copies and
2379 ivar.
2380 (objc_build_getter_call): Renamed to
2381 objc_maybe_build_component_ref.
2382 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2383 (objc_is_property_ref): New.
2384 * c-common.c (c_common_reswords): Removed copies and ivar.
2385 * stub-objc.c (objc_add_property_declaration): Removed arguments
2386 for copies and ivar.
2387 (objc_build_getter_call): Renamed to
2388 objc_maybe_build_component_ref.
2389 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2390 (objc_is_property_ref): New.
19931eea 2391
56f907a0 23922010-10-29 Arnaud Charlet <charlet@adacore.com>
2393 Matthew Gingell <gingell@adacore.com>
2394
2395 * c-ada-spec.c (separate_class_package): New function.
2396 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2397 name of their enclosing package.
2398 (print_ada_declaration): Use separate_class_package.
2399
b5fa273e 24002010-10-27 Jason Merrill <jason@redhat.com>
2401
5290e253 2402 * c-common.c (c_common_reswords): Add __is_literal_type.
2403 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2404
b5fa273e 2405 * c-common.c (check_case_value): Remove special C++ code.
2406
7590f0e5 24072010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2408
2409 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2410 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2411 and RID_LAST_PATTR.
2412 (objc_add_property_declaration): Added additional arguments.
2413 (objc_property_attribute_kind): Removed.
2414 (objc_set_property_attr): Removed.
2415 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2416 copy and nonatomic.
2417 * stub-objc.c (objc_add_property_declaration): Added additional
2418 arguments.
2419 (objc_set_property_attr): Removed.
19931eea 2420
1d894bcf 24212010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2422
2423 * c-common.h (objc_add_property_variable): Renamed to
2424 objc_add_property_declaration. Added location argument.
2425 * stub-objc.c (objc_add_property_variable): Same change.
2426
e23bf1fb 24272010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2428
2429 * c-common.h (objc_maybe_printable_name): New.
2430 * stub-objc.c (objc_maybe_printable_name): New.
2431
93426222 24322010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2433 Andrew Pinski <pinskia@gmail.com>
2434
2435 * c-common.h (c_common_mark_addressable_vec): Declare.
2436 * c-common.c (c_common_mark_addressable_vec): New function.
2437
45b2b110 24382010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2439
2440 * c-common.h (objc_set_method_type): Removed.
2441 (objc_add_method_declaration): Added boolean argument.
2442 (objc_start_method_definition): Same change.
2443 (objc_build_method_signature): Same change.
2444 * stub-objc.c (objc_set_method_type): Removed.
2445 (objc_add_method_declaration): Added boolean argument.
2446 (objc_start_method_definition): Same change.
2447 (objc_build_method_signature): Same change.
2448
64cd9619 24492010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2450
2451 * c-common.h (finish_file): Removed.
2452 (objc_write_global_declarations): New.
2453 * c-opts.c (c_common_parse_file): Do not call finish_file.
2454 * stub-objc.c (objc_write_global_declarations): New.
19931eea 2455
e1f293c0 24562010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2457
2458 Implemented parsing @synthesize and @dynamic for
2459 Objective-C/Objective-C++.
2460 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2461 (objc_add_synthesize_declaration): New.
2462 (objc_add_dynamic_declaration): New.
2463 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2464 * stub-objc.c (objc_add_synthesize_declaration): New.
2465 (objc_add_dynamic_declaration): New.
19931eea 2466
ef97a312 24672010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2468
2469 PR target/46041
2470 * c-cppbuiltin.c (mode_has_fma): Move function here from
2471 builtins.c. Don't use the fma optab, instead just use the
2472 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2473 using -save-temps.
2474
69b07042 24752010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2476
2477 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 2478
69b07042 2479 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2480
19931eea 2481 Radar 4330422
69b07042 2482 * c-common.h (objc_non_volatilized_type): New declaration
2483 * stub-objc.c (objc_non_volatilized_type): New stub.
2484
f15f2e56 24852010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2486
69b07042 2487 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 2488
2489 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2490
19931eea 2491 Radar 4133425
f15f2e56 2492 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 2493 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 2494
4a8875ed 24952010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2496
2497 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2498 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2499 (objc_ivar_visibility_kind): New enum.
2500 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 2501 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 2502 visibility enum.
2503
7e0713b1 25042010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2505
2506 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2507 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2508 has the appropriate fma builtins.
2509 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2510
86c110ac 25112010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2512
7e0713b1 2513 merge from FSF apple 'trunk' branch.
86c110ac 2514 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 2515
86c110ac 2516 Radars 4436866, 4505126, 4506903, 4517826
2517 * c-common.c (c_common_resword): Define @property and its attributes.
2518 * c-common.h: Define property attribute enum entries.
2519 (OBJC_IS_PATTR_KEYWORD): New.
2520 (objc_property_attribute_kind): New enum.
2521 Declare objc_set_property_attr (), objc_add_property_variable (),
2522 objc_build_getter_call () and objc_build_setter_call ().
2523 * stub-objc.c (objc_set_property_attr): New stub.
2524 (objc_add_property_variable): Likewise.
2525 (objc_build_getter_call): Likewise.
2526 (objc_build_setter_call) Likewise.
7e0713b1 2527
40c8d1dd 25282010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2529
7e0713b1 2530 merge from FSF apple 'trunk' branch.
40c8d1dd 2531 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2532
2533 Radar 3803157 (method attributes)
2534 * c-common.c (handle_deprecated_attribute): Recognize
2535 objc methods as valid declarations.
2536 * c-common.h: Declare objc_method_decl ().
7e0713b1 2537 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 2538
f3f006ad 25392010-10-08 Joseph Myers <joseph@codesourcery.com>
2540
2541 * c-common.c (parse_optimize_options): Call
2542 decode_cmdline_options_to_array_default_mask before
2543 decode_options. Update arguments to decode_options.
2544 * c-common.h (c_common_init_options_struct): Declare.
2545 * c-opts.c (c_common_init_options_struct): New. Split out from
2546 c_common_init_options.
2547
0a65c3bb 25482010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2549
2550 Implemented fast enumeration for Objective-C.
2551 * c-common.h (objc_finish_foreach_loop): New.
2552 * stub-objc.c (objc_finish_foreach_loop): New.
2553
24ca3b4e 25542010-10-05 Joseph Myers <joseph@codesourcery.com>
2555
2556 * c-common.h (struct diagnostic_context): Don't declare here.
2557 (c_common_initialize_diagnostics): Declare using
2558 diagnostic_context typedef.
2559 * c-opts.c (c_common_handle_option): Pass global_dc to
2560 handle_generated_option.
2561
f83b64ca 25622010-10-04 Joseph Myers <joseph@codesourcery.com>
2563
2564 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2565 handle_generated_option.
2566
2fdec027 25672010-10-03 Ian Lance Taylor <iant@google.com>
2568
2569 * c.opt (-fplan9-extensions): New option.
2570
41acdfa4 25712010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2572
2573 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2574 Remove.
2575 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2576 of duplicating code.
2577
069761fb 25782010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2579
2580 * c-common.c: Add two new entries for @optional
2581 and @required keywords.
2582
2583 merge from FSF 'apple/trunk' branch.
2584 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2585
2586 Radar 4386773
2587 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2588 objective-c keywords.
2589 (objc_set_method_opt): New declaration.
2590 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 2591
2c5d2e39 25922010-09-30 Joseph Myers <joseph@codesourcery.com>
2593
2594 * c-common.c (handle_optimize_attribute): Pass &global_options to
2595 cl_optimization_save and cl_optimization_restore.
2596 * c-opts.c (c_common_handle_option): Pass &global_options to
2597 handle_generated_option.
2598 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2599 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2600 &global_options to cl_optimization_restore.
2601
e5c75ac3 26022010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2603
2604 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2605 Objective-C/Objective-C++ keywords.
2606
3511333e 26072010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 2608
19931eea 2609 Merge from 'apple/trunk' branch on FSF servers.
2610
e147d6aa 2611 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2612
2613 Radar 4281748
2614 * c-common.h (objc_check_global_decl): New declaration.
2615 * stub-objc.c (objc_check_global_decl): New stub.
2616
5461e683 26172010-09-29 Joseph Myers <joseph@codesourcery.com>
2618
2619 * c.opt: Don't use VarExists.
2620
5ae82d58 26212010-09-29 Joseph Myers <joseph@codesourcery.com>
2622
2623 * c-common.c (c_cpp_error): Update names of diagnostic_context
2624 members.
2625 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2626 cl_optimization members.
2627 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2628 sanitize_cpp_opts, finish_options): Update names of cpp_options
2629 members.
2630
b27e241e 26312010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2632
2633 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2634 (objc_is_reserved_word): Removed.
2635 * c-common.c: Updated comments.
2636 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2637 objc_is_reserved_word.
2638 * stub-objc.c (objc_is_reserved_word): Removed.
2639
03fc2271 26402010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2641
19931eea 2642 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 2643 include attributes.
2644 (objc_start_method_definition): Likewise.
2645 (objc_build_keyword_decl): Likewise.
2646 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2647 (objc_start_method_definition): Likewise.
2648 (objc_build_keyword_decl): Likewise.
2649
a336eb4b 26502010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2651
2652 * c-common.h (objc_start_class_interface): Adjust prototype.
2653 (objc_start_category_interface): Likewise.
2654 (objc_start_protocol): Likewise.
2655 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2656 (objc_start_class_interface): Likewise.
2657 (objc_start_category_interface): Likewise.
2658
48b14f50 26592010-09-27 Ian Lance Taylor <iant@google.com>
2660
2661 * c-common.c (c_common_attribute_table): Add no_split_stack.
2662 (handle_no_split_stack_attribute): New static function.
2663
4abfc532 26642010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2665
19931eea 2666 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 2667
2668 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2669
19931eea 2670 Radar 4229905
4abfc532 2671 * c-common.h (objc_have_common_type): New declaration.
2672 * stub-objc.c (objc_have_common_type): New stub.
2673
2674 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2675
2676 Radar 4154928
2677 * c-common.h (objc_common_type): New prototype.
19931eea 2678 * stub-objc.c (objc_common_type): New stub.
4abfc532 2679
7bd95dfd 26802010-09-24 Jan Hubicka <jh@suse.cz>
2681
2682 * c-common.c (handle_leaf_attribute): New function.
2683 (struct attribute_spec c_common_att): Add leaf.
2684
5789e05b 26852010-09-22 Joseph Myers <joseph@codesourcery.com>
2686
2687 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2688 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2689 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2690 -include-barrier, -include-directory, -include-directory=,
2691 -include-directory-after, -include-directory-after=,
2692 -include-prefix, -include-prefix=, -include-with-prefix,
2693 -include-with-prefix=, -include-with-prefix-after,
2694 -include-with-prefix-after=, -include-with-prefix-before,
2695 -include-with-prefix-before=, -no-integrated-cpp,
2696 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2697 -output=, -pedantic, -pedantic-errors, -preprocess,
2698 -print-missing-file-dependencies, -trace-includes, -traditional,
2699 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2700 -user-dependencies, -verbose, -write-dependencies,
2701 -write-user-dependencies, no-integrated-cpp, traditional): New.
2702
e6fb54ba 27032010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2704
2705 PR objc/23710
9b60f3b0 2706 * c-common.h (objc_start_method_definition): Return bool instead
2707 of void.
2708 * stub-objc.c (objc_start_method_definition): Return bool instead
2709 of void.
2710
27112010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2712
2713 PR objc/25965
2714 * c-common.h (objc_get_interface_ivars): New declaration.
2715 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 2716
e44b0a1f 27172010-09-15 Ian Lance Taylor <iant@google.com>
2718
2719 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 2720 messages. Remove period at end of warning message.
e44b0a1f 2721
85c0a25c 27222010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2723
2724 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2725 (handle_alias_attribute): ... here.
2726 (handle_ifunc_attribute): New.
2727
5ba33bf4 27282010-09-06 Mark Mitchell <mark@codesourcery.com>
2729
2730 * c-common.h (do_warn_double_promotion): Declare.
2731 * c-common.c (do_warn_double_promotion): Define.
2732
c920faa3 27332010-09-05 Mark Mitchell <mark@codesourcery.com>
2734
2735 * c.opt (Wdouble-promotion): New.
2736
9604e070 27372010-09-02 Joseph Myers <joseph@codesourcery.com>
2738
2739 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2740 fvtable-thunks, fxref): Mark no longer supported in help text.
2741
3b0273a1 27422010-09-02 Joseph Myers <joseph@codesourcery.com>
2743
2744 * c.opt (Wimport, fall-virtual, falt-external-templates,
2745 fdefault-inline, fenum-int-equiv, fexternal-templates,
2746 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2747 fname-mangling-version-, fnew-abi, fnonnull-objects,
2748 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2749 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2750 applicable.
2751 (fhandle-exceptions): Mark with Alias and Warn.
2752 * c-opts.c (c_common_handle_option): Don't handle options marked
2753 as ignored.
2754
67089c6b 27552010-09-02 Joseph Myers <joseph@codesourcery.com>
2756
2757 * c.opt (Wcomments, Werror-implicit-function-declaration,
2758 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2759 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2760 aliases.
2761 * c-common.c (option_codes): Use OPT_Wcomment instead of
2762 OPT_Wcomments.
2763 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2764 Don't handle options marked as aliases.
2765
2af087f2 27662010-08-25 Richard Guenther <rguenther@suse.de>
2767
2768 * c-common.c (c_common_get_alias_set): Remove special
2769 handling for pointers.
2770
48148244 27712010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2772
2773 * c-common.c: Use FOR_EACH_VEC_ELT.
2774 * c-gimplify.c: Likewise.
2775 * c-pragma.c: Likewise.
2776
89c69892 27772010-08-16 Joseph Myers <joseph@codesourcery.com>
2778
2779 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2780 RejectDriver.
2781 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2782 RejectDriver.
2783 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2784 instead of OPT_MDX and OPT_MMDX.
2785
e28aa114 27862010-08-16 Joseph Myers <joseph@codesourcery.com>
2787
2788 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2789
99b66d21 27902010-08-12 Joseph Myers <joseph@codesourcery.com>
2791
2792 * c.opt (MD, MMD): Change to MDX and MMDX.
2793 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2794
666f4bf0 27952010-08-11 Joseph Myers <joseph@codesourcery.com>
2796
2797 * c-opts.c (c_common_handle_option): Call handle_generated_option
2798 instead of handle_option.
2799
5ec815f6 28002010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2801
2802 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2803 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2804
d13143cf 28052010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2806
2807 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2808 (pending_redefine_extname): Change type to a VEC.
2809 (add_to_renaming_pragma_list): Update for new type of
2810 pending_redefine_extname.
5ec815f6 2811 (maybe_apply_renaming_pragma): Likewise.
d13143cf 2812
2008c983 28132010-08-04 Arnaud Charlet <charlet@adacore.com>
2814
2815 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2816 visited.
2817 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2818 decide whether a type has already been declared/seen.
2819 Do not go to the original type.
2820 (dump_nested_types): New parameter forward.
2821 Generate forward declaration if needed and mark type as visited.
2822 (print_ada_declaration): Call dump_nested_types if not already done.
2823 Mark types as visited.
2824
9b091a73 28252010-08-03 Joseph Myers <joseph@codesourcery.com>
2826
2827 * c.opt (-print-pch-checksum): Remove option.
2828 * c-opts.c (c_common_handle_option): Don't handle
2829 OPT_print_pch_checksum.
2830
b78351e5 28312010-07-27 Joseph Myers <joseph@codesourcery.com>
2832
2833 * c-common.h (c_common_handle_option): Update prototype and return
2834 value type.
2835 * c-opts.c (c_common_handle_option): Update prototype and return
2836 value type. Update calls to handle_option and
2837 enable_warning_as_error.
2838
34416a90 28392010-07-27 Jakub Jelinek <jakub@redhat.com>
2840
2841 PR c/45079
2842 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2843
fecf9011 28442010-07-27 Joseph Myers <joseph@codesourcery.com>
2845
2846 * c-common.h (c_common_missing_argument): Remove.
2847 * c-opts.c (c_common_missing_argument): Remove.
2848 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2849 idirafter, imacros, include, isysroot, isystem, iquote): Add
2850 MissingArgError.
2851 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2852
e88d34f6 28532010-07-27 Joseph Myers <joseph@codesourcery.com>
2854
2855 * c-common.h (c_common_option_lang_mask,
2856 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2857 New.
2858 (c_common_init_options): Update prototype.
2859 * c-opts.c (c_common_option_lang_mask): New.
2860 (c_common_initialize_diagnostics): Split out of
2861 c_common_init_options.
2862 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2863 New.
2864 (c_common_init_options): Update prototype. Use decoded options in
2865 search for -lang-asm.
2866
1767a056 28672010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2868
2869 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2870 * c-format.c: Likewise.
2871
0b205f4c 28722010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2873
2874 * c-common.h: Include diagnostic-core.h. Error if already
2875 included.
2876 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2877
1c58e3f1 28782010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2879
2880 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2881 Do not include expr.h
2882 (vector_mode_valid_p): Move here.
2883
33cc157c 28842010-06-21 DJ Delorie <dj@redhat.com>
2885
2886 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2887 allow these pragmas anywhere.
2888
28892010-06-14 Jakub Jelinek <jakub@redhat.com>
2890
2891 PR bootstrap/44509
2892 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2893 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2894 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2895 ggc_strdup instead of xstrdup.
2896
28972010-06-10 Jakub Jelinek <jakub@redhat.com>
2898
2899 * c-cppbuiltin.c: Include cpp-id-data.h.
2900 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2901 (lazy_hex_fp_value): New function.
2902 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2903
9b40bfbf 29042010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2905
2906 * c-gimplify.c: Do not include tree-flow.h
2907
202d6e5f 29082010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2909
2910 PR other/44034
2911 * c-common.c: Rename targetm member:
2912 targetm.enum_va_list -> targetm.enum_va_list_p
2913
d3237426 29142010-06-28 Anatoly Sokolov <aesok@post.ru>
2915
2916 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2917
596981c8 29182010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2919
2920 * c-cppbuiltin.c: Do not include except.h.
2921
b9bdfa0b 29222010-06-24 Andi Kleen <ak@linux.intel.com>
2923
19931eea 2924 * c-common.c (warn_for_omitted_condop): New.
2925 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 2926
55ad092d 29272010-06-21 Joseph Myers <joseph@codesourcery.com>
2928
2929 * c.opt (lang-objc): Remove.
2930 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2931
9e7c2572 29322010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2933
2934 * c-opts.c: Include "tm_p.h".
2935
615ef0bb 29362010-06-20 Joseph Myers <joseph@codesourcery.com>
2937
2938 * c-common.c (parse_optimize_options): Update call to
2939 decode_options.
2940
aef48c9a 29412010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2942
2943 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2944 new type of types_used_by_cur_var_decl.
2945
d74003b4 29462010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2947
2948 PR bootstrap/44512
2949 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2950 for C++ standard compliance.
2951
1194d077 29522010-06-16 Jason Merrill <jason@redhat.com>
2953
2954 * c.opt: Add -Wnoexcept.
2955
d473d901 29562010-06-16 Richard Guenther <rguenther@suse.de>
2957
2958 PR c/44555
2959 * c-common.c (c_common_truthvalue_conversion): Remove
2960 premature and wrong optimization concering ADDR_EXPRs.
2961
b62dbfd3 29622010-06-15 Arnaud Charlet <charlet@adacore.com>
2963
2964 * c-ada-spec.c (dump_sloc): Remove column info.
2965 (is_simple_enum): New function.
2966 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2967 enum types when relevant.
2968
200dd99c 29692010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2970
19931eea 2971 * c-common.c (conversion_warning): Warn at expression
200dd99c 2972 location.
2973
abf6a617 29742010-06-10 Joseph Myers <joseph@codesourcery.com>
2975
2976 * c-opts.c (c_common_handle_option): Don't handle
2977 OPT_fshow_column.
2978
ba72912a 29792010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2980
2981 * c-pragma.c (push_alignment): Use typed GC allocation.
2982 (handle_pragma_push_options): Likewise.
2983
2984 * c-common.c (parse_optimize_options): Likewise.
2985
2986 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2987 option.
2988
4aafe913 29892010-06-07 Joseph Myers <joseph@codesourcery.com>
2990
2991 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2992 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2993 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2994 flag_signed_bitfields, warn_strict_null_sentinel,
2995 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2996 flag_gen_declaration, flag_no_gnu_keywords,
2997 flag_implement_inlines, flag_implicit_templates,
2998 flag_implicit_inline_templates, flag_optional_diags,
2999 flag_elide_constructors, flag_default_inline, flag_rtti,
3000 flag_conserve_space, flag_access_control, flag_check_new,
3001 flag_new_for_scope, flag_weak, flag_working_directory,
3002 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3003 flag_enforce_eh_specs, flag_threadsafe_statics,
3004 flag_pretty_templates): Remove.
3005 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3006 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3007 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3008 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3009 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3010 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3011 flag_no_gnu_keywords, flag_implement_inlines,
3012 flag_implicit_templates, flag_implicit_inline_templates,
3013 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3014 flag_rtti, flag_conserve_space, flag_access_control,
3015 flag_check_new, flag_new_for_scope, flag_weak,
3016 flag_working_directory, flag_use_cxa_atexit,
3017 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3018 flag_threadsafe_statics, flag_pretty_templates,
3019 warn_strict_null_sentinel): Remove.
3020 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3021 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3022 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3023 fimplicit-inline-templates, fimplicit-templates,
3024 flax-vector-conversions, fms-extensions, fnil-receivers,
3025 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3026 frtti, fshort-double, fshort-enums, fshort-wchar,
3027 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3028 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3029 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3030 gen-decls, undef): Use Var.
3031 (fdefault-inline, foptional-diags): Document as doing nothing.
3032 * c-opts.c (c_common_handle_option): Remove cases for options now
3033 using Var. Mark ignored options as such.
3034
7bedc3a0 30352010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3036
19931eea 3037 * c-common.c: Moved to here from parent directory.
7bedc3a0 3038 * c-common.def: Likewise.
3039 * c-common.h: Likewise.
3040 * c-cppbuiltin.c: Likewise.
3041 * c-dump.c: Likewise.
3042 * c-format.c: Likewise.
3043 * c-format.h : Likewise.
3044 * c-gimplify.c: Likewise.
3045 * c-lex.c: Likewise.
3046 * c-omp.c: Likewise.
3047 * c.opt: Likewise.
3048 * c-opts.c: Likewise.
3049 * c-pch.c: Likewise.
3050 * c-ppoutput.c: Likewise.
3051 * c-pragma.c: Likewise.
3052 * c-pragma.h: Likewise.
3053 * c-pretty-print.c: Likewise.
3054 * c-pretty-print.h: Likewise.
3055 * c-semantics.c: Likewise.
3056 * stub-objc.c: Likewise.
3057
3058 * c-common.c: Include gt-c-family-c-common.h.
3059 * c-pragma.c: Include gt-c-family-c-pragma.h.
3060\f
711789cc 3061Copyright (C) 2010-2013 Free Software Foundation, Inc.
7bedc3a0 3062
3063Copying and distribution of this file, with or without modification,
3064are permitted in any medium without royalty provided the copyright
3065notice and this notice are preserved.