]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
c-family:
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
d184e0c0 12013-11-12 Joseph Myers <joseph@codesourcery.com>
2
3 * c-common.c (c_common_reswords): Add _Thread_local.
4
a056826c 52013-11-09 Joseph Myers <joseph@codesourcery.com>
6
7 * c-common.c (atomic_size_supported_p): New function.
8 (resolve_overloaded_atomic_exchange)
9 (resolve_overloaded_atomic_compare_exchange)
10 (resolve_overloaded_atomic_load, resolve_overloaded_atomic_store):
11 Use it instead of comparing size with a local list of sizes.
12
b560fabd 132013-11-07 Andrew MacLeod <amacleod@redhat.com>
14 Joseph Myers <joseph@codesourcery.com>
15
16 * c-common.h (enum rid): Add RID_ATOMIC.
17 * c-common.c (c_common_reswords): Add _Atomic.
18 (sync_resolve_params): Use TYPE_MAIN_VARIANT on pointer argument.
19 (keyword_is_type_qualifier): Accept RID_ATOMIC.
20 * c-format.c (check_format_types): Check for extra _Atomic
21 qualifiers in format argument.
22 * c-pretty-print.c (pp_c_cv_qualifiers): Handle atomic qualifier.
23 (pp_c_type_qualifier_list): Mention _Atomic in comment.
24
5b1a0622 252013-11-06 Tobias Burnus <burnus@net-b.de>
26
27 * c-common.c (reason_option_codes_t): Add CPP_W_DATE_TIME.
28
4f8f4cb8 292013-11-06 Joseph Myers <joseph@codesourcery.com>
30
31 * c-opts.c (c_common_post_options): Set -ffp-contract=off in C
32 standards modes.
33 * c-cppbuiltin.c (cpp_iec_559_value): Consider -ffp-contract=fast
34 to mean lack of IEEE 754 support.
35
9148bda3 362013-11-05 Tobias Burnus <burnus@net-b.de>
37
38 * c.opt (-Wdate-time): New option
39 * c-opts.c (sanitize_cpp_opts): Pass on to libcpp.
40
08c5f4d5 412013-11-05 Joseph Myers <joseph@codesourcery.com>
42
43 * c-cppbuiltin.c (cpp_iec_559_value): Test
44 flag_excess_precision_cmdline not flag_excess_precision.
45
c630ef93 462013-11-05 Tobias Burnus <burnus@net-b.de>
47
48 * c.opt (fopenmp-simd): New option.
49 * c-pragma.c (omp_pragmas): Move pragmas which can contain simd to ...
50 (omp_pragmas): ... this new struct.
51 (c_pp_lookup_pragma): Also walk omp_pragmas.
52 (init_pragma): Init pragmas for -fopenmp-simd.
53
7354a89b 542013-11-04 Marek Polacek <polacek@redhat.com>
55
56 PR c++/58979
57 * c-common.c (invalid_indirection_error): Handle RO_ARROW_STAR case.
58
4c866b9b 592013-11-04 Joseph Myers <joseph@codesourcery.com>
60
61 * c-cppbuiltin.c (cpp_iec_559_value, cpp_iec_559_complex_value):
62 New functions.
63 (c_cpp_builtins): Define __GCC_IEC_559 and __GCC_IEC_559_COMPLEX.
64
e2a6a333 652013-11-04 Eric Botcazou <ebotcazou@adacore.com>
66
67 * c-ada-spec.h (cpp_operation): Add IS_TRIVIAL.
68 (dump_ada_specs): Adjust prototype of second callback.
69 * c-ada-spec.c (cpp_check): New global variable.
70 (dump_ada_nodes): Remove cpp_check parameter and do not pass it down.
71 (print_generic_ada_decl): Likewise.
72 (has_static_fields): Change return type to bool and add guard.
73 (has_nontrivial_methods): New predicate.
74 (is_tagged_type): Change return type to bool.
75 (separate_class_package): Call has_nontrivial_methods.
76 (pp_ada_tree_identifier): Minor tweaks.
77 (dump_ada_function_declaration): Adjust calls to dump_generic_ada_node.
78 (dump_ada_array_domains): Likewise.
79 (dump_ada_array_type): Likewise.
80 (dump_template_types): Remove cpp_check parameter and do not pass it to
81 dump_generic_ada_node.
82 (dump_ada_template): Likewise.
83 (dump_generic_ada_node): Remove cpp_check parameter and do not pass it
84 recursively.
85 (print_ada_methods): Change return type to integer. Remove cpp_check
86 parameter and do not pass it down.
87 (dump_nested_types): Remove cpp_check parameter and do not pass it to
88 dump_generic_ada_node.
89 (print_ada_declaration): Likewise. Test RECORD_OR_UNION_TYPE_P before
90 accessing methods.
91 (print_ada_struct_decl): Remove cpp_check parameter and do not pass it
92 down. Use has_nontrivial_methods to recognize C++ classes. Use return
93 value of print_ada_methods.
94 (dump_ads): Rename cpp_check parameter to check and adjust prototype.
95 Set cpp_check to it before invoking dump_ada_nodes.
96 (dump_ada_specs): Likewise.
97
2c4c3477 982013-11-03 Marek Polacek <polacek@redhat.com>
99
100 * c-ubsan.c: Don't include hash-table.h.
101 (ubsan_instrument_vla): New function.
102 * c-ubsan.h: Declare it.
103
452659af 1042013-10-31 David Malcolm <dmalcolm@redhat.com>
105
106 Automated part of renaming of symtab_node_base to symtab_node.
107
108 Patch autogenerated by rename_symtab.py from
109 https://github.com/davidmalcolm/gcc-refactoring-scripts
110 revision 58bb219cc090b2f4516a9297d868c245495ee622
111
112 * c-pragma.c (maybe_apply_pending_pragma_weaks): Rename
113 symtab_node_base to symtab_node.
114
4d6f7dd4 1152013-10-31 Edward Smith-Rowland <3dw4rd@verizon.net>
116
117 Implement C++14 digit separators.
118 * c-lex.c (interpret_float): Remove digit separators from scratch string
119 before building real literal.
120
06cfe805 1212013-10-30 Jakub Jelinek <jakub@redhat.com>
122
123 * cilk.c (create_cilk_helper_decl): Use HOST_WIDE_INT_PRINT_DEC.
124
d037099f 1252013-10-29 Balaji V. Iyer <balaji.v.iyer@intel.com>
126
127 * c-common.c (c_common_reswords[]): Added _Cilk_spawn and _Cilk_sync
128 fields.
129 (c_define_builtins): Called cilk_init_builtins if Cilk Plus is
130 enabled.
131 * c-common.h (enum rid): Added RID_CILK_SPAWN and RID_CILK_SYNC.
132 (insert_cilk_frame): New prototype.
133 (cilk_init_builtins): Likewise.
134 (gimplify_cilk_spawn): Likewise.
135 (c_cilk_install_body_w_frame_cleanup): Likewise.
136 (cilk_detect_spawn_and_unwrap): Likewise.
137 (cilk_set_spawn_marker): Likewise.
138 (build_cilk_sync): Likewise.
139 (build_cilk_spawn): Likewise.
140 * cilk.c: New file.
141
02774f2d 1422013-10-29 David Malcolm <dmalcolm@redhat.com>
143
144 Patch autogenerated by refactor_symtab.py from
145 https://github.com/davidmalcolm/gcc-refactoring-scripts
146 revision 58bb219cc090b2f4516a9297d868c245495ee622
147
148 * c-gimplify.c (c_genericize): Update for conversion of symtab types
149 to a true class hierarchy.
150 * c-pragma.c (maybe_apply_pending_pragma_weaks): Likewise.
151
31fe10fd 1522013-10-27 Richard Sandiford <rdsandiford@googlemail.com>
153
154 * c-lex.c (interpret_integer): Remove call to cpp_num_sign_extend.
155
b1c06ff9 1562013-10-26 Jeff Law <law@redhat.com>
157
158 * c-family/c-common.c (c_define_builtins): Remove mudflap support.
159 * c-family/c.opt: Ignore and warn for mudflap options.
160
48a972c8 1612013-10-24 Tobias Burnus <burnus@net-b.de>
4644b593 162
163 PR other/33426
164 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
165 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
166
546a04b1 1672013-10-23 Jason Merrill <jason@redhat.com>
168
169 * c-format.c (gcc_cxxdiag_char_table): Add %X.
170
bc7bff74 1712013-10-11 Jakub Jelinek <jakub@redhat.com>
172
d62c713e 173 * c-common.h (omp_clause_mask::operator !=): New method.
174 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
175 instead of if (mask & something) tests everywhere.
176
bc7bff74 177 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
178 201307 instead of 201107.
179 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
180 (c_common_attribute_table): Add "omp declare target" and
181 "omp declare simd" attributes.
182 (handle_omp_declare_target_attribute,
183 handle_omp_declare_simd_attribute): New functions.
184 * c-omp.c: Include c-pragma.h.
185 (c_finish_omp_taskgroup): New function.
186 (c_finish_omp_atomic): Add swapped argument, if true,
187 build the operation first with rhs, lhs arguments and use NOP_EXPR
188 build_modify_expr.
189 (c_finish_omp_for): Add code argument, pass it down to make_code.
190 (c_omp_split_clauses): New function.
191 (c_split_parallel_clauses): Removed.
192 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
193 c_omp_declare_simd_clauses_to_decls): New functions.
194 * c-common.h (omp_clause_mask): New type.
195 (OMP_CLAUSE_MASK_1): Define.
196 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
197 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
198 omp_clause_mask::operator |, omp_clause_mask::operator &,
199 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
200 omp_clause_mask::operator ==): New methods.
201 (enum c_omp_clause_split): New.
202 (c_finish_omp_taskgroup): New prototype.
203 (c_finish_omp_atomic): Add swapped argument.
204 (c_finish_omp_for): Add code argument.
205 (c_omp_split_clauses): New prototype.
206 (c_split_parallel_clauses): Removed.
207 (c_omp_declare_simd_clauses_to_numbers,
208 c_omp_declare_simd_clauses_to_decls): New prototypes.
209 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
210 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
211 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
212 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
213 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
214 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
215 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
216 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
217 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
218 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
219 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
220 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
221 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
222 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
223 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
224 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
225 PRAGMA_OMP_CLAUSE_UNIFORM.
226
d7dcba40 2272013-10-09 Marc Glisse <marc.glisse@inria.fr>
228
229 PR tree-optimization/20318
230 * c-common.c (handle_returns_nonnull_attribute): New function.
231 (c_common_attribute_table): Add returns_nonnull.
232
0b7282f1 2332013-10-03 Marc Glisse <marc.glisse@inria.fr>
234
235 PR c++/19476
236 * c.opt (fcheck-new): Move to common.opt.
237
51f553af 2382013-09-25 Marek Polacek <polacek@redhat.com>
239 Jakub Jelinek <jakub@redhat.com>
240
241 PR sanitizer/58413
242 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
243 an expression if we can prove it is correct.
244 (ubsan_instrument_division): Likewise. Remove unnecessary
245 check.
246
05f893e1 2472013-09-18 Marek Polacek <polacek@redhat.com>
248
249 PR sanitizer/58411
250 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
251 Declare it.
252 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
253
236ce1d1 2542013-09-14 Iain Sandoe <iain@codesourcery.com>
255
256 PR target/48094
257 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
258 fobjc-gc, freplace-objc-classes): Accept for LTO.
259
f9f68d35 2602013-09-13 Jacek Caban <jacek@codeweavers.com>
261
262 * c-target.def: New hook
263
ba2f764e 2642013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
265
266 PR c++/43452
267 * c.opt (Wdelete-incomplete): Add.
268
73437615 2692013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
270
271 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
272 (vector_types_compatible_elements_p): New function.
273 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
274 declaration.
275 (vector_types_compatible_elements_p): Declare.
276
95af4c75 2772013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
278
279 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
280 a virtual member function.
281 (pp_simple_type_specifier): Remove.
282 (pp_c_type_specifier): Likewise.
283 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
284 Rename from pp_c_type_specifier. Adjust.
285 (c_pretty_printer::c_pretty_printer): Do not assign to
286 simple_type_specifier.
287
eaab24b9 2882013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
289
290 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
291 member function.
292 (c_pretty_printer::storage_class_specifier): Likewise.
293 (c_pretty_printer::initializer): Likewise.
294 (pp_declaration): Remove.
295 (pp_declaration_specifiers): Likewise.
296 (pp_abstract_declarator): Likewise.
297 (pp_declarator): Likewise.
298 (pp_type_id): Likewise.
299 (pp_statement): Likewise.
300 (pp_constant): Likewise.
301 (pp_id_expression): Likewise.
302 (pp_primary_expression): Likewise.
303 (pp_unary_expression): Likewise.
304 (pp_multiplicative_expression): Likewise.
305 (pp_conditional_expression): Likewise.
306 (pp_assignment_expression): Likewise.
307 (pp_expression): Likewise.
308 (pp_c_type_id): Likewise.
309 (pp_c_storage_class_specifier): Likewise.
310 * c-pretty-print.c (pp_c_type_cast): Tidy.
311 (pp_c_pointer): Likewise.
312 (pp_c_type_specifier): Likewise.
313 (pp_c_parameter_type_list): Likewise.
314 (pp_c_function_definition): Likewise.
315 (pp_c_init_declarator): Likewise.
316 (pp_c_initializer_list): Likewise.
317 (pp_c_constructor_elts): Likewise.
318 (c_pretty_printer::direct_abstract_declarator): Likewise.
319 (c_pretty_printer::declaration_specifiers): Likewise.
320 (c_pretty_printer::primary_expression): Likewise.
321 (c_pretty_printer::postfix_expression): Likewise.
322 (c_pretty_printer::type_id): Rename from pp_c_type_id.
323 (c_pretty_printer::storage_class_specifier): Rename from
324 pp_c_storage_class_specifier.
325 (c_pretty_printer::initializer): Rename from pp_c_initializer.
326 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
327 storage_class_specifier, initializer, offset_list, flags.
328
9e46467d 3292013-08-30 Marek Polacek <polacek@redhat.com>
330
331 * c-ubsan.c: New file.
332 * c-ubsan.h: New file.
333
36a8d9b9 3342013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
335
336 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
337 member function.
338 (c_pretty_printer::declaration_specifiers): Likewise.
339 (c_pretty_printer::declarator): Likewise.
340 (c_pretty_printer::abstract_declarator): Likewise.
341 (c_pretty_printer::direct_abstract_declarator): Likewise.
342 (c_pretty_printer::direct_declarator): Likewise.
343 (c_pretty_printer::function_specifier): Likewise.
344 (pp_declaration): Adjust.
345 (pp_declaration_specifiers): Likewise.
346 (pp_abstract_declarator): Likewise.
347 (pp_direct_declarator): Likewise.
348 (pp_function_specifier): Likewise.
349 (pp_direct_abstract_declarator): Remove as unused.
350 (pp_c_declaration): Remove.
351 (pp_c_declaration_specifiers): Likewise.
352 (pp_c_declarator): Likewise.
353 (pp_c_direct_declarator): Likewise.
354 (pp_c_function_specifier): Likewise.
355 (pp_c_direct_abstract_declarator): Likewise.
356 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
357 from pp_c_abstract_declarator. Adjust.
358 (c_pretty_printer::direct_abstract_declarator): Rename from
359 pp_c_direct_abstract_declarator. Adjust.
360 (c_pretty_printer::function_specifier): Rename from
361 pp_c_function_specifier. Adjust.
362 (c_pretty_printer::declaration_specifiers): Rename from
363 pp_c_declaration_specifiers. Adjust.
364 (c_pretty_printer::direct_declarator): Rename from
365 pp_c_direct_declarator. Adjust.
366 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
367 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
368 (c_pretty_printer::c_pretty_printer): Do not assign to
369 declaration, declaration_specifiers, declarator,
370 direct_declarator, direct_abstract_declarator, function_specifier.
371
30635c2e 3722013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
373
374 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
375 virtual member function.
376 (c_pretty_printer::multiplicative_expression): Likewise.
377 (c_pretty_printer::conditional_expression): Likewise.
378 (c_pretty_printer::assignment_expression): Likewise.
379 (c_pretty_printer::expression): Likewise.
380 (pp_unary_expression): Adjust.
381 (pp_multiplicative_expression): Likewise.
382 (pp_assignment_expression): Likewise.
383 (pp_conditional_expression): Likewise.
384 (pp_expression): Likewise.
385 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
386 from pp_c_unary_expression. Adjust.
387 (c_pretty_printer::multiplicative_expression): Rename from
388 pp_c_multiplicative_expression. Adjust.
389 (c_pretty_printer::conditional_expression): Rename from
390 pp_c_conditional_expression. Adjust.
391 (c_pretty_printer::assignment_expression): Rename from
392 pp_c_assignment_expression. Adjust.
393 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
394 (c_pretty_printer::c_pretty_printer): Do not assign to
395 unary_expression, multiplicative_expression,
396 conditional_expression, expression.
397
027d08ed 3982013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
399
400 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
401 virtual member function.
402 (pp_postfix_expression): Adjust.
403 (pp_c_postfix_expression): Remove.
404 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
405 from pp_c_postfix_expression. Adjust.
406 (c_pretty_printer::c_pretty_printer): Do not assign to
407 postfix_expression.
408
f873303a 4092013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
410
411 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
412 virtua member function.
413 (pp_primary_expression): Adjust.
414 (pp_c_primary_expression): Remove.
415 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
416 from pp_c_primary_expression. Adjust.
417 (pp_c_initializer_list): Use pp_primary_expression.
418 (c_pretty_printer::c_pretty_printer): Do not assign to
419 primary_expression.
420
08e3e481 4212013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
422
423 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
424 * c-pretty-print.c (M_): Remove.
425 (c_pretty_printer::translate_string): Define.
426 (pp_c_type_specifier): Use it.
427 (pp_c_primary_expression): Likewise.
428 (pp_c_expression): Likewise.
429
1fc4a87f 4302013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
431
432 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
433 virtual function.
434 (pp_c_id_expression): Remove.
435 (pp_id_expression): Adjust.
436 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
437 pp_c_id_expression. Adjust.
438 (pp_c_postfix_expression): Use pp_id_expression.
439 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
440
a6cb161b 4412013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
442
443 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
444 member function.
445 (pp_constant): Adjust.
446 (pp_c_constant): Remove.
447 * c-pretty-print.c (c_pretty_printer::constant): Rename from
448 pp_c_constant. Adjust.
449 (pp_c_constant)
450 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
451 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
452
eed6bc21 4532013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
454
455 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
456 (c_pretty_printer::c_pretty_printer): Declare.
457 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
458 c_pretty_printer_init. Adjust.
459 (print_c_tree): Do not call c_pretty_printer_init.
460 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
461
df558d2e 4622013-08-09 Arnaud Charlet <charlet@adacore.com>
463
464 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
465
42f9a786 4662013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
467
468 PR c++/58080
469 * c-common.c (pointer_int_sum): Add bool parameter.
470 * c-common.h (pointer_int_sum): Adjust declaration.
471
f874ddad 4722013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
473
474 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
475 c_pretty_printer variable.
476
a94db6b0 4772013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
478
479 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
480 (pp_base): Remove.
481 (pp_c_base): Likewise. Adjust users.
482 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
483 (pp_c_whitespace): Do not call pp_base.
484 (pp_c_left_paren): Likewise.
485 (pp_c_right_paren): Likewise.
486 (pp_c_left_brace): Likewise.
487 (pp_c_right_brace): Likewise.
488 (pp_c_left_bracket): Likewise.
489 (pp_c_right_bracket): Likewise.
490 (pp_c_dot): Likewise.
491 (pp_c_ampersand): Likewise.
492 (pp_c_star): Likewise.
493 (pp_c_arrow): Likewise.
494 (pp_c_semicolon): Likewise.
495 (pp_c_complement): Likewise.
496 (pp_c_exclamation): Likewise.
497 (pp_c_direct_declarator): Likewise.
498 (pp_c_ws_string): Likewise.
499 (pp_c_identifier): Likewise.
500 (pp_c_statement): Likewise.
501 (print_c_tree): Likewise.
502
1898176c 5032013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
504
505 PR c++/58072
506 * c-common.c (c_parse_error): Catch user-defined literal tokens and
507 provide useful error strings.
508
70d60d1d 5092013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
510
511 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
512 printer functions instead of pp_string or operators and punctuators.
513 (dump_generic_ada_node): Likewise.
514 * c-pretty-print.c (pp_c_type_specifier): Likewise.
515 (pp_c_relational_expression): Likewise.
516 (pp_c_logical_or_expression): Likewise.
517
dda4f0ec 5182013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
519
520 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
521 functions instead of pp_character.
522 (pp_ada_tree_identifier): Likewise.
523 (dump_ada_double_name): Likewise.
524 (dump_ada_function_declaration): Likewise.
525 (dump_ada_array_domains): Likewise.
526 (dump_template_types): Likewise.
527 (dump_generic_ada_node): Likewise.
528 (print_ada_declaration): Likewise.
529 (print_ada_struct_decl): Likewise.
530 * c-pretty-print.c (pp_c_integer_constant): Likewise.
531
7aa04c8d 5322013-07-23 Tom Tromey <tromey@redhat.com>
533
534 * c-common.h (enum rid) <RID_GENERIC>: New constant.
535 * c-common.c (c_common_reswords): Add _Generic.
536
a04e8d62 5372013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
538
539 * c-common.c: Fix typos.
540 * c-common.h: Likewise.
541
a96c3cc1 5422013-07-13 Lubos Lunak <l.lunak@suse.cz>
543
544 PR c++/55203
545 * c-common.c (c_common_attribute_table): Add warn_unused.
546 (handle_warn_unused_attribute): New.
547
da31536d 5482013-07-10 Jakub Jelinek <jakub@redhat.com>
549
550 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
551 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
552
839f2f70 5532013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
554
555 PR c++/57869
556 * c.opt: Add Wconditionally-supported.
557
73f353d0 5582013-07-08 Graham Stott <graham.stott@btinternet.com>
559
560 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
561 unused variables l_length and l_node.
562
21ebaa24 5632013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
f5298614 564
565 PR c/57821
566 * c-common.c (complete_array_type): Delay folding first index
567 like other indices. When folding, check for index overflow.
568
68ea4406 5692013-06-27 Marc Glisse <marc.glisse@inria.fr>
570
571 PR c++/57509
572 * c-common.h (c_build_vec_perm_expr): New complain argument.
573 * c-common.c (c_build_vec_perm_expr): Likewise.
574 Use save_expr also in C++.
575
60777f69 5762013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
577
578 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
579 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
580 * c-opts.c (c_common_post_options): Likewise.
581
839f2f70 5822013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
50acebe0 583
584 * array-notation-common.c (length_mismatch_in_expr): Changed the
585 parameter type's from a dynamic array to a vec_tree. Also removed
586 the size parameters.
587 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
588 the change above.
589
e9331eab 5902013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
591
592 * c-common.h (struct cilkplus_an_parts): New structure.
593 (struct cilkplus_an_loop_parts): Likewise.
594 (cilkplus_extract_an_triplets): New prototype.
595 (fix_sec_implicit_args): Likewise.
596 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
597 (fix_sec_implicit_args): Likewise.
60777f69 598
a9c99fc4 5992013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
600
601 * array-notation-common.c (find_inv_trees): Removed an unwanted
602 typecasting.
603 * c-common.h (struct inv_list::additional_tcodes): Changed type from
604 enum rid to enum tree_code.
605
f2526cce 6062013-06-11 Jan Hubicka <jh@suse.cz>
607
608 * c-common.c (handle_alias_ifunc_attribute): Do not set
609 DECL_EXTERNAL for weakref variables.
610 * c-pragma.c (handle_pragma_weak): Make sure aliases
611 are not declared as external.
612
09970d67 6132013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
614
615 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
616 function from c/c-array-notation.c.
617 (is_cilkplus_reduce_builtin): Likewise.
618 (find_rank): Likewise.
619 (extract_array_notation_exprs): Likewise.
620 (replace_array_notations): Likewise.
621 (find_inv_trees): Likewise.
622 (replace_inv_trees): Likewise.
623 (contains_array_notation_expr): Likewise.
624 (find_correct_array_notation_type): Likewise.
625 * c-common.h (struct inv_list): Moved this struct from the file
626 c/c-array-notation.c and added a new field called additional tcodes.
627 (length_mismatch_in_expr_p): New prototype.
628 (is_cilkplus_reduce_builtin): Likewise.
629 (find_rank): Likewise.
630 (extract_array_notation_exprs): Likewise.
631 (replace_array_notation): Likewise.
632 (find_inv_trees): Likewise.
633 (replace_inv_trees): Likewise.
634 (find_correct_array_notation_type): Likewise.
839f2f70 635
3c6d4197 6362013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
637
638 * c-common.c (c_define_builtins): When cilkplus is enabled, the
639 function array_notation_init_builtins is called.
640 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
641 * c-common.def (ARRAY_NOTATION_REF): New tree.
642 * c-common.h (build_array_notation_expr): New function declaration.
643 (build_array_notation_ref): Likewise.
644 (extract_sec_implicit_index_arg): New extern declaration.
645 (is_sec_implicit_index_fn): Likewise.
646 (ARRAY_NOTATION_CHECK): New define.
647 (ARRAY_NOTATION_ARRAY): Likewise.
648 (ARRAY_NOTATION_START): Likewise.
649 (ARRAY_NOTATION_LENGTH): Likewise.
650 (ARRAY_NOTATION_STRIDE): Likewise.
651 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
652 ARRAY_NOTATION_REF.
653 (pp_c_expression): Likewise.
654 * c.opt (flag_enable_cilkplus): New flag.
655 * array-notation-common.c: New file.
656
8e71dad2 6572013-05-14 Jakub Jelinek <jakub@redhat.com>
658
659 PR c++/57274
660 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
661
432dd330 6622013-05-10 Marc Glisse <marc.glisse@inria.fr>
663
664 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
665 vectors.
666
b156ec37 6672013-05-07 Han Shen <shenhan@google.com>
668
669 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
670
1a087624 6712013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
672
673 * c-common.c (check_user_alignment): Emit error for negative values.
674
1638c736 6752013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
676
677 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
678
949dbf93 6792013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
680
681 * c-cppbuiltin.c (c_cpp_builtins): Do not define
682 __GXX_EXPERIMENTAL_CXX1Y__.
683
9205a6cc 6842013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
685 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
686
687 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
688 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
689 to simply use OPT_Wpointer_arith.
690 (c_sizeof_or_alignof_type): Likewise.
691
05d0bce1 6922013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
693
694 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
695
41609f8b 6962013-04-12 Jakub Jelinek <jakub@redhat.com>
697
698 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
699 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
700 specifiers.
701
c671dc4f 7022013-04-07 Steven Bosscher <steven@gcc.gnu.org>
703
704 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
705
ba125576 7062013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
707
708 * c-common.c (pointer_int_sum): Remove dead code.
709
9d3fa937 7102013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
711
712 PR middle-end/56524
713 * c-common.c (handle_optimize_attribute): Don't call
714 save_optabs_if_changed.
715
5ceebb21 7162013-03-05 Jakub Jelinek <jakub@redhat.com>
717
718 PR middle-end/56461
719 * c-pch.c (pch_init): Free target_validity at the end.
720
18eeed2b 7212013-03-04 Jakub Jelinek <jakub@redhat.com>
722
723 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
724
a9196da9 7252013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
726 Jakub Jelinek <jakub@redhat.com>
727
728 PR sanitizer/56454
729 * c-common.c (handle_no_sanitize_address_attribute): New function.
730 (c_common_attribute_table): Add no_sanitize_address attribute.
731 (handle_no_address_safety_analysis_attribute): Add
732 no_sanitize_address attribute, not no_address_safety_analysis
733 attribute.
734
15c27dda 7352013-02-18 Aldy Hernandez <aldyh@redhat.com>
08c7d04b 736
737 PR target/52555
738 * c-common.c (handle_optimize_attribute): Call
739 save_optabs_if_changed.
740
19426fe1 7412013-02-18 Jakub Jelinek <jakub@redhat.com>
742 Steven Bosscher <steven@gcc.gnu.org>
743
744 PR pch/54117
745 * c-opts.c (c_common_post_options): If debug info is enabled
746 and non-dwarf*, refuse to load PCH files and when writing PCH
747 file warn.
748
df936998 7492013-02-05 Jakub Jelinek <jakub@redhat.com>
750
751 PR middle-end/56167
752 * c-common.c (handle_error_attribute): Fix condition.
753
ae0c3984 7542013-01-30 Jakub Jelinek <jakub@redhat.com>
755
756 PR c++/55742
757 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
758
1c4973d7 7592013-01-18 Jason Merrill <jason@redhat.com>
760
761 PR target/54908
762 * c.opt (-fextern-tls-init): New.
763 * c-opts.c (c_common_post_options): Handle it.
764
7c834436 7652013-01-09 Jakub Jelinek <jakub@redhat.com>
766
767 PR c/48418
768 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
769 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
770 and is either negative or bigger or equal to type precision
771 of the first operand.
772
5abaa10a 7732012-12-03 Marek Polacek <polacek@redhat.com>
774
775 PR c/55570
776 * c-common.c (check_user_alignment): Swap order of tests,
777 check TREE_CODE first.
778
324ca377 7792012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
780
781 PR c++/52654
782 * c-common.h (overflow_type): New enum.
783 (build_userdef_literal): Add overflow_type argument.
784 (tree_userdef_literal): Add overflow_type.
785 (USERDEF_LITERAL_OVERFLOW): New access macro.
786 * c-common.c (build_userdef_literal): Add overflow_type
787 argument.
788 * c-lex.c (c_lex_with_flags): Add overflow_type to
789 build_userdef_literal calls.
790 (interpret_integer, interpret_float): Add overflow_type argument.
791
b4c4a429 7922012-11-28 Richard Biener <rguenther@suse.de>
793
794 PR c/35634
795 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
796 here and use a type with proper overflow behavior for types that would
797 need to be promoted for the arithmetic.
798
d413ffdd 7992012-11-23 Jakub Jelinek <jakub@redhat.com>
800
801 PR sanitizer/55435
802 * c-common.c (handle_no_address_safety_analysis_attribute): New
803 function.
804 (c_common_attribute_table): Add no_address_safety_analysis.
805
52bc861d 8062012-11-16 Simon Baldwin <simonb@google.com>
807
808 * c.opt: Add f[no-]canonical-system-headers.
809 * c-opts.c (c_common_handle_option): Handle
810 OPT_fcanonical_system_headers.
811
2dd00636 8122012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
813
814 PR c++/54413
815 * c-opts.c (c_common_handle_option): Set new flags.
816 * c.opt: Describe new flags.
817
d4701f6c 8182012-11-09 Jason Merrill <jason@redhat.com>
819
820 * c.opt (Wabi-tag): New.
821
72d65da9 8222012-11-09 Andi Kleen <ak@linux.intel.com>
823
824 PR 55139
825 * c-common.c (get_atomic_generic_size): Mask with
826 MEMMODEL_MASK
827
77a357e3 8282012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
829
830 PR c/53063
831 * c.opt (Wformat): Make it Alias Wformat=1.
832 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
833 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
834 LangEnabledBy.
835 (Wformat=): RejectNegative. Use LangEnabledBy.
836 (Wnonnull): Use LangEnabledBy.
837 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
838 * c-format.c (set_Wformat): Delete.
839 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
840 (maybe_read_dollar_number): Likewise.
841 (avoid_dollar_number): Likewise.
842 (finish_dollar_format_checking): Likewise.
843 (check_format_info): Likewise.
844 (check_format_info_main): Likewise.
845 (check_format_types): Likewise.
846 (format_type_warning): Likewise.
847 * c-common.c (int): Likewise.
848 (check_function_sentinel): Likewise.
849 * c-common.h (warn_format,set_Wformat): Do not declare here.
850
45efa6b9 8512012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
852
853 PR c/53063
854 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
855 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
856 Use LangEnabledBy.
857 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
858 common.opt.
859 (Wvariadic-macros): Init(1).
860 * c-opts.c (c_common_handle_option): Do not handle them
861 explicitly.
862 (c_common_post_options): Likewise.
863 (sanitize_cpp_opts): warn_unused_macros is now
864 cpp_warn_unused_macros.
865 (push_command_line_include): Likewise.
866 * c-common.c (warn_unknown_pragmas): Do not define.
867 * c-common.h (warn_unknown_pragmas): Do not declare.
868
0e4e775a 8692012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
870
871 PR c/51294
872 * c-common.c (conversion_warning): Handle conditional expressions.
873
8b447d3f 8742012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
875
876 PR c++/54930
877 * c.opt (Wreturn_local_addr): Define new option.
878
f4a61754 8792012-10-25 Jason Merrill <jason@redhat.com>
880
ecb10e6a 881 * c.opt (Wvirtual-move-assign): New.
882
f4a61754 883 * c.opt (Winherited-variadic-ctor): New.
884
7b463b19 8852012-10-25 Marc Glisse <marc.glisse@inria.fr>
886
887 PR c++/54427
888 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
889
6adc88f8 8902012-10-23 Joseph Myers <joseph@codesourcery.com>
891
892 * c-common.h (pch_cpp_save_state): Declare.
893 * c-target.def (c_preinclude): New hook.
894 * c-opts.c (done_preinclude): New.
895 (push_command_line_include): Handle default preincluded header.
896 (cb_file_change): Call pch_cpp_save_state when calling
897 push_command_line_include.
898 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
899 (pch_cpp_save_state): New.
900 (pch_init): Call pch_cpp_save_state conditionally, instead of
901 calling cpp_save_state.
902
fa816b0b 9032012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
904
905 PR c/53063
906 PR c/40989
907 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
908 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
909 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
910 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
911 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
912 * c-opts.c (c_common_handle_option): Remove explicit handling from
913 here.
914 (c_common_post_options): Likewise.
915
d214ccee 9162012-10-18 Eric Botcazou <ebotcazou@adacore.com>
917
918 * c-ada-spec.c (LOCATION_COL): Delete.
919 (compare_location): New function.
920 (compare_node): Use it.
921 (compare_comment): Likewise.
922
77b27208 9232012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
924
925 PR c/53063
926 PR c/40989
927 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
928 * c-opts.c (c_common_handle_option): Do not set them here. Add
929 comment.
930 (c_common_post_options): Likewise.
931
cc02ca4d 9322012-10-16 Eric Botcazou <ebotcazou@adacore.com>
933
934 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
935 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
936 Remove POINTER_TYPE handling, add large unsigned handling and use
937 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
938
57f872a2 9392012-10-12 Jakub Jelinek <jakub@redhat.com>
940
941 PR c/54381
942 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
943 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
944 locs and array of 3 trees instead of just single loc and single
945 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
946 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
947 For *cmp* builtins that take two sources strings report warnings
948 about first and second source, not about destination and source.
949
7354ad2e 9502012-10-12 Marc Glisse <marc.glisse@inria.fr>
951
952 PR c++/53055
953 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
954
1ac7f120 9552012-10-11 Eric Botcazou <ebotcazou@adacore.com>
956
957 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
958 declaring something coming from another file.
959
1e0cc9e3 9602012-10-10 Arnaud Charlet <charlet@adacore.com>
961
1ac7f120 962 PR ada/54845
1e0cc9e3 963 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
964
b0e7825e 9652012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
966
967 PR c++/54194
968 * c-common.c (warn_about_parentheses): Add location_t parameter;
969 use EXPR_LOC_OR_LOC.
970 * c-common.h: Update declaration.
971
41ed701a 9722012-10-09 Marc Glisse <marc.glisse@inria.fr>
973
974 PR c++/54427
975 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
976 more operations. Make error messages optional.
977 * c-common.h (enum stv_conv): Moved from c-typeck.c.
978 (scalar_to_vector): Declare.
979
3740094c 9802012-10-08 Jason Merrill <jason@redhat.com>
981
982 * c-common.c (c_common_reswords): Add thread_local.
983
ffcdbf9c 9842012-10-08 Dodji Seketeli <dodji@redhat.com>
985
986 PR c++/53528 C++11 attribute support
987 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
988 new functions.
989 * c-common.c (check_cxx_fundamental_alignment_constraints): New
990 static function.
991 (handle_aligned_attribute): In choose strictest alignment
992 among many. Use new check_cxx_fundamental_alignment_constraints.
993 (handle_transparent_union_attribute): In c++11 attribute syntax,
994 don't look through typedefs.
995
ef34afc1 9962012-10-04 Arnaud Charlet <charlet@adacore.com>
997
998 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
999 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
1000 out of dumpfile.h.
1001
f1ff4562 10022012-09-25 Dehao Chen <dehao@google.com>
1003
1004 PR middle-end/54645
ef34afc1 1005 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 1006 map when read in the pch.
1007
735538a1 10082012-09-18 Arnaud Charlet <charlet@adacore.com>
1009
1010 * c-ada-spec.c: Style fixes.
1011
9120cdc8 10122012-09-18 Thomas Quinot <quinot@adacore.com>
1013
1014 * c.opt (-fada-spec-parent): Define new command line switch.
1015 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
1016 is specified, generate binding spec as a child of the specified unit.
1017
8eba82c2 10182012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
1019 Manuel López-Ibáñez <manu@gcc.gnu.org>
1020
1021 PR c++/53210
1022 * c.opt ([Winit-self]): Enabled by -Wall in C++.
1023
38682990 10242012-08-23 Arnaud Charlet <charlet@adacore.com>
1025
1026 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
1027 for pointers, and add missing Convention C pragma.
1028 (print_ada_struct_decl): Add missing aliased keyword.
1029 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
1030
f003f5dc 10312012-08-17 Jakub Jelinek <jakub@redhat.com>
1032
1033 * c-common.c (sizeof_pointer_memaccess_warning): New function.
1034 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
1035 * c-opts.c (c_common_handle_option): Enable it for -Wall.
1036 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
1037 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
1038
ec11736b 10392012-08-10 Richard Guenther <rguenther@suse.de>
1040
1041 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
1042
5f7f600e 10432012-08-07 Steven Bosscher <steven@gcc.gnu.org>
1044
1045 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
1046 instead of separate pp_newline and pp_flush.
1047 (print_c_tree): Likewise.
1048
758a38ab 10492012-07-26 Richard Henderson <rth@redhat.com>
1050
1051 * c-common.c (handle_hot_attribute): Allow labels.
1052 (handle_cold_attribute): Likewise.
1053
9ca77b08 10542012-07-20 Jakub Jelinek <jakub@redhat.com>
1055
1056 PR c++/28656
1057 * c-common.c (check_function_nonnull): Handle multiple nonnull
1058 attributes properly.
1059
b9ed1410 10602012-07-16 Steven Bosscher <steven@gcc.gnu.org>
1061
1062 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
1063 * c-ada-spec.c: Likewise.
1064 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
1065
c2a65b90 10662012-07-14 Steven Bosscher <steven@gcc.gnu.org>
1067
1068 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
1069 Remove code conditional on it.
1070
88c5a1d1 10712012-07-11 Steven Bosscher <steven@gcc.gnu.org>
1072
1073 * c-gimplify.c: Do not include basic-block.h.
1074 * c-common.c: Do not include linfuncs.h.
1075
4a020a8c 10762012-07-08 Steven Bosscher <steven@gcc.gnu.org>
1077
1078 * c-common.h: Include tree.h.
1079
c28ddc97 10802012-07-02 Jason Merrill <jason@redhat.com>
1081
1082 PR c++/53524
1083 * c-common.c (get_priority): Call default_conversion.
1084
405ed67f 10852012-07-01 Uros Bizjak <ubizjak@gmail.com>
1086
1087 * c-pch.c (c_common_write_pch): Remove unused variables.
1088
e53d55e7 10892012-06-29 Steven Bosscher <steven@gcc.gnu.org>
1090
1091 * cppspec.c: Moved from gcc/ to here.
1092
3d9c25ec 10932012-06-27 Kai Tietz <ktietz@redhat.com>
1094
1095 PR preprocessor/37215
1096 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
1097
3169c57a 10982012-06-21 Steven Bosscher <steven@gcc.gnu.org>
1099
1100 * c-common.h (c_common_print_pch_checksum): Remove.
1101 * c-pch.c: Do not include output.h.
1102 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
1103 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
1104 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
1105 (struct c_pch_header): Remove.
1106 (get_ident): Update gpch version.
1107 (pch_init): Do not print executable_checksum to asm_out_file.
1108 Do not fail if there is no asm_out_file to read back from. Set
1109 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
1110 (c_common_write_pch): Verify that nothing was written to asm_out_file
1111 since pch_init was called. Do not write a c_pch_header, and do not
1112 copy from asm_out_file to the PCH.
1113 (c_common_read_pch): Do not read a c_pch_header, and do not restore
1114 the content of asm_out_file from the PCH.
1115 (c_common_print_pch_checksum): Remove.
1116 * c-opts.c (c_common_init): Print out executable_checksum directly.
1117
ff6624bc 11182012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1119
1120 * c-target.def (objc_declare_unresolved_class_reference,
1121 objc_declare_class_definition): Add new hooks.
1122
367b1459 11232012-06-19 Steven Bosscher <steven@gcc.gnu.org>
1124
1125 * c-lex.c: Do not include output.h.
1126 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
1127 Remove uses of ASM_OUTPUT_IDENT.
1128
bf0cb017 11292012-06-15 Marc Glisse <marc.glisse@inria.fr>
1130
1131 PR c++/51033
1132 * c-common.h (c_build_vec_perm_expr): Move decl here.
1133 * c-common.c (c_build_vec_perm_expr): Move definition
1134 here.
1135
b37a3600 11362012-06-06 Steven Bosscher <steven@gcc.gnu.org>
1137
1138 * c.opt (fconserve-space): Turn into a no-op.
1139
19931eea 11402012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 1141
1142 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
1143 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
1144 both the start and end of the function.
1145
dff12c10 11462012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1147
1148 * c-common.c: Do not include output.h.
1149 * c-pragma.c: Likewise.
1150
5f9e7dd5 11512012-06-04 Steven Bosscher <steven@gcc.gnu.org>
1152
1153 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
1154 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
1155 (lang_decl_name): Handle namespace decls.
1156
b5369b7d 11572012-05-31 Steven Bosscher <steven@gcc.gnu.org>
1158
1159 * c-ada-spec.c: Do not include output.h.
1160 * c-semantics.c: Likewise.
1161
8032877c 11622012-05-29 Joseph Myers <joseph@codesourcery.com>
1163
1164 * c-common.c: Fix typo.
1165
7843e4bc 11662012-05-29 Michael Matz <matz@suse.de>
1167
1168 * c-common.h (c_expand_decl): Remove prototype.
1169
8cf857d4 11702012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1171
1172 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1173 * c-opts.c (c_common_handle_option): Remove code handling
1174 warn_missing_braces.
1175
8b64dc3c 11762012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1177
1178 PR c++/25137
1179 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1180 -Wmissing_braces.
1181
43cbde16 11822012-05-22 Dodji Seketeli <dodji@redhat.com>
1183
1184 PR c++/53322
1185 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1186
db490cb6 11872012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1188
1189 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1190 * c-opts.c (c_common_handle_option): Do not handle explicitly
1191 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1192
a60f3e81 11932012-05-16 Dodji Seketeli <dodji@redhat.com>
1194
1195 PR preprocessor/7263
1196 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1197 to cpp_classify_number. For diagnostics, use the precise location
1198 instead of the global input_location.
1199
82e6ef7c 12002012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1201
cd4797ff 1202 PR c++/11856
82e6ef7c 1203 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1204
258a168d 12052012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1206
82e6ef7c 1207 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 1208
d3b7ee7c 12092012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1210
1211 PR 53063
1212 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1213 Wreorder): Use LangEnabledBy.
1214 * c-opts.c (c_common_handle_option): Do not enable them
1215 explicitly. Call lang-specific generated functions.
1216 (c_common_post_options): Do not set them here.
1217
70059cea 12182012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1219
1220 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1221 Wmissing-field-initializers,Wmissing-parameter-type,
1222 Wold-style-declaration,Woverride-init): Use EnabledBy.
1223 * c-opts.c (c_common_post_options): Do not set here explicitly.
1224
fbb6fbd8 12252012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1226
1227 PR 53063
1228 * c-opts.c (c_common_handle_option): Use handle_generated_option
1229 to enable sub-options.
1230
61f69bc9 12312012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1232
1233 PR c++/53158
1234 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1235
5a1fe2db 12362012-05-10 Richard Guenther <rguenther@suse.de>
1237
1238 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1239 adjust commentary about TYPE_IS_SIZETYPE types.
1240
d42e7c5a 12412012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1242
1243 PR c++/53261
1244 * c-common.c (warn_logical_operator): Check that argument of
1245 integer_zerop is not NULL.
1246
686369e8 12472012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1248
1249 PR c/43772
1250 * c-common.c (warn_logical_operator): Do not warn if either side
1251 is already true or false.
1252
03fe1dc2 12532012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1254
1255 PR c/51712
1256 * c-common.c (expr_original_type): New.
1257 (shorten_compare): Do not warn for enumeration types.
1258
bba5a206 12592012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1260
1261 * c.opt (fpermissive): Add Var(flag_permissive).
1262
7059d45d 12632012-04-30 Marc Glisse <marc.glisse@inria.fr>
1264
1265 PR c++/51033
1266 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1267 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1268
7edb1062 12692012-04-30 Dodji Seketeli <dodji@redhat.com>
1270
1271 Add -Wvarargs option
1272 * c.opt (Wvarargs): Define new option.
1273
068bea1e 12742012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1275
1276 * c-common.c (check_function_arguments): Replace
1277 Wmissing-format-attribute with Wsuggest-attribute=format.
1278
b86527d8 12792012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1280
1281 * c.opt (Wsuggest-attribute=format): New. Alias of
1282 Wmissing-format-attribute.
1283 * c-format.c (decode_format_type): Replace
1284 Wmissing-format-attribute with Wsuggest-attribute=format.
1285 (check_function_format): Likewise.
1286
19931eea 12872012-04-27 Ollie Wild <aaw@google.com>
76d340ac 1288
1289 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1290 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1291 * c.opt: Add Wliteral-suffix.
1292
29438999 12932012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1294
1295 PR c/44774
1296 * c.opt (Wpedantic): New.
1297 (pedantic): Alias Wpedantic.
1298 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1299 (c_common_post_options): Likewise.
1300 (sanitize_cpp_opts): Likewise.
1301 * c-lex.c (interpret_float): Likewise.
1302 * c-format.c (check_format_types): Likewise.
1303 * c-common.c (pointer_int_sum): Likewise.
1304 (c_sizeof_or_alignof_type): Likewise.
1305 (c_add_case_label): Likewise.
1306 (c_do_switch_warnings): Likewise.
1307 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1308
4f9d6b8b 13092012-04-15 Jason Merrill <jason@redhat.com>
1310
1311 PR c++/52818
1312 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1313 (C_STD_NAME): Distinguish between C++98 and C++11.
1314
74bdbe96 13152012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1316
1317 PR target/52624
1318 * c-common.h (uint16_type_node): Rename into...
1319 (c_uint16_type_node): ...this.
1320 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1321 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1322
3d177e8c 13232012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1324
1325 * c-common.c (warn_if_unused_value): Move definition to here.
1326 * c-common.h (warn_if_unused_value): Move declaration to here.
1327
6a9a958f 13282012-03-23 William Bader <williambader@hotmail.com>
1329
1330 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1331
543efdbe 13322012-03-20 Jason Merrill <jason@redhat.com>
1333
1334 * c-common.h (enum cxx_dialect): Add cxx1y.
1335 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1336 test.
1337 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1338 * c-opts.c (c_common_post_options): Likewise.
1339 (set_std_cxx1y): New.
1340 (c_common_handle_option): Call it.
1341 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1342
62206d34 13432012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1344
1345 PR c++/14710
1346 * c.opt ([Wuseless-cast]): Add.
1347
fadf62f4 13482012-03-16 Richard Guenther <rguenther@suse.de>
1349
1350 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1351
249faa35 13522012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1353
1354 PR c++/44783
1355 * c.opt (ftemplate-backtrace-limit) Add.
1356
126b6848 13572012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1358
1359 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1360 handling.
1361 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1362 (init_pragma): Don't register extern_prefix.
1363
a51edb4c 13642012-03-12 Richard Guenther <rguenther@suse.de>
1365
1366 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1367 (builtin_type_for_size): Likewise.
1368
0f6a7cb7 13692012-02-13 Jakub Jelinek <jakub@redhat.com>
1370
1371 PR c++/52215
1372 * c-common.c (sync_resolve_params): Don't decide whether to convert
1373 or not based on TYPE_SIZE comparison, convert whenever arg_type
1374 is unsigned INTEGER_TYPE.
1375
0779e32c 13762012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1377
1378 PR c/52118
1379 * c.opt ([Wunused-local-typedefs]): Fix description.
1380
baec58e1 13812012-01-24 Mike Stump <mikestump@comcast.net>
1382
1383 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1384 exactly.
1385
c779d8cc 13862012-01-18 Richard Guenther <rguenther@suse.de>
1387
1388 * c-opts.c (c_common_post_options): Reset LTO flags if
1389 we are about to generate a PCH.
1390
ee917d24 13912012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1392
1393 PR c++/51777
1394 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1395 use pp_unsigned_wide_integer.
1396
90e2341f 13972012-01-10 Richard Guenther <rguenther@suse.de>
1398
1399 PR middle-end/51806
1400 * c-opts.c (c_common_handle_option): Move -Werror handling
1401 to language independent code.
1402
9ea022ce 14032012-01-05 Richard Guenther <rguenther@suse.de>
1404
1405 PR middle-end/51764
1406 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1407 from common.opt.
1408
3df19e1b 14092011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1410
1411 PR c++/51316
1412 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1413 of array types with an unknown bound.
1414
32074525 14152011-12-20 Joseph Myers <joseph@codesourcery.com>
1416
1417 * c-common.c (flag_isoc99): Update comment to refer to C11.
1418 (flag_isoc1x): Change to flag_isoc11.
1419 * c-common.h (flag_isoc99): Update comment to refer to C11.
1420 (flag_isoc1x): Change to flag_isoc11.
1421 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1422 C11.
1423 * c-opts.c (set_std_c1x): Change to set_std_c11.
1424 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1425 Call set_std_c11.
1426 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1427 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1428 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1429 standard.
1430 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1431 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1432 (std=gnu1x): Make alias of std=gnu11.
1433
fca86134 14342011-12-19 Jason Merrill <jason@redhat.com>
1435
1436 PR c++/51228
1437 * c-common.c (handle_transparent_union_attribute): Check the first
1438 field if the type is complete.
1439
aa4313eb 14402011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1441
1442 PR libstdc++/51365
1443 * c-common.c (RID_IS_FINAL): Add.
1444 * c-common.h (RID_IS_FINAL): Add.
1445
3f3d5ad4 14462011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1447
1448 * c.opt (fgnu-runtime): Provide full description.
1449 (fnext-runtime): Likewise.
1450 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1451
c4606d19 14522011-11-28 Andrew MacLeod <amacleod@redhat.com>
1453
1454 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1455 predefines in one place. Add LOCK_FREE predefines.
1456 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1457 new func.
1458
1d581089 14592011-11-24 Andrew MacLeod <amacleod@redhat.com>
1460
1461 PR c/51256
19931eea 1462 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 1463 conditions
19931eea 1464 (resolve_overloaded_atomic_exchange,
1465 resolve_overloaded_atomic_compare_exchange,
1d581089 1466 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1467 error_mark_node for error conditions.
19931eea 1468
6aa221fa 14692011-11-08 Richard Guenther <rguenther@suse.de>
1470
1471 PR middle-end/51010
1472 c-family/
1473
4c0315d0 14742011-11-07 Richard Henderson <rth@redhat.com>
1475 Aldy Hernandez <aldyh@redhat.com>
1476 Torvald Riegel <triegel@redhat.com>
1477
1478 Merged from transactional-memory.
1479
1480 * c-common.c (handle_tm_wrap_attribute,
1481 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1482 (struct c_common_reswords): Added __transaction* keywords.
1483 (struct c_common_attribute_table): Added transaction* and tm_regparm
1484 attributes.
1485 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1486 masks.
1487 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1488 find_tm_attribute): Declare.
1489
920f5a70 14902011-11-07 Jason Merrill <jason@redhat.com>
1491
1492 PR c++/35688
1493 * c-common.c, c-common.h: Revert yesterday's changes.
1494
b4f861b4 14952011-11-06 Jason Merrill <jason@redhat.com>
1496
1497 PR c++/35688
1498 * c-common.c (decl_has_visibility_attr): Split out from...
1499 (c_determine_visibility): ...here.
1500 * c-common.h: Declare it.
1501
83e25171 15022011-11-06 Joseph Myers <joseph@codesourcery.com>
1503
1504 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1505 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1506 type.
1507 (check_user_alignment): New. Split out of
1508 handle_aligned_attribute. Disallow integer constants with
1509 noninteger types. Conditionally allow zero.
1510 (handle_aligned_attribute): Use check_user_alignment.
1511 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1512
1cd6e20d 15132011-11-06 Andrew MacLeod <amacleod@redhat.com>
1514 Richard Henderson <rth@redhat.com>
1515
1516 Merged from cxx-mem-model.
1517
1518 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 1519 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 1520 parameters that are the same type size.
1521 (get_atomic_generic_size): New. Find size of generic
1522 atomic function parameters and do typechecking.
1523 (add_atomic_size_parameter): New. Insert size into parameter list.
1524 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1525 either __atomic_exchange_n or external library call.
19931eea 1526 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 1527 __atomic_compare_exchange to either _n variant or external library call.
19931eea 1528 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 1529 __atomic_load_n or an external library call.
1530 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1531 __atomic_store_n or an external library call.
1532 (resolve_overloaded_builtin): Handle new __atomic builtins.
1533
7549df0d 15342011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1535
1536 PR c++/50608
1537 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1538 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1539 <INDIRECT_REF>: Return the argument.
1540 <ARRAY_REF>: Remove special code for negative offset.
1541 Call fold_build_pointer_plus instead of size_binop.
1542 (fold_offsetof): Remove STOP_REF argument and adjust.
1543 * c-common.h (fold_offsetof_1): Declare.
1544 (fold_offsetof): Remove STOP_REF argument.
1545
7e783eb3 15462011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1547
1548 PR c++/50810
1549 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1550 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1551 Wnarrowing for C++0x and C++98.
1552 * c.opt ([Wnarrowing]): Update.
1553
8fe701f5 15542011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1555
1556 PR c++/44277
1557 * c.opt: Add Wzero-as-null-pointer-constant.
1558
0d84dc2d 15592011-10-31 Jason Merrill <jason@redhat.com>
1560
67031f52 1561 * c.opt (-fdeduce-init-list): Off by default.
1562
0d84dc2d 1563 PR c++/50920
1564 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1565 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1566 and -Wc++11-compat.
1567 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1568
66f24c41 15692011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1570
1571 PR c++/30066
1572 * c.opt (fvisibility-inlines-hidden): Description change.
1573
244db24d 15742011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1575
1576 Implement C++11 user-defined literals.
1577 * c-common.c (build_userdef_literal): New.
1578 * c-common.def: New tree code.
1579 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1580 * c-lex.c (interpret_float): Add suffix parm.
1581 (c_lex_with_flags): Build literal tokens.
1582
235be70f 15832011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1584
1585 PR c++/50841
1586 Revert:
1587 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1588
1589 PR c++/50810
1590 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1591 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1592 Wnarrowing for C++0x and C++98.
1593 * c.opt ([Wnarrowing]): Update.
1594
4fe0fb1c 15952011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1596
1597 PR c++/50810
1598 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1599 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1600 Wnarrowing for C++0x and C++98.
1601 * c.opt ([Wnarrowing]): Update.
1602
5f7504f9 16032011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1604
1605 PR c++/45385
1606 * c-common.c (conversion_warning): Remove code looking for
1607 artificial operands.
1608
2a688977 16092011-10-18 Dodji Seketeli <dodji@redhat.com>
1610
1611 PR bootstrap/50760
1612 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 1613 !NO_IMPLICIT_EXTERN_C.
2a688977 1614
326e3391 16152011-10-17 Michael Spertus <mike_spertus@symantec.com>
1616
1617 * c-common.c (c_common_reswords): Add __bases,
1618 __direct_bases.
1619 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1620
16212011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1622
1623 PR c++/50757
1624 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1625
62db153a 16262011-10-15 Tom Tromey <tromey@redhat.com>
1627 Dodji Seketeli <dodji@redhat.com>
1628
1629 * c.opt (fdebug-cpp): New option.
1630 * c-opts.c (c_common_handle_option): Handle the option.
1631 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1632 output stream in parameter. Factorized from ...
1633 (maybe_print_line): ... this. Dump location debug information when
1634 -fdebug-cpp is in effect.
1635 (print_line_1): New static function. Takes an output stream in
1636 parameter. Factorized from ...
1637 (print_line): ... here. Dump location information when -fdebug-cpp
1638 is in effect.
1639 (scan_translation_unit): Dump location information when
1640 -fdebug-cpp is in effect.
1641
ce70f433 16422011-10-15 Tom Tromey <tromey@redhat.com>
1643 Dodji Seketeli <dodji@redhat.com>
1644
1645 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1646 without argument.
1647 * c-opts.c (c_common_handle_option)<case
1648 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1649 cases. Handle -ftrack-macro-expansion with and without argument.
1650
97bfb9ef 16512011-10-15 Tom Tromey <tromey@redhat.com>
1652 Dodji Seketeli <dodji@redhat.com>
1653
1654 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1655 (print_line, cb_define, do_line_change): Adjust to avoid touching
1656 the internals of struct line_map. Use the public API instead.
1657 * c-pch.c (c_common_read_pch): Likewise.
1658 * c-lex.c (fe_file_change): Likewise.
1659
326e3391 16602011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1661
1662 PR c++/17212
1663 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1664
16652011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1666
1667 PR c++/33067
1668 * c-pretty-print.c (pp_c_floating_constant): Output
1669 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1670
b9a16870 16712011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1672
1673 * c-common.c (def_builtin_1): Delete old interface with two
1674 parallel arrays to hold standard builtin declarations, and replace
1675 it with a function based interface that can support creating
1676 builtins on the fly in the future. Change all uses, and poison
1677 the old names. Make sure 0 is not a legitimate builtin index.
1678 * c-omp.c (c_finish_omp_barrier): Ditto.
1679 (c_finish_omp_taskwait): Ditto.
1680 (c_finish_omp_flush): Ditto.
1681
c7964868 16822011-10-11 Tristan Gingold <gingold@adacore.com>
1683
1684 * c.opt: (fallow-parameterless-variadic-functions): New.
1685
a4e3ffad 16862011-09-08 Dodji Seketeli <dodji@redhat.com>
1687
1688 PR c++/33255 - Support -Wunused-local-typedefs warning
1689 * c-common.h (struct c_language_function::local_typedefs): New
1690 field.
19931eea 1691 (record_locally_defined_typedef, maybe_record_typedef_use)
1692 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 1693 * c-common.c (record_locally_defined_typedef)
19931eea 1694 (maybe_record_typedef_use)
1695 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 1696 * c.opt: Declare new -Wunused-local-typedefs flag.
1697
737a23cc 16982011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1699
1700 PR middle-end/50266
1701 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1702 computations.
1703
7542c3b4 17042011-09-05 Richard Guenther <rguenther@suse.de>
1705
1706 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1707 of integer_minus_one_node for empty array upper bounds.
1708
1dc92c59 17092011-08-28 Dodji Seketeli <dodji@redhat.com>
1710
1711 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1712 it's the first time it's being called on this main TU.
1713
2bdf2b6e 17142011-08-24 Richard Guenther <rguenther@suse.de>
1715
1716 PR c/49396
1717 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1718
17192011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 1720
1721 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1722 defined in cpp_init_builtins and c_cpp_builtins.
1723
bff4ad11 17242011-08-19 Joseph Myers <joseph@codesourcery.com>
1725
1726 * c-common.c (c_common_reswords): Add __builtin_complex.
1727 * c-common.h (RID_BUILTIN_COMPLEX): New.
1728
985c6e3a 17292011-08-18 Joseph Myers <joseph@codesourcery.com>
1730
1731 * c-common.c (c_common_reswords): Add _Noreturn.
1732 (keyword_is_function_specifier): Handle RID_NORETURN.
1733 * c-common.h (RID_NORETURN): New.
1734
7dfa155b 17352011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1736
1737 * c-common.c (unsafe_conversion_p): New function. Check if it is
1738 unsafe to convert an expression to the type.
1739 (conversion_warning): Adjust, use unsafe_conversion_p.
1740 * c-common.h (unsafe_conversion_p): New function declaration.
1741
2169f33b 17422011-08-02 Jakub Jelinek <jakub@redhat.com>
1743
1744 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1745 (c_finish_omp_taskyield): New prototype.
1746 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1747 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1748 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1749 or RHS1 have side-effects, evaluate those too in the right spot,
1750 if it is a decl and LHS is also a decl, error out if they
1751 aren't the same.
1752 (c_finish_omp_taskyield): New function.
1753 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1754 * c-pragma.c (omp_pragmas): Add taskyield.
1755 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1756 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1757 PRAGMA_OMP_CLAUSE_MERGEABLE.
1758
ab77850e 17592011-07-25 Dodji Seketeli <dodji@redhat.com>
1760
1761 * c-common.h (set_underlying_type): Remove parm name from
1762 declaration.
1763
6ee97920 17642011-07-25 Romain Geissler <romain.geissler@gmail.com>
1765
1766 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 1767
dc251364 17682011-07-22 Jason Merrill <jason@redhat.com>
1769
1a2a35f0 1770 PR c++/49793
1771 * c.opt (Wnarrowing): New.
1772
27282252 1773 PR c++/30112
1774 * c-common.h: Declare c_linkage_bindings.
1775 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1776
dc251364 1777 PR c++/49813
1778 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1779 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1780 as flag_isoc99 for 'restrict'.
1781 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1782
fc501191 17832011-07-21 Ian Lance Taylor <iant@google.com>
1784
1785 PR middle-end/49705
1786 * c-common.c (c_disable_warnings): New static function.
1787 (c_enable_warnings): New static function.
1788 (c_fully_fold_internal): Change local unused_p to bool. Call
1789 c_disable_warnings and c_enable_warnings rather than change
1790 c_inhibit_evaluation_warnings.
1791
07b8f133 17922011-07-20 Jason Merrill <jason@redhat.com>
1793
1794 PR c++/6709 (DR 743)
1795 PR c++/42603 (DR 950)
1796 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1797 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1798 (CPP_DECLTYPE): New.
1799 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1800
2cc66f2a 18012011-07-19 Richard Guenther <rguenther@suse.de>
1802
1803 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1804 * c-omp.c (c_finish_omp_for): Likewise.
1805
3c802a1e 18062011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1807
1808 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1809 body on the next line.
1810
98a33d9f 18112011-07-08 Jason Merrill <jason@redhat.com>
1812
3115bda0 1813 PR c++/45437
1814 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1815
98a33d9f 1816 PR c++/49673
1817 * c-common.c (c_apply_type_quals_to_decl): Don't check
1818 TYPE_NEEDS_CONSTRUCTING.
1819
c38a75b7 18202011-07-06 Richard Guenther <rguenther@suse.de>
1821
1822 * c-common.c (c_common_nodes_and_builtins):
1823 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1824
e593356b 18252011-07-05 Richard Guenther <rguenther@suse.de>
1826
1827 * c-common.c (c_common_nodes_and_builtins): Build all common
1828 tree nodes first.
1829
fca0886c 18302011-06-27 Jakub Jelinek <jakub@redhat.com>
1831
a68f7a8d 1832 * c-common.h (c_tree_chain_next): New static inline function.
1833
fca0886c 1834 * c-common.c (check_builtin_function_arguments): Handle
1835 BUILT_IN_ASSUME_ALIGNED.
1836
2797f13a 18372011-06-21 Andrew MacLeod <amacleod@redhat.com>
1838
1839 * c-common.c: Add sync_ or SYNC__ to builtin names.
1840 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 1841
18422011-06-20 Pierre Vittet <piervit@pvittet.com>
1843
1844 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1845 handler.
1846 (gen_pragma_handler): New union.
1847 (internal_pragma_handler): New type.
1848 (c_register_pragma_with_data)
1849 (c_register_pragma_with_expansion_and_data): New functions.
1850
1851 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1852 (c_register_pragma, c_register_pragma_with_expansion)
1853 (c_invoke_pragma_handler): Changed to work with
1854 internal_pragma_handler.
1855 (c_register_pragma_with_data)
1856 (c_register_pragma_with_expansion_and_data): New functions.
1857
218e3e4e 18582011-06-14 Joseph Myers <joseph@codesourcery.com>
1859
1860 * c-common.c: Include common/common-target.h.
1861 (handle_section_attribute): Use
1862 targetm_common.have_named_sections.
1863 * c-cppbuiltin.c: Include common/common-target.h.
1864 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1865
41e53ed2 18662011-06-10 Richard Guenther <rguenther@suse.de>
1867
1868 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1869 to print a IDENTIFIER_NODE.
1870
a6f06169 18712011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1872 Joseph Myers <joseph@codesourcery.com>
1873
1874 * c.opt (fbuilding-libgcc): New option.
1875 * c-cppbuiltin.c (c_cpp_builtins): Define
1876 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1877
1ea9269b 18782011-06-07 Jason Merrill <jason@redhat.com>
1879
8ce59854 1880 * c-common.c (max_tinst_depth): Lower default to 900.
1881
1ea9269b 1882 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1883
1af0124d 18842011-06-07 Richard Guenther <rguenther@suse.de>
1885
1886 * c-common.c (c_common_nodes_and_builtins): Do not set
1887 size_type_node or call set_sizetype.
1888
0e9a4c01 18892011-06-07 Dodji Seketeli <dodji@redhat.com>
1890
1891 PR debug/49130
1892 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 1893 type when using pointer comparison to compare types.
0e9a4c01 1894
90b40725 18952011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1896
1897 * c.opt: Add -Wdelete-non-virtual-dtor.
1898 * c-opts.c (c_common_handle_option): Include it in -Wall.
1899
fc9c9e87 19002011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1901
1902 PR bootstrap/49190
1903
1904 Revert:
1905 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1906
1907 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1908 not tree_common.
1909
d0389adc 19102011-05-27 Jakub Jelinek <jakub@redhat.com>
1911
1912 PR c++/49165
1913 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1914 C++ don't call c_common_truthvalue_conversion on void type arms.
1915
cacfdc02 19162011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1917
1918 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1919 (stmt_list_stack): Define.
1920 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1921 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1922
027fc6ef 19232011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1924
1925 * c-common.c (warning_candidate_p): Check for BLOCKs.
1926
f21317a1 19272011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1928
1929 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1930 not tree_common.
1931
789e953d 19322011-05-25 Jakub Jelinek <jakub@redhat.com>
1933
1934 * c-common.c (def_fn_type): Remove extra va_end.
1935
7f506bca 19362011-05-23 Jason Merrill <jason@redhat.com>
1937
1938 PR c++/48106
1939 * c-common.c (c_common_get_narrower): New.
1940 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1941
774e9d58 19422011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1943
1944 * c-common.h (check_function_arguments): Tweak prototype of
1945 check_function_arguments.
1946 * c-common.c (check_function_arguments): Likewise. Adjust
1947 calls to check_function_nonnull, check_function_format, and
1948 check_function_sentinel.
1949 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1950 separate attributes and typelist arguments. Use
1951 FOREACH_FUNCTION_ARGS to iterate over argument types.
1952
23407dc9 19532011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1954
1955 * c-common.c (c_common_reswords): Reorder.
1956 * c-common.h (rid): Likewise.
1957
3a939d12 19582011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1959
1960 * c-common.c (def_fn_type): Don't call build_function_type, call
1961 build_function_type_array or build_varargs_function_type_array
1962 instead.
1963 (c_common_nodes_and_builtins): Likewise.
1964
b6e3dd65 19652011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1966
1967 * c-common.c (c_add_case_label): Omit the loc argument to
1968 build_case_label.
1969 * c-common.h (build_case_label): Remove.
1970 * c-semantics.c (build_case_label): Remove.
1971
4232a958 19722011-05-05 Joseph Myers <joseph@codesourcery.com>
1973
1974 * c-objc.h (objc_start_method_definition): Update prototype.
1975 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1976
d0af78c5 19772011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1978
1979 * c-common.c (check_main_parameter_types): Reindent. Don't use
1980 TYPE_ARG_TYPES directly.
1981 (handle_nonnull_attribute): Likewise.
1982 (sync_resolve_params): Likewise.
1983 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1984 to check_format_string.
1985 (handle_format_attribute): Likewise.
1986 (check_format_string): Take a function type to examine instead of
1987 a type list. Use a function_arg_iterator to step through argument
1988 types.
1989
ceb7b692 19902011-05-04 Richard Guenther <rguenther@suse.de>
1991
1992 * c-common.c (fix_string_type): Use size_int for index type bounds.
1993 (start_fname_decls): Do not pass NULL to build_int_cst.
1994 (c_init_attributes): Likewise.
1995 * c-lex.c (c_lex_with_flags): Likewise.
1996
c66c81be 19972011-04-27 Jason Merrill <jason@redhat.com>
1998
1999 * c-common.c (make_tree_vector_from_list): New.
2000 * c-common.h: Declare it.
2001
16930c72 20022011-04-26 Richard Guenther <rguenther@suse.de>
2003
2004 PR preprocessor/48248
2005 * c-ppoutput.c (maybe_print_line): Always optimize newlines
2006 for output size with -P.
2007
23407dc9 20082011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2009
2010 * c-common.c (struct c_common_resword): Add __underlying_type.
2011 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2012
dd045aee 20132011-04-20 Jim Meyering <meyering@redhat.com>
2014
2015 * c-format.c (init_dollar_format_checking): Remove useless
2016 if-before-free.
2017
394dd737 20182011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
2019
2020 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 2021 (objc_detect_field_duplicates): New.
394dd737 2022 * stub-objc.c: Likewise.
23407dc9 2023
a758bf7d 20242011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2025
2026 * stub-objc.c (objc_declare_protocols): Renamed to
2027 objc_declare_protocol.
2028 * c-objc.h: Likewise.
23407dc9 2029
29d7200d 20302011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
2031
2032 * stub-objc.c (objc_declare_class): Updated argument name.
2033
9b88d08d 20342011-04-12 Nathan Froyd <froydnj@codesourcery.com>
2035
2036 * c-common.h (c_common_init_ts): Declare.
2037 * c-common.c (c_common_init_ts): Define.
2038
4185cf58 20392011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
2040
2041 * c-objc.h (objc_build_message_expr): Updated prototype.
2042 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 2043
5a90471f 20442011-04-12 Martin Jambor <mjambor@suse.cz>
2045
2046 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
2047 of cgraph_node.
2048
783bb57e 20492011-04-11 Richard Guenther <rguenther@suse.de>
2050
2051 * c-common.c (complete_array_type): Build a range type of
2052 proper type.
2053
c33080b9 20542011-04-08 Nathan Froyd <froydnj@codesourcery.com>
2055
2056 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
2057 (handle_type_generic_attribute): Likewise.
2058
f8913d47 20592011-04-07 Jason Merrill <jason@redhat.com>
2060
2061 PR c++/48450
2062 * c-common.c (c_common_truthvalue_conversion): Don't ignore
2063 conversion from C++0x scoped enum.
2064
c94b1d0e 20652011-04-06 Joseph Myers <joseph@codesourcery.com>
2066
2067 * c-target-def.h: New file.
2068 * c-target.def: New file.
2069 * c-target.h: New file.
2070 * c-common.c (targetcm): Don't define here.
2071 * c-common.h (default_handle_c_option): Declare.
2072 * c-format.c: Include c-target.h instead of target.h.
2073 * c-opts.c: Include c-target.h instead of target.h. Explicitly
2074 include tm.h.
2075 (default_handle_c_option): Move from targhooks.c.
2076
acb10f41 20772011-03-29 Jakub Jelinek <jakub@redhat.com>
2078
2079 PR preprocessor/48248
2080 * c-ppoutput.c (print): Add src_file field.
2081 (init_pp_output): Initialize it.
2082 (maybe_print_line): Don't optimize by adding up to 8 newlines
2083 if map->to_file and print.src_file are different file.
2084 (print_line): Update print.src_file.
2085
82715bcd 20862011-03-25 Kai Tietz <ktietz@redhat.com>
2087
2088 * c-ada-spec.c (compare_comment): Use filename_cmp
2089 instead of strcmp for filename.
2090
451c8e2f 20912011-03-25 Jeff Law <law@redhat.com>
2092
2093 * c-family/c-common.c (def_fn_type): Add missing va_end.
2094
3c47771c 20952011-03-25 Jason Merrill <jason@redhat.com>
2096
2097 * c.opt: Add -std=c++03.
2098
97e6200f 20992011-03-22 Eric Botcazou <ebotcazou@adacore.com>
2100
2101 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
2102
ac86af5d 21032011-03-17 Kai Tietz
2104
2105 PR target/12171
ee212425 2106 * c-pretty-print.c (pp_c_specifier_qualifier_list):
2107 Display allowed attributes for function pointer types.
2108 (pp_c_attributes_display): New function to display
2109 attributes having affects_type_identity flag set to true.
2110 * c-pretty-print.h (pp_c_attributes_display): New prototype.
2111
ac86af5d 2112 * c-common.c (c_common_attribute_table):
2113 Add new element.
2114 (c_common_format_attribute_table): Likewise.
2115
914d1151 21162011-03-18 Jason Merrill <jason@redhat.com>
2117
69788bdf 2118 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
2119 * c-common.h: Don't declare it here.
2120 * c-common.c: Or define it here.
2121 * c-opts.c (c_common_handle_option): Or set it here.
2122
914d1151 2123 PR c++/35315
2124 * c-common.c (handle_transparent_union_attribute): Don't
2125 make a duplicate type in C++.
2126
54cf6eed 21272011-03-15 Jason Merrill <jason@redhat.com>
2128
2129 * c-common.c (max_constexpr_depth): New.
2130 * c-common.h: Declare it.
2131 * c-opts.c (c_common_handle_option): Set it.
2132 * c.opt (fconstexpr-depth): New option.
2133
02cb1060 21342011-03-11 Jason Merrill <jason@redhat.com>
2135
9bf1c74e 2136 * c-common.c (attribute_takes_identifier_p): Add missing const.
2137
02cb1060 2138 PR c++/46803
2139 * c-common.c (attribute_takes_identifier_p): Assume that an
2140 unknown attribute takes an identifier.
2141
ecf2703d 21422011-03-07 Nathan Froyd <froydnj@codesourcery.com>
2143
2144 PR c/47786
2145 * c-common.c (c_type_hash): Call list_length instead of iterating
2146 through DECL_CHAIN. Rename 'i' to 'n_elements'.
2147
2b19dfe4 21482011-02-19 Jakub Jelinek <jakub@redhat.com>
2149
2150 PR c/47809
2151 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
2152
29cf2335 21532011-02-17 Iain Sandoe <iains@gcc.gnu.org>
2154
2155 * c.opt (fobjc-abi-version=) New.
2156 (fobjc-nilcheck): New.
2157
fad3f658 21582011-02-03 Nathan Froyd <froydnj@codesourcery.com>
2159
2160 PR c++/46890
2161 * c-common.h (keyword_is_decl_specifier): Declare.
2162 * c-common.c (keyword_is_decl_specifier): Define.
2163 (keyword_is_function_specifier): New function.
2164
a12319b3 21652011-01-26 Jakub Jelinek <jakub@redhat.com>
2166
2167 PR c/47473
2168 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2169 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2170 REAL_TYPE.
2171
5c128dc8 21722011-01-26 Arnaud Charlet <charlet@adacore.com>
2173
2174 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2175
8d67b0c7 21762011-01-26 Jakub Jelinek <jakub@redhat.com>
2177
2178 PR pch/47430
2179 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2180 after init_c_lex if pch_file is set.
2181
0675168d 21822011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2183
e8911163 2184 PR c++/43601
0675168d 2185 * c.opt (-fkeep-inline-dllexport): New switch.
2186
0725e25c 21872011-01-12 Richard Guenther <rguenther@suse.de>
2188
2189 PR middle-end/32511
2190 * c-common.c (handle_weak_attribute): Warn instead of error
2191 on declaring an inline function weak.
2192
fdd84b77 21932011-01-05 Tom Tromey <tromey@redhat.com>
2194
2195 * c-common.h (lvalue_error): Update.
2196 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2197 not error.
2198
e6e73d14 21992010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 2200
d67e8485 2201 PR objc/47075
2202 * c-objc.h (objc_finish_message_expr): Added argument to
2203 prototype.
2204
a36cf284 22052010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2206
2207 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2208 Use prototype_p.
2209
33b3681f 22102010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2211
2212 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 2213 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 2214
a1f90215 22152010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2216
2217 * c-common.h (readonly_error): Declare.
2218 * c-common.c (readonly_error): Define.
2219
b1bbc8e5 22202010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2221
2222 * c-common.h (invalid_indirection_error): Declare.
2223 * c-common.c (invalid_indirection_error): Define.
2224
b0d55af9 22252010-12-03 Richard Guenther <rguenther@suse.de>
2226
2227 PR c/46745
2228 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2229 (pp_c_unary_expression): Likewise.
2230 (pp_c_expression): Likewise.
2231
d7489d8d 22322010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2233
2234 * c-common.h (objc_finish_function): New.
2235 (objc_non_volatilized_type): Removed.
2236 (objc_type_quals_match): Removed.
2237 * stub-objc.c (objc_finish_function): New.
2238 (objc_non_volatilized_type): Removed.
2239 (objc_type_quals_match): Removed.
19931eea 2240
92468061 22412010-11-30 Joseph Myers <joseph@codesourcery.com>
2242
2243 * c-common.h (parse_optimize_options): Declare.
2244 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2245 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2246
967958e4 22472010-11-29 Joseph Myers <joseph@codesourcery.com>
2248
2249 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2250 GET_ENVIRONMENT.
2251 * c-pch.c (O_BINARY): Don't define here.
2252 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2253
b213bf24 22542010-11-25 Joseph Myers <joseph@codesourcery.com>
2255
2256 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2257 targetm.except_unwind_info.
2258
9faf44d6 22592010-11-23 Joseph Myers <joseph@codesourcery.com>
2260
2261 * c-opts.c (c_common_handle_option): Pass location to
2262 set_struct_debug_option.
2263
79396169 22642010-11-23 Joseph Myers <joseph@codesourcery.com>
2265
2266 * c-common.c (visibility_options): Move from ../opts.c.
2267 * c-common.h (struct visibility_flags, visibility_options):
2268 Declare here.
2269 * c-opts.c (finish_options): Rename to c_finish_options.
2270 (c_common_init): Update call to finish_options.
2271
b4aa4123 22722010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2273
2274 PR objc/34033
2275 * c-lex.c (lex_string): Check that each string in an Objective-C
2276 string concat sequence starts with either one or zero '@', and
2277 that there are no spurious '@' signs at the end.
2278
3e0e49f2 22792010-11-20 Joseph Myers <joseph@codesourcery.com>
2280
2281 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2282 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2283 HANDLE_PRAGMA_VISIBILITY.
2284 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2285 HANDLE_PRAGMA_VISIBILITY): Don't define.
2286 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2287
a9ffdd35 22882010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2289
2290 PR c++/16189
2291 PR c++/36888
2292 PR c++/45331
2293 * c-common.h (keyword_begins_type_specifier): Declare.
2294 (keyword_is_storage_class_specifier): Declare.
2295 (keyword_is_type_qualifier): Declare.
2296 * c-common.c (keyword_begins_type_specifier): New function.
2297 (keyword_is_storage_class_specifier): New function.
2298 (keyword_is_type_qualifier): Declare.
2299
93be21c0 23002010-11-19 Joseph Myers <joseph@codesourcery.com>
2301
2302 PR c/46547
2303 * c-common.c (in_late_binary_op): Define.
2304 (c_common_truthvalue_conversion): Check in_late_binary_op before
2305 calling c_save_expr.
2306 * c-common.h (in_late_binary_op): Declare.
2307
d7175aef 23082010-11-19 Joseph Myers <joseph@codesourcery.com>
2309
2310 * c-opts.c (c_common_handle_option): Update calls to
2311 set_struct_debug_option.
2312
c213e196 23132010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2314
2315 * c-common.h (objc_declare_protocols): Added additional argument.
2316 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 2317
0b5fc5d6 23182010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2319
2320 PR c/33193
2321 * c-common.h (build_real_imag_expr): Declare.
2322 * c-semantics.c (build_real_imag_expr): Define.
2323
b8ba44e7 23242010-11-17 Joseph Myers <joseph@codesourcery.com>
2325
2326 * c-opts.c (c_common_parse_file): Take no arguments.
2327 * c-common.h (c_common_parse_file): Update prototype.
2328
6ef8d12f 23292010-11-16 Jakub Jelinek <jakub@redhat.com>
2330
2331 PR c++/46401
2332 * c-common.c (warning_candidate_p): Don't track non-const calls
2333 or STRING_CSTs.
2334
929d2a90 23352010-11-15 Ian Lance Taylor <iant@google.com>
2336
2337 * c-lex.c (init_c_lex): Set macro debug callbacks if
2338 flag_dump_go_spec is set.
2339
e4a7640a 23402010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2341
2342 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2343 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2344
597d2d81 23452010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2346
2347 PR preprocessor/45038
2348 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2349 dialects.
2350
c123f04d 23512010-11-12 Joseph Myers <joseph@codesourcery.com>
2352
2353 * c-common.h (c_family_lang_mask): Declare.
2354 * c-opts.c (c_family_lang_mask): Make extern.
2355 * c-pragma.c (handle_pragma_diagnostic): Use
2356 control_warning_option.
2357
3c6c0e40 23582010-11-12 Joseph Myers <joseph@codesourcery.com>
2359
2360 * c-common.c (parse_optimize_options): Update call to
2361 decode_options.
2362 * c-common.h (c_common_handle_option): Update prototype.
2363 * c-opts.c (c_common_handle_option): Take location_t parameter and
2364 pass it to other functions.
2365
19ec5c9e 23662010-11-11 Joseph Myers <joseph@codesourcery.com>
2367
2368 * c-opts.c (warning_as_error_callback): Remove.
2369 (c_common_initialize_diagnostics): Don't call
2370 register_warning_as_error_callback.
2371 (c_common_handle_option): Handle -Werror=normalized= here.
2372
bf776685 23732010-11-10 Joseph Myers <joseph@codesourcery.com>
2374
2375 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2376 in diagnostic.
2377 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2378 letter.
2379 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2380 Remove trailing '.' from diagnostics.
2381 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2382
6bd9d862 23832010-11-10 Joseph Myers <joseph@codesourcery.com>
2384
2385 * c-common.c (parse_optimize_options): Pass global_dc to
2386 decode_options.
2387 * c-opts.c (c_common_handle_option): Pass &global_options to
2388 set_Wstrict_aliasing.
2389 * c.opt (v): Don't mark Common or document here.
2390
1f6616ee 23912010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2392
2393 PR target/44981
2394 * c-format.c (format_type): New type gcc_objc_string_format_type.
2395 (valid_stringptr_type_p): New.
2396 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 2397 (check_format_string): Pass expected type, use
1f6616ee 2398 valid_stringptr_type_p (), check that the format string types are
2399 consistent with the format specification.
2400 (decode_format_attr): Warn if NSString is used outside objective-c.
2401 (format_types_orig): Add NSString.
2402 (format_name): New.
2403 (format_flags): New.
2404 (check_format_arg): Handle format strings requiring an external parser.
2405 first_target_format_type: New variable.
2406 (handle_format_attribute): Set up first_target_format_type, pass the
2407 expected format arg string type to check_format_string().
2408 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2409 * stub-objc.c (objc_string_ref_type_p): New.
2410 (objc_check_format_arg): New.
2411
b0d0931f 24122010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2413
19931eea 2414 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 2415 * c-common.h (objc_build_class_component_ref): New.
2416 * stub-objc.c (objc_build_class_component_ref): New.
2417
f26877d5 24182010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2419
2420 * c.opt (Wproperty-assign-default): New option.
2421
1ef143b6 24222010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2423
2424 Implemented -fobjc-std=objc1 flag.
2425 * c.opt (fobjc-std=objc1): New option.
2426
8c582e4f 24272010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2428
2429 Implemented format and noreturn attributes for Objective-C methods.
2430 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2431 attribute for Objective-C methods.
2432
8637f1db 24332010-10-31 Jason Merrill <jason@redhat.com>
2434
2435 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2436 EXPR_LOC_OR_HERE.
2437
9d9f5bb3 24382010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2439
2440 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2441 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2442 (objc_add_property_declaration): Removed arguments for copies and
2443 ivar.
2444 (objc_build_getter_call): Renamed to
2445 objc_maybe_build_component_ref.
2446 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2447 (objc_is_property_ref): New.
2448 * c-common.c (c_common_reswords): Removed copies and ivar.
2449 * stub-objc.c (objc_add_property_declaration): Removed arguments
2450 for copies and ivar.
2451 (objc_build_getter_call): Renamed to
2452 objc_maybe_build_component_ref.
2453 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2454 (objc_is_property_ref): New.
19931eea 2455
56f907a0 24562010-10-29 Arnaud Charlet <charlet@adacore.com>
2457 Matthew Gingell <gingell@adacore.com>
2458
2459 * c-ada-spec.c (separate_class_package): New function.
2460 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2461 name of their enclosing package.
2462 (print_ada_declaration): Use separate_class_package.
2463
b5fa273e 24642010-10-27 Jason Merrill <jason@redhat.com>
2465
5290e253 2466 * c-common.c (c_common_reswords): Add __is_literal_type.
2467 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2468
b5fa273e 2469 * c-common.c (check_case_value): Remove special C++ code.
2470
7590f0e5 24712010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2472
2473 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2474 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2475 and RID_LAST_PATTR.
2476 (objc_add_property_declaration): Added additional arguments.
2477 (objc_property_attribute_kind): Removed.
2478 (objc_set_property_attr): Removed.
2479 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2480 copy and nonatomic.
2481 * stub-objc.c (objc_add_property_declaration): Added additional
2482 arguments.
2483 (objc_set_property_attr): Removed.
19931eea 2484
1d894bcf 24852010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2486
2487 * c-common.h (objc_add_property_variable): Renamed to
2488 objc_add_property_declaration. Added location argument.
2489 * stub-objc.c (objc_add_property_variable): Same change.
2490
e23bf1fb 24912010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2492
2493 * c-common.h (objc_maybe_printable_name): New.
2494 * stub-objc.c (objc_maybe_printable_name): New.
2495
93426222 24962010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2497 Andrew Pinski <pinskia@gmail.com>
2498
2499 * c-common.h (c_common_mark_addressable_vec): Declare.
2500 * c-common.c (c_common_mark_addressable_vec): New function.
2501
45b2b110 25022010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2503
2504 * c-common.h (objc_set_method_type): Removed.
2505 (objc_add_method_declaration): Added boolean argument.
2506 (objc_start_method_definition): Same change.
2507 (objc_build_method_signature): Same change.
2508 * stub-objc.c (objc_set_method_type): Removed.
2509 (objc_add_method_declaration): Added boolean argument.
2510 (objc_start_method_definition): Same change.
2511 (objc_build_method_signature): Same change.
2512
64cd9619 25132010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2514
2515 * c-common.h (finish_file): Removed.
2516 (objc_write_global_declarations): New.
2517 * c-opts.c (c_common_parse_file): Do not call finish_file.
2518 * stub-objc.c (objc_write_global_declarations): New.
19931eea 2519
e1f293c0 25202010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2521
2522 Implemented parsing @synthesize and @dynamic for
2523 Objective-C/Objective-C++.
2524 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2525 (objc_add_synthesize_declaration): New.
2526 (objc_add_dynamic_declaration): New.
2527 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2528 * stub-objc.c (objc_add_synthesize_declaration): New.
2529 (objc_add_dynamic_declaration): New.
19931eea 2530
ef97a312 25312010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2532
2533 PR target/46041
2534 * c-cppbuiltin.c (mode_has_fma): Move function here from
2535 builtins.c. Don't use the fma optab, instead just use the
2536 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2537 using -save-temps.
2538
69b07042 25392010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2540
2541 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 2542
69b07042 2543 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2544
19931eea 2545 Radar 4330422
69b07042 2546 * c-common.h (objc_non_volatilized_type): New declaration
2547 * stub-objc.c (objc_non_volatilized_type): New stub.
2548
f15f2e56 25492010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2550
69b07042 2551 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 2552
2553 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2554
19931eea 2555 Radar 4133425
f15f2e56 2556 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 2557 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 2558
4a8875ed 25592010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2560
2561 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2562 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2563 (objc_ivar_visibility_kind): New enum.
2564 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 2565 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 2566 visibility enum.
2567
7e0713b1 25682010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2569
2570 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2571 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2572 has the appropriate fma builtins.
2573 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2574
86c110ac 25752010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2576
7e0713b1 2577 merge from FSF apple 'trunk' branch.
86c110ac 2578 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 2579
86c110ac 2580 Radars 4436866, 4505126, 4506903, 4517826
2581 * c-common.c (c_common_resword): Define @property and its attributes.
2582 * c-common.h: Define property attribute enum entries.
2583 (OBJC_IS_PATTR_KEYWORD): New.
2584 (objc_property_attribute_kind): New enum.
2585 Declare objc_set_property_attr (), objc_add_property_variable (),
2586 objc_build_getter_call () and objc_build_setter_call ().
2587 * stub-objc.c (objc_set_property_attr): New stub.
2588 (objc_add_property_variable): Likewise.
2589 (objc_build_getter_call): Likewise.
2590 (objc_build_setter_call) Likewise.
7e0713b1 2591
40c8d1dd 25922010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2593
7e0713b1 2594 merge from FSF apple 'trunk' branch.
40c8d1dd 2595 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2596
2597 Radar 3803157 (method attributes)
2598 * c-common.c (handle_deprecated_attribute): Recognize
2599 objc methods as valid declarations.
2600 * c-common.h: Declare objc_method_decl ().
7e0713b1 2601 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 2602
f3f006ad 26032010-10-08 Joseph Myers <joseph@codesourcery.com>
2604
2605 * c-common.c (parse_optimize_options): Call
2606 decode_cmdline_options_to_array_default_mask before
2607 decode_options. Update arguments to decode_options.
2608 * c-common.h (c_common_init_options_struct): Declare.
2609 * c-opts.c (c_common_init_options_struct): New. Split out from
2610 c_common_init_options.
2611
0a65c3bb 26122010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2613
2614 Implemented fast enumeration for Objective-C.
2615 * c-common.h (objc_finish_foreach_loop): New.
2616 * stub-objc.c (objc_finish_foreach_loop): New.
2617
24ca3b4e 26182010-10-05 Joseph Myers <joseph@codesourcery.com>
2619
2620 * c-common.h (struct diagnostic_context): Don't declare here.
2621 (c_common_initialize_diagnostics): Declare using
2622 diagnostic_context typedef.
2623 * c-opts.c (c_common_handle_option): Pass global_dc to
2624 handle_generated_option.
2625
f83b64ca 26262010-10-04 Joseph Myers <joseph@codesourcery.com>
2627
2628 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2629 handle_generated_option.
2630
2fdec027 26312010-10-03 Ian Lance Taylor <iant@google.com>
2632
2633 * c.opt (-fplan9-extensions): New option.
2634
41acdfa4 26352010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2636
2637 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2638 Remove.
2639 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2640 of duplicating code.
2641
069761fb 26422010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2643
2644 * c-common.c: Add two new entries for @optional
2645 and @required keywords.
2646
2647 merge from FSF 'apple/trunk' branch.
2648 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2649
2650 Radar 4386773
2651 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2652 objective-c keywords.
2653 (objc_set_method_opt): New declaration.
2654 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 2655
2c5d2e39 26562010-09-30 Joseph Myers <joseph@codesourcery.com>
2657
2658 * c-common.c (handle_optimize_attribute): Pass &global_options to
2659 cl_optimization_save and cl_optimization_restore.
2660 * c-opts.c (c_common_handle_option): Pass &global_options to
2661 handle_generated_option.
2662 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2663 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2664 &global_options to cl_optimization_restore.
2665
e5c75ac3 26662010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2667
2668 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2669 Objective-C/Objective-C++ keywords.
2670
3511333e 26712010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 2672
19931eea 2673 Merge from 'apple/trunk' branch on FSF servers.
2674
e147d6aa 2675 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2676
2677 Radar 4281748
2678 * c-common.h (objc_check_global_decl): New declaration.
2679 * stub-objc.c (objc_check_global_decl): New stub.
2680
5461e683 26812010-09-29 Joseph Myers <joseph@codesourcery.com>
2682
2683 * c.opt: Don't use VarExists.
2684
5ae82d58 26852010-09-29 Joseph Myers <joseph@codesourcery.com>
2686
2687 * c-common.c (c_cpp_error): Update names of diagnostic_context
2688 members.
2689 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2690 cl_optimization members.
2691 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2692 sanitize_cpp_opts, finish_options): Update names of cpp_options
2693 members.
2694
b27e241e 26952010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2696
2697 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2698 (objc_is_reserved_word): Removed.
2699 * c-common.c: Updated comments.
2700 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2701 objc_is_reserved_word.
2702 * stub-objc.c (objc_is_reserved_word): Removed.
2703
03fc2271 27042010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2705
19931eea 2706 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 2707 include attributes.
2708 (objc_start_method_definition): Likewise.
2709 (objc_build_keyword_decl): Likewise.
2710 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2711 (objc_start_method_definition): Likewise.
2712 (objc_build_keyword_decl): Likewise.
2713
a336eb4b 27142010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2715
2716 * c-common.h (objc_start_class_interface): Adjust prototype.
2717 (objc_start_category_interface): Likewise.
2718 (objc_start_protocol): Likewise.
2719 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2720 (objc_start_class_interface): Likewise.
2721 (objc_start_category_interface): Likewise.
2722
48b14f50 27232010-09-27 Ian Lance Taylor <iant@google.com>
2724
2725 * c-common.c (c_common_attribute_table): Add no_split_stack.
2726 (handle_no_split_stack_attribute): New static function.
2727
4abfc532 27282010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2729
19931eea 2730 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 2731
2732 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2733
19931eea 2734 Radar 4229905
4abfc532 2735 * c-common.h (objc_have_common_type): New declaration.
2736 * stub-objc.c (objc_have_common_type): New stub.
2737
2738 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2739
2740 Radar 4154928
2741 * c-common.h (objc_common_type): New prototype.
19931eea 2742 * stub-objc.c (objc_common_type): New stub.
4abfc532 2743
7bd95dfd 27442010-09-24 Jan Hubicka <jh@suse.cz>
2745
2746 * c-common.c (handle_leaf_attribute): New function.
2747 (struct attribute_spec c_common_att): Add leaf.
2748
5789e05b 27492010-09-22 Joseph Myers <joseph@codesourcery.com>
2750
2751 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2752 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2753 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2754 -include-barrier, -include-directory, -include-directory=,
2755 -include-directory-after, -include-directory-after=,
2756 -include-prefix, -include-prefix=, -include-with-prefix,
2757 -include-with-prefix=, -include-with-prefix-after,
2758 -include-with-prefix-after=, -include-with-prefix-before,
2759 -include-with-prefix-before=, -no-integrated-cpp,
2760 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2761 -output=, -pedantic, -pedantic-errors, -preprocess,
2762 -print-missing-file-dependencies, -trace-includes, -traditional,
2763 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2764 -user-dependencies, -verbose, -write-dependencies,
2765 -write-user-dependencies, no-integrated-cpp, traditional): New.
2766
e6fb54ba 27672010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2768
2769 PR objc/23710
9b60f3b0 2770 * c-common.h (objc_start_method_definition): Return bool instead
2771 of void.
2772 * stub-objc.c (objc_start_method_definition): Return bool instead
2773 of void.
2774
27752010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2776
2777 PR objc/25965
2778 * c-common.h (objc_get_interface_ivars): New declaration.
2779 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 2780
e44b0a1f 27812010-09-15 Ian Lance Taylor <iant@google.com>
2782
2783 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 2784 messages. Remove period at end of warning message.
e44b0a1f 2785
85c0a25c 27862010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2787
2788 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2789 (handle_alias_attribute): ... here.
2790 (handle_ifunc_attribute): New.
2791
5ba33bf4 27922010-09-06 Mark Mitchell <mark@codesourcery.com>
2793
2794 * c-common.h (do_warn_double_promotion): Declare.
2795 * c-common.c (do_warn_double_promotion): Define.
2796
c920faa3 27972010-09-05 Mark Mitchell <mark@codesourcery.com>
2798
2799 * c.opt (Wdouble-promotion): New.
2800
9604e070 28012010-09-02 Joseph Myers <joseph@codesourcery.com>
2802
2803 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2804 fvtable-thunks, fxref): Mark no longer supported in help text.
2805
3b0273a1 28062010-09-02 Joseph Myers <joseph@codesourcery.com>
2807
2808 * c.opt (Wimport, fall-virtual, falt-external-templates,
2809 fdefault-inline, fenum-int-equiv, fexternal-templates,
2810 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2811 fname-mangling-version-, fnew-abi, fnonnull-objects,
2812 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2813 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2814 applicable.
2815 (fhandle-exceptions): Mark with Alias and Warn.
2816 * c-opts.c (c_common_handle_option): Don't handle options marked
2817 as ignored.
2818
67089c6b 28192010-09-02 Joseph Myers <joseph@codesourcery.com>
2820
2821 * c.opt (Wcomments, Werror-implicit-function-declaration,
2822 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2823 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2824 aliases.
2825 * c-common.c (option_codes): Use OPT_Wcomment instead of
2826 OPT_Wcomments.
2827 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2828 Don't handle options marked as aliases.
2829
2af087f2 28302010-08-25 Richard Guenther <rguenther@suse.de>
2831
2832 * c-common.c (c_common_get_alias_set): Remove special
2833 handling for pointers.
2834
48148244 28352010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2836
2837 * c-common.c: Use FOR_EACH_VEC_ELT.
2838 * c-gimplify.c: Likewise.
2839 * c-pragma.c: Likewise.
2840
89c69892 28412010-08-16 Joseph Myers <joseph@codesourcery.com>
2842
2843 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2844 RejectDriver.
2845 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2846 RejectDriver.
2847 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2848 instead of OPT_MDX and OPT_MMDX.
2849
e28aa114 28502010-08-16 Joseph Myers <joseph@codesourcery.com>
2851
2852 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2853
99b66d21 28542010-08-12 Joseph Myers <joseph@codesourcery.com>
2855
2856 * c.opt (MD, MMD): Change to MDX and MMDX.
2857 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2858
666f4bf0 28592010-08-11 Joseph Myers <joseph@codesourcery.com>
2860
2861 * c-opts.c (c_common_handle_option): Call handle_generated_option
2862 instead of handle_option.
2863
5ec815f6 28642010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2865
2866 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2867 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2868
d13143cf 28692010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2870
2871 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2872 (pending_redefine_extname): Change type to a VEC.
2873 (add_to_renaming_pragma_list): Update for new type of
2874 pending_redefine_extname.
5ec815f6 2875 (maybe_apply_renaming_pragma): Likewise.
d13143cf 2876
2008c983 28772010-08-04 Arnaud Charlet <charlet@adacore.com>
2878
2879 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2880 visited.
2881 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2882 decide whether a type has already been declared/seen.
2883 Do not go to the original type.
2884 (dump_nested_types): New parameter forward.
2885 Generate forward declaration if needed and mark type as visited.
2886 (print_ada_declaration): Call dump_nested_types if not already done.
2887 Mark types as visited.
2888
9b091a73 28892010-08-03 Joseph Myers <joseph@codesourcery.com>
2890
2891 * c.opt (-print-pch-checksum): Remove option.
2892 * c-opts.c (c_common_handle_option): Don't handle
2893 OPT_print_pch_checksum.
2894
b78351e5 28952010-07-27 Joseph Myers <joseph@codesourcery.com>
2896
2897 * c-common.h (c_common_handle_option): Update prototype and return
2898 value type.
2899 * c-opts.c (c_common_handle_option): Update prototype and return
2900 value type. Update calls to handle_option and
2901 enable_warning_as_error.
2902
34416a90 29032010-07-27 Jakub Jelinek <jakub@redhat.com>
2904
2905 PR c/45079
2906 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2907
fecf9011 29082010-07-27 Joseph Myers <joseph@codesourcery.com>
2909
2910 * c-common.h (c_common_missing_argument): Remove.
2911 * c-opts.c (c_common_missing_argument): Remove.
2912 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2913 idirafter, imacros, include, isysroot, isystem, iquote): Add
2914 MissingArgError.
2915 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2916
e88d34f6 29172010-07-27 Joseph Myers <joseph@codesourcery.com>
2918
2919 * c-common.h (c_common_option_lang_mask,
2920 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2921 New.
2922 (c_common_init_options): Update prototype.
2923 * c-opts.c (c_common_option_lang_mask): New.
2924 (c_common_initialize_diagnostics): Split out of
2925 c_common_init_options.
2926 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2927 New.
2928 (c_common_init_options): Update prototype. Use decoded options in
2929 search for -lang-asm.
2930
1767a056 29312010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2932
2933 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2934 * c-format.c: Likewise.
2935
0b205f4c 29362010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2937
2938 * c-common.h: Include diagnostic-core.h. Error if already
2939 included.
2940 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2941
1c58e3f1 29422010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2943
2944 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2945 Do not include expr.h
2946 (vector_mode_valid_p): Move here.
2947
33cc157c 29482010-06-21 DJ Delorie <dj@redhat.com>
2949
2950 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2951 allow these pragmas anywhere.
2952
29532010-06-14 Jakub Jelinek <jakub@redhat.com>
2954
2955 PR bootstrap/44509
2956 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2957 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2958 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2959 ggc_strdup instead of xstrdup.
2960
29612010-06-10 Jakub Jelinek <jakub@redhat.com>
2962
2963 * c-cppbuiltin.c: Include cpp-id-data.h.
2964 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2965 (lazy_hex_fp_value): New function.
2966 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2967
9b40bfbf 29682010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2969
2970 * c-gimplify.c: Do not include tree-flow.h
2971
202d6e5f 29722010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2973
2974 PR other/44034
2975 * c-common.c: Rename targetm member:
2976 targetm.enum_va_list -> targetm.enum_va_list_p
2977
d3237426 29782010-06-28 Anatoly Sokolov <aesok@post.ru>
2979
2980 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2981
596981c8 29822010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2983
2984 * c-cppbuiltin.c: Do not include except.h.
2985
b9bdfa0b 29862010-06-24 Andi Kleen <ak@linux.intel.com>
2987
19931eea 2988 * c-common.c (warn_for_omitted_condop): New.
2989 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 2990
55ad092d 29912010-06-21 Joseph Myers <joseph@codesourcery.com>
2992
2993 * c.opt (lang-objc): Remove.
2994 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2995
9e7c2572 29962010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2997
2998 * c-opts.c: Include "tm_p.h".
2999
615ef0bb 30002010-06-20 Joseph Myers <joseph@codesourcery.com>
3001
3002 * c-common.c (parse_optimize_options): Update call to
3003 decode_options.
3004
aef48c9a 30052010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3006
3007 * c-common.c (record_types_used_by_current_var_decl): Adjust for
3008 new type of types_used_by_cur_var_decl.
3009
d74003b4 30102010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
3011
3012 PR bootstrap/44512
3013 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
3014 for C++ standard compliance.
3015
1194d077 30162010-06-16 Jason Merrill <jason@redhat.com>
3017
3018 * c.opt: Add -Wnoexcept.
3019
d473d901 30202010-06-16 Richard Guenther <rguenther@suse.de>
3021
3022 PR c/44555
3023 * c-common.c (c_common_truthvalue_conversion): Remove
3024 premature and wrong optimization concering ADDR_EXPRs.
3025
b62dbfd3 30262010-06-15 Arnaud Charlet <charlet@adacore.com>
3027
3028 * c-ada-spec.c (dump_sloc): Remove column info.
3029 (is_simple_enum): New function.
3030 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
3031 enum types when relevant.
3032
200dd99c 30332010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3034
19931eea 3035 * c-common.c (conversion_warning): Warn at expression
200dd99c 3036 location.
3037
abf6a617 30382010-06-10 Joseph Myers <joseph@codesourcery.com>
3039
3040 * c-opts.c (c_common_handle_option): Don't handle
3041 OPT_fshow_column.
3042
ba72912a 30432010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3044
3045 * c-pragma.c (push_alignment): Use typed GC allocation.
3046 (handle_pragma_push_options): Likewise.
3047
3048 * c-common.c (parse_optimize_options): Likewise.
3049
3050 * c-common.h (struct sorted_fields_type): Add variable_size GTY
3051 option.
3052
4aafe913 30532010-06-07 Joseph Myers <joseph@codesourcery.com>
3054
3055 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
3056 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3057 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3058 flag_signed_bitfields, warn_strict_null_sentinel,
3059 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
3060 flag_gen_declaration, flag_no_gnu_keywords,
3061 flag_implement_inlines, flag_implicit_templates,
3062 flag_implicit_inline_templates, flag_optional_diags,
3063 flag_elide_constructors, flag_default_inline, flag_rtti,
3064 flag_conserve_space, flag_access_control, flag_check_new,
3065 flag_new_for_scope, flag_weak, flag_working_directory,
3066 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
3067 flag_enforce_eh_specs, flag_threadsafe_statics,
3068 flag_pretty_templates): Remove.
3069 * c-common.h (flag_preprocess_only, flag_nil_receivers,
3070 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
3071 flag_replace_objc_classes, flag_undef, flag_no_builtin,
3072 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
3073 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
3074 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
3075 flag_no_gnu_keywords, flag_implement_inlines,
3076 flag_implicit_templates, flag_implicit_inline_templates,
3077 flag_optional_diags, flag_elide_constructors, flag_default_inline,
3078 flag_rtti, flag_conserve_space, flag_access_control,
3079 flag_check_new, flag_new_for_scope, flag_weak,
3080 flag_working_directory, flag_use_cxa_atexit,
3081 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
3082 flag_threadsafe_statics, flag_pretty_templates,
3083 warn_strict_null_sentinel): Remove.
3084 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
3085 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
3086 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
3087 fimplicit-inline-templates, fimplicit-templates,
3088 flax-vector-conversions, fms-extensions, fnil-receivers,
3089 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
3090 frtti, fshort-double, fshort-enums, fshort-wchar,
3091 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
3092 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
3093 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
3094 gen-decls, undef): Use Var.
3095 (fdefault-inline, foptional-diags): Document as doing nothing.
3096 * c-opts.c (c_common_handle_option): Remove cases for options now
3097 using Var. Mark ignored options as such.
3098
7bedc3a0 30992010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3100
19931eea 3101 * c-common.c: Moved to here from parent directory.
7bedc3a0 3102 * c-common.def: Likewise.
3103 * c-common.h: Likewise.
3104 * c-cppbuiltin.c: Likewise.
3105 * c-dump.c: Likewise.
3106 * c-format.c: Likewise.
3107 * c-format.h : Likewise.
3108 * c-gimplify.c: Likewise.
3109 * c-lex.c: Likewise.
3110 * c-omp.c: Likewise.
3111 * c.opt: Likewise.
3112 * c-opts.c: Likewise.
3113 * c-pch.c: Likewise.
3114 * c-ppoutput.c: Likewise.
3115 * c-pragma.c: Likewise.
3116 * c-pragma.h: Likewise.
3117 * c-pretty-print.c: Likewise.
3118 * c-pretty-print.h: Likewise.
3119 * c-semantics.c: Likewise.
3120 * stub-objc.c: Likewise.
3121
3122 * c-common.c: Include gt-c-family-c-common.h.
3123 * c-pragma.c: Include gt-c-family-c-pragma.h.
3124\f
711789cc 3125Copyright (C) 2010-2013 Free Software Foundation, Inc.
7bedc3a0 3126
3127Copying and distribution of this file, with or without modification,
3128are permitted in any medium without royalty provided the copyright
3129notice and this notice are preserved.