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