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