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