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