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