1 2013-10-11 Jakub Jelinek <jakub@redhat.com>
3 * c-common.h (omp_clause_mask::operator !=): New method.
4 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
5 instead of if (mask & something) tests everywhere.
7 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
8 201307 instead of 201107.
9 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
10 (c_common_attribute_table): Add "omp declare target" and
11 "omp declare simd" attributes.
12 (handle_omp_declare_target_attribute,
13 handle_omp_declare_simd_attribute): New functions.
14 * c-omp.c: Include c-pragma.h.
15 (c_finish_omp_taskgroup): New function.
16 (c_finish_omp_atomic): Add swapped argument, if true,
17 build the operation first with rhs, lhs arguments and use NOP_EXPR
19 (c_finish_omp_for): Add code argument, pass it down to make_code.
20 (c_omp_split_clauses): New function.
21 (c_split_parallel_clauses): Removed.
22 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
23 c_omp_declare_simd_clauses_to_decls): New functions.
24 * c-common.h (omp_clause_mask): New type.
25 (OMP_CLAUSE_MASK_1): Define.
26 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
27 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
28 omp_clause_mask::operator |, omp_clause_mask::operator &,
29 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
30 omp_clause_mask::operator ==): New methods.
31 (enum c_omp_clause_split): New.
32 (c_finish_omp_taskgroup): New prototype.
33 (c_finish_omp_atomic): Add swapped argument.
34 (c_finish_omp_for): Add code argument.
35 (c_omp_split_clauses): New prototype.
36 (c_split_parallel_clauses): Removed.
37 (c_omp_declare_simd_clauses_to_numbers,
38 c_omp_declare_simd_clauses_to_decls): New prototypes.
39 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
40 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
41 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
42 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
43 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
44 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
45 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
46 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
47 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
48 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
49 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
50 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
51 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
52 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
53 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
54 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
55 PRAGMA_OMP_CLAUSE_UNIFORM.
57 2013-10-09 Marc Glisse <marc.glisse@inria.fr>
59 PR tree-optimization/20318
60 * c-common.c (handle_returns_nonnull_attribute): New function.
61 (c_common_attribute_table): Add returns_nonnull.
63 2013-10-03 Marc Glisse <marc.glisse@inria.fr>
66 * c.opt (fcheck-new): Move to common.opt.
68 2013-09-25 Marek Polacek <polacek@redhat.com>
69 Jakub Jelinek <jakub@redhat.com>
72 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
73 an expression if we can prove it is correct.
74 (ubsan_instrument_division): Likewise. Remove unnecessary
77 2013-09-18 Marek Polacek <polacek@redhat.com>
80 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
82 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
84 2013-09-14 Iain Sandoe <iain@codesourcery.com>
87 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
88 fobjc-gc, freplace-objc-classes): Accept for LTO.
90 2013-09-13 Jacek Caban <jacek@codeweavers.com>
92 * c-target.def: New hook
94 2013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
97 * c.opt (Wdelete-incomplete): Add.
99 2013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
101 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
102 (vector_types_compatible_elements_p): New function.
103 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
105 (vector_types_compatible_elements_p): Declare.
107 2013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
109 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
110 a virtual member function.
111 (pp_simple_type_specifier): Remove.
112 (pp_c_type_specifier): Likewise.
113 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
114 Rename from pp_c_type_specifier. Adjust.
115 (c_pretty_printer::c_pretty_printer): Do not assign to
116 simple_type_specifier.
118 2013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
120 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
122 (c_pretty_printer::storage_class_specifier): Likewise.
123 (c_pretty_printer::initializer): Likewise.
124 (pp_declaration): Remove.
125 (pp_declaration_specifiers): Likewise.
126 (pp_abstract_declarator): Likewise.
127 (pp_declarator): Likewise.
128 (pp_type_id): Likewise.
129 (pp_statement): Likewise.
130 (pp_constant): Likewise.
131 (pp_id_expression): Likewise.
132 (pp_primary_expression): Likewise.
133 (pp_unary_expression): Likewise.
134 (pp_multiplicative_expression): Likewise.
135 (pp_conditional_expression): Likewise.
136 (pp_assignment_expression): Likewise.
137 (pp_expression): Likewise.
138 (pp_c_type_id): Likewise.
139 (pp_c_storage_class_specifier): Likewise.
140 * c-pretty-print.c (pp_c_type_cast): Tidy.
141 (pp_c_pointer): Likewise.
142 (pp_c_type_specifier): Likewise.
143 (pp_c_parameter_type_list): Likewise.
144 (pp_c_function_definition): Likewise.
145 (pp_c_init_declarator): Likewise.
146 (pp_c_initializer_list): Likewise.
147 (pp_c_constructor_elts): Likewise.
148 (c_pretty_printer::direct_abstract_declarator): Likewise.
149 (c_pretty_printer::declaration_specifiers): Likewise.
150 (c_pretty_printer::primary_expression): Likewise.
151 (c_pretty_printer::postfix_expression): Likewise.
152 (c_pretty_printer::type_id): Rename from pp_c_type_id.
153 (c_pretty_printer::storage_class_specifier): Rename from
154 pp_c_storage_class_specifier.
155 (c_pretty_printer::initializer): Rename from pp_c_initializer.
156 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
157 storage_class_specifier, initializer, offset_list, flags.
159 2013-08-30 Marek Polacek <polacek@redhat.com>
161 * c-ubsan.c: New file.
162 * c-ubsan.h: New file.
164 2013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
166 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
168 (c_pretty_printer::declaration_specifiers): Likewise.
169 (c_pretty_printer::declarator): Likewise.
170 (c_pretty_printer::abstract_declarator): Likewise.
171 (c_pretty_printer::direct_abstract_declarator): Likewise.
172 (c_pretty_printer::direct_declarator): Likewise.
173 (c_pretty_printer::function_specifier): Likewise.
174 (pp_declaration): Adjust.
175 (pp_declaration_specifiers): Likewise.
176 (pp_abstract_declarator): Likewise.
177 (pp_direct_declarator): Likewise.
178 (pp_function_specifier): Likewise.
179 (pp_direct_abstract_declarator): Remove as unused.
180 (pp_c_declaration): Remove.
181 (pp_c_declaration_specifiers): Likewise.
182 (pp_c_declarator): Likewise.
183 (pp_c_direct_declarator): Likewise.
184 (pp_c_function_specifier): Likewise.
185 (pp_c_direct_abstract_declarator): Likewise.
186 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
187 from pp_c_abstract_declarator. Adjust.
188 (c_pretty_printer::direct_abstract_declarator): Rename from
189 pp_c_direct_abstract_declarator. Adjust.
190 (c_pretty_printer::function_specifier): Rename from
191 pp_c_function_specifier. Adjust.
192 (c_pretty_printer::declaration_specifiers): Rename from
193 pp_c_declaration_specifiers. Adjust.
194 (c_pretty_printer::direct_declarator): Rename from
195 pp_c_direct_declarator. Adjust.
196 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
197 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
198 (c_pretty_printer::c_pretty_printer): Do not assign to
199 declaration, declaration_specifiers, declarator,
200 direct_declarator, direct_abstract_declarator, function_specifier.
202 2013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
204 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
205 virtual member function.
206 (c_pretty_printer::multiplicative_expression): Likewise.
207 (c_pretty_printer::conditional_expression): Likewise.
208 (c_pretty_printer::assignment_expression): Likewise.
209 (c_pretty_printer::expression): Likewise.
210 (pp_unary_expression): Adjust.
211 (pp_multiplicative_expression): Likewise.
212 (pp_assignment_expression): Likewise.
213 (pp_conditional_expression): Likewise.
214 (pp_expression): Likewise.
215 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
216 from pp_c_unary_expression. Adjust.
217 (c_pretty_printer::multiplicative_expression): Rename from
218 pp_c_multiplicative_expression. Adjust.
219 (c_pretty_printer::conditional_expression): Rename from
220 pp_c_conditional_expression. Adjust.
221 (c_pretty_printer::assignment_expression): Rename from
222 pp_c_assignment_expression. Adjust.
223 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
224 (c_pretty_printer::c_pretty_printer): Do not assign to
225 unary_expression, multiplicative_expression,
226 conditional_expression, expression.
228 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
230 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
231 virtual member function.
232 (pp_postfix_expression): Adjust.
233 (pp_c_postfix_expression): Remove.
234 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
235 from pp_c_postfix_expression. Adjust.
236 (c_pretty_printer::c_pretty_printer): Do not assign to
239 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
241 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
242 virtua member function.
243 (pp_primary_expression): Adjust.
244 (pp_c_primary_expression): Remove.
245 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
246 from pp_c_primary_expression. Adjust.
247 (pp_c_initializer_list): Use pp_primary_expression.
248 (c_pretty_printer::c_pretty_printer): Do not assign to
251 2013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
253 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
254 * c-pretty-print.c (M_): Remove.
255 (c_pretty_printer::translate_string): Define.
256 (pp_c_type_specifier): Use it.
257 (pp_c_primary_expression): Likewise.
258 (pp_c_expression): Likewise.
260 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
262 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
264 (pp_c_id_expression): Remove.
265 (pp_id_expression): Adjust.
266 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
267 pp_c_id_expression. Adjust.
268 (pp_c_postfix_expression): Use pp_id_expression.
269 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
271 2013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
273 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
275 (pp_constant): Adjust.
276 (pp_c_constant): Remove.
277 * c-pretty-print.c (c_pretty_printer::constant): Rename from
278 pp_c_constant. Adjust.
280 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
281 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
283 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
285 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
286 (c_pretty_printer::c_pretty_printer): Declare.
287 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
288 c_pretty_printer_init. Adjust.
289 (print_c_tree): Do not call c_pretty_printer_init.
290 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
292 2013-08-09 Arnaud Charlet <charlet@adacore.com>
294 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
296 2013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
299 * c-common.c (pointer_int_sum): Add bool parameter.
300 * c-common.h (pointer_int_sum): Adjust declaration.
302 2013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
304 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
305 c_pretty_printer variable.
307 2013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
309 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
311 (pp_c_base): Likewise. Adjust users.
312 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
313 (pp_c_whitespace): Do not call pp_base.
314 (pp_c_left_paren): Likewise.
315 (pp_c_right_paren): Likewise.
316 (pp_c_left_brace): Likewise.
317 (pp_c_right_brace): Likewise.
318 (pp_c_left_bracket): Likewise.
319 (pp_c_right_bracket): Likewise.
320 (pp_c_dot): Likewise.
321 (pp_c_ampersand): Likewise.
322 (pp_c_star): Likewise.
323 (pp_c_arrow): Likewise.
324 (pp_c_semicolon): Likewise.
325 (pp_c_complement): Likewise.
326 (pp_c_exclamation): Likewise.
327 (pp_c_direct_declarator): Likewise.
328 (pp_c_ws_string): Likewise.
329 (pp_c_identifier): Likewise.
330 (pp_c_statement): Likewise.
331 (print_c_tree): Likewise.
333 2013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
336 * c-common.c (c_parse_error): Catch user-defined literal tokens and
337 provide useful error strings.
339 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
341 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
342 printer functions instead of pp_string or operators and punctuators.
343 (dump_generic_ada_node): Likewise.
344 * c-pretty-print.c (pp_c_type_specifier): Likewise.
345 (pp_c_relational_expression): Likewise.
346 (pp_c_logical_or_expression): Likewise.
348 2013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
350 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
351 functions instead of pp_character.
352 (pp_ada_tree_identifier): Likewise.
353 (dump_ada_double_name): Likewise.
354 (dump_ada_function_declaration): Likewise.
355 (dump_ada_array_domains): Likewise.
356 (dump_template_types): Likewise.
357 (dump_generic_ada_node): Likewise.
358 (print_ada_declaration): Likewise.
359 (print_ada_struct_decl): Likewise.
360 * c-pretty-print.c (pp_c_integer_constant): Likewise.
362 2013-07-23 Tom Tromey <tromey@redhat.com>
364 * c-common.h (enum rid) <RID_GENERIC>: New constant.
365 * c-common.c (c_common_reswords): Add _Generic.
367 2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
369 * c-common.c: Fix typos.
370 * c-common.h: Likewise.
372 2013-07-13 Lubos Lunak <l.lunak@suse.cz>
375 * c-common.c (c_common_attribute_table): Add warn_unused.
376 (handle_warn_unused_attribute): New.
378 2013-07-10 Jakub Jelinek <jakub@redhat.com>
380 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
381 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
383 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
386 * c.opt: Add Wconditionally-supported.
388 2013-07-08 Graham Stott <graham.stott@btinternet.com>
390 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
391 unused variables l_length and l_node.
393 2013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
396 * c-common.c (complete_array_type): Delay folding first index
397 like other indices. When folding, check for index overflow.
399 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
402 * c-common.h (c_build_vec_perm_expr): New complain argument.
403 * c-common.c (c_build_vec_perm_expr): Likewise.
404 Use save_expr also in C++.
406 2013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
408 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
409 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
410 * c-opts.c (c_common_post_options): Likewise.
412 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
414 * array-notation-common.c (length_mismatch_in_expr): Changed the
415 parameter type's from a dynamic array to a vec_tree. Also removed
417 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
420 2013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
422 * c-common.h (struct cilkplus_an_parts): New structure.
423 (struct cilkplus_an_loop_parts): Likewise.
424 (cilkplus_extract_an_triplets): New prototype.
425 (fix_sec_implicit_args): Likewise.
426 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
427 (fix_sec_implicit_args): Likewise.
429 2013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
431 * array-notation-common.c (find_inv_trees): Removed an unwanted
433 * c-common.h (struct inv_list::additional_tcodes): Changed type from
434 enum rid to enum tree_code.
436 2013-06-11 Jan Hubicka <jh@suse.cz>
438 * c-common.c (handle_alias_ifunc_attribute): Do not set
439 DECL_EXTERNAL for weakref variables.
440 * c-pragma.c (handle_pragma_weak): Make sure aliases
441 are not declared as external.
443 2013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
445 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
446 function from c/c-array-notation.c.
447 (is_cilkplus_reduce_builtin): Likewise.
448 (find_rank): Likewise.
449 (extract_array_notation_exprs): Likewise.
450 (replace_array_notations): Likewise.
451 (find_inv_trees): Likewise.
452 (replace_inv_trees): Likewise.
453 (contains_array_notation_expr): Likewise.
454 (find_correct_array_notation_type): Likewise.
455 * c-common.h (struct inv_list): Moved this struct from the file
456 c/c-array-notation.c and added a new field called additional tcodes.
457 (length_mismatch_in_expr_p): New prototype.
458 (is_cilkplus_reduce_builtin): Likewise.
459 (find_rank): Likewise.
460 (extract_array_notation_exprs): Likewise.
461 (replace_array_notation): Likewise.
462 (find_inv_trees): Likewise.
463 (replace_inv_trees): Likewise.
464 (find_correct_array_notation_type): Likewise.
466 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
468 * c-common.c (c_define_builtins): When cilkplus is enabled, the
469 function array_notation_init_builtins is called.
470 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
471 * c-common.def (ARRAY_NOTATION_REF): New tree.
472 * c-common.h (build_array_notation_expr): New function declaration.
473 (build_array_notation_ref): Likewise.
474 (extract_sec_implicit_index_arg): New extern declaration.
475 (is_sec_implicit_index_fn): Likewise.
476 (ARRAY_NOTATION_CHECK): New define.
477 (ARRAY_NOTATION_ARRAY): Likewise.
478 (ARRAY_NOTATION_START): Likewise.
479 (ARRAY_NOTATION_LENGTH): Likewise.
480 (ARRAY_NOTATION_STRIDE): Likewise.
481 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
483 (pp_c_expression): Likewise.
484 * c.opt (flag_enable_cilkplus): New flag.
485 * array-notation-common.c: New file.
487 2013-05-14 Jakub Jelinek <jakub@redhat.com>
490 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
492 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
494 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
497 2013-05-07 Han Shen <shenhan@google.com>
499 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
501 2013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
503 * c-common.c (check_user_alignment): Emit error for negative values.
505 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
507 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
509 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
511 * c-cppbuiltin.c (c_cpp_builtins): Do not define
512 __GXX_EXPERIMENTAL_CXX1Y__.
514 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
515 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
517 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
518 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
519 to simply use OPT_Wpointer_arith.
520 (c_sizeof_or_alignof_type): Likewise.
522 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
524 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
526 2013-04-12 Jakub Jelinek <jakub@redhat.com>
528 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
529 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
532 2013-04-07 Steven Bosscher <steven@gcc.gnu.org>
534 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
536 2013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
538 * c-common.c (pointer_int_sum): Remove dead code.
540 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
543 * c-common.c (handle_optimize_attribute): Don't call
544 save_optabs_if_changed.
546 2013-03-05 Jakub Jelinek <jakub@redhat.com>
549 * c-pch.c (pch_init): Free target_validity at the end.
551 2013-03-04 Jakub Jelinek <jakub@redhat.com>
553 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
555 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
556 Jakub Jelinek <jakub@redhat.com>
559 * c-common.c (handle_no_sanitize_address_attribute): New function.
560 (c_common_attribute_table): Add no_sanitize_address attribute.
561 (handle_no_address_safety_analysis_attribute): Add
562 no_sanitize_address attribute, not no_address_safety_analysis
565 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
568 * c-common.c (handle_optimize_attribute): Call
569 save_optabs_if_changed.
571 2013-02-18 Jakub Jelinek <jakub@redhat.com>
572 Steven Bosscher <steven@gcc.gnu.org>
575 * c-opts.c (c_common_post_options): If debug info is enabled
576 and non-dwarf*, refuse to load PCH files and when writing PCH
579 2013-02-05 Jakub Jelinek <jakub@redhat.com>
582 * c-common.c (handle_error_attribute): Fix condition.
584 2013-01-30 Jakub Jelinek <jakub@redhat.com>
587 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
589 2013-01-18 Jason Merrill <jason@redhat.com>
592 * c.opt (-fextern-tls-init): New.
593 * c-opts.c (c_common_post_options): Handle it.
595 2013-01-09 Jakub Jelinek <jakub@redhat.com>
598 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
599 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
600 and is either negative or bigger or equal to type precision
601 of the first operand.
603 2012-12-03 Marek Polacek <polacek@redhat.com>
606 * c-common.c (check_user_alignment): Swap order of tests,
607 check TREE_CODE first.
609 2012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
612 * c-common.h (overflow_type): New enum.
613 (build_userdef_literal): Add overflow_type argument.
614 (tree_userdef_literal): Add overflow_type.
615 (USERDEF_LITERAL_OVERFLOW): New access macro.
616 * c-common.c (build_userdef_literal): Add overflow_type
618 * c-lex.c (c_lex_with_flags): Add overflow_type to
619 build_userdef_literal calls.
620 (interpret_integer, interpret_float): Add overflow_type argument.
622 2012-11-28 Richard Biener <rguenther@suse.de>
625 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
626 here and use a type with proper overflow behavior for types that would
627 need to be promoted for the arithmetic.
629 2012-11-23 Jakub Jelinek <jakub@redhat.com>
632 * c-common.c (handle_no_address_safety_analysis_attribute): New
634 (c_common_attribute_table): Add no_address_safety_analysis.
636 2012-11-16 Simon Baldwin <simonb@google.com>
638 * c.opt: Add f[no-]canonical-system-headers.
639 * c-opts.c (c_common_handle_option): Handle
640 OPT_fcanonical_system_headers.
642 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
645 * c-opts.c (c_common_handle_option): Set new flags.
646 * c.opt: Describe new flags.
648 2012-11-09 Jason Merrill <jason@redhat.com>
650 * c.opt (Wabi-tag): New.
652 2012-11-09 Andi Kleen <ak@linux.intel.com>
655 * c-common.c (get_atomic_generic_size): Mask with
658 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
661 * c.opt (Wformat): Make it Alias Wformat=1.
662 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
663 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
665 (Wformat=): RejectNegative. Use LangEnabledBy.
666 (Wnonnull): Use LangEnabledBy.
667 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
668 * c-format.c (set_Wformat): Delete.
669 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
670 (maybe_read_dollar_number): Likewise.
671 (avoid_dollar_number): Likewise.
672 (finish_dollar_format_checking): Likewise.
673 (check_format_info): Likewise.
674 (check_format_info_main): Likewise.
675 (check_format_types): Likewise.
676 (format_type_warning): Likewise.
677 * c-common.c (int): Likewise.
678 (check_function_sentinel): Likewise.
679 * c-common.h (warn_format,set_Wformat): Do not declare here.
681 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
684 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
685 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
687 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
689 (Wvariadic-macros): Init(1).
690 * c-opts.c (c_common_handle_option): Do not handle them
692 (c_common_post_options): Likewise.
693 (sanitize_cpp_opts): warn_unused_macros is now
694 cpp_warn_unused_macros.
695 (push_command_line_include): Likewise.
696 * c-common.c (warn_unknown_pragmas): Do not define.
697 * c-common.h (warn_unknown_pragmas): Do not declare.
699 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
702 * c-common.c (conversion_warning): Handle conditional expressions.
704 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
707 * c.opt (Wreturn_local_addr): Define new option.
709 2012-10-25 Jason Merrill <jason@redhat.com>
711 * c.opt (Wvirtual-move-assign): New.
713 * c.opt (Winherited-variadic-ctor): New.
715 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
718 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
720 2012-10-23 Joseph Myers <joseph@codesourcery.com>
722 * c-common.h (pch_cpp_save_state): Declare.
723 * c-target.def (c_preinclude): New hook.
724 * c-opts.c (done_preinclude): New.
725 (push_command_line_include): Handle default preincluded header.
726 (cb_file_change): Call pch_cpp_save_state when calling
727 push_command_line_include.
728 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
729 (pch_cpp_save_state): New.
730 (pch_init): Call pch_cpp_save_state conditionally, instead of
731 calling cpp_save_state.
733 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
737 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
738 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
739 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
740 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
741 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
742 * c-opts.c (c_common_handle_option): Remove explicit handling from
744 (c_common_post_options): Likewise.
746 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
748 * c-ada-spec.c (LOCATION_COL): Delete.
749 (compare_location): New function.
750 (compare_node): Use it.
751 (compare_comment): Likewise.
753 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
757 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
758 * c-opts.c (c_common_handle_option): Do not set them here. Add
760 (c_common_post_options): Likewise.
762 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
764 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
765 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
766 Remove POINTER_TYPE handling, add large unsigned handling and use
767 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
769 2012-10-12 Jakub Jelinek <jakub@redhat.com>
772 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
773 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
774 locs and array of 3 trees instead of just single loc and single
775 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
776 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
777 For *cmp* builtins that take two sources strings report warnings
778 about first and second source, not about destination and source.
780 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
783 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
785 2012-10-11 Eric Botcazou <ebotcazou@adacore.com>
787 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
788 declaring something coming from another file.
790 2012-10-10 Arnaud Charlet <charlet@adacore.com>
793 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
795 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
798 * c-common.c (warn_about_parentheses): Add location_t parameter;
800 * c-common.h: Update declaration.
802 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
805 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
806 more operations. Make error messages optional.
807 * c-common.h (enum stv_conv): Moved from c-typeck.c.
808 (scalar_to_vector): Declare.
810 2012-10-08 Jason Merrill <jason@redhat.com>
812 * c-common.c (c_common_reswords): Add thread_local.
814 2012-10-08 Dodji Seketeli <dodji@redhat.com>
816 PR c++/53528 C++11 attribute support
817 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
819 * c-common.c (check_cxx_fundamental_alignment_constraints): New
821 (handle_aligned_attribute): In choose strictest alignment
822 among many. Use new check_cxx_fundamental_alignment_constraints.
823 (handle_transparent_union_attribute): In c++11 attribute syntax,
824 don't look through typedefs.
826 2012-10-04 Arnaud Charlet <charlet@adacore.com>
828 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
829 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
832 2012-09-25 Dehao Chen <dehao@google.com>
835 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
836 map when read in the pch.
838 2012-09-18 Arnaud Charlet <charlet@adacore.com>
840 * c-ada-spec.c: Style fixes.
842 2012-09-18 Thomas Quinot <quinot@adacore.com>
844 * c.opt (-fada-spec-parent): Define new command line switch.
845 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
846 is specified, generate binding spec as a child of the specified unit.
848 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
849 Manuel López-Ibáñez <manu@gcc.gnu.org>
852 * c.opt ([Winit-self]): Enabled by -Wall in C++.
854 2012-08-23 Arnaud Charlet <charlet@adacore.com>
856 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
857 for pointers, and add missing Convention C pragma.
858 (print_ada_struct_decl): Add missing aliased keyword.
859 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
861 2012-08-17 Jakub Jelinek <jakub@redhat.com>
863 * c-common.c (sizeof_pointer_memaccess_warning): New function.
864 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
865 * c-opts.c (c_common_handle_option): Enable it for -Wall.
866 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
867 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
869 2012-08-10 Richard Guenther <rguenther@suse.de>
871 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
873 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
875 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
876 instead of separate pp_newline and pp_flush.
877 (print_c_tree): Likewise.
879 2012-07-26 Richard Henderson <rth@redhat.com>
881 * c-common.c (handle_hot_attribute): Allow labels.
882 (handle_cold_attribute): Likewise.
884 2012-07-20 Jakub Jelinek <jakub@redhat.com>
887 * c-common.c (check_function_nonnull): Handle multiple nonnull
890 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
892 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
893 * c-ada-spec.c: Likewise.
894 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
896 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
898 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
899 Remove code conditional on it.
901 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
903 * c-gimplify.c: Do not include basic-block.h.
904 * c-common.c: Do not include linfuncs.h.
906 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
908 * c-common.h: Include tree.h.
910 2012-07-02 Jason Merrill <jason@redhat.com>
913 * c-common.c (get_priority): Call default_conversion.
915 2012-07-01 Uros Bizjak <ubizjak@gmail.com>
917 * c-pch.c (c_common_write_pch): Remove unused variables.
919 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
921 * cppspec.c: Moved from gcc/ to here.
923 2012-06-27 Kai Tietz <ktietz@redhat.com>
925 PR preprocessor/37215
926 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
928 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
930 * c-common.h (c_common_print_pch_checksum): Remove.
931 * c-pch.c: Do not include output.h.
932 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
933 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
934 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
935 (struct c_pch_header): Remove.
936 (get_ident): Update gpch version.
937 (pch_init): Do not print executable_checksum to asm_out_file.
938 Do not fail if there is no asm_out_file to read back from. Set
939 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
940 (c_common_write_pch): Verify that nothing was written to asm_out_file
941 since pch_init was called. Do not write a c_pch_header, and do not
942 copy from asm_out_file to the PCH.
943 (c_common_read_pch): Do not read a c_pch_header, and do not restore
944 the content of asm_out_file from the PCH.
945 (c_common_print_pch_checksum): Remove.
946 * c-opts.c (c_common_init): Print out executable_checksum directly.
948 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
950 * c-target.def (objc_declare_unresolved_class_reference,
951 objc_declare_class_definition): Add new hooks.
953 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
955 * c-lex.c: Do not include output.h.
956 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
957 Remove uses of ASM_OUTPUT_IDENT.
959 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
962 * c-common.h (c_build_vec_perm_expr): Move decl here.
963 * c-common.c (c_build_vec_perm_expr): Move definition
966 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
968 * c.opt (fconserve-space): Turn into a no-op.
970 2012-06-04 Sterling Augustine <saugustine@google.com>
972 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
973 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
974 both the start and end of the function.
976 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
978 * c-common.c: Do not include output.h.
979 * c-pragma.c: Likewise.
981 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
983 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
984 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
985 (lang_decl_name): Handle namespace decls.
987 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
989 * c-ada-spec.c: Do not include output.h.
990 * c-semantics.c: Likewise.
992 2012-05-29 Joseph Myers <joseph@codesourcery.com>
994 * c-common.c: Fix typo.
996 2012-05-29 Michael Matz <matz@suse.de>
998 * c-common.h (c_expand_decl): Remove prototype.
1000 2012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1002 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1003 * c-opts.c (c_common_handle_option): Remove code handling
1004 warn_missing_braces.
1006 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1009 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1012 2012-05-22 Dodji Seketeli <dodji@redhat.com>
1015 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1017 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1019 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1020 * c-opts.c (c_common_handle_option): Do not handle explicitly
1021 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1023 2012-05-16 Dodji Seketeli <dodji@redhat.com>
1025 PR preprocessor/7263
1026 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1027 to cpp_classify_number. For diagnostics, use the precise location
1028 instead of the global input_location.
1030 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1033 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1035 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1037 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
1039 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1042 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1043 Wreorder): Use LangEnabledBy.
1044 * c-opts.c (c_common_handle_option): Do not enable them
1045 explicitly. Call lang-specific generated functions.
1046 (c_common_post_options): Do not set them here.
1048 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1050 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1051 Wmissing-field-initializers,Wmissing-parameter-type,
1052 Wold-style-declaration,Woverride-init): Use EnabledBy.
1053 * c-opts.c (c_common_post_options): Do not set here explicitly.
1055 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1058 * c-opts.c (c_common_handle_option): Use handle_generated_option
1059 to enable sub-options.
1061 2012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1064 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1066 2012-05-10 Richard Guenther <rguenther@suse.de>
1068 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1069 adjust commentary about TYPE_IS_SIZETYPE types.
1071 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1074 * c-common.c (warn_logical_operator): Check that argument of
1075 integer_zerop is not NULL.
1077 2012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1080 * c-common.c (warn_logical_operator): Do not warn if either side
1081 is already true or false.
1083 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1086 * c-common.c (expr_original_type): New.
1087 (shorten_compare): Do not warn for enumeration types.
1089 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1091 * c.opt (fpermissive): Add Var(flag_permissive).
1093 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
1096 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1097 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1099 2012-04-30 Dodji Seketeli <dodji@redhat.com>
1101 Add -Wvarargs option
1102 * c.opt (Wvarargs): Define new option.
1104 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1106 * c-common.c (check_function_arguments): Replace
1107 Wmissing-format-attribute with Wsuggest-attribute=format.
1109 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1111 * c.opt (Wsuggest-attribute=format): New. Alias of
1112 Wmissing-format-attribute.
1113 * c-format.c (decode_format_type): Replace
1114 Wmissing-format-attribute with Wsuggest-attribute=format.
1115 (check_function_format): Likewise.
1117 2012-04-27 Ollie Wild <aaw@google.com>
1119 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1120 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1121 * c.opt: Add Wliteral-suffix.
1123 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1126 * c.opt (Wpedantic): New.
1127 (pedantic): Alias Wpedantic.
1128 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1129 (c_common_post_options): Likewise.
1130 (sanitize_cpp_opts): Likewise.
1131 * c-lex.c (interpret_float): Likewise.
1132 * c-format.c (check_format_types): Likewise.
1133 * c-common.c (pointer_int_sum): Likewise.
1134 (c_sizeof_or_alignof_type): Likewise.
1135 (c_add_case_label): Likewise.
1136 (c_do_switch_warnings): Likewise.
1137 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1139 2012-04-15 Jason Merrill <jason@redhat.com>
1142 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1143 (C_STD_NAME): Distinguish between C++98 and C++11.
1145 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1148 * c-common.h (uint16_type_node): Rename into...
1149 (c_uint16_type_node): ...this.
1150 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1151 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1153 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1155 * c-common.c (warn_if_unused_value): Move definition to here.
1156 * c-common.h (warn_if_unused_value): Move declaration to here.
1158 2012-03-23 William Bader <williambader@hotmail.com>
1160 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1162 2012-03-20 Jason Merrill <jason@redhat.com>
1164 * c-common.h (enum cxx_dialect): Add cxx1y.
1165 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1167 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1168 * c-opts.c (c_common_post_options): Likewise.
1169 (set_std_cxx1y): New.
1170 (c_common_handle_option): Call it.
1171 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1173 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1176 * c.opt ([Wuseless-cast]): Add.
1178 2012-03-16 Richard Guenther <rguenther@suse.de>
1180 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1182 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1185 * c.opt (ftemplate-backtrace-limit) Add.
1187 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1189 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1191 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1192 (init_pragma): Don't register extern_prefix.
1194 2012-03-12 Richard Guenther <rguenther@suse.de>
1196 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1197 (builtin_type_for_size): Likewise.
1199 2012-02-13 Jakub Jelinek <jakub@redhat.com>
1202 * c-common.c (sync_resolve_params): Don't decide whether to convert
1203 or not based on TYPE_SIZE comparison, convert whenever arg_type
1204 is unsigned INTEGER_TYPE.
1206 2012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1209 * c.opt ([Wunused-local-typedefs]): Fix description.
1211 2012-01-24 Mike Stump <mikestump@comcast.net>
1213 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1216 2012-01-18 Richard Guenther <rguenther@suse.de>
1218 * c-opts.c (c_common_post_options): Reset LTO flags if
1219 we are about to generate a PCH.
1221 2012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1224 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1225 use pp_unsigned_wide_integer.
1227 2012-01-10 Richard Guenther <rguenther@suse.de>
1230 * c-opts.c (c_common_handle_option): Move -Werror handling
1231 to language independent code.
1233 2012-01-05 Richard Guenther <rguenther@suse.de>
1236 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1239 2011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1242 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1243 of array types with an unknown bound.
1245 2011-12-20 Joseph Myers <joseph@codesourcery.com>
1247 * c-common.c (flag_isoc99): Update comment to refer to C11.
1248 (flag_isoc1x): Change to flag_isoc11.
1249 * c-common.h (flag_isoc99): Update comment to refer to C11.
1250 (flag_isoc1x): Change to flag_isoc11.
1251 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1253 * c-opts.c (set_std_c1x): Change to set_std_c11.
1254 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1256 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1257 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1258 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1260 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1261 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1262 (std=gnu1x): Make alias of std=gnu11.
1264 2011-12-19 Jason Merrill <jason@redhat.com>
1267 * c-common.c (handle_transparent_union_attribute): Check the first
1268 field if the type is complete.
1270 2011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1273 * c-common.c (RID_IS_FINAL): Add.
1274 * c-common.h (RID_IS_FINAL): Add.
1276 2011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1278 * c.opt (fgnu-runtime): Provide full description.
1279 (fnext-runtime): Likewise.
1280 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1282 2011-11-28 Andrew MacLeod <amacleod@redhat.com>
1284 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1285 predefines in one place. Add LOCK_FREE predefines.
1286 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1289 2011-11-24 Andrew MacLeod <amacleod@redhat.com>
1292 * c-common.c (get_atomic_generic_size): Check for various error
1294 (resolve_overloaded_atomic_exchange,
1295 resolve_overloaded_atomic_compare_exchange,
1296 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1297 error_mark_node for error conditions.
1299 2011-11-08 Richard Guenther <rguenther@suse.de>
1304 2011-11-07 Richard Henderson <rth@redhat.com>
1305 Aldy Hernandez <aldyh@redhat.com>
1306 Torvald Riegel <triegel@redhat.com>
1308 Merged from transactional-memory.
1310 * c-common.c (handle_tm_wrap_attribute,
1311 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1312 (struct c_common_reswords): Added __transaction* keywords.
1313 (struct c_common_attribute_table): Added transaction* and tm_regparm
1315 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1317 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1318 find_tm_attribute): Declare.
1320 2011-11-07 Jason Merrill <jason@redhat.com>
1323 * c-common.c, c-common.h: Revert yesterday's changes.
1325 2011-11-06 Jason Merrill <jason@redhat.com>
1328 * c-common.c (decl_has_visibility_attr): Split out from...
1329 (c_determine_visibility): ...here.
1330 * c-common.h: Declare it.
1332 2011-11-06 Joseph Myers <joseph@codesourcery.com>
1334 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1335 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1337 (check_user_alignment): New. Split out of
1338 handle_aligned_attribute. Disallow integer constants with
1339 noninteger types. Conditionally allow zero.
1340 (handle_aligned_attribute): Use check_user_alignment.
1341 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1343 2011-11-06 Andrew MacLeod <amacleod@redhat.com>
1344 Richard Henderson <rth@redhat.com>
1346 Merged from cxx-mem-model.
1348 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
1349 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1350 parameters that are the same type size.
1351 (get_atomic_generic_size): New. Find size of generic
1352 atomic function parameters and do typechecking.
1353 (add_atomic_size_parameter): New. Insert size into parameter list.
1354 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1355 either __atomic_exchange_n or external library call.
1356 (resolve_overloaded_atomic_compare_exchange): Restructure
1357 __atomic_compare_exchange to either _n variant or external library call.
1358 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1359 __atomic_load_n or an external library call.
1360 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1361 __atomic_store_n or an external library call.
1362 (resolve_overloaded_builtin): Handle new __atomic builtins.
1364 2011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1367 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1368 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1369 <INDIRECT_REF>: Return the argument.
1370 <ARRAY_REF>: Remove special code for negative offset.
1371 Call fold_build_pointer_plus instead of size_binop.
1372 (fold_offsetof): Remove STOP_REF argument and adjust.
1373 * c-common.h (fold_offsetof_1): Declare.
1374 (fold_offsetof): Remove STOP_REF argument.
1376 2011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1379 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1380 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1381 Wnarrowing for C++0x and C++98.
1382 * c.opt ([Wnarrowing]): Update.
1384 2011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1387 * c.opt: Add Wzero-as-null-pointer-constant.
1389 2011-10-31 Jason Merrill <jason@redhat.com>
1391 * c.opt (-fdeduce-init-list): Off by default.
1394 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1395 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1397 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1399 2011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1402 * c.opt (fvisibility-inlines-hidden): Description change.
1404 2011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1406 Implement C++11 user-defined literals.
1407 * c-common.c (build_userdef_literal): New.
1408 * c-common.def: New tree code.
1409 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1410 * c-lex.c (interpret_float): Add suffix parm.
1411 (c_lex_with_flags): Build literal tokens.
1413 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1417 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1420 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1421 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1422 Wnarrowing for C++0x and C++98.
1423 * c.opt ([Wnarrowing]): Update.
1425 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1428 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1429 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1430 Wnarrowing for C++0x and C++98.
1431 * c.opt ([Wnarrowing]): Update.
1433 2011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1436 * c-common.c (conversion_warning): Remove code looking for
1437 artificial operands.
1439 2011-10-18 Dodji Seketeli <dodji@redhat.com>
1442 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
1443 !NO_IMPLICIT_EXTERN_C.
1445 2011-10-17 Michael Spertus <mike_spertus@symantec.com>
1447 * c-common.c (c_common_reswords): Add __bases,
1449 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1451 2011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1454 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1456 2011-10-15 Tom Tromey <tromey@redhat.com>
1457 Dodji Seketeli <dodji@redhat.com>
1459 * c.opt (fdebug-cpp): New option.
1460 * c-opts.c (c_common_handle_option): Handle the option.
1461 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1462 output stream in parameter. Factorized from ...
1463 (maybe_print_line): ... this. Dump location debug information when
1464 -fdebug-cpp is in effect.
1465 (print_line_1): New static function. Takes an output stream in
1466 parameter. Factorized from ...
1467 (print_line): ... here. Dump location information when -fdebug-cpp
1469 (scan_translation_unit): Dump location information when
1470 -fdebug-cpp is in effect.
1472 2011-10-15 Tom Tromey <tromey@redhat.com>
1473 Dodji Seketeli <dodji@redhat.com>
1475 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1477 * c-opts.c (c_common_handle_option)<case
1478 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1479 cases. Handle -ftrack-macro-expansion with and without argument.
1481 2011-10-15 Tom Tromey <tromey@redhat.com>
1482 Dodji Seketeli <dodji@redhat.com>
1484 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1485 (print_line, cb_define, do_line_change): Adjust to avoid touching
1486 the internals of struct line_map. Use the public API instead.
1487 * c-pch.c (c_common_read_pch): Likewise.
1488 * c-lex.c (fe_file_change): Likewise.
1490 2011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1493 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1495 2011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1498 * c-pretty-print.c (pp_c_floating_constant): Output
1499 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1501 2011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1503 * c-common.c (def_builtin_1): Delete old interface with two
1504 parallel arrays to hold standard builtin declarations, and replace
1505 it with a function based interface that can support creating
1506 builtins on the fly in the future. Change all uses, and poison
1507 the old names. Make sure 0 is not a legitimate builtin index.
1508 * c-omp.c (c_finish_omp_barrier): Ditto.
1509 (c_finish_omp_taskwait): Ditto.
1510 (c_finish_omp_flush): Ditto.
1512 2011-10-11 Tristan Gingold <gingold@adacore.com>
1514 * c.opt: (fallow-parameterless-variadic-functions): New.
1516 2011-09-08 Dodji Seketeli <dodji@redhat.com>
1518 PR c++/33255 - Support -Wunused-local-typedefs warning
1519 * c-common.h (struct c_language_function::local_typedefs): New
1521 (record_locally_defined_typedef, maybe_record_typedef_use)
1522 (maybe_warn_unused_local_typedefs): Declare new functions.
1523 * c-common.c (record_locally_defined_typedef)
1524 (maybe_record_typedef_use)
1525 (maybe_warn_unused_local_typedefs): Define new functions.
1526 * c.opt: Declare new -Wunused-local-typedefs flag.
1528 2011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1531 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1534 2011-09-05 Richard Guenther <rguenther@suse.de>
1536 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1537 of integer_minus_one_node for empty array upper bounds.
1539 2011-08-28 Dodji Seketeli <dodji@redhat.com>
1541 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1542 it's the first time it's being called on this main TU.
1544 2011-08-24 Richard Guenther <rguenther@suse.de>
1547 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1549 2011-08-22 Gabriel Charette <gchare@google.com>
1551 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1552 defined in cpp_init_builtins and c_cpp_builtins.
1554 2011-08-19 Joseph Myers <joseph@codesourcery.com>
1556 * c-common.c (c_common_reswords): Add __builtin_complex.
1557 * c-common.h (RID_BUILTIN_COMPLEX): New.
1559 2011-08-18 Joseph Myers <joseph@codesourcery.com>
1561 * c-common.c (c_common_reswords): Add _Noreturn.
1562 (keyword_is_function_specifier): Handle RID_NORETURN.
1563 * c-common.h (RID_NORETURN): New.
1565 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1567 * c-common.c (unsafe_conversion_p): New function. Check if it is
1568 unsafe to convert an expression to the type.
1569 (conversion_warning): Adjust, use unsafe_conversion_p.
1570 * c-common.h (unsafe_conversion_p): New function declaration.
1572 2011-08-02 Jakub Jelinek <jakub@redhat.com>
1574 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1575 (c_finish_omp_taskyield): New prototype.
1576 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1577 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1578 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1579 or RHS1 have side-effects, evaluate those too in the right spot,
1580 if it is a decl and LHS is also a decl, error out if they
1582 (c_finish_omp_taskyield): New function.
1583 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1584 * c-pragma.c (omp_pragmas): Add taskyield.
1585 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1586 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1587 PRAGMA_OMP_CLAUSE_MERGEABLE.
1589 2011-07-25 Dodji Seketeli <dodji@redhat.com>
1591 * c-common.h (set_underlying_type): Remove parm name from
1594 2011-07-25 Romain Geissler <romain.geissler@gmail.com>
1596 * c-pretty-print.h: Search c-common.h in c-family.
1598 2011-07-22 Jason Merrill <jason@redhat.com>
1601 * c.opt (Wnarrowing): New.
1604 * c-common.h: Declare c_linkage_bindings.
1605 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1608 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1609 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1610 as flag_isoc99 for 'restrict'.
1611 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1613 2011-07-21 Ian Lance Taylor <iant@google.com>
1616 * c-common.c (c_disable_warnings): New static function.
1617 (c_enable_warnings): New static function.
1618 (c_fully_fold_internal): Change local unused_p to bool. Call
1619 c_disable_warnings and c_enable_warnings rather than change
1620 c_inhibit_evaluation_warnings.
1622 2011-07-20 Jason Merrill <jason@redhat.com>
1624 PR c++/6709 (DR 743)
1625 PR c++/42603 (DR 950)
1626 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1627 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1628 (CPP_DECLTYPE): New.
1629 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1631 2011-07-19 Richard Guenther <rguenther@suse.de>
1633 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1634 * c-omp.c (c_finish_omp_for): Likewise.
1636 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1638 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1639 body on the next line.
1641 2011-07-08 Jason Merrill <jason@redhat.com>
1644 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1647 * c-common.c (c_apply_type_quals_to_decl): Don't check
1648 TYPE_NEEDS_CONSTRUCTING.
1650 2011-07-06 Richard Guenther <rguenther@suse.de>
1652 * c-common.c (c_common_nodes_and_builtins):
1653 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1655 2011-07-05 Richard Guenther <rguenther@suse.de>
1657 * c-common.c (c_common_nodes_and_builtins): Build all common
1660 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1662 * c-common.h (c_tree_chain_next): New static inline function.
1664 * c-common.c (check_builtin_function_arguments): Handle
1665 BUILT_IN_ASSUME_ALIGNED.
1667 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1669 * c-common.c: Add sync_ or SYNC__ to builtin names.
1670 * c-omp.c: Add sync_ or SYNC__ to builtin names.
1672 2011-06-20 Pierre Vittet <piervit@pvittet.com>
1674 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1676 (gen_pragma_handler): New union.
1677 (internal_pragma_handler): New type.
1678 (c_register_pragma_with_data)
1679 (c_register_pragma_with_expansion_and_data): New functions.
1681 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1682 (c_register_pragma, c_register_pragma_with_expansion)
1683 (c_invoke_pragma_handler): Changed to work with
1684 internal_pragma_handler.
1685 (c_register_pragma_with_data)
1686 (c_register_pragma_with_expansion_and_data): New functions.
1688 2011-06-14 Joseph Myers <joseph@codesourcery.com>
1690 * c-common.c: Include common/common-target.h.
1691 (handle_section_attribute): Use
1692 targetm_common.have_named_sections.
1693 * c-cppbuiltin.c: Include common/common-target.h.
1694 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1696 2011-06-10 Richard Guenther <rguenther@suse.de>
1698 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1699 to print a IDENTIFIER_NODE.
1701 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1702 Joseph Myers <joseph@codesourcery.com>
1704 * c.opt (fbuilding-libgcc): New option.
1705 * c-cppbuiltin.c (c_cpp_builtins): Define
1706 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1708 2011-06-07 Jason Merrill <jason@redhat.com>
1710 * c-common.c (max_tinst_depth): Lower default to 900.
1712 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1714 2011-06-07 Richard Guenther <rguenther@suse.de>
1716 * c-common.c (c_common_nodes_and_builtins): Do not set
1717 size_type_node or call set_sizetype.
1719 2011-06-07 Dodji Seketeli <dodji@redhat.com>
1722 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
1723 type when using pointer comparison to compare types.
1725 2011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1727 * c.opt: Add -Wdelete-non-virtual-dtor.
1728 * c-opts.c (c_common_handle_option): Include it in -Wall.
1730 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1735 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1737 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1740 2011-05-27 Jakub Jelinek <jakub@redhat.com>
1743 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1744 C++ don't call c_common_truthvalue_conversion on void type arms.
1746 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1748 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1749 (stmt_list_stack): Define.
1750 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1751 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1753 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1755 * c-common.c (warning_candidate_p): Check for BLOCKs.
1757 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1759 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1762 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1764 * c-common.c (def_fn_type): Remove extra va_end.
1766 2011-05-23 Jason Merrill <jason@redhat.com>
1769 * c-common.c (c_common_get_narrower): New.
1770 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1772 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1774 * c-common.h (check_function_arguments): Tweak prototype of
1775 check_function_arguments.
1776 * c-common.c (check_function_arguments): Likewise. Adjust
1777 calls to check_function_nonnull, check_function_format, and
1778 check_function_sentinel.
1779 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1780 separate attributes and typelist arguments. Use
1781 FOREACH_FUNCTION_ARGS to iterate over argument types.
1783 2011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1785 * c-common.c (c_common_reswords): Reorder.
1786 * c-common.h (rid): Likewise.
1788 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1790 * c-common.c (def_fn_type): Don't call build_function_type, call
1791 build_function_type_array or build_varargs_function_type_array
1793 (c_common_nodes_and_builtins): Likewise.
1795 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1797 * c-common.c (c_add_case_label): Omit the loc argument to
1799 * c-common.h (build_case_label): Remove.
1800 * c-semantics.c (build_case_label): Remove.
1802 2011-05-05 Joseph Myers <joseph@codesourcery.com>
1804 * c-objc.h (objc_start_method_definition): Update prototype.
1805 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1807 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1809 * c-common.c (check_main_parameter_types): Reindent. Don't use
1810 TYPE_ARG_TYPES directly.
1811 (handle_nonnull_attribute): Likewise.
1812 (sync_resolve_params): Likewise.
1813 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1814 to check_format_string.
1815 (handle_format_attribute): Likewise.
1816 (check_format_string): Take a function type to examine instead of
1817 a type list. Use a function_arg_iterator to step through argument
1820 2011-05-04 Richard Guenther <rguenther@suse.de>
1822 * c-common.c (fix_string_type): Use size_int for index type bounds.
1823 (start_fname_decls): Do not pass NULL to build_int_cst.
1824 (c_init_attributes): Likewise.
1825 * c-lex.c (c_lex_with_flags): Likewise.
1827 2011-04-27 Jason Merrill <jason@redhat.com>
1829 * c-common.c (make_tree_vector_from_list): New.
1830 * c-common.h: Declare it.
1832 2011-04-26 Richard Guenther <rguenther@suse.de>
1834 PR preprocessor/48248
1835 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1836 for output size with -P.
1838 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1840 * c-common.c (struct c_common_resword): Add __underlying_type.
1841 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1843 2011-04-20 Jim Meyering <meyering@redhat.com>
1845 * c-format.c (init_dollar_format_checking): Remove useless
1848 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1850 * c-objc.h (objc_get_interface_ivars): Removed.
1851 (objc_detect_field_duplicates): New.
1852 * stub-objc.c: Likewise.
1854 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1856 * stub-objc.c (objc_declare_protocols): Renamed to
1857 objc_declare_protocol.
1858 * c-objc.h: Likewise.
1860 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1862 * stub-objc.c (objc_declare_class): Updated argument name.
1864 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1866 * c-common.h (c_common_init_ts): Declare.
1867 * c-common.c (c_common_init_ts): Define.
1869 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1871 * c-objc.h (objc_build_message_expr): Updated prototype.
1872 * stub-objc.c (objc_build_message_expr): Likewise.
1874 2011-04-12 Martin Jambor <mjambor@suse.cz>
1876 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1879 2011-04-11 Richard Guenther <rguenther@suse.de>
1881 * c-common.c (complete_array_type): Build a range type of
1884 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1886 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1887 (handle_type_generic_attribute): Likewise.
1889 2011-04-07 Jason Merrill <jason@redhat.com>
1892 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1893 conversion from C++0x scoped enum.
1895 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1897 * c-target-def.h: New file.
1898 * c-target.def: New file.
1899 * c-target.h: New file.
1900 * c-common.c (targetcm): Don't define here.
1901 * c-common.h (default_handle_c_option): Declare.
1902 * c-format.c: Include c-target.h instead of target.h.
1903 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1905 (default_handle_c_option): Move from targhooks.c.
1907 2011-03-29 Jakub Jelinek <jakub@redhat.com>
1909 PR preprocessor/48248
1910 * c-ppoutput.c (print): Add src_file field.
1911 (init_pp_output): Initialize it.
1912 (maybe_print_line): Don't optimize by adding up to 8 newlines
1913 if map->to_file and print.src_file are different file.
1914 (print_line): Update print.src_file.
1916 2011-03-25 Kai Tietz <ktietz@redhat.com>
1918 * c-ada-spec.c (compare_comment): Use filename_cmp
1919 instead of strcmp for filename.
1921 2011-03-25 Jeff Law <law@redhat.com>
1923 * c-family/c-common.c (def_fn_type): Add missing va_end.
1925 2011-03-25 Jason Merrill <jason@redhat.com>
1927 * c.opt: Add -std=c++03.
1929 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1931 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1933 2011-03-17 Kai Tietz
1936 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1937 Display allowed attributes for function pointer types.
1938 (pp_c_attributes_display): New function to display
1939 attributes having affects_type_identity flag set to true.
1940 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1942 * c-common.c (c_common_attribute_table):
1944 (c_common_format_attribute_table): Likewise.
1946 2011-03-18 Jason Merrill <jason@redhat.com>
1948 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1949 * c-common.h: Don't declare it here.
1950 * c-common.c: Or define it here.
1951 * c-opts.c (c_common_handle_option): Or set it here.
1954 * c-common.c (handle_transparent_union_attribute): Don't
1955 make a duplicate type in C++.
1957 2011-03-15 Jason Merrill <jason@redhat.com>
1959 * c-common.c (max_constexpr_depth): New.
1960 * c-common.h: Declare it.
1961 * c-opts.c (c_common_handle_option): Set it.
1962 * c.opt (fconstexpr-depth): New option.
1964 2011-03-11 Jason Merrill <jason@redhat.com>
1966 * c-common.c (attribute_takes_identifier_p): Add missing const.
1969 * c-common.c (attribute_takes_identifier_p): Assume that an
1970 unknown attribute takes an identifier.
1972 2011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1975 * c-common.c (c_type_hash): Call list_length instead of iterating
1976 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1978 2011-02-19 Jakub Jelinek <jakub@redhat.com>
1981 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1983 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1985 * c.opt (fobjc-abi-version=) New.
1986 (fobjc-nilcheck): New.
1988 2011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1991 * c-common.h (keyword_is_decl_specifier): Declare.
1992 * c-common.c (keyword_is_decl_specifier): Define.
1993 (keyword_is_function_specifier): New function.
1995 2011-01-26 Jakub Jelinek <jakub@redhat.com>
1998 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1999 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2002 2011-01-26 Arnaud Charlet <charlet@adacore.com>
2004 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2006 2011-01-26 Jakub Jelinek <jakub@redhat.com>
2009 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2010 after init_c_lex if pch_file is set.
2012 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2015 * c.opt (-fkeep-inline-dllexport): New switch.
2017 2011-01-12 Richard Guenther <rguenther@suse.de>
2020 * c-common.c (handle_weak_attribute): Warn instead of error
2021 on declaring an inline function weak.
2023 2011-01-05 Tom Tromey <tromey@redhat.com>
2025 * c-common.h (lvalue_error): Update.
2026 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2029 2010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
2032 * c-objc.h (objc_finish_message_expr): Added argument to
2035 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2037 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2040 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2042 * c-objc.h (objc_maybe_warn_exceptions): New.
2043 * stub-objc.c (objc_maybe_warn_exceptions): New.
2045 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2047 * c-common.h (readonly_error): Declare.
2048 * c-common.c (readonly_error): Define.
2050 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2052 * c-common.h (invalid_indirection_error): Declare.
2053 * c-common.c (invalid_indirection_error): Define.
2055 2010-12-03 Richard Guenther <rguenther@suse.de>
2058 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2059 (pp_c_unary_expression): Likewise.
2060 (pp_c_expression): Likewise.
2062 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2064 * c-common.h (objc_finish_function): New.
2065 (objc_non_volatilized_type): Removed.
2066 (objc_type_quals_match): Removed.
2067 * stub-objc.c (objc_finish_function): New.
2068 (objc_non_volatilized_type): Removed.
2069 (objc_type_quals_match): Removed.
2071 2010-11-30 Joseph Myers <joseph@codesourcery.com>
2073 * c-common.h (parse_optimize_options): Declare.
2074 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2075 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2077 2010-11-29 Joseph Myers <joseph@codesourcery.com>
2079 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2081 * c-pch.c (O_BINARY): Don't define here.
2082 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2084 2010-11-25 Joseph Myers <joseph@codesourcery.com>
2086 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2087 targetm.except_unwind_info.
2089 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2091 * c-opts.c (c_common_handle_option): Pass location to
2092 set_struct_debug_option.
2094 2010-11-23 Joseph Myers <joseph@codesourcery.com>
2096 * c-common.c (visibility_options): Move from ../opts.c.
2097 * c-common.h (struct visibility_flags, visibility_options):
2099 * c-opts.c (finish_options): Rename to c_finish_options.
2100 (c_common_init): Update call to finish_options.
2102 2010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2105 * c-lex.c (lex_string): Check that each string in an Objective-C
2106 string concat sequence starts with either one or zero '@', and
2107 that there are no spurious '@' signs at the end.
2109 2010-11-20 Joseph Myers <joseph@codesourcery.com>
2111 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2112 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2113 HANDLE_PRAGMA_VISIBILITY.
2114 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2115 HANDLE_PRAGMA_VISIBILITY): Don't define.
2116 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2118 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2123 * c-common.h (keyword_begins_type_specifier): Declare.
2124 (keyword_is_storage_class_specifier): Declare.
2125 (keyword_is_type_qualifier): Declare.
2126 * c-common.c (keyword_begins_type_specifier): New function.
2127 (keyword_is_storage_class_specifier): New function.
2128 (keyword_is_type_qualifier): Declare.
2130 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2133 * c-common.c (in_late_binary_op): Define.
2134 (c_common_truthvalue_conversion): Check in_late_binary_op before
2135 calling c_save_expr.
2136 * c-common.h (in_late_binary_op): Declare.
2138 2010-11-19 Joseph Myers <joseph@codesourcery.com>
2140 * c-opts.c (c_common_handle_option): Update calls to
2141 set_struct_debug_option.
2143 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2145 * c-common.h (objc_declare_protocols): Added additional argument.
2146 * stub-objc.c (objc_declare_protocol): Same change.
2148 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2151 * c-common.h (build_real_imag_expr): Declare.
2152 * c-semantics.c (build_real_imag_expr): Define.
2154 2010-11-17 Joseph Myers <joseph@codesourcery.com>
2156 * c-opts.c (c_common_parse_file): Take no arguments.
2157 * c-common.h (c_common_parse_file): Update prototype.
2159 2010-11-16 Jakub Jelinek <jakub@redhat.com>
2162 * c-common.c (warning_candidate_p): Don't track non-const calls
2165 2010-11-15 Ian Lance Taylor <iant@google.com>
2167 * c-lex.c (init_c_lex): Set macro debug callbacks if
2168 flag_dump_go_spec is set.
2170 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2172 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2173 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2175 2010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2177 PR preprocessor/45038
2178 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2181 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2183 * c-common.h (c_family_lang_mask): Declare.
2184 * c-opts.c (c_family_lang_mask): Make extern.
2185 * c-pragma.c (handle_pragma_diagnostic): Use
2186 control_warning_option.
2188 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2190 * c-common.c (parse_optimize_options): Update call to
2192 * c-common.h (c_common_handle_option): Update prototype.
2193 * c-opts.c (c_common_handle_option): Take location_t parameter and
2194 pass it to other functions.
2196 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2198 * c-opts.c (warning_as_error_callback): Remove.
2199 (c_common_initialize_diagnostics): Don't call
2200 register_warning_as_error_callback.
2201 (c_common_handle_option): Handle -Werror=normalized= here.
2203 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2205 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2207 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2209 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2210 Remove trailing '.' from diagnostics.
2211 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2213 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2215 * c-common.c (parse_optimize_options): Pass global_dc to
2217 * c-opts.c (c_common_handle_option): Pass &global_options to
2218 set_Wstrict_aliasing.
2219 * c.opt (v): Don't mark Common or document here.
2221 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2224 * c-format.c (format_type): New type gcc_objc_string_format_type.
2225 (valid_stringptr_type_p): New.
2226 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
2227 (check_format_string): Pass expected type, use
2228 valid_stringptr_type_p (), check that the format string types are
2229 consistent with the format specification.
2230 (decode_format_attr): Warn if NSString is used outside objective-c.
2231 (format_types_orig): Add NSString.
2233 (format_flags): New.
2234 (check_format_arg): Handle format strings requiring an external parser.
2235 first_target_format_type: New variable.
2236 (handle_format_attribute): Set up first_target_format_type, pass the
2237 expected format arg string type to check_format_string().
2238 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2239 * stub-objc.c (objc_string_ref_type_p): New.
2240 (objc_check_format_arg): New.
2242 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2244 Fixed using the Objective-C 2.0 dot-syntax with class names.
2245 * c-common.h (objc_build_class_component_ref): New.
2246 * stub-objc.c (objc_build_class_component_ref): New.
2248 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2250 * c.opt (Wproperty-assign-default): New option.
2252 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2254 Implemented -fobjc-std=objc1 flag.
2255 * c.opt (fobjc-std=objc1): New option.
2257 2010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2259 Implemented format and noreturn attributes for Objective-C methods.
2260 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2261 attribute for Objective-C methods.
2263 2010-10-31 Jason Merrill <jason@redhat.com>
2265 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2268 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2270 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2271 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2272 (objc_add_property_declaration): Removed arguments for copies and
2274 (objc_build_getter_call): Renamed to
2275 objc_maybe_build_component_ref.
2276 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2277 (objc_is_property_ref): New.
2278 * c-common.c (c_common_reswords): Removed copies and ivar.
2279 * stub-objc.c (objc_add_property_declaration): Removed arguments
2280 for copies and ivar.
2281 (objc_build_getter_call): Renamed to
2282 objc_maybe_build_component_ref.
2283 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2284 (objc_is_property_ref): New.
2286 2010-10-29 Arnaud Charlet <charlet@adacore.com>
2287 Matthew Gingell <gingell@adacore.com>
2289 * c-ada-spec.c (separate_class_package): New function.
2290 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2291 name of their enclosing package.
2292 (print_ada_declaration): Use separate_class_package.
2294 2010-10-27 Jason Merrill <jason@redhat.com>
2296 * c-common.c (c_common_reswords): Add __is_literal_type.
2297 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2299 * c-common.c (check_case_value): Remove special C++ code.
2301 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2303 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2304 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2306 (objc_add_property_declaration): Added additional arguments.
2307 (objc_property_attribute_kind): Removed.
2308 (objc_set_property_attr): Removed.
2309 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2311 * stub-objc.c (objc_add_property_declaration): Added additional
2313 (objc_set_property_attr): Removed.
2315 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2317 * c-common.h (objc_add_property_variable): Renamed to
2318 objc_add_property_declaration. Added location argument.
2319 * stub-objc.c (objc_add_property_variable): Same change.
2321 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2323 * c-common.h (objc_maybe_printable_name): New.
2324 * stub-objc.c (objc_maybe_printable_name): New.
2326 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2327 Andrew Pinski <pinskia@gmail.com>
2329 * c-common.h (c_common_mark_addressable_vec): Declare.
2330 * c-common.c (c_common_mark_addressable_vec): New function.
2332 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2334 * c-common.h (objc_set_method_type): Removed.
2335 (objc_add_method_declaration): Added boolean argument.
2336 (objc_start_method_definition): Same change.
2337 (objc_build_method_signature): Same change.
2338 * stub-objc.c (objc_set_method_type): Removed.
2339 (objc_add_method_declaration): Added boolean argument.
2340 (objc_start_method_definition): Same change.
2341 (objc_build_method_signature): Same change.
2343 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2345 * c-common.h (finish_file): Removed.
2346 (objc_write_global_declarations): New.
2347 * c-opts.c (c_common_parse_file): Do not call finish_file.
2348 * stub-objc.c (objc_write_global_declarations): New.
2350 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2352 Implemented parsing @synthesize and @dynamic for
2353 Objective-C/Objective-C++.
2354 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2355 (objc_add_synthesize_declaration): New.
2356 (objc_add_dynamic_declaration): New.
2357 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2358 * stub-objc.c (objc_add_synthesize_declaration): New.
2359 (objc_add_dynamic_declaration): New.
2361 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2364 * c-cppbuiltin.c (mode_has_fma): Move function here from
2365 builtins.c. Don't use the fma optab, instead just use the
2366 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2369 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2371 Merge from 'apple/trunk' branch on FSF servers.
2373 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2376 * c-common.h (objc_non_volatilized_type): New declaration
2377 * stub-objc.c (objc_non_volatilized_type): New stub.
2379 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2381 Merge from 'apple/trunk' branch on FSF servers.
2383 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2386 * c-common.h (objc_diagnose_private_ivar): New decl.
2387 * stub-objc.c (objc_diagnose_private_ivar): New stub.
2389 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2391 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2392 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2393 (objc_ivar_visibility_kind): New enum.
2394 (objc_set_visibility): Adjust prototype to use visibility enum.
2395 * stub-objc.c (objc_set_visibility): Adjust stub to use
2398 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2400 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2401 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2402 has the appropriate fma builtins.
2403 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2405 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2407 merge from FSF apple 'trunk' branch.
2408 2006 Fariborz Jahanian <fjahanian@apple.com>
2410 Radars 4436866, 4505126, 4506903, 4517826
2411 * c-common.c (c_common_resword): Define @property and its attributes.
2412 * c-common.h: Define property attribute enum entries.
2413 (OBJC_IS_PATTR_KEYWORD): New.
2414 (objc_property_attribute_kind): New enum.
2415 Declare objc_set_property_attr (), objc_add_property_variable (),
2416 objc_build_getter_call () and objc_build_setter_call ().
2417 * stub-objc.c (objc_set_property_attr): New stub.
2418 (objc_add_property_variable): Likewise.
2419 (objc_build_getter_call): Likewise.
2420 (objc_build_setter_call) Likewise.
2422 2010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2424 merge from FSF apple 'trunk' branch.
2425 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2427 Radar 3803157 (method attributes)
2428 * c-common.c (handle_deprecated_attribute): Recognize
2429 objc methods as valid declarations.
2430 * c-common.h: Declare objc_method_decl ().
2431 * stub-objc.c (objc_method_decl): New stub.
2433 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2435 * c-common.c (parse_optimize_options): Call
2436 decode_cmdline_options_to_array_default_mask before
2437 decode_options. Update arguments to decode_options.
2438 * c-common.h (c_common_init_options_struct): Declare.
2439 * c-opts.c (c_common_init_options_struct): New. Split out from
2440 c_common_init_options.
2442 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2444 Implemented fast enumeration for Objective-C.
2445 * c-common.h (objc_finish_foreach_loop): New.
2446 * stub-objc.c (objc_finish_foreach_loop): New.
2448 2010-10-05 Joseph Myers <joseph@codesourcery.com>
2450 * c-common.h (struct diagnostic_context): Don't declare here.
2451 (c_common_initialize_diagnostics): Declare using
2452 diagnostic_context typedef.
2453 * c-opts.c (c_common_handle_option): Pass global_dc to
2454 handle_generated_option.
2456 2010-10-04 Joseph Myers <joseph@codesourcery.com>
2458 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2459 handle_generated_option.
2461 2010-10-03 Ian Lance Taylor <iant@google.com>
2463 * c.opt (-fplan9-extensions): New option.
2465 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2467 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2469 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2470 of duplicating code.
2472 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2474 * c-common.c: Add two new entries for @optional
2475 and @required keywords.
2477 merge from FSF 'apple/trunk' branch.
2478 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2481 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2482 objective-c keywords.
2483 (objc_set_method_opt): New declaration.
2484 * stub-objc.c (objc_set_method_opt): New stub.
2486 2010-09-30 Joseph Myers <joseph@codesourcery.com>
2488 * c-common.c (handle_optimize_attribute): Pass &global_options to
2489 cl_optimization_save and cl_optimization_restore.
2490 * c-opts.c (c_common_handle_option): Pass &global_options to
2491 handle_generated_option.
2492 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2493 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2494 &global_options to cl_optimization_restore.
2496 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2498 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2499 Objective-C/Objective-C++ keywords.
2501 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2503 Merge from 'apple/trunk' branch on FSF servers.
2505 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2508 * c-common.h (objc_check_global_decl): New declaration.
2509 * stub-objc.c (objc_check_global_decl): New stub.
2511 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2513 * c.opt: Don't use VarExists.
2515 2010-09-29 Joseph Myers <joseph@codesourcery.com>
2517 * c-common.c (c_cpp_error): Update names of diagnostic_context
2519 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2520 cl_optimization members.
2521 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2522 sanitize_cpp_opts, finish_options): Update names of cpp_options
2525 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2527 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2528 (objc_is_reserved_word): Removed.
2529 * c-common.c: Updated comments.
2530 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2531 objc_is_reserved_word.
2532 * stub-objc.c (objc_is_reserved_word): Removed.
2534 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2536 * c-common.h (objc_add_method_declaration): Adjust prototype to
2538 (objc_start_method_definition): Likewise.
2539 (objc_build_keyword_decl): Likewise.
2540 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2541 (objc_start_method_definition): Likewise.
2542 (objc_build_keyword_decl): Likewise.
2544 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2546 * c-common.h (objc_start_class_interface): Adjust prototype.
2547 (objc_start_category_interface): Likewise.
2548 (objc_start_protocol): Likewise.
2549 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2550 (objc_start_class_interface): Likewise.
2551 (objc_start_category_interface): Likewise.
2553 2010-09-27 Ian Lance Taylor <iant@google.com>
2555 * c-common.c (c_common_attribute_table): Add no_split_stack.
2556 (handle_no_split_stack_attribute): New static function.
2558 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2560 Merge from 'apple/trunk' branch on FSF servers.
2562 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2565 * c-common.h (objc_have_common_type): New declaration.
2566 * stub-objc.c (objc_have_common_type): New stub.
2568 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2571 * c-common.h (objc_common_type): New prototype.
2572 * stub-objc.c (objc_common_type): New stub.
2574 2010-09-24 Jan Hubicka <jh@suse.cz>
2576 * c-common.c (handle_leaf_attribute): New function.
2577 (struct attribute_spec c_common_att): Add leaf.
2579 2010-09-22 Joseph Myers <joseph@codesourcery.com>
2581 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2582 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2583 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2584 -include-barrier, -include-directory, -include-directory=,
2585 -include-directory-after, -include-directory-after=,
2586 -include-prefix, -include-prefix=, -include-with-prefix,
2587 -include-with-prefix=, -include-with-prefix-after,
2588 -include-with-prefix-after=, -include-with-prefix-before,
2589 -include-with-prefix-before=, -no-integrated-cpp,
2590 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2591 -output=, -pedantic, -pedantic-errors, -preprocess,
2592 -print-missing-file-dependencies, -trace-includes, -traditional,
2593 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2594 -user-dependencies, -verbose, -write-dependencies,
2595 -write-user-dependencies, no-integrated-cpp, traditional): New.
2597 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2600 * c-common.h (objc_start_method_definition): Return bool instead
2602 * stub-objc.c (objc_start_method_definition): Return bool instead
2605 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2608 * c-common.h (objc_get_interface_ivars): New declaration.
2609 * stub-objc.c (objc_get_interface_ivars): New stub.
2611 2010-09-15 Ian Lance Taylor <iant@google.com>
2613 * c-common.c (parse_optimize_options): Do not capitalize warning
2614 messages. Remove period at end of warning message.
2616 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2618 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2619 (handle_alias_attribute): ... here.
2620 (handle_ifunc_attribute): New.
2622 2010-09-06 Mark Mitchell <mark@codesourcery.com>
2624 * c-common.h (do_warn_double_promotion): Declare.
2625 * c-common.c (do_warn_double_promotion): Define.
2627 2010-09-05 Mark Mitchell <mark@codesourcery.com>
2629 * c.opt (Wdouble-promotion): New.
2631 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2633 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2634 fvtable-thunks, fxref): Mark no longer supported in help text.
2636 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2638 * c.opt (Wimport, fall-virtual, falt-external-templates,
2639 fdefault-inline, fenum-int-equiv, fexternal-templates,
2640 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2641 fname-mangling-version-, fnew-abi, fnonnull-objects,
2642 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2643 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2645 (fhandle-exceptions): Mark with Alias and Warn.
2646 * c-opts.c (c_common_handle_option): Don't handle options marked
2649 2010-09-02 Joseph Myers <joseph@codesourcery.com>
2651 * c.opt (Wcomments, Werror-implicit-function-declaration,
2652 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2653 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2655 * c-common.c (option_codes): Use OPT_Wcomment instead of
2657 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2658 Don't handle options marked as aliases.
2660 2010-08-25 Richard Guenther <rguenther@suse.de>
2662 * c-common.c (c_common_get_alias_set): Remove special
2663 handling for pointers.
2665 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2667 * c-common.c: Use FOR_EACH_VEC_ELT.
2668 * c-gimplify.c: Likewise.
2669 * c-pragma.c: Likewise.
2671 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2673 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2675 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2677 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2678 instead of OPT_MDX and OPT_MMDX.
2680 2010-08-16 Joseph Myers <joseph@codesourcery.com>
2682 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2684 2010-08-12 Joseph Myers <joseph@codesourcery.com>
2686 * c.opt (MD, MMD): Change to MDX and MMDX.
2687 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2689 2010-08-11 Joseph Myers <joseph@codesourcery.com>
2691 * c-opts.c (c_common_handle_option): Call handle_generated_option
2692 instead of handle_option.
2694 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2696 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2697 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2699 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2701 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2702 (pending_redefine_extname): Change type to a VEC.
2703 (add_to_renaming_pragma_list): Update for new type of
2704 pending_redefine_extname.
2705 (maybe_apply_renaming_pragma): Likewise.
2707 2010-08-04 Arnaud Charlet <charlet@adacore.com>
2709 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2711 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2712 decide whether a type has already been declared/seen.
2713 Do not go to the original type.
2714 (dump_nested_types): New parameter forward.
2715 Generate forward declaration if needed and mark type as visited.
2716 (print_ada_declaration): Call dump_nested_types if not already done.
2717 Mark types as visited.
2719 2010-08-03 Joseph Myers <joseph@codesourcery.com>
2721 * c.opt (-print-pch-checksum): Remove option.
2722 * c-opts.c (c_common_handle_option): Don't handle
2723 OPT_print_pch_checksum.
2725 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2727 * c-common.h (c_common_handle_option): Update prototype and return
2729 * c-opts.c (c_common_handle_option): Update prototype and return
2730 value type. Update calls to handle_option and
2731 enable_warning_as_error.
2733 2010-07-27 Jakub Jelinek <jakub@redhat.com>
2736 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2738 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2740 * c-common.h (c_common_missing_argument): Remove.
2741 * c-opts.c (c_common_missing_argument): Remove.
2742 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2743 idirafter, imacros, include, isysroot, isystem, iquote): Add
2745 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2747 2010-07-27 Joseph Myers <joseph@codesourcery.com>
2749 * c-common.h (c_common_option_lang_mask,
2750 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2752 (c_common_init_options): Update prototype.
2753 * c-opts.c (c_common_option_lang_mask): New.
2754 (c_common_initialize_diagnostics): Split out of
2755 c_common_init_options.
2756 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2758 (c_common_init_options): Update prototype. Use decoded options in
2759 search for -lang-asm.
2761 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2763 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2764 * c-format.c: Likewise.
2766 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2768 * c-common.h: Include diagnostic-core.h. Error if already
2770 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2772 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2774 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2775 Do not include expr.h
2776 (vector_mode_valid_p): Move here.
2778 2010-06-21 DJ Delorie <dj@redhat.com>
2780 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2781 allow these pragmas anywhere.
2783 2010-06-14 Jakub Jelinek <jakub@redhat.com>
2786 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2787 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2788 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2789 ggc_strdup instead of xstrdup.
2791 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2793 * c-cppbuiltin.c: Include cpp-id-data.h.
2794 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2795 (lazy_hex_fp_value): New function.
2796 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2798 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2800 * c-gimplify.c: Do not include tree-flow.h
2802 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2805 * c-common.c: Rename targetm member:
2806 targetm.enum_va_list -> targetm.enum_va_list_p
2808 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2810 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2812 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2814 * c-cppbuiltin.c: Do not include except.h.
2816 2010-06-24 Andi Kleen <ak@linux.intel.com>
2818 * c-common.c (warn_for_omitted_condop): New.
2819 * c-common.h (warn_for_omitted_condop): Add prototype.
2821 2010-06-21 Joseph Myers <joseph@codesourcery.com>
2823 * c.opt (lang-objc): Remove.
2824 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2826 2010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2828 * c-opts.c: Include "tm_p.h".
2830 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2832 * c-common.c (parse_optimize_options): Update call to
2835 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2837 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2838 new type of types_used_by_cur_var_decl.
2840 2010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2843 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2844 for C++ standard compliance.
2846 2010-06-16 Jason Merrill <jason@redhat.com>
2848 * c.opt: Add -Wnoexcept.
2850 2010-06-16 Richard Guenther <rguenther@suse.de>
2853 * c-common.c (c_common_truthvalue_conversion): Remove
2854 premature and wrong optimization concering ADDR_EXPRs.
2856 2010-06-15 Arnaud Charlet <charlet@adacore.com>
2858 * c-ada-spec.c (dump_sloc): Remove column info.
2859 (is_simple_enum): New function.
2860 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2861 enum types when relevant.
2863 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2865 * c-common.c (conversion_warning): Warn at expression
2868 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2870 * c-opts.c (c_common_handle_option): Don't handle
2873 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2875 * c-pragma.c (push_alignment): Use typed GC allocation.
2876 (handle_pragma_push_options): Likewise.
2878 * c-common.c (parse_optimize_options): Likewise.
2880 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2883 2010-06-07 Joseph Myers <joseph@codesourcery.com>
2885 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2886 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2887 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2888 flag_signed_bitfields, warn_strict_null_sentinel,
2889 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2890 flag_gen_declaration, flag_no_gnu_keywords,
2891 flag_implement_inlines, flag_implicit_templates,
2892 flag_implicit_inline_templates, flag_optional_diags,
2893 flag_elide_constructors, flag_default_inline, flag_rtti,
2894 flag_conserve_space, flag_access_control, flag_check_new,
2895 flag_new_for_scope, flag_weak, flag_working_directory,
2896 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2897 flag_enforce_eh_specs, flag_threadsafe_statics,
2898 flag_pretty_templates): Remove.
2899 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2900 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2901 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2902 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2903 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2904 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2905 flag_no_gnu_keywords, flag_implement_inlines,
2906 flag_implicit_templates, flag_implicit_inline_templates,
2907 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2908 flag_rtti, flag_conserve_space, flag_access_control,
2909 flag_check_new, flag_new_for_scope, flag_weak,
2910 flag_working_directory, flag_use_cxa_atexit,
2911 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2912 flag_threadsafe_statics, flag_pretty_templates,
2913 warn_strict_null_sentinel): Remove.
2914 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2915 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2916 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2917 fimplicit-inline-templates, fimplicit-templates,
2918 flax-vector-conversions, fms-extensions, fnil-receivers,
2919 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2920 frtti, fshort-double, fshort-enums, fshort-wchar,
2921 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2922 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2923 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2924 gen-decls, undef): Use Var.
2925 (fdefault-inline, foptional-diags): Document as doing nothing.
2926 * c-opts.c (c_common_handle_option): Remove cases for options now
2927 using Var. Mark ignored options as such.
2929 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2931 * c-common.c: Moved to here from parent directory.
2932 * c-common.def: Likewise.
2933 * c-common.h: Likewise.
2934 * c-cppbuiltin.c: Likewise.
2935 * c-dump.c: Likewise.
2936 * c-format.c: Likewise.
2937 * c-format.h : Likewise.
2938 * c-gimplify.c: Likewise.
2939 * c-lex.c: Likewise.
2940 * c-omp.c: Likewise.
2942 * c-opts.c: Likewise.
2943 * c-pch.c: Likewise.
2944 * c-ppoutput.c: Likewise.
2945 * c-pragma.c: Likewise.
2946 * c-pragma.h: Likewise.
2947 * c-pretty-print.c: Likewise.
2948 * c-pretty-print.h: Likewise.
2949 * c-semantics.c: Likewise.
2950 * stub-objc.c: Likewise.
2952 * c-common.c: Include gt-c-family-c-common.h.
2953 * c-pragma.c: Include gt-c-family-c-pragma.h.
2955 Copyright (C) 2010-2013 Free Software Foundation, Inc.
2957 Copying and distribution of this file, with or without modification,
2958 are permitted in any medium without royalty provided the copyright
2959 notice and this notice are preserved.