1 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
3 PR tree-optimization/20318
4 * c-common.c (handle_returns_nonnull_attribute): New function.
5 (c_common_attribute_table): Add returns_nonnull.
7 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
10 * c.opt (fcheck-new): Move to common.opt.
12 2013-09-25 Marek Polacek <polacek@redhat.com>
13 Jakub Jelinek <jakub@redhat.com>
16 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
17 an expression if we can prove it is correct.
18 (ubsan_instrument_division): Likewise. Remove unnecessary
21 2013-09-18 Marek Polacek <polacek@redhat.com>
24 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
26 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
28 2013-09-14 Iain Sandoe <iain@codesourcery.com>
31 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
32 fobjc-gc, freplace-objc-classes): Accept for LTO.
34 2013-09-13 Jacek Caban <jacek@codeweavers.com>
36 * c-target.def: New hook
38 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
41 * c.opt (Wdelete-incomplete): Add.
43 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
45 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
46 (vector_types_compatible_elements_p): New function.
47 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
49 (vector_types_compatible_elements_p): Declare.
51 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
53 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
54 a virtual member function.
55 (pp_simple_type_specifier): Remove.
56 (pp_c_type_specifier): Likewise.
57 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
58 Rename from pp_c_type_specifier. Adjust.
59 (c_pretty_printer::c_pretty_printer): Do not assign to
60 simple_type_specifier.
62 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
64 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
66 (c_pretty_printer::storage_class_specifier): Likewise.
67 (c_pretty_printer::initializer): Likewise.
68 (pp_declaration): Remove.
69 (pp_declaration_specifiers): Likewise.
70 (pp_abstract_declarator): Likewise.
71 (pp_declarator): Likewise.
72 (pp_type_id): Likewise.
73 (pp_statement): Likewise.
74 (pp_constant): Likewise.
75 (pp_id_expression): Likewise.
76 (pp_primary_expression): Likewise.
77 (pp_unary_expression): Likewise.
78 (pp_multiplicative_expression): Likewise.
79 (pp_conditional_expression): Likewise.
80 (pp_assignment_expression): Likewise.
81 (pp_expression): Likewise.
82 (pp_c_type_id): Likewise.
83 (pp_c_storage_class_specifier): Likewise.
84 * c-pretty-print.c (pp_c_type_cast): Tidy.
85 (pp_c_pointer): Likewise.
86 (pp_c_type_specifier): Likewise.
87 (pp_c_parameter_type_list): Likewise.
88 (pp_c_function_definition): Likewise.
89 (pp_c_init_declarator): Likewise.
90 (pp_c_initializer_list): Likewise.
91 (pp_c_constructor_elts): Likewise.
92 (c_pretty_printer::direct_abstract_declarator): Likewise.
93 (c_pretty_printer::declaration_specifiers): Likewise.
94 (c_pretty_printer::primary_expression): Likewise.
95 (c_pretty_printer::postfix_expression): Likewise.
96 (c_pretty_printer::type_id): Rename from pp_c_type_id.
97 (c_pretty_printer::storage_class_specifier): Rename from
98 pp_c_storage_class_specifier.
99 (c_pretty_printer::initializer): Rename from pp_c_initializer.
100 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
101 storage_class_specifier, initializer, offset_list, flags.
103 2013-08-30 Marek Polacek <polacek@redhat.com>
105 * c-ubsan.c: New file.
106 * c-ubsan.h: New file.
108 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
110 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
112 (c_pretty_printer::declaration_specifiers): Likewise.
113 (c_pretty_printer::declarator): Likewise.
114 (c_pretty_printer::abstract_declarator): Likewise.
115 (c_pretty_printer::direct_abstract_declarator): Likewise.
116 (c_pretty_printer::direct_declarator): Likewise.
117 (c_pretty_printer::function_specifier): Likewise.
118 (pp_declaration): Adjust.
119 (pp_declaration_specifiers): Likewise.
120 (pp_abstract_declarator): Likewise.
121 (pp_direct_declarator): Likewise.
122 (pp_function_specifier): Likewise.
123 (pp_direct_abstract_declarator): Remove as unused.
124 (pp_c_declaration): Remove.
125 (pp_c_declaration_specifiers): Likewise.
126 (pp_c_declarator): Likewise.
127 (pp_c_direct_declarator): Likewise.
128 (pp_c_function_specifier): Likewise.
129 (pp_c_direct_abstract_declarator): Likewise.
130 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
131 from pp_c_abstract_declarator. Adjust.
132 (c_pretty_printer::direct_abstract_declarator): Rename from
133 pp_c_direct_abstract_declarator. Adjust.
134 (c_pretty_printer::function_specifier): Rename from
135 pp_c_function_specifier. Adjust.
136 (c_pretty_printer::declaration_specifiers): Rename from
137 pp_c_declaration_specifiers. Adjust.
138 (c_pretty_printer::direct_declarator): Rename from
139 pp_c_direct_declarator. Adjust.
140 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
141 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
142 (c_pretty_printer::c_pretty_printer): Do not assign to
143 declaration, declaration_specifiers, declarator,
144 direct_declarator, direct_abstract_declarator, function_specifier.
146 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
148 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
149 virtual member function.
150 (c_pretty_printer::multiplicative_expression): Likewise.
151 (c_pretty_printer::conditional_expression): Likewise.
152 (c_pretty_printer::assignment_expression): Likewise.
153 (c_pretty_printer::expression): Likewise.
154 (pp_unary_expression): Adjust.
155 (pp_multiplicative_expression): Likewise.
156 (pp_assignment_expression): Likewise.
157 (pp_conditional_expression): Likewise.
158 (pp_expression): Likewise.
159 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
160 from pp_c_unary_expression. Adjust.
161 (c_pretty_printer::multiplicative_expression): Rename from
162 pp_c_multiplicative_expression. Adjust.
163 (c_pretty_printer::conditional_expression): Rename from
164 pp_c_conditional_expression. Adjust.
165 (c_pretty_printer::assignment_expression): Rename from
166 pp_c_assignment_expression. Adjust.
167 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
168 (c_pretty_printer::c_pretty_printer): Do not assign to
169 unary_expression, multiplicative_expression,
170 conditional_expression, expression.
172 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
174 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
175 virtual member function.
176 (pp_postfix_expression): Adjust.
177 (pp_c_postfix_expression): Remove.
178 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
179 from pp_c_postfix_expression. Adjust.
180 (c_pretty_printer::c_pretty_printer): Do not assign to
183 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
185 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
186 virtua member function.
187 (pp_primary_expression): Adjust.
188 (pp_c_primary_expression): Remove.
189 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
190 from pp_c_primary_expression. Adjust.
191 (pp_c_initializer_list): Use pp_primary_expression.
192 (c_pretty_printer::c_pretty_printer): Do not assign to
195 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
197 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
198 * c-pretty-print.c (M_): Remove.
199 (c_pretty_printer::translate_string): Define.
200 (pp_c_type_specifier): Use it.
201 (pp_c_primary_expression): Likewise.
202 (pp_c_expression): Likewise.
204 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
206 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
208 (pp_c_id_expression): Remove.
209 (pp_id_expression): Adjust.
210 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
211 pp_c_id_expression. Adjust.
212 (pp_c_postfix_expression): Use pp_id_expression.
213 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
215 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
217 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
219 (pp_constant): Adjust.
220 (pp_c_constant): Remove.
221 * c-pretty-print.c (c_pretty_printer::constant): Rename from
222 pp_c_constant. Adjust.
224 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
225 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
227 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
229 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
230 (c_pretty_printer::c_pretty_printer): Declare.
231 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
232 c_pretty_printer_init. Adjust.
233 (print_c_tree): Do not call c_pretty_printer_init.
234 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
236 2013-08-09 Arnaud Charlet <charlet@adacore.com>
238 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
240 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
243 * c-common.c (pointer_int_sum): Add bool parameter.
244 * c-common.h (pointer_int_sum): Adjust declaration.
246 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
248 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
249 c_pretty_printer variable.
251 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
253 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
255 (pp_c_base): Likewise. Adjust users.
256 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
257 (pp_c_whitespace): Do not call pp_base.
258 (pp_c_left_paren): Likewise.
259 (pp_c_right_paren): Likewise.
260 (pp_c_left_brace): Likewise.
261 (pp_c_right_brace): Likewise.
262 (pp_c_left_bracket): Likewise.
263 (pp_c_right_bracket): Likewise.
264 (pp_c_dot): Likewise.
265 (pp_c_ampersand): Likewise.
266 (pp_c_star): Likewise.
267 (pp_c_arrow): Likewise.
268 (pp_c_semicolon): Likewise.
269 (pp_c_complement): Likewise.
270 (pp_c_exclamation): Likewise.
271 (pp_c_direct_declarator): Likewise.
272 (pp_c_ws_string): Likewise.
273 (pp_c_identifier): Likewise.
274 (pp_c_statement): Likewise.
275 (print_c_tree): Likewise.
277 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
280 * c-common.c (c_parse_error): Catch user-defined literal tokens and
281 provide useful error strings.
283 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
285 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
286 printer functions instead of pp_string or operators and punctuators.
287 (dump_generic_ada_node): Likewise.
288 * c-pretty-print.c (pp_c_type_specifier): Likewise.
289 (pp_c_relational_expression): Likewise.
290 (pp_c_logical_or_expression): Likewise.
292 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
294 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
295 functions instead of pp_character.
296 (pp_ada_tree_identifier): Likewise.
297 (dump_ada_double_name): Likewise.
298 (dump_ada_function_declaration): Likewise.
299 (dump_ada_array_domains): Likewise.
300 (dump_template_types): Likewise.
301 (dump_generic_ada_node): Likewise.
302 (print_ada_declaration): Likewise.
303 (print_ada_struct_decl): Likewise.
304 * c-pretty-print.c (pp_c_integer_constant): Likewise.
306 2013-07-23 Tom Tromey <tromey@redhat.com>
308 * c-common.h (enum rid) <RID_GENERIC>: New constant.
309 * c-common.c (c_common_reswords): Add _Generic.
311 2013-07-21 OndÅej BÃlka <neleai@seznam.cz>
313 * c-common.c: Fix typos.
314 * c-common.h: Likewise.
316 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
319 * c-common.c (c_common_attribute_table): Add warn_unused.
320 (handle_warn_unused_attribute): New.
322 2013-07-10 Jakub Jelinek <jakub@redhat.com>
324 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
325 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
327 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
330 * c.opt: Add Wconditionally-supported.
332 2013-07-08 Graham Stott <graham.stott@btinternet.com>
334 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
335 unused variables l_length and l_node.
337 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
340 * c-common.c (complete_array_type): Delay folding first index
341 like other indices. When folding, check for index overflow.
343 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
346 * c-common.h (c_build_vec_perm_expr): New complain argument.
347 * c-common.c (c_build_vec_perm_expr): Likewise.
348 Use save_expr also in C++.
350 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
352 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
353 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
354 * c-opts.c (c_common_post_options): Likewise.
356 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
358 * array-notation-common.c (length_mismatch_in_expr): Changed the
359 parameter type's from a dynamic array to a vec_tree. Also removed
361 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
364 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
366 * c-common.h (struct cilkplus_an_parts): New structure.
367 (struct cilkplus_an_loop_parts): Likewise.
368 (cilkplus_extract_an_triplets): New prototype.
369 (fix_sec_implicit_args): Likewise.
370 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
371 (fix_sec_implicit_args): Likewise.
373 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
375 * array-notation-common.c (find_inv_trees): Removed an unwanted
377 * c-common.h (struct inv_list::additional_tcodes): Changed type from
378 enum rid to enum tree_code.
380 2013-06-11 Jan Hubicka <jh@suse.cz>
382 * c-common.c (handle_alias_ifunc_attribute): Do not set
383 DECL_EXTERNAL for weakref variables.
384 * c-pragma.c (handle_pragma_weak): Make sure aliases
385 are not declared as external.
387 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
389 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
390 function from c/c-array-notation.c.
391 (is_cilkplus_reduce_builtin): Likewise.
392 (find_rank): Likewise.
393 (extract_array_notation_exprs): Likewise.
394 (replace_array_notations): Likewise.
395 (find_inv_trees): Likewise.
396 (replace_inv_trees): Likewise.
397 (contains_array_notation_expr): Likewise.
398 (find_correct_array_notation_type): Likewise.
399 * c-common.h (struct inv_list): Moved this struct from the file
400 c/c-array-notation.c and added a new field called additional tcodes.
401 (length_mismatch_in_expr_p): New prototype.
402 (is_cilkplus_reduce_builtin): Likewise.
403 (find_rank): Likewise.
404 (extract_array_notation_exprs): Likewise.
405 (replace_array_notation): Likewise.
406 (find_inv_trees): Likewise.
407 (replace_inv_trees): Likewise.
408 (find_correct_array_notation_type): Likewise.
410 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
412 * c-common.c (c_define_builtins): When cilkplus is enabled, the
413 function array_notation_init_builtins is called.
414 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
415 * c-common.def (ARRAY_NOTATION_REF): New tree.
416 * c-common.h (build_array_notation_expr): New function declaration.
417 (build_array_notation_ref): Likewise.
418 (extract_sec_implicit_index_arg): New extern declaration.
419 (is_sec_implicit_index_fn): Likewise.
420 (ARRAY_NOTATION_CHECK): New define.
421 (ARRAY_NOTATION_ARRAY): Likewise.
422 (ARRAY_NOTATION_START): Likewise.
423 (ARRAY_NOTATION_LENGTH): Likewise.
424 (ARRAY_NOTATION_STRIDE): Likewise.
425 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
427 (pp_c_expression): Likewise.
428 * c.opt (flag_enable_cilkplus): New flag.
429 * array-notation-common.c: New file.
431 2013-05-14 Jakub Jelinek <jakub@redhat.com>
434 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
436 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
438 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
441 2013-05-07 Han Shen <shenhan@google.com>
443 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
445 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
447 * c-common.c (check_user_alignment): Emit error for negative values.
449 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
451 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
453 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
455 * c-cppbuiltin.c (c_cpp_builtins): Do not define
456 __GXX_EXPERIMENTAL_CXX1Y__.
458 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
459 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
461 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
462 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
463 to simply use OPT_Wpointer_arith.
464 (c_sizeof_or_alignof_type): Likewise.
466 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
468 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
470 2013-04-12 Jakub Jelinek <jakub@redhat.com>
472 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
473 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
476 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
478 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
480 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
482 * c-common.c (pointer_int_sum): Remove dead code.
484 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
487 * c-common.c (handle_optimize_attribute): Don't call
488 save_optabs_if_changed.
490 2013-03-05 Jakub Jelinek <jakub@redhat.com>
493 * c-pch.c (pch_init): Free target_validity at the end.
495 2013-03-04 Jakub Jelinek <jakub@redhat.com>
497 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
499 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
500 Jakub Jelinek <jakub@redhat.com>
503 * c-common.c (handle_no_sanitize_address_attribute): New function.
504 (c_common_attribute_table): Add no_sanitize_address attribute.
505 (handle_no_address_safety_analysis_attribute): Add
506 no_sanitize_address attribute, not no_address_safety_analysis
509 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
512 * c-common.c (handle_optimize_attribute): Call
513 save_optabs_if_changed.
515 2013-02-18 Jakub Jelinek <jakub@redhat.com>
516 Steven Bosscher <steven@gcc.gnu.org>
519 * c-opts.c (c_common_post_options): If debug info is enabled
520 and non-dwarf*, refuse to load PCH files and when writing PCH
523 2013-02-05 Jakub Jelinek <jakub@redhat.com>
526 * c-common.c (handle_error_attribute): Fix condition.
528 2013-01-30 Jakub Jelinek <jakub@redhat.com>
531 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
533 2013-01-18 Jason Merrill <jason@redhat.com>
536 * c.opt (-fextern-tls-init): New.
537 * c-opts.c (c_common_post_options): Handle it.
539 2013-01-09 Jakub Jelinek <jakub@redhat.com>
542 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
543 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
544 and is either negative or bigger or equal to type precision
545 of the first operand.
547 2012-12-03 Marek Polacek <polacek@redhat.com>
550 * c-common.c (check_user_alignment): Swap order of tests,
551 check TREE_CODE first.
553 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
556 * c-common.h (overflow_type): New enum.
557 (build_userdef_literal): Add overflow_type argument.
558 (tree_userdef_literal): Add overflow_type.
559 (USERDEF_LITERAL_OVERFLOW): New access macro.
560 * c-common.c (build_userdef_literal): Add overflow_type
562 * c-lex.c (c_lex_with_flags): Add overflow_type to
563 build_userdef_literal calls.
564 (interpret_integer, interpret_float): Add overflow_type argument.
566 2012-11-28 Richard Biener <rguenther@suse.de>
569 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
570 here and use a type with proper overflow behavior for types that would
571 need to be promoted for the arithmetic.
573 2012-11-23 Jakub Jelinek <jakub@redhat.com>
576 * c-common.c (handle_no_address_safety_analysis_attribute): New
578 (c_common_attribute_table): Add no_address_safety_analysis.
580 2012-11-16 Simon Baldwin <simonb@google.com>
582 * c.opt: Add f[no-]canonical-system-headers.
583 * c-opts.c (c_common_handle_option): Handle
584 OPT_fcanonical_system_headers.
586 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
589 * c-opts.c (c_common_handle_option): Set new flags.
590 * c.opt: Describe new flags.
592 2012-11-09 Jason Merrill <jason@redhat.com>
594 * c.opt (Wabi-tag): New.
596 2012-11-09 Andi Kleen <ak@linux.intel.com>
599 * c-common.c (get_atomic_generic_size): Mask with
602 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
605 * c.opt (Wformat): Make it Alias Wformat=1.
606 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
607 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
609 (Wformat=): RejectNegative. Use LangEnabledBy.
610 (Wnonnull): Use LangEnabledBy.
611 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
612 * c-format.c (set_Wformat): Delete.
613 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
614 (maybe_read_dollar_number): Likewise.
615 (avoid_dollar_number): Likewise.
616 (finish_dollar_format_checking): Likewise.
617 (check_format_info): Likewise.
618 (check_format_info_main): Likewise.
619 (check_format_types): Likewise.
620 (format_type_warning): Likewise.
621 * c-common.c (int): Likewise.
622 (check_function_sentinel): Likewise.
623 * c-common.h (warn_format,set_Wformat): Do not declare here.
625 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
628 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
629 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
631 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
633 (Wvariadic-macros): Init(1).
634 * c-opts.c (c_common_handle_option): Do not handle them
636 (c_common_post_options): Likewise.
637 (sanitize_cpp_opts): warn_unused_macros is now
638 cpp_warn_unused_macros.
639 (push_command_line_include): Likewise.
640 * c-common.c (warn_unknown_pragmas): Do not define.
641 * c-common.h (warn_unknown_pragmas): Do not declare.
643 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
646 * c-common.c (conversion_warning): Handle conditional expressions.
648 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
651 * c.opt (Wreturn_local_addr): Define new option.
653 2012-10-25 Jason Merrill <jason@redhat.com>
655 * c.opt (Wvirtual-move-assign): New.
657 * c.opt (Winherited-variadic-ctor): New.
659 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
662 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
664 2012-10-23 Joseph Myers <joseph@codesourcery.com>
666 * c-common.h (pch_cpp_save_state): Declare.
667 * c-target.def (c_preinclude): New hook.
668 * c-opts.c (done_preinclude): New.
669 (push_command_line_include): Handle default preincluded header.
670 (cb_file_change): Call pch_cpp_save_state when calling
671 push_command_line_include.
672 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
673 (pch_cpp_save_state): New.
674 (pch_init): Call pch_cpp_save_state conditionally, instead of
675 calling cpp_save_state.
677 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
681 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
682 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
683 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
684 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
685 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
686 * c-opts.c (c_common_handle_option): Remove explicit handling from
688 (c_common_post_options): Likewise.
690 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
692 * c-ada-spec.c (LOCATION_COL): Delete.
693 (compare_location): New function.
694 (compare_node): Use it.
695 (compare_comment): Likewise.
697 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
701 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
702 * c-opts.c (c_common_handle_option): Do not set them here. Add
704 (c_common_post_options): Likewise.
706 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
708 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
709 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
710 Remove POINTER_TYPE handling, add large unsigned handling and use
711 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
713 2012-10-12 Jakub Jelinek <jakub@redhat.com>
716 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
717 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
718 locs and array of 3 trees instead of just single loc and single
719 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
720 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
721 For *cmp* builtins that take two sources strings report warnings
722 about first and second source, not about destination and source.
724 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
727 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
729 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
731 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
732 declaring something coming from another file.
734 2012-10-10 Arnaud Charlet <charlet@adacore.com>
737 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
739 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
742 * c-common.c (warn_about_parentheses): Add location_t parameter;
744 * c-common.h: Update declaration.
746 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
749 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
750 more operations. Make error messages optional.
751 * c-common.h (enum stv_conv): Moved from c-typeck.c.
752 (scalar_to_vector): Declare.
754 2012-10-08 Jason Merrill <jason@redhat.com>
756 * c-common.c (c_common_reswords): Add thread_local.
758 2012-10-08 Dodji Seketeli <dodji@redhat.com>
760 PR c++/53528 C++11 attribute support
761 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
763 * c-common.c (check_cxx_fundamental_alignment_constraints): New
765 (handle_aligned_attribute): In choose strictest alignment
766 among many. Use new check_cxx_fundamental_alignment_constraints.
767 (handle_transparent_union_attribute): In c++11 attribute syntax,
768 don't look through typedefs.
770 2012-10-04 Arnaud Charlet <charlet@adacore.com>
772 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
773 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
776 2012-09-25 Dehao Chen <dehao@google.com>
779 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
780 map when read in the pch.
782 2012-09-18 Arnaud Charlet <charlet@adacore.com>
784 * c-ada-spec.c: Style fixes.
786 2012-09-18 Thomas Quinot <quinot@adacore.com>
788 * c.opt (-fada-spec-parent): Define new command line switch.
789 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
790 is specified, generate binding spec as a child of the specified unit.
792 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
793 Manuel López-Ibáñez <manu@gcc.gnu.org>
796 * c.opt ([Winit-self]): Enabled by -Wall in C++.
798 2012-08-23 Arnaud Charlet <charlet@adacore.com>
800 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
801 for pointers, and add missing Convention C pragma.
802 (print_ada_struct_decl): Add missing aliased keyword.
803 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
805 2012-08-17 Jakub Jelinek <jakub@redhat.com>
807 * c-common.c (sizeof_pointer_memaccess_warning): New function.
808 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
809 * c-opts.c (c_common_handle_option): Enable it for -Wall.
810 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
811 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
813 2012-08-10 Richard Guenther <rguenther@suse.de>
815 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
817 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
819 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
820 instead of separate pp_newline and pp_flush.
821 (print_c_tree): Likewise.
823 2012-07-26 Richard Henderson <rth@redhat.com>
825 * c-common.c (handle_hot_attribute): Allow labels.
826 (handle_cold_attribute): Likewise.
828 2012-07-20 Jakub Jelinek <jakub@redhat.com>
831 * c-common.c (check_function_nonnull): Handle multiple nonnull
834 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
836 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
837 * c-ada-spec.c: Likewise.
838 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
840 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
842 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
843 Remove code conditional on it.
845 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
847 * c-gimplify.c: Do not include basic-block.h.
848 * c-common.c: Do not include linfuncs.h.
850 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
852 * c-common.h: Include tree.h.
854 2012-07-02 Jason Merrill <jason@redhat.com>
857 * c-common.c (get_priority): Call default_conversion.
859 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
861 * c-pch.c (c_common_write_pch): Remove unused variables.
863 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
865 * cppspec.c: Moved from gcc/ to here.
867 2012-06-27 Kai Tietz <ktietz@redhat.com>
869 PR preprocessor/37215
870 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
872 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
874 * c-common.h (c_common_print_pch_checksum): Remove.
875 * c-pch.c: Do not include output.h.
876 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
877 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
878 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
879 (struct c_pch_header): Remove.
880 (get_ident): Update gpch version.
881 (pch_init): Do not print executable_checksum to asm_out_file.
882 Do not fail if there is no asm_out_file to read back from. Set
883 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
884 (c_common_write_pch): Verify that nothing was written to asm_out_file
885 since pch_init was called. Do not write a c_pch_header, and do not
886 copy from asm_out_file to the PCH.
887 (c_common_read_pch): Do not read a c_pch_header, and do not restore
888 the content of asm_out_file from the PCH.
889 (c_common_print_pch_checksum): Remove.
890 * c-opts.c (c_common_init): Print out executable_checksum directly.
892 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
894 * c-target.def (objc_declare_unresolved_class_reference,
895 objc_declare_class_definition): Add new hooks.
897 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
899 * c-lex.c: Do not include output.h.
900 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
901 Remove uses of ASM_OUTPUT_IDENT.
903 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
906 * c-common.h (c_build_vec_perm_expr): Move decl here.
907 * c-common.c (c_build_vec_perm_expr): Move definition
910 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
912 * c.opt (fconserve-space): Turn into a no-op.
914 2012-06-04 Sterling Augustine <saugustine@google.com>
916 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
917 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
918 both the start and end of the function.
920 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
922 * c-common.c: Do not include output.h.
923 * c-pragma.c: Likewise.
925 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
927 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
928 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
929 (lang_decl_name): Handle namespace decls.
931 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
933 * c-ada-spec.c: Do not include output.h.
934 * c-semantics.c: Likewise.
936 2012-05-29 Joseph Myers <joseph@codesourcery.com>
938 * c-common.c: Fix typo.
940 2012-05-29 Michael Matz <matz@suse.de>
942 * c-common.h (c_expand_decl): Remove prototype.
944 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
946 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
947 * c-opts.c (c_common_handle_option): Remove code handling
950 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
953 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
956 2012-05-22 Dodji Seketeli <dodji@redhat.com>
959 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
961 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
963 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
964 * c-opts.c (c_common_handle_option): Do not handle explicitly
965 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
967 2012-05-16 Dodji Seketeli <dodji@redhat.com>
970 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
971 to cpp_classify_number. For diagnostics, use the precise location
972 instead of the global input_location.
974 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
977 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
979 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
981 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
983 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
986 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
987 Wreorder): Use LangEnabledBy.
988 * c-opts.c (c_common_handle_option): Do not enable them
989 explicitly. Call lang-specific generated functions.
990 (c_common_post_options): Do not set them here.
992 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
994 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
995 Wmissing-field-initializers,Wmissing-parameter-type,
996 Wold-style-declaration,Woverride-init): Use EnabledBy.
997 * c-opts.c (c_common_post_options): Do not set here explicitly.
999 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1002 * c-opts.c (c_common_handle_option): Use handle_generated_option
1003 to enable sub-options.
1005 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1008 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1010 2012-05-10 Richard Guenther <rguenther@suse.de>
1012 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1013 adjust commentary about TYPE_IS_SIZETYPE types.
1015 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1018 * c-common.c (warn_logical_operator): Check that argument of
1019 integer_zerop is not NULL.
1021 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1024 * c-common.c (warn_logical_operator): Do not warn if either side
1025 is already true or false.
1027 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1030 * c-common.c (expr_original_type): New.
1031 (shorten_compare): Do not warn for enumeration types.
1033 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1035 * c.opt (fpermissive): Add Var(flag_permissive).
1037 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1040 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1041 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1043 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1045 Add -Wvarargs option
1046 * c.opt (Wvarargs): Define new option.
1048 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1050 * c-common.c (check_function_arguments): Replace
1051 Wmissing-format-attribute with Wsuggest-attribute=format.
1053 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1055 * c.opt (Wsuggest-attribute=format): New. Alias of
1056 Wmissing-format-attribute.
1057 * c-format.c (decode_format_type): Replace
1058 Wmissing-format-attribute with Wsuggest-attribute=format.
1059 (check_function_format): Likewise.
1061 2012-04-27 Ollie Wild <aaw@google.com>
1063 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1064 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1065 * c.opt: Add Wliteral-suffix.
1067 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1070 * c.opt (Wpedantic): New.
1071 (pedantic): Alias Wpedantic.
1072 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1073 (c_common_post_options): Likewise.
1074 (sanitize_cpp_opts): Likewise.
1075 * c-lex.c (interpret_float): Likewise.
1076 * c-format.c (check_format_types): Likewise.
1077 * c-common.c (pointer_int_sum): Likewise.
1078 (c_sizeof_or_alignof_type): Likewise.
1079 (c_add_case_label): Likewise.
1080 (c_do_switch_warnings): Likewise.
1081 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1083 2012-04-15 Jason Merrill <jason@redhat.com>
1086 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1087 (C_STD_NAME): Distinguish between C++98 and C++11.
1089 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1092 * c-common.h (uint16_type_node): Rename into...
1093 (c_uint16_type_node): ...this.
1094 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1095 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1097 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1099 * c-common.c (warn_if_unused_value): Move definition to here.
1100 * c-common.h (warn_if_unused_value): Move declaration to here.
1102 2012-03-23 William Bader <williambader@hotmail.com>
1104 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1106 2012-03-20 Jason Merrill <jason@redhat.com>
1108 * c-common.h (enum cxx_dialect): Add cxx1y.
1109 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1111 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1112 * c-opts.c (c_common_post_options): Likewise.
1113 (set_std_cxx1y): New.
1114 (c_common_handle_option): Call it.
1115 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1117 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1120 * c.opt ([Wuseless-cast]): Add.
1122 2012-03-16 Richard Guenther <rguenther@suse.de>
1124 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1126 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1129 * c.opt (ftemplate-backtrace-limit) Add.
1131 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1133 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1135 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1136 (init_pragma): Don't register extern_prefix.
1138 2012-03-12 Richard Guenther <rguenther@suse.de>
1140 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1141 (builtin_type_for_size): Likewise.
1143 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1146 * c-common.c (sync_resolve_params): Don't decide whether to convert
1147 or not based on TYPE_SIZE comparison, convert whenever arg_type
1148 is unsigned INTEGER_TYPE.
1150 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1153 * c.opt ([Wunused-local-typedefs]): Fix description.
1155 2012-01-24 Mike Stump <mikestump@comcast.net>
1157 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1160 2012-01-18 Richard Guenther <rguenther@suse.de>
1162 * c-opts.c (c_common_post_options): Reset LTO flags if
1163 we are about to generate a PCH.
1165 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1168 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1169 use pp_unsigned_wide_integer.
1171 2012-01-10 Richard Guenther <rguenther@suse.de>
1174 * c-opts.c (c_common_handle_option): Move -Werror handling
1175 to language independent code.
1177 2012-01-05 Richard Guenther <rguenther@suse.de>
1180 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1183 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1186 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1187 of array types with an unknown bound.
1189 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1191 * c-common.c (flag_isoc99): Update comment to refer to C11.
1192 (flag_isoc1x): Change to flag_isoc11.
1193 * c-common.h (flag_isoc99): Update comment to refer to C11.
1194 (flag_isoc1x): Change to flag_isoc11.
1195 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1197 * c-opts.c (set_std_c1x): Change to set_std_c11.
1198 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1200 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1201 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1202 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1204 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1205 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1206 (std=gnu1x): Make alias of std=gnu11.
1208 2011-12-19 Jason Merrill <jason@redhat.com>
1211 * c-common.c (handle_transparent_union_attribute): Check the first
1212 field if the type is complete.
1214 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1217 * c-common.c (RID_IS_FINAL): Add.
1218 * c-common.h (RID_IS_FINAL): Add.
1220 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1222 * c.opt (fgnu-runtime): Provide full description.
1223 (fnext-runtime): Likewise.
1224 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1226 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1228 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1229 predefines in one place. Add LOCK_FREE predefines.
1230 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1233 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1236 * c-common.c (get_atomic_generic_size): Check for various error
1238 (resolve_overloaded_atomic_exchange,
1239 resolve_overloaded_atomic_compare_exchange,
1240 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1241 error_mark_node for error conditions.
1243 2011-11-08 Richard Guenther <rguenther@suse.de>
1248 2011-11-07 Richard Henderson <rth@redhat.com>
1249 Aldy Hernandez <aldyh@redhat.com>
1250 Torvald Riegel <triegel@redhat.com>
1252 Merged from transactional-memory.
1254 * c-common.c (handle_tm_wrap_attribute,
1255 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1256 (struct c_common_reswords): Added __transaction* keywords.
1257 (struct c_common_attribute_table): Added transaction* and tm_regparm
1259 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1261 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1262 find_tm_attribute): Declare.
1264 2011-11-07 Jason Merrill <jason@redhat.com>
1267 * c-common.c, c-common.h: Revert yesterday's changes.
1269 2011-11-06 Jason Merrill <jason@redhat.com>
1272 * c-common.c (decl_has_visibility_attr): Split out from...
1273 (c_determine_visibility): ...here.
1274 * c-common.h: Declare it.
1276 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1278 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1279 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1281 (check_user_alignment): New. Split out of
1282 handle_aligned_attribute. Disallow integer constants with
1283 noninteger types. Conditionally allow zero.
1284 (handle_aligned_attribute): Use check_user_alignment.
1285 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1287 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1288 Richard Henderson <rth@redhat.com>
1290 Merged from cxx-mem-model.
1292 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1293 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1294 parameters that are the same type size.
1295 (get_atomic_generic_size): New. Find size of generic
1296 atomic function parameters and do typechecking.
1297 (add_atomic_size_parameter): New. Insert size into parameter list.
1298 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1299 either __atomic_exchange_n or external library call.
1300 (resolve_overloaded_atomic_compare_exchange): Restructure
1301 __atomic_compare_exchange to either _n variant or external library call.
1302 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1303 __atomic_load_n or an external library call.
1304 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1305 __atomic_store_n or an external library call.
1306 (resolve_overloaded_builtin): Handle new __atomic builtins.
1308 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1311 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1312 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1313 <INDIRECT_REF>: Return the argument.
1314 <ARRAY_REF>: Remove special code for negative offset.
1315 Call fold_build_pointer_plus instead of size_binop.
1316 (fold_offsetof): Remove STOP_REF argument and adjust.
1317 * c-common.h (fold_offsetof_1): Declare.
1318 (fold_offsetof): Remove STOP_REF argument.
1320 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1323 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1324 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1325 Wnarrowing for C++0x and C++98.
1326 * c.opt ([Wnarrowing]): Update.
1328 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1331 * c.opt: Add Wzero-as-null-pointer-constant.
1333 2011-10-31 Jason Merrill <jason@redhat.com>
1335 * c.opt (-fdeduce-init-list): Off by default.
1338 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1339 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1341 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1343 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1346 * c.opt (fvisibility-inlines-hidden): Description change.
1348 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1350 Implement C++11 user-defined literals.
1351 * c-common.c (build_userdef_literal): New.
1352 * c-common.def: New tree code.
1353 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1354 * c-lex.c (interpret_float): Add suffix parm.
1355 (c_lex_with_flags): Build literal tokens.
1357 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1361 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1364 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1365 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1366 Wnarrowing for C++0x and C++98.
1367 * c.opt ([Wnarrowing]): Update.
1369 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1372 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1373 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1374 Wnarrowing for C++0x and C++98.
1375 * c.opt ([Wnarrowing]): Update.
1377 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1380 * c-common.c (conversion_warning): Remove code looking for
1381 artificial operands.
1383 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1386 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1387 !NO_IMPLICIT_EXTERN_C.
1389 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1391 * c-common.c (c_common_reswords): Add __bases,
1393 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1395 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1398 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1400 2011-10-15 Tom Tromey <tromey@redhat.com>
1401 Dodji Seketeli <dodji@redhat.com>
1403 * c.opt (fdebug-cpp): New option.
1404 * c-opts.c (c_common_handle_option): Handle the option.
1405 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1406 output stream in parameter. Factorized from ...
1407 (maybe_print_line): ... this. Dump location debug information when
1408 -fdebug-cpp is in effect.
1409 (print_line_1): New static function. Takes an output stream in
1410 parameter. Factorized from ...
1411 (print_line): ... here. Dump location information when -fdebug-cpp
1413 (scan_translation_unit): Dump location information when
1414 -fdebug-cpp is in effect.
1416 2011-10-15 Tom Tromey <tromey@redhat.com>
1417 Dodji Seketeli <dodji@redhat.com>
1419 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1421 * c-opts.c (c_common_handle_option)<case
1422 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1423 cases. Handle -ftrack-macro-expansion with and without argument.
1425 2011-10-15 Tom Tromey <tromey@redhat.com>
1426 Dodji Seketeli <dodji@redhat.com>
1428 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1429 (print_line, cb_define, do_line_change): Adjust to avoid touching
1430 the internals of struct line_map. Use the public API instead.
1431 * c-pch.c (c_common_read_pch): Likewise.
1432 * c-lex.c (fe_file_change): Likewise.
1434 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1437 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1439 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1442 * c-pretty-print.c (pp_c_floating_constant): Output
1443 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1445 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1447 * c-common.c (def_builtin_1): Delete old interface with two
1448 parallel arrays to hold standard builtin declarations, and replace
1449 it with a function based interface that can support creating
1450 builtins on the fly in the future. Change all uses, and poison
1451 the old names. Make sure 0 is not a legitimate builtin index.
1452 * c-omp.c (c_finish_omp_barrier): Ditto.
1453 (c_finish_omp_taskwait): Ditto.
1454 (c_finish_omp_flush): Ditto.
1456 2011-10-11 Tristan Gingold <gingold@adacore.com>
1458 * c.opt: (fallow-parameterless-variadic-functions): New.
1460 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1462 PR c++/33255 - Support -Wunused-local-typedefs warning
1463 * c-common.h (struct c_language_function::local_typedefs): New
1465 (record_locally_defined_typedef, maybe_record_typedef_use)
1466 (maybe_warn_unused_local_typedefs): Declare new functions.
1467 * c-common.c (record_locally_defined_typedef)
1468 (maybe_record_typedef_use)
1469 (maybe_warn_unused_local_typedefs): Define new functions.
1470 * c.opt: Declare new -Wunused-local-typedefs flag.
1472 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1475 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1478 2011-09-05 Richard Guenther <rguenther@suse.de>
1480 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1481 of integer_minus_one_node for empty array upper bounds.
1483 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1485 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1486 it's the first time it's being called on this main TU.
1488 2011-08-24 Richard Guenther <rguenther@suse.de>
1491 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1493 2011-08-22 Gabriel Charette <gchare@google.com>
1495 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1496 defined in cpp_init_builtins and c_cpp_builtins.
1498 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1500 * c-common.c (c_common_reswords): Add __builtin_complex.
1501 * c-common.h (RID_BUILTIN_COMPLEX): New.
1503 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1505 * c-common.c (c_common_reswords): Add _Noreturn.
1506 (keyword_is_function_specifier): Handle RID_NORETURN.
1507 * c-common.h (RID_NORETURN): New.
1509 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1511 * c-common.c (unsafe_conversion_p): New function. Check if it is
1512 unsafe to convert an expression to the type.
1513 (conversion_warning): Adjust, use unsafe_conversion_p.
1514 * c-common.h (unsafe_conversion_p): New function declaration.
1516 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1518 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1519 (c_finish_omp_taskyield): New prototype.
1520 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1521 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1522 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1523 or RHS1 have side-effects, evaluate those too in the right spot,
1524 if it is a decl and LHS is also a decl, error out if they
1526 (c_finish_omp_taskyield): New function.
1527 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1528 * c-pragma.c (omp_pragmas): Add taskyield.
1529 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1530 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1531 PRAGMA_OMP_CLAUSE_MERGEABLE.
1533 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1535 * c-common.h (set_underlying_type): Remove parm name from
1538 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1540 * c-pretty-print.h: Search c-common.h in c-family.
1542 2011-07-22 Jason Merrill <jason@redhat.com>
1545 * c.opt (Wnarrowing): New.
1548 * c-common.h: Declare c_linkage_bindings.
1549 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1552 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1553 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1554 as flag_isoc99 for 'restrict'.
1555 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1557 2011-07-21 Ian Lance Taylor <iant@google.com>
1560 * c-common.c (c_disable_warnings): New static function.
1561 (c_enable_warnings): New static function.
1562 (c_fully_fold_internal): Change local unused_p to bool. Call
1563 c_disable_warnings and c_enable_warnings rather than change
1564 c_inhibit_evaluation_warnings.
1566 2011-07-20 Jason Merrill <jason@redhat.com>
1568 PR c++/6709 (DR 743)
1569 PR c++/42603 (DR 950)
1570 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1571 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1572 (CPP_DECLTYPE): New.
1573 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1575 2011-07-19 Richard Guenther <rguenther@suse.de>
1577 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1578 * c-omp.c (c_finish_omp_for): Likewise.
1580 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1582 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1583 body on the next line.
1585 2011-07-08 Jason Merrill <jason@redhat.com>
1588 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1591 * c-common.c (c_apply_type_quals_to_decl): Don't check
1592 TYPE_NEEDS_CONSTRUCTING.
1594 2011-07-06 Richard Guenther <rguenther@suse.de>
1596 * c-common.c (c_common_nodes_and_builtins):
1597 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1599 2011-07-05 Richard Guenther <rguenther@suse.de>
1601 * c-common.c (c_common_nodes_and_builtins): Build all common
1604 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1606 * c-common.h (c_tree_chain_next): New static inline function.
1608 * c-common.c (check_builtin_function_arguments): Handle
1609 BUILT_IN_ASSUME_ALIGNED.
1611 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1613 * c-common.c: Add sync_ or SYNC__ to builtin names.
1614 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1616 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1618 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1620 (gen_pragma_handler): New union.
1621 (internal_pragma_handler): New type.
1622 (c_register_pragma_with_data)
1623 (c_register_pragma_with_expansion_and_data): New functions.
1625 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1626 (c_register_pragma, c_register_pragma_with_expansion)
1627 (c_invoke_pragma_handler): Changed to work with
1628 internal_pragma_handler.
1629 (c_register_pragma_with_data)
1630 (c_register_pragma_with_expansion_and_data): New functions.
1632 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1634 * c-common.c: Include common/common-target.h.
1635 (handle_section_attribute): Use
1636 targetm_common.have_named_sections.
1637 * c-cppbuiltin.c: Include common/common-target.h.
1638 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1640 2011-06-10 Richard Guenther <rguenther@suse.de>
1642 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1643 to print a IDENTIFIER_NODE.
1645 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1646 Joseph Myers <joseph@codesourcery.com>
1648 * c.opt (fbuilding-libgcc): New option.
1649 * c-cppbuiltin.c (c_cpp_builtins): Define
1650 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1652 2011-06-07 Jason Merrill <jason@redhat.com>
1654 * c-common.c (max_tinst_depth): Lower default to 900.
1656 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1658 2011-06-07 Richard Guenther <rguenther@suse.de>
1660 * c-common.c (c_common_nodes_and_builtins): Do not set
1661 size_type_node or call set_sizetype.
1663 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1666 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1667 type when using pointer comparison to compare types.
1669 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1671 * c.opt: Add -Wdelete-non-virtual-dtor.
1672 * c-opts.c (c_common_handle_option): Include it in -Wall.
1674 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1679 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1681 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1684 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1687 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1688 C++ don't call c_common_truthvalue_conversion on void type arms.
1690 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1692 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1693 (stmt_list_stack): Define.
1694 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1695 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1697 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1699 * c-common.c (warning_candidate_p): Check for BLOCKs.
1701 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1703 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1706 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1708 * c-common.c (def_fn_type): Remove extra va_end.
1710 2011-05-23 Jason Merrill <jason@redhat.com>
1713 * c-common.c (c_common_get_narrower): New.
1714 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1716 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1718 * c-common.h (check_function_arguments): Tweak prototype of
1719 check_function_arguments.
1720 * c-common.c (check_function_arguments): Likewise. Adjust
1721 calls to check_function_nonnull, check_function_format, and
1722 check_function_sentinel.
1723 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1724 separate attributes and typelist arguments. Use
1725 FOREACH_FUNCTION_ARGS to iterate over argument types.
1727 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1729 * c-common.c (c_common_reswords): Reorder.
1730 * c-common.h (rid): Likewise.
1732 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1734 * c-common.c (def_fn_type): Don't call build_function_type, call
1735 build_function_type_array or build_varargs_function_type_array
1737 (c_common_nodes_and_builtins): Likewise.
1739 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1741 * c-common.c (c_add_case_label): Omit the loc argument to
1743 * c-common.h (build_case_label): Remove.
1744 * c-semantics.c (build_case_label): Remove.
1746 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1748 * c-objc.h (objc_start_method_definition): Update prototype.
1749 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1751 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1753 * c-common.c (check_main_parameter_types): Reindent. Don't use
1754 TYPE_ARG_TYPES directly.
1755 (handle_nonnull_attribute): Likewise.
1756 (sync_resolve_params): Likewise.
1757 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1758 to check_format_string.
1759 (handle_format_attribute): Likewise.
1760 (check_format_string): Take a function type to examine instead of
1761 a type list. Use a function_arg_iterator to step through argument
1764 2011-05-04 Richard Guenther <rguenther@suse.de>
1766 * c-common.c (fix_string_type): Use size_int for index type bounds.
1767 (start_fname_decls): Do not pass NULL to build_int_cst.
1768 (c_init_attributes): Likewise.
1769 * c-lex.c (c_lex_with_flags): Likewise.
1771 2011-04-27 Jason Merrill <jason@redhat.com>
1773 * c-common.c (make_tree_vector_from_list): New.
1774 * c-common.h: Declare it.
1776 2011-04-26 Richard Guenther <rguenther@suse.de>
1778 PR preprocessor/48248
1779 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1780 for output size with -P.
1782 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1784 * c-common.c (struct c_common_resword): Add __underlying_type.
1785 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1787 2011-04-20 Jim Meyering <meyering@redhat.com>
1789 * c-format.c (init_dollar_format_checking): Remove useless
1792 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1794 * c-objc.h (objc_get_interface_ivars): Removed.
1795 (objc_detect_field_duplicates): New.
1796 * stub-objc.c: Likewise.
1798 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1800 * stub-objc.c (objc_declare_protocols): Renamed to
1801 objc_declare_protocol.
1802 * c-objc.h: Likewise.
1804 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1806 * stub-objc.c (objc_declare_class): Updated argument name.
1808 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1810 * c-common.h (c_common_init_ts): Declare.
1811 * c-common.c (c_common_init_ts): Define.
1813 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1815 * c-objc.h (objc_build_message_expr): Updated prototype.
1816 * stub-objc.c (objc_build_message_expr): Likewise.
1818 2011-04-12 Martin Jambor <mjambor@suse.cz>
1820 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1823 2011-04-11 Richard Guenther <rguenther@suse.de>
1825 * c-common.c (complete_array_type): Build a range type of
1828 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1830 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1831 (handle_type_generic_attribute): Likewise.
1833 2011-04-07 Jason Merrill <jason@redhat.com>
1836 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1837 conversion from C++0x scoped enum.
1839 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1841 * c-target-def.h: New file.
1842 * c-target.def: New file.
1843 * c-target.h: New file.
1844 * c-common.c (targetcm): Don't define here.
1845 * c-common.h (default_handle_c_option): Declare.
1846 * c-format.c: Include c-target.h instead of target.h.
1847 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1849 (default_handle_c_option): Move from targhooks.c.
1851 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1853 PR preprocessor/48248
1854 * c-ppoutput.c (print): Add src_file field.
1855 (init_pp_output): Initialize it.
1856 (maybe_print_line): Don't optimize by adding up to 8 newlines
1857 if map->to_file and print.src_file are different file.
1858 (print_line): Update print.src_file.
1860 2011-03-25 Kai Tietz <ktietz@redhat.com>
1862 * c-ada-spec.c (compare_comment): Use filename_cmp
1863 instead of strcmp for filename.
1865 2011-03-25 Jeff Law <law@redhat.com>
1867 * c-family/c-common.c (def_fn_type): Add missing va_end.
1869 2011-03-25 Jason Merrill <jason@redhat.com>
1871 * c.opt: Add -std=c++03.
1873 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1875 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1877 2011-03-17 Kai Tietz
1880 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1881 Display allowed attributes for function pointer types.
1882 (pp_c_attributes_display): New function to display
1883 attributes having affects_type_identity flag set to true.
1884 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1886 * c-common.c (c_common_attribute_table):
1888 (c_common_format_attribute_table): Likewise.
1890 2011-03-18 Jason Merrill <jason@redhat.com>
1892 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1893 * c-common.h: Don't declare it here.
1894 * c-common.c: Or define it here.
1895 * c-opts.c (c_common_handle_option): Or set it here.
1898 * c-common.c (handle_transparent_union_attribute): Don't
1899 make a duplicate type in C++.
1901 2011-03-15 Jason Merrill <jason@redhat.com>
1903 * c-common.c (max_constexpr_depth): New.
1904 * c-common.h: Declare it.
1905 * c-opts.c (c_common_handle_option): Set it.
1906 * c.opt (fconstexpr-depth): New option.
1908 2011-03-11 Jason Merrill <jason@redhat.com>
1910 * c-common.c (attribute_takes_identifier_p): Add missing const.
1913 * c-common.c (attribute_takes_identifier_p): Assume that an
1914 unknown attribute takes an identifier.
1916 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1919 * c-common.c (c_type_hash): Call list_length instead of iterating
1920 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1922 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1925 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1927 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1929 * c.opt (fobjc-abi-version=) New.
1930 (fobjc-nilcheck): New.
1932 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1935 * c-common.h (keyword_is_decl_specifier): Declare.
1936 * c-common.c (keyword_is_decl_specifier): Define.
1937 (keyword_is_function_specifier): New function.
1939 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1942 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1943 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1946 2011-01-26 Arnaud Charlet <charlet@adacore.com>
1948 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1950 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1953 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1954 after init_c_lex if pch_file is set.
1956 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1959 * c.opt (-fkeep-inline-dllexport): New switch.
1961 2011-01-12 Richard Guenther <rguenther@suse.de>
1964 * c-common.c (handle_weak_attribute): Warn instead of error
1965 on declaring an inline function weak.
1967 2011-01-05 Tom Tromey <tromey@redhat.com>
1969 * c-common.h (lvalue_error): Update.
1970 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1973 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1976 * c-objc.h (objc_finish_message_expr): Added argument to
1979 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1981 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1984 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1986 * c-objc.h (objc_maybe_warn_exceptions): New.
1987 * stub-objc.c (objc_maybe_warn_exceptions): New.
1989 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1991 * c-common.h (readonly_error): Declare.
1992 * c-common.c (readonly_error): Define.
1994 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1996 * c-common.h (invalid_indirection_error): Declare.
1997 * c-common.c (invalid_indirection_error): Define.
1999 2010-12-03 Richard Guenther <rguenther@suse.de>
2002 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2003 (pp_c_unary_expression): Likewise.
2004 (pp_c_expression): Likewise.
2006 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2008 * c-common.h (objc_finish_function): New.
2009 (objc_non_volatilized_type): Removed.
2010 (objc_type_quals_match): Removed.
2011 * stub-objc.c (objc_finish_function): New.
2012 (objc_non_volatilized_type): Removed.
2013 (objc_type_quals_match): Removed.
2015 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2017 * c-common.h (parse_optimize_options): Declare.
2018 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2019 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2021 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2023 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2025 * c-pch.c (O_BINARY): Don't define here.
2026 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2028 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2030 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2031 targetm.except_unwind_info.
2033 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2035 * c-opts.c (c_common_handle_option): Pass location to
2036 set_struct_debug_option.
2038 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2040 * c-common.c (visibility_options): Move from ../opts.c.
2041 * c-common.h (struct visibility_flags, visibility_options):
2043 * c-opts.c (finish_options): Rename to c_finish_options.
2044 (c_common_init): Update call to finish_options.
2046 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2049 * c-lex.c (lex_string): Check that each string in an Objective-C
2050 string concat sequence starts with either one or zero '@', and
2051 that there are no spurious '@' signs at the end.
2053 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2055 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2056 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2057 HANDLE_PRAGMA_VISIBILITY.
2058 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2059 HANDLE_PRAGMA_VISIBILITY): Don't define.
2060 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2062 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2067 * c-common.h (keyword_begins_type_specifier): Declare.
2068 (keyword_is_storage_class_specifier): Declare.
2069 (keyword_is_type_qualifier): Declare.
2070 * c-common.c (keyword_begins_type_specifier): New function.
2071 (keyword_is_storage_class_specifier): New function.
2072 (keyword_is_type_qualifier): Declare.
2074 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2077 * c-common.c (in_late_binary_op): Define.
2078 (c_common_truthvalue_conversion): Check in_late_binary_op before
2079 calling c_save_expr.
2080 * c-common.h (in_late_binary_op): Declare.
2082 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2084 * c-opts.c (c_common_handle_option): Update calls to
2085 set_struct_debug_option.
2087 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2089 * c-common.h (objc_declare_protocols): Added additional argument.
2090 * stub-objc.c (objc_declare_protocol): Same change.
2092 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2095 * c-common.h (build_real_imag_expr): Declare.
2096 * c-semantics.c (build_real_imag_expr): Define.
2098 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2100 * c-opts.c (c_common_parse_file): Take no arguments.
2101 * c-common.h (c_common_parse_file): Update prototype.
2103 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2106 * c-common.c (warning_candidate_p): Don't track non-const calls
2109 2010-11-15 Ian Lance Taylor <iant@google.com>
2111 * c-lex.c (init_c_lex): Set macro debug callbacks if
2112 flag_dump_go_spec is set.
2114 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2116 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2117 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2119 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2121 PR preprocessor/45038
2122 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2125 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2127 * c-common.h (c_family_lang_mask): Declare.
2128 * c-opts.c (c_family_lang_mask): Make extern.
2129 * c-pragma.c (handle_pragma_diagnostic): Use
2130 control_warning_option.
2132 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2134 * c-common.c (parse_optimize_options): Update call to
2136 * c-common.h (c_common_handle_option): Update prototype.
2137 * c-opts.c (c_common_handle_option): Take location_t parameter and
2138 pass it to other functions.
2140 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2142 * c-opts.c (warning_as_error_callback): Remove.
2143 (c_common_initialize_diagnostics): Don't call
2144 register_warning_as_error_callback.
2145 (c_common_handle_option): Handle -Werror=normalized= here.
2147 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2149 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2151 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2153 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2154 Remove trailing '.' from diagnostics.
2155 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2157 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2159 * c-common.c (parse_optimize_options): Pass global_dc to
2161 * c-opts.c (c_common_handle_option): Pass &global_options to
2162 set_Wstrict_aliasing.
2163 * c.opt (v): Don't mark Common or document here.
2165 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2168 * c-format.c (format_type): New type gcc_objc_string_format_type.
2169 (valid_stringptr_type_p): New.
2170 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2171 (check_format_string): Pass expected type, use
2172 valid_stringptr_type_p (), check that the format string types are
2173 consistent with the format specification.
2174 (decode_format_attr): Warn if NSString is used outside objective-c.
2175 (format_types_orig): Add NSString.
2177 (format_flags): New.
2178 (check_format_arg): Handle format strings requiring an external parser.
2179 first_target_format_type: New variable.
2180 (handle_format_attribute): Set up first_target_format_type, pass the
2181 expected format arg string type to check_format_string().
2182 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2183 * stub-objc.c (objc_string_ref_type_p): New.
2184 (objc_check_format_arg): New.
2186 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2188 Fixed using the Objective-C 2.0 dot-syntax with class names.
2189 * c-common.h (objc_build_class_component_ref): New.
2190 * stub-objc.c (objc_build_class_component_ref): New.
2192 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2194 * c.opt (Wproperty-assign-default): New option.
2196 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2198 Implemented -fobjc-std=objc1 flag.
2199 * c.opt (fobjc-std=objc1): New option.
2201 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2203 Implemented format and noreturn attributes for Objective-C methods.
2204 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2205 attribute for Objective-C methods.
2207 2010-10-31 Jason Merrill <jason@redhat.com>
2209 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2212 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2214 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2215 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2216 (objc_add_property_declaration): Removed arguments for copies and
2218 (objc_build_getter_call): Renamed to
2219 objc_maybe_build_component_ref.
2220 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2221 (objc_is_property_ref): New.
2222 * c-common.c (c_common_reswords): Removed copies and ivar.
2223 * stub-objc.c (objc_add_property_declaration): Removed arguments
2224 for copies and ivar.
2225 (objc_build_getter_call): Renamed to
2226 objc_maybe_build_component_ref.
2227 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2228 (objc_is_property_ref): New.
2230 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2231 Matthew Gingell <gingell@adacore.com>
2233 * c-ada-spec.c (separate_class_package): New function.
2234 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2235 name of their enclosing package.
2236 (print_ada_declaration): Use separate_class_package.
2238 2010-10-27 Jason Merrill <jason@redhat.com>
2240 * c-common.c (c_common_reswords): Add __is_literal_type.
2241 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2243 * c-common.c (check_case_value): Remove special C++ code.
2245 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2247 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2248 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2250 (objc_add_property_declaration): Added additional arguments.
2251 (objc_property_attribute_kind): Removed.
2252 (objc_set_property_attr): Removed.
2253 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2255 * stub-objc.c (objc_add_property_declaration): Added additional
2257 (objc_set_property_attr): Removed.
2259 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2261 * c-common.h (objc_add_property_variable): Renamed to
2262 objc_add_property_declaration. Added location argument.
2263 * stub-objc.c (objc_add_property_variable): Same change.
2265 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2267 * c-common.h (objc_maybe_printable_name): New.
2268 * stub-objc.c (objc_maybe_printable_name): New.
2270 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2271 Andrew Pinski <pinskia@gmail.com>
2273 * c-common.h (c_common_mark_addressable_vec): Declare.
2274 * c-common.c (c_common_mark_addressable_vec): New function.
2276 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2278 * c-common.h (objc_set_method_type): Removed.
2279 (objc_add_method_declaration): Added boolean argument.
2280 (objc_start_method_definition): Same change.
2281 (objc_build_method_signature): Same change.
2282 * stub-objc.c (objc_set_method_type): Removed.
2283 (objc_add_method_declaration): Added boolean argument.
2284 (objc_start_method_definition): Same change.
2285 (objc_build_method_signature): Same change.
2287 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2289 * c-common.h (finish_file): Removed.
2290 (objc_write_global_declarations): New.
2291 * c-opts.c (c_common_parse_file): Do not call finish_file.
2292 * stub-objc.c (objc_write_global_declarations): New.
2294 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2296 Implemented parsing @synthesize and @dynamic for
2297 Objective-C/Objective-C++.
2298 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2299 (objc_add_synthesize_declaration): New.
2300 (objc_add_dynamic_declaration): New.
2301 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2302 * stub-objc.c (objc_add_synthesize_declaration): New.
2303 (objc_add_dynamic_declaration): New.
2305 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2308 * c-cppbuiltin.c (mode_has_fma): Move function here from
2309 builtins.c. Don't use the fma optab, instead just use the
2310 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2313 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2315 Merge from 'apple/trunk' branch on FSF servers.
2317 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2320 * c-common.h (objc_non_volatilized_type): New declaration
2321 * stub-objc.c (objc_non_volatilized_type): New stub.
2323 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2325 Merge from 'apple/trunk' branch on FSF servers.
2327 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2330 * c-common.h (objc_diagnose_private_ivar): New decl.
2331 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2333 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2335 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2336 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2337 (objc_ivar_visibility_kind): New enum.
2338 (objc_set_visibility): Adjust prototype to use visibility enum.
2339 * stub-objc.c (objc_set_visibility): Adjust stub to use
2342 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2344 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2345 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2346 has the appropriate fma builtins.
2347 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2349 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2351 merge from FSF apple 'trunk' branch.
2352 2006 Fariborz Jahanian <fjahanian@apple.com>
2354 Radars 4436866, 4505126, 4506903, 4517826
2355 * c-common.c (c_common_resword): Define @property and its attributes.
2356 * c-common.h: Define property attribute enum entries.
2357 (OBJC_IS_PATTR_KEYWORD): New.
2358 (objc_property_attribute_kind): New enum.
2359 Declare objc_set_property_attr (), objc_add_property_variable (),
2360 objc_build_getter_call () and objc_build_setter_call ().
2361 * stub-objc.c (objc_set_property_attr): New stub.
2362 (objc_add_property_variable): Likewise.
2363 (objc_build_getter_call): Likewise.
2364 (objc_build_setter_call) Likewise.
2366 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2368 merge from FSF apple 'trunk' branch.
2369 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2371 Radar 3803157 (method attributes)
2372 * c-common.c (handle_deprecated_attribute): Recognize
2373 objc methods as valid declarations.
2374 * c-common.h: Declare objc_method_decl ().
2375 * stub-objc.c (objc_method_decl): New stub.
2377 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2379 * c-common.c (parse_optimize_options): Call
2380 decode_cmdline_options_to_array_default_mask before
2381 decode_options. Update arguments to decode_options.
2382 * c-common.h (c_common_init_options_struct): Declare.
2383 * c-opts.c (c_common_init_options_struct): New. Split out from
2384 c_common_init_options.
2386 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2388 Implemented fast enumeration for Objective-C.
2389 * c-common.h (objc_finish_foreach_loop): New.
2390 * stub-objc.c (objc_finish_foreach_loop): New.
2392 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2394 * c-common.h (struct diagnostic_context): Don't declare here.
2395 (c_common_initialize_diagnostics): Declare using
2396 diagnostic_context typedef.
2397 * c-opts.c (c_common_handle_option): Pass global_dc to
2398 handle_generated_option.
2400 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2402 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2403 handle_generated_option.
2405 2010-10-03 Ian Lance Taylor <iant@google.com>
2407 * c.opt (-fplan9-extensions): New option.
2409 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2411 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2413 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2414 of duplicating code.
2416 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2418 * c-common.c: Add two new entries for @optional
2419 and @required keywords.
2421 merge from FSF 'apple/trunk' branch.
2422 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2425 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2426 objective-c keywords.
2427 (objc_set_method_opt): New declaration.
2428 * stub-objc.c (objc_set_method_opt): New stub.
2430 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2432 * c-common.c (handle_optimize_attribute): Pass &global_options to
2433 cl_optimization_save and cl_optimization_restore.
2434 * c-opts.c (c_common_handle_option): Pass &global_options to
2435 handle_generated_option.
2436 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2437 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2438 &global_options to cl_optimization_restore.
2440 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2442 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2443 Objective-C/Objective-C++ keywords.
2445 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2447 Merge from 'apple/trunk' branch on FSF servers.
2449 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2452 * c-common.h (objc_check_global_decl): New declaration.
2453 * stub-objc.c (objc_check_global_decl): New stub.
2455 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2457 * c.opt: Don't use VarExists.
2459 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2461 * c-common.c (c_cpp_error): Update names of diagnostic_context
2463 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2464 cl_optimization members.
2465 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2466 sanitize_cpp_opts, finish_options): Update names of cpp_options
2469 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2471 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2472 (objc_is_reserved_word): Removed.
2473 * c-common.c: Updated comments.
2474 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2475 objc_is_reserved_word.
2476 * stub-objc.c (objc_is_reserved_word): Removed.
2478 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2480 * c-common.h (objc_add_method_declaration): Adjust prototype to
2482 (objc_start_method_definition): Likewise.
2483 (objc_build_keyword_decl): Likewise.
2484 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2485 (objc_start_method_definition): Likewise.
2486 (objc_build_keyword_decl): Likewise.
2488 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2490 * c-common.h (objc_start_class_interface): Adjust prototype.
2491 (objc_start_category_interface): Likewise.
2492 (objc_start_protocol): Likewise.
2493 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2494 (objc_start_class_interface): Likewise.
2495 (objc_start_category_interface): Likewise.
2497 2010-09-27 Ian Lance Taylor <iant@google.com>
2499 * c-common.c (c_common_attribute_table): Add no_split_stack.
2500 (handle_no_split_stack_attribute): New static function.
2502 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2504 Merge from 'apple/trunk' branch on FSF servers.
2506 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2509 * c-common.h (objc_have_common_type): New declaration.
2510 * stub-objc.c (objc_have_common_type): New stub.
2512 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2515 * c-common.h (objc_common_type): New prototype.
2516 * stub-objc.c (objc_common_type): New stub.
2518 2010-09-24 Jan Hubicka <jh@suse.cz>
2520 * c-common.c (handle_leaf_attribute): New function.
2521 (struct attribute_spec c_common_att): Add leaf.
2523 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2525 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2526 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2527 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2528 -include-barrier, -include-directory, -include-directory=,
2529 -include-directory-after, -include-directory-after=,
2530 -include-prefix, -include-prefix=, -include-with-prefix,
2531 -include-with-prefix=, -include-with-prefix-after,
2532 -include-with-prefix-after=, -include-with-prefix-before,
2533 -include-with-prefix-before=, -no-integrated-cpp,
2534 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2535 -output=, -pedantic, -pedantic-errors, -preprocess,
2536 -print-missing-file-dependencies, -trace-includes, -traditional,
2537 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2538 -user-dependencies, -verbose, -write-dependencies,
2539 -write-user-dependencies, no-integrated-cpp, traditional): New.
2541 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2544 * c-common.h (objc_start_method_definition): Return bool instead
2546 * stub-objc.c (objc_start_method_definition): Return bool instead
2549 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2552 * c-common.h (objc_get_interface_ivars): New declaration.
2553 * stub-objc.c (objc_get_interface_ivars): New stub.
2555 2010-09-15 Ian Lance Taylor <iant@google.com>
2557 * c-common.c (parse_optimize_options): Do not capitalize warning
2558 messages. Remove period at end of warning message.
2560 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2562 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2563 (handle_alias_attribute): ... here.
2564 (handle_ifunc_attribute): New.
2566 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2568 * c-common.h (do_warn_double_promotion): Declare.
2569 * c-common.c (do_warn_double_promotion): Define.
2571 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2573 * c.opt (Wdouble-promotion): New.
2575 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2577 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2578 fvtable-thunks, fxref): Mark no longer supported in help text.
2580 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2582 * c.opt (Wimport, fall-virtual, falt-external-templates,
2583 fdefault-inline, fenum-int-equiv, fexternal-templates,
2584 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2585 fname-mangling-version-, fnew-abi, fnonnull-objects,
2586 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2587 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2589 (fhandle-exceptions): Mark with Alias and Warn.
2590 * c-opts.c (c_common_handle_option): Don't handle options marked
2593 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2595 * c.opt (Wcomments, Werror-implicit-function-declaration,
2596 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2597 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2599 * c-common.c (option_codes): Use OPT_Wcomment instead of
2601 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2602 Don't handle options marked as aliases.
2604 2010-08-25 Richard Guenther <rguenther@suse.de>
2606 * c-common.c (c_common_get_alias_set): Remove special
2607 handling for pointers.
2609 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2611 * c-common.c: Use FOR_EACH_VEC_ELT.
2612 * c-gimplify.c: Likewise.
2613 * c-pragma.c: Likewise.
2615 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2617 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2619 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2621 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2622 instead of OPT_MDX and OPT_MMDX.
2624 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2626 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2628 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2630 * c.opt (MD, MMD): Change to MDX and MMDX.
2631 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2633 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2635 * c-opts.c (c_common_handle_option): Call handle_generated_option
2636 instead of handle_option.
2638 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2640 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2641 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2643 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2645 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2646 (pending_redefine_extname): Change type to a VEC.
2647 (add_to_renaming_pragma_list): Update for new type of
2648 pending_redefine_extname.
2649 (maybe_apply_renaming_pragma): Likewise.
2651 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2653 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2655 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2656 decide whether a type has already been declared/seen.
2657 Do not go to the original type.
2658 (dump_nested_types): New parameter forward.
2659 Generate forward declaration if needed and mark type as visited.
2660 (print_ada_declaration): Call dump_nested_types if not already done.
2661 Mark types as visited.
2663 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2665 * c.opt (-print-pch-checksum): Remove option.
2666 * c-opts.c (c_common_handle_option): Don't handle
2667 OPT_print_pch_checksum.
2669 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2671 * c-common.h (c_common_handle_option): Update prototype and return
2673 * c-opts.c (c_common_handle_option): Update prototype and return
2674 value type. Update calls to handle_option and
2675 enable_warning_as_error.
2677 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2680 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2682 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2684 * c-common.h (c_common_missing_argument): Remove.
2685 * c-opts.c (c_common_missing_argument): Remove.
2686 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2687 idirafter, imacros, include, isysroot, isystem, iquote): Add
2689 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2691 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2693 * c-common.h (c_common_option_lang_mask,
2694 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2696 (c_common_init_options): Update prototype.
2697 * c-opts.c (c_common_option_lang_mask): New.
2698 (c_common_initialize_diagnostics): Split out of
2699 c_common_init_options.
2700 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2702 (c_common_init_options): Update prototype. Use decoded options in
2703 search for -lang-asm.
2705 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2707 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2708 * c-format.c: Likewise.
2710 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2712 * c-common.h: Include diagnostic-core.h. Error if already
2714 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2716 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2718 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2719 Do not include expr.h
2720 (vector_mode_valid_p): Move here.
2722 2010-06-21 DJ Delorie <dj@redhat.com>
2724 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2725 allow these pragmas anywhere.
2727 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2730 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2731 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2732 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2733 ggc_strdup instead of xstrdup.
2735 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2737 * c-cppbuiltin.c: Include cpp-id-data.h.
2738 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2739 (lazy_hex_fp_value): New function.
2740 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2742 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2744 * c-gimplify.c: Do not include tree-flow.h
2746 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2749 * c-common.c: Rename targetm member:
2750 targetm.enum_va_list -> targetm.enum_va_list_p
2752 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2754 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2756 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2758 * c-cppbuiltin.c: Do not include except.h.
2760 2010-06-24 Andi Kleen <ak@linux.intel.com>
2762 * c-common.c (warn_for_omitted_condop): New.
2763 * c-common.h (warn_for_omitted_condop): Add prototype.
2765 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2767 * c.opt (lang-objc): Remove.
2768 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2770 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2772 * c-opts.c: Include "tm_p.h".
2774 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2776 * c-common.c (parse_optimize_options): Update call to
2779 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2781 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2782 new type of types_used_by_cur_var_decl.
2784 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2787 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2788 for C++ standard compliance.
2790 2010-06-16 Jason Merrill <jason@redhat.com>
2792 * c.opt: Add -Wnoexcept.
2794 2010-06-16 Richard Guenther <rguenther@suse.de>
2797 * c-common.c (c_common_truthvalue_conversion): Remove
2798 premature and wrong optimization concering ADDR_EXPRs.
2800 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2802 * c-ada-spec.c (dump_sloc): Remove column info.
2803 (is_simple_enum): New function.
2804 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2805 enum types when relevant.
2807 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2809 * c-common.c (conversion_warning): Warn at expression
2812 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2814 * c-opts.c (c_common_handle_option): Don't handle
2817 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2819 * c-pragma.c (push_alignment): Use typed GC allocation.
2820 (handle_pragma_push_options): Likewise.
2822 * c-common.c (parse_optimize_options): Likewise.
2824 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2827 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2829 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2830 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2831 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2832 flag_signed_bitfields, warn_strict_null_sentinel,
2833 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2834 flag_gen_declaration, flag_no_gnu_keywords,
2835 flag_implement_inlines, flag_implicit_templates,
2836 flag_implicit_inline_templates, flag_optional_diags,
2837 flag_elide_constructors, flag_default_inline, flag_rtti,
2838 flag_conserve_space, flag_access_control, flag_check_new,
2839 flag_new_for_scope, flag_weak, flag_working_directory,
2840 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2841 flag_enforce_eh_specs, flag_threadsafe_statics,
2842 flag_pretty_templates): Remove.
2843 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2844 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2845 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2846 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2847 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2848 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2849 flag_no_gnu_keywords, flag_implement_inlines,
2850 flag_implicit_templates, flag_implicit_inline_templates,
2851 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2852 flag_rtti, flag_conserve_space, flag_access_control,
2853 flag_check_new, flag_new_for_scope, flag_weak,
2854 flag_working_directory, flag_use_cxa_atexit,
2855 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2856 flag_threadsafe_statics, flag_pretty_templates,
2857 warn_strict_null_sentinel): Remove.
2858 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2859 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2860 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2861 fimplicit-inline-templates, fimplicit-templates,
2862 flax-vector-conversions, fms-extensions, fnil-receivers,
2863 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2864 frtti, fshort-double, fshort-enums, fshort-wchar,
2865 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2866 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2867 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2868 gen-decls, undef): Use Var.
2869 (fdefault-inline, foptional-diags): Document as doing nothing.
2870 * c-opts.c (c_common_handle_option): Remove cases for options now
2871 using Var. Mark ignored options as such.
2873 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2875 * c-common.c: Moved to here from parent directory.
2876 * c-common.def: Likewise.
2877 * c-common.h: Likewise.
2878 * c-cppbuiltin.c: Likewise.
2879 * c-dump.c: Likewise.
2880 * c-format.c: Likewise.
2881 * c-format.h : Likewise.
2882 * c-gimplify.c: Likewise.
2883 * c-lex.c: Likewise.
2884 * c-omp.c: Likewise.
2886 * c-opts.c: Likewise.
2887 * c-pch.c: Likewise.
2888 * c-ppoutput.c: Likewise.
2889 * c-pragma.c: Likewise.
2890 * c-pragma.h: Likewise.
2891 * c-pretty-print.c: Likewise.
2892 * c-pretty-print.h: Likewise.
2893 * c-semantics.c: Likewise.
2894 * stub-objc.c: Likewise.
2896 * c-common.c: Include gt-c-family-c-common.h.
2897 * c-pragma.c: Include gt-c-family-c-pragma.h.
2899 Copyright (C) 2010-2013 Free Software Foundation, Inc.
2901 Copying and distribution of this file, with or without modification,
2902 are permitted in any medium without royalty provided the copyright
2903 notice and this notice are preserved.