1 2013-09-13 Jacek Caban <jacek@codeweavers.com>
3 * c-target.def: New hook
5 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
8 * c.opt (Wdelete-incomplete): Add.
10 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
12 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
13 (vector_types_compatible_elements_p): New function.
14 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
16 (vector_types_compatible_elements_p): Declare.
18 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
20 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
21 a virtual member function.
22 (pp_simple_type_specifier): Remove.
23 (pp_c_type_specifier): Likewise.
24 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
25 Rename from pp_c_type_specifier. Adjust.
26 (c_pretty_printer::c_pretty_printer): Do not assign to
27 simple_type_specifier.
29 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
31 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
33 (c_pretty_printer::storage_class_specifier): Likewise.
34 (c_pretty_printer::initializer): Likewise.
35 (pp_declaration): Remove.
36 (pp_declaration_specifiers): Likewise.
37 (pp_abstract_declarator): Likewise.
38 (pp_declarator): Likewise.
39 (pp_type_id): Likewise.
40 (pp_statement): Likewise.
41 (pp_constant): Likewise.
42 (pp_id_expression): Likewise.
43 (pp_primary_expression): Likewise.
44 (pp_unary_expression): Likewise.
45 (pp_multiplicative_expression): Likewise.
46 (pp_conditional_expression): Likewise.
47 (pp_assignment_expression): Likewise.
48 (pp_expression): Likewise.
49 (pp_c_type_id): Likewise.
50 (pp_c_storage_class_specifier): Likewise.
51 * c-pretty-print.c (pp_c_type_cast): Tidy.
52 (pp_c_pointer): Likewise.
53 (pp_c_type_specifier): Likewise.
54 (pp_c_parameter_type_list): Likewise.
55 (pp_c_function_definition): Likewise.
56 (pp_c_init_declarator): Likewise.
57 (pp_c_initializer_list): Likewise.
58 (pp_c_constructor_elts): Likewise.
59 (c_pretty_printer::direct_abstract_declarator): Likewise.
60 (c_pretty_printer::declaration_specifiers): Likewise.
61 (c_pretty_printer::primary_expression): Likewise.
62 (c_pretty_printer::postfix_expression): Likewise.
63 (c_pretty_printer::type_id): Rename from pp_c_type_id.
64 (c_pretty_printer::storage_class_specifier): Rename from
65 pp_c_storage_class_specifier.
66 (c_pretty_printer::initializer): Rename from pp_c_initializer.
67 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
68 storage_class_specifier, initializer, offset_list, flags.
70 2013-08-30 Marek Polacek <polacek@redhat.com>
72 * c-ubsan.c: New file.
73 * c-ubsan.h: New file.
75 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
77 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
79 (c_pretty_printer::declaration_specifiers): Likewise.
80 (c_pretty_printer::declarator): Likewise.
81 (c_pretty_printer::abstract_declarator): Likewise.
82 (c_pretty_printer::direct_abstract_declarator): Likewise.
83 (c_pretty_printer::direct_declarator): Likewise.
84 (c_pretty_printer::function_specifier): Likewise.
85 (pp_declaration): Adjust.
86 (pp_declaration_specifiers): Likewise.
87 (pp_abstract_declarator): Likewise.
88 (pp_direct_declarator): Likewise.
89 (pp_function_specifier): Likewise.
90 (pp_direct_abstract_declarator): Remove as unused.
91 (pp_c_declaration): Remove.
92 (pp_c_declaration_specifiers): Likewise.
93 (pp_c_declarator): Likewise.
94 (pp_c_direct_declarator): Likewise.
95 (pp_c_function_specifier): Likewise.
96 (pp_c_direct_abstract_declarator): Likewise.
97 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
98 from pp_c_abstract_declarator. Adjust.
99 (c_pretty_printer::direct_abstract_declarator): Rename from
100 pp_c_direct_abstract_declarator. Adjust.
101 (c_pretty_printer::function_specifier): Rename from
102 pp_c_function_specifier. Adjust.
103 (c_pretty_printer::declaration_specifiers): Rename from
104 pp_c_declaration_specifiers. Adjust.
105 (c_pretty_printer::direct_declarator): Rename from
106 pp_c_direct_declarator. Adjust.
107 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
108 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
109 (c_pretty_printer::c_pretty_printer): Do not assign to
110 declaration, declaration_specifiers, declarator,
111 direct_declarator, direct_abstract_declarator, function_specifier.
113 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
115 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
116 virtual member function.
117 (c_pretty_printer::multiplicative_expression): Likewise.
118 (c_pretty_printer::conditional_expression): Likewise.
119 (c_pretty_printer::assignment_expression): Likewise.
120 (c_pretty_printer::expression): Likewise.
121 (pp_unary_expression): Adjust.
122 (pp_multiplicative_expression): Likewise.
123 (pp_assignment_expression): Likewise.
124 (pp_conditional_expression): Likewise.
125 (pp_expression): Likewise.
126 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
127 from pp_c_unary_expression. Adjust.
128 (c_pretty_printer::multiplicative_expression): Rename from
129 pp_c_multiplicative_expression. Adjust.
130 (c_pretty_printer::conditional_expression): Rename from
131 pp_c_conditional_expression. Adjust.
132 (c_pretty_printer::assignment_expression): Rename from
133 pp_c_assignment_expression. Adjust.
134 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
135 (c_pretty_printer::c_pretty_printer): Do not assign to
136 unary_expression, multiplicative_expression,
137 conditional_expression, expression.
139 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
141 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
142 virtual member function.
143 (pp_postfix_expression): Adjust.
144 (pp_c_postfix_expression): Remove.
145 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
146 from pp_c_postfix_expression. Adjust.
147 (c_pretty_printer::c_pretty_printer): Do not assign to
150 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
152 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
153 virtua member function.
154 (pp_primary_expression): Adjust.
155 (pp_c_primary_expression): Remove.
156 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
157 from pp_c_primary_expression. Adjust.
158 (pp_c_initializer_list): Use pp_primary_expression.
159 (c_pretty_printer::c_pretty_printer): Do not assign to
162 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
164 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
165 * c-pretty-print.c (M_): Remove.
166 (c_pretty_printer::translate_string): Define.
167 (pp_c_type_specifier): Use it.
168 (pp_c_primary_expression): Likewise.
169 (pp_c_expression): Likewise.
171 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
173 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
175 (pp_c_id_expression): Remove.
176 (pp_id_expression): Adjust.
177 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
178 pp_c_id_expression. Adjust.
179 (pp_c_postfix_expression): Use pp_id_expression.
180 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
182 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
184 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
186 (pp_constant): Adjust.
187 (pp_c_constant): Remove.
188 * c-pretty-print.c (c_pretty_printer::constant): Rename from
189 pp_c_constant. Adjust.
191 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
192 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
194 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
196 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
197 (c_pretty_printer::c_pretty_printer): Declare.
198 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
199 c_pretty_printer_init. Adjust.
200 (print_c_tree): Do not call c_pretty_printer_init.
201 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
203 2013-08-09 Arnaud Charlet <charlet@adacore.com>
205 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
207 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
210 * c-common.c (pointer_int_sum): Add bool parameter.
211 * c-common.h (pointer_int_sum): Adjust declaration.
213 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
215 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
216 c_pretty_printer variable.
218 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
220 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
222 (pp_c_base): Likewise. Adjust users.
223 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
224 (pp_c_whitespace): Do not call pp_base.
225 (pp_c_left_paren): Likewise.
226 (pp_c_right_paren): Likewise.
227 (pp_c_left_brace): Likewise.
228 (pp_c_right_brace): Likewise.
229 (pp_c_left_bracket): Likewise.
230 (pp_c_right_bracket): Likewise.
231 (pp_c_dot): Likewise.
232 (pp_c_ampersand): Likewise.
233 (pp_c_star): Likewise.
234 (pp_c_arrow): Likewise.
235 (pp_c_semicolon): Likewise.
236 (pp_c_complement): Likewise.
237 (pp_c_exclamation): Likewise.
238 (pp_c_direct_declarator): Likewise.
239 (pp_c_ws_string): Likewise.
240 (pp_c_identifier): Likewise.
241 (pp_c_statement): Likewise.
242 (print_c_tree): Likewise.
244 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
247 * c-common.c (c_parse_error): Catch user-defined literal tokens and
248 provide useful error strings.
250 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
252 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
253 printer functions instead of pp_string or operators and punctuators.
254 (dump_generic_ada_node): Likewise.
255 * c-pretty-print.c (pp_c_type_specifier): Likewise.
256 (pp_c_relational_expression): Likewise.
257 (pp_c_logical_or_expression): Likewise.
259 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
261 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
262 functions instead of pp_character.
263 (pp_ada_tree_identifier): Likewise.
264 (dump_ada_double_name): Likewise.
265 (dump_ada_function_declaration): Likewise.
266 (dump_ada_array_domains): Likewise.
267 (dump_template_types): Likewise.
268 (dump_generic_ada_node): Likewise.
269 (print_ada_declaration): Likewise.
270 (print_ada_struct_decl): Likewise.
271 * c-pretty-print.c (pp_c_integer_constant): Likewise.
273 2013-07-23 Tom Tromey <tromey@redhat.com>
275 * c-common.h (enum rid) <RID_GENERIC>: New constant.
276 * c-common.c (c_common_reswords): Add _Generic.
278 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
280 * c-common.c: Fix typos.
281 * c-common.h: Likewise.
283 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
286 * c-common.c (c_common_attribute_table): Add warn_unused.
287 (handle_warn_unused_attribute): New.
289 2013-07-10 Jakub Jelinek <jakub@redhat.com>
291 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
292 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
294 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
297 * c.opt: Add Wconditionally-supported.
299 2013-07-08 Graham Stott <graham.stott@btinternet.com>
301 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
302 unused variables l_length and l_node.
304 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
307 * c-common.c (complete_array_type): Delay folding first index
308 like other indices. When folding, check for index overflow.
310 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
313 * c-common.h (c_build_vec_perm_expr): New complain argument.
314 * c-common.c (c_build_vec_perm_expr): Likewise.
315 Use save_expr also in C++.
317 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
319 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
320 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
321 * c-opts.c (c_common_post_options): Likewise.
323 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
325 * array-notation-common.c (length_mismatch_in_expr): Changed the
326 parameter type's from a dynamic array to a vec_tree. Also removed
328 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
331 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
333 * c-common.h (struct cilkplus_an_parts): New structure.
334 (struct cilkplus_an_loop_parts): Likewise.
335 (cilkplus_extract_an_triplets): New prototype.
336 (fix_sec_implicit_args): Likewise.
337 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
338 (fix_sec_implicit_args): Likewise.
340 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
342 * array-notation-common.c (find_inv_trees): Removed an unwanted
344 * c-common.h (struct inv_list::additional_tcodes): Changed type from
345 enum rid to enum tree_code.
347 2013-06-11 Jan Hubicka <jh@suse.cz>
349 * c-common.c (handle_alias_ifunc_attribute): Do not set
350 DECL_EXTERNAL for weakref variables.
351 * c-pragma.c (handle_pragma_weak): Make sure aliases
352 are not declared as external.
354 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
356 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
357 function from c/c-array-notation.c.
358 (is_cilkplus_reduce_builtin): Likewise.
359 (find_rank): Likewise.
360 (extract_array_notation_exprs): Likewise.
361 (replace_array_notations): Likewise.
362 (find_inv_trees): Likewise.
363 (replace_inv_trees): Likewise.
364 (contains_array_notation_expr): Likewise.
365 (find_correct_array_notation_type): Likewise.
366 * c-common.h (struct inv_list): Moved this struct from the file
367 c/c-array-notation.c and added a new field called additional tcodes.
368 (length_mismatch_in_expr_p): New prototype.
369 (is_cilkplus_reduce_builtin): Likewise.
370 (find_rank): Likewise.
371 (extract_array_notation_exprs): Likewise.
372 (replace_array_notation): Likewise.
373 (find_inv_trees): Likewise.
374 (replace_inv_trees): Likewise.
375 (find_correct_array_notation_type): Likewise.
377 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
379 * c-common.c (c_define_builtins): When cilkplus is enabled, the
380 function array_notation_init_builtins is called.
381 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
382 * c-common.def (ARRAY_NOTATION_REF): New tree.
383 * c-common.h (build_array_notation_expr): New function declaration.
384 (build_array_notation_ref): Likewise.
385 (extract_sec_implicit_index_arg): New extern declaration.
386 (is_sec_implicit_index_fn): Likewise.
387 (ARRAY_NOTATION_CHECK): New define.
388 (ARRAY_NOTATION_ARRAY): Likewise.
389 (ARRAY_NOTATION_START): Likewise.
390 (ARRAY_NOTATION_LENGTH): Likewise.
391 (ARRAY_NOTATION_STRIDE): Likewise.
392 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
394 (pp_c_expression): Likewise.
395 * c.opt (flag_enable_cilkplus): New flag.
396 * array-notation-common.c: New file.
398 2013-05-14 Jakub Jelinek <jakub@redhat.com>
401 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
403 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
405 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
408 2013-05-07 Han Shen <shenhan@google.com>
410 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
412 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
414 * c-common.c (check_user_alignment): Emit error for negative values.
416 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
418 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
420 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
422 * c-cppbuiltin.c (c_cpp_builtins): Do not define
423 __GXX_EXPERIMENTAL_CXX1Y__.
425 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
426 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
428 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
429 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
430 to simply use OPT_Wpointer_arith.
431 (c_sizeof_or_alignof_type): Likewise.
433 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
435 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
437 2013-04-12 Jakub Jelinek <jakub@redhat.com>
439 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
440 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
443 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
445 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
447 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
449 * c-common.c (pointer_int_sum): Remove dead code.
451 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
454 * c-common.c (handle_optimize_attribute): Don't call
455 save_optabs_if_changed.
457 2013-03-05 Jakub Jelinek <jakub@redhat.com>
460 * c-pch.c (pch_init): Free target_validity at the end.
462 2013-03-04 Jakub Jelinek <jakub@redhat.com>
464 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
466 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
467 Jakub Jelinek <jakub@redhat.com>
470 * c-common.c (handle_no_sanitize_address_attribute): New function.
471 (c_common_attribute_table): Add no_sanitize_address attribute.
472 (handle_no_address_safety_analysis_attribute): Add
473 no_sanitize_address attribute, not no_address_safety_analysis
476 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
479 * c-common.c (handle_optimize_attribute): Call
480 save_optabs_if_changed.
482 2013-02-18 Jakub Jelinek <jakub@redhat.com>
483 Steven Bosscher <steven@gcc.gnu.org>
486 * c-opts.c (c_common_post_options): If debug info is enabled
487 and non-dwarf*, refuse to load PCH files and when writing PCH
490 2013-02-05 Jakub Jelinek <jakub@redhat.com>
493 * c-common.c (handle_error_attribute): Fix condition.
495 2013-01-30 Jakub Jelinek <jakub@redhat.com>
498 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
500 2013-01-18 Jason Merrill <jason@redhat.com>
503 * c.opt (-fextern-tls-init): New.
504 * c-opts.c (c_common_post_options): Handle it.
506 2013-01-09 Jakub Jelinek <jakub@redhat.com>
509 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
510 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
511 and is either negative or bigger or equal to type precision
512 of the first operand.
514 2012-12-03 Marek Polacek <polacek@redhat.com>
517 * c-common.c (check_user_alignment): Swap order of tests,
518 check TREE_CODE first.
520 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
523 * c-common.h (overflow_type): New enum.
524 (build_userdef_literal): Add overflow_type argument.
525 (tree_userdef_literal): Add overflow_type.
526 (USERDEF_LITERAL_OVERFLOW): New access macro.
527 * c-common.c (build_userdef_literal): Add overflow_type
529 * c-lex.c (c_lex_with_flags): Add overflow_type to
530 build_userdef_literal calls.
531 (interpret_integer, interpret_float): Add overflow_type argument.
533 2012-11-28 Richard Biener <rguenther@suse.de>
536 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
537 here and use a type with proper overflow behavior for types that would
538 need to be promoted for the arithmetic.
540 2012-11-23 Jakub Jelinek <jakub@redhat.com>
543 * c-common.c (handle_no_address_safety_analysis_attribute): New
545 (c_common_attribute_table): Add no_address_safety_analysis.
547 2012-11-16 Simon Baldwin <simonb@google.com>
549 * c.opt: Add f[no-]canonical-system-headers.
550 * c-opts.c (c_common_handle_option): Handle
551 OPT_fcanonical_system_headers.
553 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
556 * c-opts.c (c_common_handle_option): Set new flags.
557 * c.opt: Describe new flags.
559 2012-11-09 Jason Merrill <jason@redhat.com>
561 * c.opt (Wabi-tag): New.
563 2012-11-09 Andi Kleen <ak@linux.intel.com>
566 * c-common.c (get_atomic_generic_size): Mask with
569 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
572 * c.opt (Wformat): Make it Alias Wformat=1.
573 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
574 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
576 (Wformat=): RejectNegative. Use LangEnabledBy.
577 (Wnonnull): Use LangEnabledBy.
578 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
579 * c-format.c (set_Wformat): Delete.
580 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
581 (maybe_read_dollar_number): Likewise.
582 (avoid_dollar_number): Likewise.
583 (finish_dollar_format_checking): Likewise.
584 (check_format_info): Likewise.
585 (check_format_info_main): Likewise.
586 (check_format_types): Likewise.
587 (format_type_warning): Likewise.
588 * c-common.c (int): Likewise.
589 (check_function_sentinel): Likewise.
590 * c-common.h (warn_format,set_Wformat): Do not declare here.
592 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
595 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
596 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
598 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
600 (Wvariadic-macros): Init(1).
601 * c-opts.c (c_common_handle_option): Do not handle them
603 (c_common_post_options): Likewise.
604 (sanitize_cpp_opts): warn_unused_macros is now
605 cpp_warn_unused_macros.
606 (push_command_line_include): Likewise.
607 * c-common.c (warn_unknown_pragmas): Do not define.
608 * c-common.h (warn_unknown_pragmas): Do not declare.
610 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
613 * c-common.c (conversion_warning): Handle conditional expressions.
615 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
618 * c.opt (Wreturn_local_addr): Define new option.
620 2012-10-25 Jason Merrill <jason@redhat.com>
622 * c.opt (Wvirtual-move-assign): New.
624 * c.opt (Winherited-variadic-ctor): New.
626 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
629 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
631 2012-10-23 Joseph Myers <joseph@codesourcery.com>
633 * c-common.h (pch_cpp_save_state): Declare.
634 * c-target.def (c_preinclude): New hook.
635 * c-opts.c (done_preinclude): New.
636 (push_command_line_include): Handle default preincluded header.
637 (cb_file_change): Call pch_cpp_save_state when calling
638 push_command_line_include.
639 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
640 (pch_cpp_save_state): New.
641 (pch_init): Call pch_cpp_save_state conditionally, instead of
642 calling cpp_save_state.
644 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
648 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
649 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
650 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
651 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
652 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
653 * c-opts.c (c_common_handle_option): Remove explicit handling from
655 (c_common_post_options): Likewise.
657 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
659 * c-ada-spec.c (LOCATION_COL): Delete.
660 (compare_location): New function.
661 (compare_node): Use it.
662 (compare_comment): Likewise.
664 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
668 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
669 * c-opts.c (c_common_handle_option): Do not set them here. Add
671 (c_common_post_options): Likewise.
673 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
675 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
676 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
677 Remove POINTER_TYPE handling, add large unsigned handling and use
678 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
680 2012-10-12 Jakub Jelinek <jakub@redhat.com>
683 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
684 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
685 locs and array of 3 trees instead of just single loc and single
686 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
687 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
688 For *cmp* builtins that take two sources strings report warnings
689 about first and second source, not about destination and source.
691 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
694 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
696 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
698 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
699 declaring something coming from another file.
701 2012-10-10 Arnaud Charlet <charlet@adacore.com>
704 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
706 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
709 * c-common.c (warn_about_parentheses): Add location_t parameter;
711 * c-common.h: Update declaration.
713 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
716 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
717 more operations. Make error messages optional.
718 * c-common.h (enum stv_conv): Moved from c-typeck.c.
719 (scalar_to_vector): Declare.
721 2012-10-08 Jason Merrill <jason@redhat.com>
723 * c-common.c (c_common_reswords): Add thread_local.
725 2012-10-08 Dodji Seketeli <dodji@redhat.com>
727 PR c++/53528 C++11 attribute support
728 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
730 * c-common.c (check_cxx_fundamental_alignment_constraints): New
732 (handle_aligned_attribute): In choose strictest alignment
733 among many. Use new check_cxx_fundamental_alignment_constraints.
734 (handle_transparent_union_attribute): In c++11 attribute syntax,
735 don't look through typedefs.
737 2012-10-04 Arnaud Charlet <charlet@adacore.com>
739 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
740 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
743 2012-09-25 Dehao Chen <dehao@google.com>
746 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
747 map when read in the pch.
749 2012-09-18 Arnaud Charlet <charlet@adacore.com>
751 * c-ada-spec.c: Style fixes.
753 2012-09-18 Thomas Quinot <quinot@adacore.com>
755 * c.opt (-fada-spec-parent): Define new command line switch.
756 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
757 is specified, generate binding spec as a child of the specified unit.
759 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
760 Manuel López-Ibáñez <manu@gcc.gnu.org>
763 * c.opt ([Winit-self]): Enabled by -Wall in C++.
765 2012-08-23 Arnaud Charlet <charlet@adacore.com>
767 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
768 for pointers, and add missing Convention C pragma.
769 (print_ada_struct_decl): Add missing aliased keyword.
770 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
772 2012-08-17 Jakub Jelinek <jakub@redhat.com>
774 * c-common.c (sizeof_pointer_memaccess_warning): New function.
775 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
776 * c-opts.c (c_common_handle_option): Enable it for -Wall.
777 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
778 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
780 2012-08-10 Richard Guenther <rguenther@suse.de>
782 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
784 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
786 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
787 instead of separate pp_newline and pp_flush.
788 (print_c_tree): Likewise.
790 2012-07-26 Richard Henderson <rth@redhat.com>
792 * c-common.c (handle_hot_attribute): Allow labels.
793 (handle_cold_attribute): Likewise.
795 2012-07-20 Jakub Jelinek <jakub@redhat.com>
798 * c-common.c (check_function_nonnull): Handle multiple nonnull
801 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
803 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
804 * c-ada-spec.c: Likewise.
805 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
807 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
809 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
810 Remove code conditional on it.
812 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
814 * c-gimplify.c: Do not include basic-block.h.
815 * c-common.c: Do not include linfuncs.h.
817 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
819 * c-common.h: Include tree.h.
821 2012-07-02 Jason Merrill <jason@redhat.com>
824 * c-common.c (get_priority): Call default_conversion.
826 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
828 * c-pch.c (c_common_write_pch): Remove unused variables.
830 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
832 * cppspec.c: Moved from gcc/ to here.
834 2012-06-27 Kai Tietz <ktietz@redhat.com>
836 PR preprocessor/37215
837 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
839 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
841 * c-common.h (c_common_print_pch_checksum): Remove.
842 * c-pch.c: Do not include output.h.
843 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
844 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
845 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
846 (struct c_pch_header): Remove.
847 (get_ident): Update gpch version.
848 (pch_init): Do not print executable_checksum to asm_out_file.
849 Do not fail if there is no asm_out_file to read back from. Set
850 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
851 (c_common_write_pch): Verify that nothing was written to asm_out_file
852 since pch_init was called. Do not write a c_pch_header, and do not
853 copy from asm_out_file to the PCH.
854 (c_common_read_pch): Do not read a c_pch_header, and do not restore
855 the content of asm_out_file from the PCH.
856 (c_common_print_pch_checksum): Remove.
857 * c-opts.c (c_common_init): Print out executable_checksum directly.
859 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
861 * c-target.def (objc_declare_unresolved_class_reference,
862 objc_declare_class_definition): Add new hooks.
864 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
866 * c-lex.c: Do not include output.h.
867 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
868 Remove uses of ASM_OUTPUT_IDENT.
870 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
873 * c-common.h (c_build_vec_perm_expr): Move decl here.
874 * c-common.c (c_build_vec_perm_expr): Move definition
877 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
879 * c.opt (fconserve-space): Turn into a no-op.
881 2012-06-04 Sterling Augustine <saugustine@google.com>
883 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
884 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
885 both the start and end of the function.
887 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
889 * c-common.c: Do not include output.h.
890 * c-pragma.c: Likewise.
892 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
894 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
895 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
896 (lang_decl_name): Handle namespace decls.
898 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
900 * c-ada-spec.c: Do not include output.h.
901 * c-semantics.c: Likewise.
903 2012-05-29 Joseph Myers <joseph@codesourcery.com>
905 * c-common.c: Fix typo.
907 2012-05-29 Michael Matz <matz@suse.de>
909 * c-common.h (c_expand_decl): Remove prototype.
911 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
913 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
914 * c-opts.c (c_common_handle_option): Remove code handling
917 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
920 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
923 2012-05-22 Dodji Seketeli <dodji@redhat.com>
926 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
928 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
930 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
931 * c-opts.c (c_common_handle_option): Do not handle explicitly
932 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
934 2012-05-16 Dodji Seketeli <dodji@redhat.com>
937 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
938 to cpp_classify_number. For diagnostics, use the precise location
939 instead of the global input_location.
941 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
944 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
946 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
948 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
950 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
953 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
954 Wreorder): Use LangEnabledBy.
955 * c-opts.c (c_common_handle_option): Do not enable them
956 explicitly. Call lang-specific generated functions.
957 (c_common_post_options): Do not set them here.
959 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
961 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
962 Wmissing-field-initializers,Wmissing-parameter-type,
963 Wold-style-declaration,Woverride-init): Use EnabledBy.
964 * c-opts.c (c_common_post_options): Do not set here explicitly.
966 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
969 * c-opts.c (c_common_handle_option): Use handle_generated_option
970 to enable sub-options.
972 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
975 * c-common.c (warnings_for_convert_and_check): Use warning_at.
977 2012-05-10 Richard Guenther <rguenther@suse.de>
979 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
980 adjust commentary about TYPE_IS_SIZETYPE types.
982 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
985 * c-common.c (warn_logical_operator): Check that argument of
986 integer_zerop is not NULL.
988 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
991 * c-common.c (warn_logical_operator): Do not warn if either side
992 is already true or false.
994 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
997 * c-common.c (expr_original_type): New.
998 (shorten_compare): Do not warn for enumeration types.
1000 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1002 * c.opt (fpermissive): Add Var(flag_permissive).
1004 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1007 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1008 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1010 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1012 Add -Wvarargs option
1013 * c.opt (Wvarargs): Define new option.
1015 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1017 * c-common.c (check_function_arguments): Replace
1018 Wmissing-format-attribute with Wsuggest-attribute=format.
1020 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1022 * c.opt (Wsuggest-attribute=format): New. Alias of
1023 Wmissing-format-attribute.
1024 * c-format.c (decode_format_type): Replace
1025 Wmissing-format-attribute with Wsuggest-attribute=format.
1026 (check_function_format): Likewise.
1028 2012-04-27 Ollie Wild <aaw@google.com>
1030 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1031 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1032 * c.opt: Add Wliteral-suffix.
1034 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1037 * c.opt (Wpedantic): New.
1038 (pedantic): Alias Wpedantic.
1039 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1040 (c_common_post_options): Likewise.
1041 (sanitize_cpp_opts): Likewise.
1042 * c-lex.c (interpret_float): Likewise.
1043 * c-format.c (check_format_types): Likewise.
1044 * c-common.c (pointer_int_sum): Likewise.
1045 (c_sizeof_or_alignof_type): Likewise.
1046 (c_add_case_label): Likewise.
1047 (c_do_switch_warnings): Likewise.
1048 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1050 2012-04-15 Jason Merrill <jason@redhat.com>
1053 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1054 (C_STD_NAME): Distinguish between C++98 and C++11.
1056 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1059 * c-common.h (uint16_type_node): Rename into...
1060 (c_uint16_type_node): ...this.
1061 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1062 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1064 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1066 * c-common.c (warn_if_unused_value): Move definition to here.
1067 * c-common.h (warn_if_unused_value): Move declaration to here.
1069 2012-03-23 William Bader <williambader@hotmail.com>
1071 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1073 2012-03-20 Jason Merrill <jason@redhat.com>
1075 * c-common.h (enum cxx_dialect): Add cxx1y.
1076 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1078 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1079 * c-opts.c (c_common_post_options): Likewise.
1080 (set_std_cxx1y): New.
1081 (c_common_handle_option): Call it.
1082 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1084 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1087 * c.opt ([Wuseless-cast]): Add.
1089 2012-03-16 Richard Guenther <rguenther@suse.de>
1091 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1093 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1096 * c.opt (ftemplate-backtrace-limit) Add.
1098 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1100 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1102 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1103 (init_pragma): Don't register extern_prefix.
1105 2012-03-12 Richard Guenther <rguenther@suse.de>
1107 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1108 (builtin_type_for_size): Likewise.
1110 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1113 * c-common.c (sync_resolve_params): Don't decide whether to convert
1114 or not based on TYPE_SIZE comparison, convert whenever arg_type
1115 is unsigned INTEGER_TYPE.
1117 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1120 * c.opt ([Wunused-local-typedefs]): Fix description.
1122 2012-01-24 Mike Stump <mikestump@comcast.net>
1124 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1127 2012-01-18 Richard Guenther <rguenther@suse.de>
1129 * c-opts.c (c_common_post_options): Reset LTO flags if
1130 we are about to generate a PCH.
1132 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1135 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1136 use pp_unsigned_wide_integer.
1138 2012-01-10 Richard Guenther <rguenther@suse.de>
1141 * c-opts.c (c_common_handle_option): Move -Werror handling
1142 to language independent code.
1144 2012-01-05 Richard Guenther <rguenther@suse.de>
1147 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1150 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1153 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1154 of array types with an unknown bound.
1156 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1158 * c-common.c (flag_isoc99): Update comment to refer to C11.
1159 (flag_isoc1x): Change to flag_isoc11.
1160 * c-common.h (flag_isoc99): Update comment to refer to C11.
1161 (flag_isoc1x): Change to flag_isoc11.
1162 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1164 * c-opts.c (set_std_c1x): Change to set_std_c11.
1165 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1167 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1168 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1169 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1171 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1172 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1173 (std=gnu1x): Make alias of std=gnu11.
1175 2011-12-19 Jason Merrill <jason@redhat.com>
1178 * c-common.c (handle_transparent_union_attribute): Check the first
1179 field if the type is complete.
1181 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1184 * c-common.c (RID_IS_FINAL): Add.
1185 * c-common.h (RID_IS_FINAL): Add.
1187 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1189 * c.opt (fgnu-runtime): Provide full description.
1190 (fnext-runtime): Likewise.
1191 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1193 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1195 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1196 predefines in one place. Add LOCK_FREE predefines.
1197 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1200 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1203 * c-common.c (get_atomic_generic_size): Check for various error
1205 (resolve_overloaded_atomic_exchange,
1206 resolve_overloaded_atomic_compare_exchange,
1207 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1208 error_mark_node for error conditions.
1210 2011-11-08 Richard Guenther <rguenther@suse.de>
1215 2011-11-07 Richard Henderson <rth@redhat.com>
1216 Aldy Hernandez <aldyh@redhat.com>
1217 Torvald Riegel <triegel@redhat.com>
1219 Merged from transactional-memory.
1221 * c-common.c (handle_tm_wrap_attribute,
1222 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1223 (struct c_common_reswords): Added __transaction* keywords.
1224 (struct c_common_attribute_table): Added transaction* and tm_regparm
1226 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1228 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1229 find_tm_attribute): Declare.
1231 2011-11-07 Jason Merrill <jason@redhat.com>
1234 * c-common.c, c-common.h: Revert yesterday's changes.
1236 2011-11-06 Jason Merrill <jason@redhat.com>
1239 * c-common.c (decl_has_visibility_attr): Split out from...
1240 (c_determine_visibility): ...here.
1241 * c-common.h: Declare it.
1243 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1245 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1246 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1248 (check_user_alignment): New. Split out of
1249 handle_aligned_attribute. Disallow integer constants with
1250 noninteger types. Conditionally allow zero.
1251 (handle_aligned_attribute): Use check_user_alignment.
1252 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1254 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1255 Richard Henderson <rth@redhat.com>
1257 Merged from cxx-mem-model.
1259 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1260 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1261 parameters that are the same type size.
1262 (get_atomic_generic_size): New. Find size of generic
1263 atomic function parameters and do typechecking.
1264 (add_atomic_size_parameter): New. Insert size into parameter list.
1265 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1266 either __atomic_exchange_n or external library call.
1267 (resolve_overloaded_atomic_compare_exchange): Restructure
1268 __atomic_compare_exchange to either _n variant or external library call.
1269 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1270 __atomic_load_n or an external library call.
1271 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1272 __atomic_store_n or an external library call.
1273 (resolve_overloaded_builtin): Handle new __atomic builtins.
1275 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1278 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1279 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1280 <INDIRECT_REF>: Return the argument.
1281 <ARRAY_REF>: Remove special code for negative offset.
1282 Call fold_build_pointer_plus instead of size_binop.
1283 (fold_offsetof): Remove STOP_REF argument and adjust.
1284 * c-common.h (fold_offsetof_1): Declare.
1285 (fold_offsetof): Remove STOP_REF argument.
1287 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1290 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1291 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1292 Wnarrowing for C++0x and C++98.
1293 * c.opt ([Wnarrowing]): Update.
1295 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1298 * c.opt: Add Wzero-as-null-pointer-constant.
1300 2011-10-31 Jason Merrill <jason@redhat.com>
1302 * c.opt (-fdeduce-init-list): Off by default.
1305 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1306 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1308 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1310 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1313 * c.opt (fvisibility-inlines-hidden): Description change.
1315 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1317 Implement C++11 user-defined literals.
1318 * c-common.c (build_userdef_literal): New.
1319 * c-common.def: New tree code.
1320 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1321 * c-lex.c (interpret_float): Add suffix parm.
1322 (c_lex_with_flags): Build literal tokens.
1324 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1328 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1331 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1332 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1333 Wnarrowing for C++0x and C++98.
1334 * c.opt ([Wnarrowing]): Update.
1336 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1339 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1340 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1341 Wnarrowing for C++0x and C++98.
1342 * c.opt ([Wnarrowing]): Update.
1344 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1347 * c-common.c (conversion_warning): Remove code looking for
1348 artificial operands.
1350 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1353 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1354 !NO_IMPLICIT_EXTERN_C.
1356 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1358 * c-common.c (c_common_reswords): Add __bases,
1360 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1362 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1365 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1367 2011-10-15 Tom Tromey <tromey@redhat.com>
1368 Dodji Seketeli <dodji@redhat.com>
1370 * c.opt (fdebug-cpp): New option.
1371 * c-opts.c (c_common_handle_option): Handle the option.
1372 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1373 output stream in parameter. Factorized from ...
1374 (maybe_print_line): ... this. Dump location debug information when
1375 -fdebug-cpp is in effect.
1376 (print_line_1): New static function. Takes an output stream in
1377 parameter. Factorized from ...
1378 (print_line): ... here. Dump location information when -fdebug-cpp
1380 (scan_translation_unit): Dump location information when
1381 -fdebug-cpp is in effect.
1383 2011-10-15 Tom Tromey <tromey@redhat.com>
1384 Dodji Seketeli <dodji@redhat.com>
1386 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1388 * c-opts.c (c_common_handle_option)<case
1389 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1390 cases. Handle -ftrack-macro-expansion with and without argument.
1392 2011-10-15 Tom Tromey <tromey@redhat.com>
1393 Dodji Seketeli <dodji@redhat.com>
1395 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1396 (print_line, cb_define, do_line_change): Adjust to avoid touching
1397 the internals of struct line_map. Use the public API instead.
1398 * c-pch.c (c_common_read_pch): Likewise.
1399 * c-lex.c (fe_file_change): Likewise.
1401 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1404 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1406 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1409 * c-pretty-print.c (pp_c_floating_constant): Output
1410 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1412 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1414 * c-common.c (def_builtin_1): Delete old interface with two
1415 parallel arrays to hold standard builtin declarations, and replace
1416 it with a function based interface that can support creating
1417 builtins on the fly in the future. Change all uses, and poison
1418 the old names. Make sure 0 is not a legitimate builtin index.
1419 * c-omp.c (c_finish_omp_barrier): Ditto.
1420 (c_finish_omp_taskwait): Ditto.
1421 (c_finish_omp_flush): Ditto.
1423 2011-10-11 Tristan Gingold <gingold@adacore.com>
1425 * c.opt: (fallow-parameterless-variadic-functions): New.
1427 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1429 PR c++/33255 - Support -Wunused-local-typedefs warning
1430 * c-common.h (struct c_language_function::local_typedefs): New
1432 (record_locally_defined_typedef, maybe_record_typedef_use)
1433 (maybe_warn_unused_local_typedefs): Declare new functions.
1434 * c-common.c (record_locally_defined_typedef)
1435 (maybe_record_typedef_use)
1436 (maybe_warn_unused_local_typedefs): Define new functions.
1437 * c.opt: Declare new -Wunused-local-typedefs flag.
1439 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1442 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1445 2011-09-05 Richard Guenther <rguenther@suse.de>
1447 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1448 of integer_minus_one_node for empty array upper bounds.
1450 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1452 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1453 it's the first time it's being called on this main TU.
1455 2011-08-24 Richard Guenther <rguenther@suse.de>
1458 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1460 2011-08-22 Gabriel Charette <gchare@google.com>
1462 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1463 defined in cpp_init_builtins and c_cpp_builtins.
1465 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1467 * c-common.c (c_common_reswords): Add __builtin_complex.
1468 * c-common.h (RID_BUILTIN_COMPLEX): New.
1470 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1472 * c-common.c (c_common_reswords): Add _Noreturn.
1473 (keyword_is_function_specifier): Handle RID_NORETURN.
1474 * c-common.h (RID_NORETURN): New.
1476 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1478 * c-common.c (unsafe_conversion_p): New function. Check if it is
1479 unsafe to convert an expression to the type.
1480 (conversion_warning): Adjust, use unsafe_conversion_p.
1481 * c-common.h (unsafe_conversion_p): New function declaration.
1483 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1485 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1486 (c_finish_omp_taskyield): New prototype.
1487 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1488 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1489 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1490 or RHS1 have side-effects, evaluate those too in the right spot,
1491 if it is a decl and LHS is also a decl, error out if they
1493 (c_finish_omp_taskyield): New function.
1494 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1495 * c-pragma.c (omp_pragmas): Add taskyield.
1496 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1497 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1498 PRAGMA_OMP_CLAUSE_MERGEABLE.
1500 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1502 * c-common.h (set_underlying_type): Remove parm name from
1505 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1507 * c-pretty-print.h: Search c-common.h in c-family.
1509 2011-07-22 Jason Merrill <jason@redhat.com>
1512 * c.opt (Wnarrowing): New.
1515 * c-common.h: Declare c_linkage_bindings.
1516 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1519 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1520 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1521 as flag_isoc99 for 'restrict'.
1522 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1524 2011-07-21 Ian Lance Taylor <iant@google.com>
1527 * c-common.c (c_disable_warnings): New static function.
1528 (c_enable_warnings): New static function.
1529 (c_fully_fold_internal): Change local unused_p to bool. Call
1530 c_disable_warnings and c_enable_warnings rather than change
1531 c_inhibit_evaluation_warnings.
1533 2011-07-20 Jason Merrill <jason@redhat.com>
1535 PR c++/6709 (DR 743)
1536 PR c++/42603 (DR 950)
1537 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1538 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1539 (CPP_DECLTYPE): New.
1540 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1542 2011-07-19 Richard Guenther <rguenther@suse.de>
1544 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1545 * c-omp.c (c_finish_omp_for): Likewise.
1547 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1549 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1550 body on the next line.
1552 2011-07-08 Jason Merrill <jason@redhat.com>
1555 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1558 * c-common.c (c_apply_type_quals_to_decl): Don't check
1559 TYPE_NEEDS_CONSTRUCTING.
1561 2011-07-06 Richard Guenther <rguenther@suse.de>
1563 * c-common.c (c_common_nodes_and_builtins):
1564 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1566 2011-07-05 Richard Guenther <rguenther@suse.de>
1568 * c-common.c (c_common_nodes_and_builtins): Build all common
1571 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1573 * c-common.h (c_tree_chain_next): New static inline function.
1575 * c-common.c (check_builtin_function_arguments): Handle
1576 BUILT_IN_ASSUME_ALIGNED.
1578 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1580 * c-common.c: Add sync_ or SYNC__ to builtin names.
1581 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1583 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1585 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1587 (gen_pragma_handler): New union.
1588 (internal_pragma_handler): New type.
1589 (c_register_pragma_with_data)
1590 (c_register_pragma_with_expansion_and_data): New functions.
1592 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1593 (c_register_pragma, c_register_pragma_with_expansion)
1594 (c_invoke_pragma_handler): Changed to work with
1595 internal_pragma_handler.
1596 (c_register_pragma_with_data)
1597 (c_register_pragma_with_expansion_and_data): New functions.
1599 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1601 * c-common.c: Include common/common-target.h.
1602 (handle_section_attribute): Use
1603 targetm_common.have_named_sections.
1604 * c-cppbuiltin.c: Include common/common-target.h.
1605 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1607 2011-06-10 Richard Guenther <rguenther@suse.de>
1609 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1610 to print a IDENTIFIER_NODE.
1612 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1613 Joseph Myers <joseph@codesourcery.com>
1615 * c.opt (fbuilding-libgcc): New option.
1616 * c-cppbuiltin.c (c_cpp_builtins): Define
1617 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1619 2011-06-07 Jason Merrill <jason@redhat.com>
1621 * c-common.c (max_tinst_depth): Lower default to 900.
1623 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1625 2011-06-07 Richard Guenther <rguenther@suse.de>
1627 * c-common.c (c_common_nodes_and_builtins): Do not set
1628 size_type_node or call set_sizetype.
1630 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1633 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1634 type when using pointer comparison to compare types.
1636 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1638 * c.opt: Add -Wdelete-non-virtual-dtor.
1639 * c-opts.c (c_common_handle_option): Include it in -Wall.
1641 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1646 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1648 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1651 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1654 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1655 C++ don't call c_common_truthvalue_conversion on void type arms.
1657 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1659 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1660 (stmt_list_stack): Define.
1661 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1662 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1664 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1666 * c-common.c (warning_candidate_p): Check for BLOCKs.
1668 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1670 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1673 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1675 * c-common.c (def_fn_type): Remove extra va_end.
1677 2011-05-23 Jason Merrill <jason@redhat.com>
1680 * c-common.c (c_common_get_narrower): New.
1681 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1683 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1685 * c-common.h (check_function_arguments): Tweak prototype of
1686 check_function_arguments.
1687 * c-common.c (check_function_arguments): Likewise. Adjust
1688 calls to check_function_nonnull, check_function_format, and
1689 check_function_sentinel.
1690 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1691 separate attributes and typelist arguments. Use
1692 FOREACH_FUNCTION_ARGS to iterate over argument types.
1694 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1696 * c-common.c (c_common_reswords): Reorder.
1697 * c-common.h (rid): Likewise.
1699 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1701 * c-common.c (def_fn_type): Don't call build_function_type, call
1702 build_function_type_array or build_varargs_function_type_array
1704 (c_common_nodes_and_builtins): Likewise.
1706 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1708 * c-common.c (c_add_case_label): Omit the loc argument to
1710 * c-common.h (build_case_label): Remove.
1711 * c-semantics.c (build_case_label): Remove.
1713 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1715 * c-objc.h (objc_start_method_definition): Update prototype.
1716 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1718 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1720 * c-common.c (check_main_parameter_types): Reindent. Don't use
1721 TYPE_ARG_TYPES directly.
1722 (handle_nonnull_attribute): Likewise.
1723 (sync_resolve_params): Likewise.
1724 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1725 to check_format_string.
1726 (handle_format_attribute): Likewise.
1727 (check_format_string): Take a function type to examine instead of
1728 a type list. Use a function_arg_iterator to step through argument
1731 2011-05-04 Richard Guenther <rguenther@suse.de>
1733 * c-common.c (fix_string_type): Use size_int for index type bounds.
1734 (start_fname_decls): Do not pass NULL to build_int_cst.
1735 (c_init_attributes): Likewise.
1736 * c-lex.c (c_lex_with_flags): Likewise.
1738 2011-04-27 Jason Merrill <jason@redhat.com>
1740 * c-common.c (make_tree_vector_from_list): New.
1741 * c-common.h: Declare it.
1743 2011-04-26 Richard Guenther <rguenther@suse.de>
1745 PR preprocessor/48248
1746 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1747 for output size with -P.
1749 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1751 * c-common.c (struct c_common_resword): Add __underlying_type.
1752 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1754 2011-04-20 Jim Meyering <meyering@redhat.com>
1756 * c-format.c (init_dollar_format_checking): Remove useless
1759 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1761 * c-objc.h (objc_get_interface_ivars): Removed.
1762 (objc_detect_field_duplicates): New.
1763 * stub-objc.c: Likewise.
1765 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1767 * stub-objc.c (objc_declare_protocols): Renamed to
1768 objc_declare_protocol.
1769 * c-objc.h: Likewise.
1771 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1773 * stub-objc.c (objc_declare_class): Updated argument name.
1775 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1777 * c-common.h (c_common_init_ts): Declare.
1778 * c-common.c (c_common_init_ts): Define.
1780 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1782 * c-objc.h (objc_build_message_expr): Updated prototype.
1783 * stub-objc.c (objc_build_message_expr): Likewise.
1785 2011-04-12 Martin Jambor <mjambor@suse.cz>
1787 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1790 2011-04-11 Richard Guenther <rguenther@suse.de>
1792 * c-common.c (complete_array_type): Build a range type of
1795 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1797 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1798 (handle_type_generic_attribute): Likewise.
1800 2011-04-07 Jason Merrill <jason@redhat.com>
1803 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1804 conversion from C++0x scoped enum.
1806 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1808 * c-target-def.h: New file.
1809 * c-target.def: New file.
1810 * c-target.h: New file.
1811 * c-common.c (targetcm): Don't define here.
1812 * c-common.h (default_handle_c_option): Declare.
1813 * c-format.c: Include c-target.h instead of target.h.
1814 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1816 (default_handle_c_option): Move from targhooks.c.
1818 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1820 PR preprocessor/48248
1821 * c-ppoutput.c (print): Add src_file field.
1822 (init_pp_output): Initialize it.
1823 (maybe_print_line): Don't optimize by adding up to 8 newlines
1824 if map->to_file and print.src_file are different file.
1825 (print_line): Update print.src_file.
1827 2011-03-25 Kai Tietz <ktietz@redhat.com>
1829 * c-ada-spec.c (compare_comment): Use filename_cmp
1830 instead of strcmp for filename.
1832 2011-03-25 Jeff Law <law@redhat.com>
1834 * c-family/c-common.c (def_fn_type): Add missing va_end.
1836 2011-03-25 Jason Merrill <jason@redhat.com>
1838 * c.opt: Add -std=c++03.
1840 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1842 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1844 2011-03-17 Kai Tietz
1847 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1848 Display allowed attributes for function pointer types.
1849 (pp_c_attributes_display): New function to display
1850 attributes having affects_type_identity flag set to true.
1851 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1853 * c-common.c (c_common_attribute_table):
1855 (c_common_format_attribute_table): Likewise.
1857 2011-03-18 Jason Merrill <jason@redhat.com>
1859 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1860 * c-common.h: Don't declare it here.
1861 * c-common.c: Or define it here.
1862 * c-opts.c (c_common_handle_option): Or set it here.
1865 * c-common.c (handle_transparent_union_attribute): Don't
1866 make a duplicate type in C++.
1868 2011-03-15 Jason Merrill <jason@redhat.com>
1870 * c-common.c (max_constexpr_depth): New.
1871 * c-common.h: Declare it.
1872 * c-opts.c (c_common_handle_option): Set it.
1873 * c.opt (fconstexpr-depth): New option.
1875 2011-03-11 Jason Merrill <jason@redhat.com>
1877 * c-common.c (attribute_takes_identifier_p): Add missing const.
1880 * c-common.c (attribute_takes_identifier_p): Assume that an
1881 unknown attribute takes an identifier.
1883 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1886 * c-common.c (c_type_hash): Call list_length instead of iterating
1887 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1889 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1892 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1894 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1896 * c.opt (fobjc-abi-version=) New.
1897 (fobjc-nilcheck): New.
1899 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1902 * c-common.h (keyword_is_decl_specifier): Declare.
1903 * c-common.c (keyword_is_decl_specifier): Define.
1904 (keyword_is_function_specifier): New function.
1906 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1909 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1910 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1913 2011-01-26 Arnaud Charlet <charlet@adacore.com>
1915 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1917 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1920 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1921 after init_c_lex if pch_file is set.
1923 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1926 * c.opt (-fkeep-inline-dllexport): New switch.
1928 2011-01-12 Richard Guenther <rguenther@suse.de>
1931 * c-common.c (handle_weak_attribute): Warn instead of error
1932 on declaring an inline function weak.
1934 2011-01-05 Tom Tromey <tromey@redhat.com>
1936 * c-common.h (lvalue_error): Update.
1937 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1940 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
1943 * c-objc.h (objc_finish_message_expr): Added argument to
1946 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1948 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1951 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1953 * c-objc.h (objc_maybe_warn_exceptions): New.
1954 * stub-objc.c (objc_maybe_warn_exceptions): New.
1956 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1958 * c-common.h (readonly_error): Declare.
1959 * c-common.c (readonly_error): Define.
1961 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1963 * c-common.h (invalid_indirection_error): Declare.
1964 * c-common.c (invalid_indirection_error): Define.
1966 2010-12-03 Richard Guenther <rguenther@suse.de>
1969 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1970 (pp_c_unary_expression): Likewise.
1971 (pp_c_expression): Likewise.
1973 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1975 * c-common.h (objc_finish_function): New.
1976 (objc_non_volatilized_type): Removed.
1977 (objc_type_quals_match): Removed.
1978 * stub-objc.c (objc_finish_function): New.
1979 (objc_non_volatilized_type): Removed.
1980 (objc_type_quals_match): Removed.
1982 2010-11-30 Joseph Myers <joseph@codesourcery.com>
1984 * c-common.h (parse_optimize_options): Declare.
1985 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1986 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1988 2010-11-29 Joseph Myers <joseph@codesourcery.com>
1990 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1992 * c-pch.c (O_BINARY): Don't define here.
1993 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1995 2010-11-25 Joseph Myers <joseph@codesourcery.com>
1997 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1998 targetm.except_unwind_info.
2000 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2002 * c-opts.c (c_common_handle_option): Pass location to
2003 set_struct_debug_option.
2005 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2007 * c-common.c (visibility_options): Move from ../opts.c.
2008 * c-common.h (struct visibility_flags, visibility_options):
2010 * c-opts.c (finish_options): Rename to c_finish_options.
2011 (c_common_init): Update call to finish_options.
2013 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2016 * c-lex.c (lex_string): Check that each string in an Objective-C
2017 string concat sequence starts with either one or zero '@', and
2018 that there are no spurious '@' signs at the end.
2020 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2022 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2023 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2024 HANDLE_PRAGMA_VISIBILITY.
2025 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2026 HANDLE_PRAGMA_VISIBILITY): Don't define.
2027 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2029 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2034 * c-common.h (keyword_begins_type_specifier): Declare.
2035 (keyword_is_storage_class_specifier): Declare.
2036 (keyword_is_type_qualifier): Declare.
2037 * c-common.c (keyword_begins_type_specifier): New function.
2038 (keyword_is_storage_class_specifier): New function.
2039 (keyword_is_type_qualifier): Declare.
2041 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2044 * c-common.c (in_late_binary_op): Define.
2045 (c_common_truthvalue_conversion): Check in_late_binary_op before
2046 calling c_save_expr.
2047 * c-common.h (in_late_binary_op): Declare.
2049 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2051 * c-opts.c (c_common_handle_option): Update calls to
2052 set_struct_debug_option.
2054 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2056 * c-common.h (objc_declare_protocols): Added additional argument.
2057 * stub-objc.c (objc_declare_protocol): Same change.
2059 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2062 * c-common.h (build_real_imag_expr): Declare.
2063 * c-semantics.c (build_real_imag_expr): Define.
2065 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2067 * c-opts.c (c_common_parse_file): Take no arguments.
2068 * c-common.h (c_common_parse_file): Update prototype.
2070 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2073 * c-common.c (warning_candidate_p): Don't track non-const calls
2076 2010-11-15 Ian Lance Taylor <iant@google.com>
2078 * c-lex.c (init_c_lex): Set macro debug callbacks if
2079 flag_dump_go_spec is set.
2081 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2083 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2084 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2086 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2088 PR preprocessor/45038
2089 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2092 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2094 * c-common.h (c_family_lang_mask): Declare.
2095 * c-opts.c (c_family_lang_mask): Make extern.
2096 * c-pragma.c (handle_pragma_diagnostic): Use
2097 control_warning_option.
2099 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2101 * c-common.c (parse_optimize_options): Update call to
2103 * c-common.h (c_common_handle_option): Update prototype.
2104 * c-opts.c (c_common_handle_option): Take location_t parameter and
2105 pass it to other functions.
2107 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2109 * c-opts.c (warning_as_error_callback): Remove.
2110 (c_common_initialize_diagnostics): Don't call
2111 register_warning_as_error_callback.
2112 (c_common_handle_option): Handle -Werror=normalized= here.
2114 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2116 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2118 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2120 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2121 Remove trailing '.' from diagnostics.
2122 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2124 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2126 * c-common.c (parse_optimize_options): Pass global_dc to
2128 * c-opts.c (c_common_handle_option): Pass &global_options to
2129 set_Wstrict_aliasing.
2130 * c.opt (v): Don't mark Common or document here.
2132 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2135 * c-format.c (format_type): New type gcc_objc_string_format_type.
2136 (valid_stringptr_type_p): New.
2137 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2138 (check_format_string): Pass expected type, use
2139 valid_stringptr_type_p (), check that the format string types are
2140 consistent with the format specification.
2141 (decode_format_attr): Warn if NSString is used outside objective-c.
2142 (format_types_orig): Add NSString.
2144 (format_flags): New.
2145 (check_format_arg): Handle format strings requiring an external parser.
2146 first_target_format_type: New variable.
2147 (handle_format_attribute): Set up first_target_format_type, pass the
2148 expected format arg string type to check_format_string().
2149 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2150 * stub-objc.c (objc_string_ref_type_p): New.
2151 (objc_check_format_arg): New.
2153 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2155 Fixed using the Objective-C 2.0 dot-syntax with class names.
2156 * c-common.h (objc_build_class_component_ref): New.
2157 * stub-objc.c (objc_build_class_component_ref): New.
2159 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2161 * c.opt (Wproperty-assign-default): New option.
2163 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2165 Implemented -fobjc-std=objc1 flag.
2166 * c.opt (fobjc-std=objc1): New option.
2168 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2170 Implemented format and noreturn attributes for Objective-C methods.
2171 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2172 attribute for Objective-C methods.
2174 2010-10-31 Jason Merrill <jason@redhat.com>
2176 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2179 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2181 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2182 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2183 (objc_add_property_declaration): Removed arguments for copies and
2185 (objc_build_getter_call): Renamed to
2186 objc_maybe_build_component_ref.
2187 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2188 (objc_is_property_ref): New.
2189 * c-common.c (c_common_reswords): Removed copies and ivar.
2190 * stub-objc.c (objc_add_property_declaration): Removed arguments
2191 for copies and ivar.
2192 (objc_build_getter_call): Renamed to
2193 objc_maybe_build_component_ref.
2194 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2195 (objc_is_property_ref): New.
2197 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2198 Matthew Gingell <gingell@adacore.com>
2200 * c-ada-spec.c (separate_class_package): New function.
2201 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2202 name of their enclosing package.
2203 (print_ada_declaration): Use separate_class_package.
2205 2010-10-27 Jason Merrill <jason@redhat.com>
2207 * c-common.c (c_common_reswords): Add __is_literal_type.
2208 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2210 * c-common.c (check_case_value): Remove special C++ code.
2212 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2214 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2215 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2217 (objc_add_property_declaration): Added additional arguments.
2218 (objc_property_attribute_kind): Removed.
2219 (objc_set_property_attr): Removed.
2220 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2222 * stub-objc.c (objc_add_property_declaration): Added additional
2224 (objc_set_property_attr): Removed.
2226 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2228 * c-common.h (objc_add_property_variable): Renamed to
2229 objc_add_property_declaration. Added location argument.
2230 * stub-objc.c (objc_add_property_variable): Same change.
2232 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2234 * c-common.h (objc_maybe_printable_name): New.
2235 * stub-objc.c (objc_maybe_printable_name): New.
2237 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2238 Andrew Pinski <pinskia@gmail.com>
2240 * c-common.h (c_common_mark_addressable_vec): Declare.
2241 * c-common.c (c_common_mark_addressable_vec): New function.
2243 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2245 * c-common.h (objc_set_method_type): Removed.
2246 (objc_add_method_declaration): Added boolean argument.
2247 (objc_start_method_definition): Same change.
2248 (objc_build_method_signature): Same change.
2249 * stub-objc.c (objc_set_method_type): Removed.
2250 (objc_add_method_declaration): Added boolean argument.
2251 (objc_start_method_definition): Same change.
2252 (objc_build_method_signature): Same change.
2254 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2256 * c-common.h (finish_file): Removed.
2257 (objc_write_global_declarations): New.
2258 * c-opts.c (c_common_parse_file): Do not call finish_file.
2259 * stub-objc.c (objc_write_global_declarations): New.
2261 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2263 Implemented parsing @synthesize and @dynamic for
2264 Objective-C/Objective-C++.
2265 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2266 (objc_add_synthesize_declaration): New.
2267 (objc_add_dynamic_declaration): New.
2268 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2269 * stub-objc.c (objc_add_synthesize_declaration): New.
2270 (objc_add_dynamic_declaration): New.
2272 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2275 * c-cppbuiltin.c (mode_has_fma): Move function here from
2276 builtins.c. Don't use the fma optab, instead just use the
2277 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2280 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2282 Merge from 'apple/trunk' branch on FSF servers.
2284 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2287 * c-common.h (objc_non_volatilized_type): New declaration
2288 * stub-objc.c (objc_non_volatilized_type): New stub.
2290 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2292 Merge from 'apple/trunk' branch on FSF servers.
2294 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2297 * c-common.h (objc_diagnose_private_ivar): New decl.
2298 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2300 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2302 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2303 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2304 (objc_ivar_visibility_kind): New enum.
2305 (objc_set_visibility): Adjust prototype to use visibility enum.
2306 * stub-objc.c (objc_set_visibility): Adjust stub to use
2309 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2311 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2312 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2313 has the appropriate fma builtins.
2314 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2316 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2318 merge from FSF apple 'trunk' branch.
2319 2006 Fariborz Jahanian <fjahanian@apple.com>
2321 Radars 4436866, 4505126, 4506903, 4517826
2322 * c-common.c (c_common_resword): Define @property and its attributes.
2323 * c-common.h: Define property attribute enum entries.
2324 (OBJC_IS_PATTR_KEYWORD): New.
2325 (objc_property_attribute_kind): New enum.
2326 Declare objc_set_property_attr (), objc_add_property_variable (),
2327 objc_build_getter_call () and objc_build_setter_call ().
2328 * stub-objc.c (objc_set_property_attr): New stub.
2329 (objc_add_property_variable): Likewise.
2330 (objc_build_getter_call): Likewise.
2331 (objc_build_setter_call) Likewise.
2333 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2335 merge from FSF apple 'trunk' branch.
2336 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2338 Radar 3803157 (method attributes)
2339 * c-common.c (handle_deprecated_attribute): Recognize
2340 objc methods as valid declarations.
2341 * c-common.h: Declare objc_method_decl ().
2342 * stub-objc.c (objc_method_decl): New stub.
2344 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2346 * c-common.c (parse_optimize_options): Call
2347 decode_cmdline_options_to_array_default_mask before
2348 decode_options. Update arguments to decode_options.
2349 * c-common.h (c_common_init_options_struct): Declare.
2350 * c-opts.c (c_common_init_options_struct): New. Split out from
2351 c_common_init_options.
2353 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2355 Implemented fast enumeration for Objective-C.
2356 * c-common.h (objc_finish_foreach_loop): New.
2357 * stub-objc.c (objc_finish_foreach_loop): New.
2359 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2361 * c-common.h (struct diagnostic_context): Don't declare here.
2362 (c_common_initialize_diagnostics): Declare using
2363 diagnostic_context typedef.
2364 * c-opts.c (c_common_handle_option): Pass global_dc to
2365 handle_generated_option.
2367 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2369 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2370 handle_generated_option.
2372 2010-10-03 Ian Lance Taylor <iant@google.com>
2374 * c.opt (-fplan9-extensions): New option.
2376 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2378 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2380 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2381 of duplicating code.
2383 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2385 * c-common.c: Add two new entries for @optional
2386 and @required keywords.
2388 merge from FSF 'apple/trunk' branch.
2389 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2392 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2393 objective-c keywords.
2394 (objc_set_method_opt): New declaration.
2395 * stub-objc.c (objc_set_method_opt): New stub.
2397 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2399 * c-common.c (handle_optimize_attribute): Pass &global_options to
2400 cl_optimization_save and cl_optimization_restore.
2401 * c-opts.c (c_common_handle_option): Pass &global_options to
2402 handle_generated_option.
2403 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2404 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2405 &global_options to cl_optimization_restore.
2407 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2409 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2410 Objective-C/Objective-C++ keywords.
2412 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2414 Merge from 'apple/trunk' branch on FSF servers.
2416 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2419 * c-common.h (objc_check_global_decl): New declaration.
2420 * stub-objc.c (objc_check_global_decl): New stub.
2422 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2424 * c.opt: Don't use VarExists.
2426 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2428 * c-common.c (c_cpp_error): Update names of diagnostic_context
2430 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2431 cl_optimization members.
2432 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2433 sanitize_cpp_opts, finish_options): Update names of cpp_options
2436 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2438 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2439 (objc_is_reserved_word): Removed.
2440 * c-common.c: Updated comments.
2441 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2442 objc_is_reserved_word.
2443 * stub-objc.c (objc_is_reserved_word): Removed.
2445 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2447 * c-common.h (objc_add_method_declaration): Adjust prototype to
2449 (objc_start_method_definition): Likewise.
2450 (objc_build_keyword_decl): Likewise.
2451 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2452 (objc_start_method_definition): Likewise.
2453 (objc_build_keyword_decl): Likewise.
2455 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2457 * c-common.h (objc_start_class_interface): Adjust prototype.
2458 (objc_start_category_interface): Likewise.
2459 (objc_start_protocol): Likewise.
2460 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2461 (objc_start_class_interface): Likewise.
2462 (objc_start_category_interface): Likewise.
2464 2010-09-27 Ian Lance Taylor <iant@google.com>
2466 * c-common.c (c_common_attribute_table): Add no_split_stack.
2467 (handle_no_split_stack_attribute): New static function.
2469 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2471 Merge from 'apple/trunk' branch on FSF servers.
2473 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2476 * c-common.h (objc_have_common_type): New declaration.
2477 * stub-objc.c (objc_have_common_type): New stub.
2479 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2482 * c-common.h (objc_common_type): New prototype.
2483 * stub-objc.c (objc_common_type): New stub.
2485 2010-09-24 Jan Hubicka <jh@suse.cz>
2487 * c-common.c (handle_leaf_attribute): New function.
2488 (struct attribute_spec c_common_att): Add leaf.
2490 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2492 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2493 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2494 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2495 -include-barrier, -include-directory, -include-directory=,
2496 -include-directory-after, -include-directory-after=,
2497 -include-prefix, -include-prefix=, -include-with-prefix,
2498 -include-with-prefix=, -include-with-prefix-after,
2499 -include-with-prefix-after=, -include-with-prefix-before,
2500 -include-with-prefix-before=, -no-integrated-cpp,
2501 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2502 -output=, -pedantic, -pedantic-errors, -preprocess,
2503 -print-missing-file-dependencies, -trace-includes, -traditional,
2504 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2505 -user-dependencies, -verbose, -write-dependencies,
2506 -write-user-dependencies, no-integrated-cpp, traditional): New.
2508 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2511 * c-common.h (objc_start_method_definition): Return bool instead
2513 * stub-objc.c (objc_start_method_definition): Return bool instead
2516 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2519 * c-common.h (objc_get_interface_ivars): New declaration.
2520 * stub-objc.c (objc_get_interface_ivars): New stub.
2522 2010-09-15 Ian Lance Taylor <iant@google.com>
2524 * c-common.c (parse_optimize_options): Do not capitalize warning
2525 messages. Remove period at end of warning message.
2527 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2529 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2530 (handle_alias_attribute): ... here.
2531 (handle_ifunc_attribute): New.
2533 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2535 * c-common.h (do_warn_double_promotion): Declare.
2536 * c-common.c (do_warn_double_promotion): Define.
2538 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2540 * c.opt (Wdouble-promotion): New.
2542 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2544 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2545 fvtable-thunks, fxref): Mark no longer supported in help text.
2547 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2549 * c.opt (Wimport, fall-virtual, falt-external-templates,
2550 fdefault-inline, fenum-int-equiv, fexternal-templates,
2551 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2552 fname-mangling-version-, fnew-abi, fnonnull-objects,
2553 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2554 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2556 (fhandle-exceptions): Mark with Alias and Warn.
2557 * c-opts.c (c_common_handle_option): Don't handle options marked
2560 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2562 * c.opt (Wcomments, Werror-implicit-function-declaration,
2563 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2564 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2566 * c-common.c (option_codes): Use OPT_Wcomment instead of
2568 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2569 Don't handle options marked as aliases.
2571 2010-08-25 Richard Guenther <rguenther@suse.de>
2573 * c-common.c (c_common_get_alias_set): Remove special
2574 handling for pointers.
2576 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2578 * c-common.c: Use FOR_EACH_VEC_ELT.
2579 * c-gimplify.c: Likewise.
2580 * c-pragma.c: Likewise.
2582 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2584 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2586 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2588 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2589 instead of OPT_MDX and OPT_MMDX.
2591 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2593 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2595 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2597 * c.opt (MD, MMD): Change to MDX and MMDX.
2598 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2600 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2602 * c-opts.c (c_common_handle_option): Call handle_generated_option
2603 instead of handle_option.
2605 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2607 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2608 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2610 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2612 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2613 (pending_redefine_extname): Change type to a VEC.
2614 (add_to_renaming_pragma_list): Update for new type of
2615 pending_redefine_extname.
2616 (maybe_apply_renaming_pragma): Likewise.
2618 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2620 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2622 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2623 decide whether a type has already been declared/seen.
2624 Do not go to the original type.
2625 (dump_nested_types): New parameter forward.
2626 Generate forward declaration if needed and mark type as visited.
2627 (print_ada_declaration): Call dump_nested_types if not already done.
2628 Mark types as visited.
2630 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2632 * c.opt (-print-pch-checksum): Remove option.
2633 * c-opts.c (c_common_handle_option): Don't handle
2634 OPT_print_pch_checksum.
2636 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2638 * c-common.h (c_common_handle_option): Update prototype and return
2640 * c-opts.c (c_common_handle_option): Update prototype and return
2641 value type. Update calls to handle_option and
2642 enable_warning_as_error.
2644 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2647 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2649 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2651 * c-common.h (c_common_missing_argument): Remove.
2652 * c-opts.c (c_common_missing_argument): Remove.
2653 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2654 idirafter, imacros, include, isysroot, isystem, iquote): Add
2656 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2658 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2660 * c-common.h (c_common_option_lang_mask,
2661 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2663 (c_common_init_options): Update prototype.
2664 * c-opts.c (c_common_option_lang_mask): New.
2665 (c_common_initialize_diagnostics): Split out of
2666 c_common_init_options.
2667 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2669 (c_common_init_options): Update prototype. Use decoded options in
2670 search for -lang-asm.
2672 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2674 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2675 * c-format.c: Likewise.
2677 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2679 * c-common.h: Include diagnostic-core.h. Error if already
2681 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2683 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2685 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2686 Do not include expr.h
2687 (vector_mode_valid_p): Move here.
2689 2010-06-21 DJ Delorie <dj@redhat.com>
2691 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2692 allow these pragmas anywhere.
2694 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2697 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2698 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2699 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2700 ggc_strdup instead of xstrdup.
2702 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2704 * c-cppbuiltin.c: Include cpp-id-data.h.
2705 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2706 (lazy_hex_fp_value): New function.
2707 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2709 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2711 * c-gimplify.c: Do not include tree-flow.h
2713 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2716 * c-common.c: Rename targetm member:
2717 targetm.enum_va_list -> targetm.enum_va_list_p
2719 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2721 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2723 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2725 * c-cppbuiltin.c: Do not include except.h.
2727 2010-06-24 Andi Kleen <ak@linux.intel.com>
2729 * c-common.c (warn_for_omitted_condop): New.
2730 * c-common.h (warn_for_omitted_condop): Add prototype.
2732 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2734 * c.opt (lang-objc): Remove.
2735 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2737 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2739 * c-opts.c: Include "tm_p.h".
2741 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2743 * c-common.c (parse_optimize_options): Update call to
2746 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2748 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2749 new type of types_used_by_cur_var_decl.
2751 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2754 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2755 for C++ standard compliance.
2757 2010-06-16 Jason Merrill <jason@redhat.com>
2759 * c.opt: Add -Wnoexcept.
2761 2010-06-16 Richard Guenther <rguenther@suse.de>
2764 * c-common.c (c_common_truthvalue_conversion): Remove
2765 premature and wrong optimization concering ADDR_EXPRs.
2767 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2769 * c-ada-spec.c (dump_sloc): Remove column info.
2770 (is_simple_enum): New function.
2771 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2772 enum types when relevant.
2774 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2776 * c-common.c (conversion_warning): Warn at expression
2779 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2781 * c-opts.c (c_common_handle_option): Don't handle
2784 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2786 * c-pragma.c (push_alignment): Use typed GC allocation.
2787 (handle_pragma_push_options): Likewise.
2789 * c-common.c (parse_optimize_options): Likewise.
2791 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2794 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2796 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2797 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2798 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2799 flag_signed_bitfields, warn_strict_null_sentinel,
2800 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2801 flag_gen_declaration, flag_no_gnu_keywords,
2802 flag_implement_inlines, flag_implicit_templates,
2803 flag_implicit_inline_templates, flag_optional_diags,
2804 flag_elide_constructors, flag_default_inline, flag_rtti,
2805 flag_conserve_space, flag_access_control, flag_check_new,
2806 flag_new_for_scope, flag_weak, flag_working_directory,
2807 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2808 flag_enforce_eh_specs, flag_threadsafe_statics,
2809 flag_pretty_templates): Remove.
2810 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2811 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2812 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2813 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2814 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2815 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2816 flag_no_gnu_keywords, flag_implement_inlines,
2817 flag_implicit_templates, flag_implicit_inline_templates,
2818 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2819 flag_rtti, flag_conserve_space, flag_access_control,
2820 flag_check_new, flag_new_for_scope, flag_weak,
2821 flag_working_directory, flag_use_cxa_atexit,
2822 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2823 flag_threadsafe_statics, flag_pretty_templates,
2824 warn_strict_null_sentinel): Remove.
2825 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2826 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2827 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2828 fimplicit-inline-templates, fimplicit-templates,
2829 flax-vector-conversions, fms-extensions, fnil-receivers,
2830 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2831 frtti, fshort-double, fshort-enums, fshort-wchar,
2832 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2833 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2834 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2835 gen-decls, undef): Use Var.
2836 (fdefault-inline, foptional-diags): Document as doing nothing.
2837 * c-opts.c (c_common_handle_option): Remove cases for options now
2838 using Var. Mark ignored options as such.
2840 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2842 * c-common.c: Moved to here from parent directory.
2843 * c-common.def: Likewise.
2844 * c-common.h: Likewise.
2845 * c-cppbuiltin.c: Likewise.
2846 * c-dump.c: Likewise.
2847 * c-format.c: Likewise.
2848 * c-format.h : Likewise.
2849 * c-gimplify.c: Likewise.
2850 * c-lex.c: Likewise.
2851 * c-omp.c: Likewise.
2853 * c-opts.c: Likewise.
2854 * c-pch.c: Likewise.
2855 * c-ppoutput.c: Likewise.
2856 * c-pragma.c: Likewise.
2857 * c-pragma.h: Likewise.
2858 * c-pretty-print.c: Likewise.
2859 * c-pretty-print.h: Likewise.
2860 * c-semantics.c: Likewise.
2861 * stub-objc.c: Likewise.
2863 * c-common.c: Include gt-c-family-c-common.h.
2864 * c-pragma.c: Include gt-c-family-c-pragma.h.
2866 Copyright (C) 2010-2013 Free Software Foundation, Inc.
2868 Copying and distribution of this file, with or without modification,
2869 are permitted in any medium without royalty provided the copyright
2870 notice and this notice are preserved.