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