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