]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/c-family/ChangeLog
compiler: Implement 3-index slicing.
[thirdparty/gcc.git] / gcc / c-family / ChangeLog
CommitLineData
4644b593 12013-08-24 Tobias Burnus <burnus@net-b.de>
2
3 PR other/33426
4 * c-pragma.c (init_pragma) Add #pragma ivdep handling.
5 * c-pragma.h (pragma_kind): Add PRAGMA_IVDEP.
6
546a04b1 72013-10-23 Jason Merrill <jason@redhat.com>
8
9 * c-format.c (gcc_cxxdiag_char_table): Add %X.
10
bc7bff74 112013-10-11 Jakub Jelinek <jakub@redhat.com>
12
d62c713e 13 * c-common.h (omp_clause_mask::operator !=): New method.
14 * c-omp.c (c_omp_split_clauses): Use if ((mask & something) != 0)
15 instead of if (mask & something) tests everywhere.
16
bc7bff74 17 * c-cppbuiltin.c (c_cpp_builtins): Predefine _OPENMP to
18 201307 instead of 201107.
19 * c-common.c (DEF_FUNCTION_TYPE_8): Define.
20 (c_common_attribute_table): Add "omp declare target" and
21 "omp declare simd" attributes.
22 (handle_omp_declare_target_attribute,
23 handle_omp_declare_simd_attribute): New functions.
24 * c-omp.c: Include c-pragma.h.
25 (c_finish_omp_taskgroup): New function.
26 (c_finish_omp_atomic): Add swapped argument, if true,
27 build the operation first with rhs, lhs arguments and use NOP_EXPR
28 build_modify_expr.
29 (c_finish_omp_for): Add code argument, pass it down to make_code.
30 (c_omp_split_clauses): New function.
31 (c_split_parallel_clauses): Removed.
32 (c_omp_declare_simd_clause_cmp, c_omp_declare_simd_clauses_to_numbers,
33 c_omp_declare_simd_clauses_to_decls): New functions.
34 * c-common.h (omp_clause_mask): New type.
35 (OMP_CLAUSE_MASK_1): Define.
36 (omp_clause_mask::omp_clause_mask, omp_clause_mask::operator &=,
37 omp_clause_mask::operator |=, omp_clause_mask::operator ~,
38 omp_clause_mask::operator |, omp_clause_mask::operator &,
39 omp_clause_mask::operator <<, omp_clause_mask::operator >>,
40 omp_clause_mask::operator ==): New methods.
41 (enum c_omp_clause_split): New.
42 (c_finish_omp_taskgroup): New prototype.
43 (c_finish_omp_atomic): Add swapped argument.
44 (c_finish_omp_for): Add code argument.
45 (c_omp_split_clauses): New prototype.
46 (c_split_parallel_clauses): Removed.
47 (c_omp_declare_simd_clauses_to_numbers,
48 c_omp_declare_simd_clauses_to_decls): New prototypes.
49 * c-pragma.c (omp_pragmas): Add new OpenMP 4.0 constructs.
50 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_CANCEL,
51 PRAGMA_OMP_CANCELLATION_POINT, PRAGMA_OMP_DECLARE_REDUCTION,
52 PRAGMA_OMP_DISTRIBUTE, PRAGMA_OMP_END_DECLARE_TARGET, PRAGMA_OMP_SIMD,
53 PRAGMA_OMP_TARGET, PRAGMA_OMP_TASKGROUP and PRAGMA_OMP_TEAMS.
54 Remove PRAGMA_OMP_PARALLEL_FOR and PRAGMA_OMP_PARALLEL_SECTIONS.
55 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_ALIGNED,
56 PRAGMA_OMP_CLAUSE_DEPEND, PRAGMA_OMP_CLAUSE_DEVICE,
57 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE, PRAGMA_OMP_CLAUSE_FOR,
58 PRAGMA_OMP_CLAUSE_FROM, PRAGMA_OMP_CLAUSE_INBRANCH,
59 PRAGMA_OMP_CLAUSE_LINEAR, PRAGMA_OMP_CLAUSE_MAP,
60 PRAGMA_OMP_CLAUSE_NOTINBRANCH, PRAGMA_OMP_CLAUSE_NUM_TEAMS,
61 PRAGMA_OMP_CLAUSE_PARALLEL, PRAGMA_OMP_CLAUSE_PROC_BIND,
62 PRAGMA_OMP_CLAUSE_SAFELEN, PRAGMA_OMP_CLAUSE_SECTIONS,
63 PRAGMA_OMP_CLAUSE_SIMDLEN, PRAGMA_OMP_CLAUSE_TASKGROUP,
64 PRAGMA_OMP_CLAUSE_THREAD_LIMIT, PRAGMA_OMP_CLAUSE_TO and
65 PRAGMA_OMP_CLAUSE_UNIFORM.
66
d7dcba40 672013-10-09 Marc Glisse <marc.glisse@inria.fr>
68
69 PR tree-optimization/20318
70 * c-common.c (handle_returns_nonnull_attribute): New function.
71 (c_common_attribute_table): Add returns_nonnull.
72
0b7282f1 732013-10-03 Marc Glisse <marc.glisse@inria.fr>
74
75 PR c++/19476
76 * c.opt (fcheck-new): Move to common.opt.
77
51f553af 782013-09-25 Marek Polacek <polacek@redhat.com>
79 Jakub Jelinek <jakub@redhat.com>
80
81 PR sanitizer/58413
82 * c-ubsan.c (ubsan_instrument_shift): Don't instrument
83 an expression if we can prove it is correct.
84 (ubsan_instrument_division): Likewise. Remove unnecessary
85 check.
86
05f893e1 872013-09-18 Marek Polacek <polacek@redhat.com>
88
89 PR sanitizer/58411
90 * c-common.c (handle_no_sanitize_undefined_attribute): New function.
91 Declare it.
92 (struct attribute_spec c_common_att): Add no_sanitize_undefined.
93
236ce1d1 942013-09-14 Iain Sandoe <iain@codesourcery.com>
95
96 PR target/48094
97 * c.opt (fgnu-runtime, fnext-runtime, fobjc-abi-version,
98 fobjc-gc, freplace-objc-classes): Accept for LTO.
99
f9f68d35 1002013-09-13 Jacek Caban <jacek@codeweavers.com>
101
102 * c-target.def: New hook
103
ba2f764e 1042013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
105
106 PR c++/43452
107 * c.opt (Wdelete-incomplete): Add.
108
73437615 1092013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
110
111 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
112 (vector_types_compatible_elements_p): New function.
113 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
114 declaration.
115 (vector_types_compatible_elements_p): Declare.
116
95af4c75 1172013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
118
119 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
120 a virtual member function.
121 (pp_simple_type_specifier): Remove.
122 (pp_c_type_specifier): Likewise.
123 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
124 Rename from pp_c_type_specifier. Adjust.
125 (c_pretty_printer::c_pretty_printer): Do not assign to
126 simple_type_specifier.
127
eaab24b9 1282013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
129
130 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
131 member function.
132 (c_pretty_printer::storage_class_specifier): Likewise.
133 (c_pretty_printer::initializer): Likewise.
134 (pp_declaration): Remove.
135 (pp_declaration_specifiers): Likewise.
136 (pp_abstract_declarator): Likewise.
137 (pp_declarator): Likewise.
138 (pp_type_id): Likewise.
139 (pp_statement): Likewise.
140 (pp_constant): Likewise.
141 (pp_id_expression): Likewise.
142 (pp_primary_expression): Likewise.
143 (pp_unary_expression): Likewise.
144 (pp_multiplicative_expression): Likewise.
145 (pp_conditional_expression): Likewise.
146 (pp_assignment_expression): Likewise.
147 (pp_expression): Likewise.
148 (pp_c_type_id): Likewise.
149 (pp_c_storage_class_specifier): Likewise.
150 * c-pretty-print.c (pp_c_type_cast): Tidy.
151 (pp_c_pointer): Likewise.
152 (pp_c_type_specifier): Likewise.
153 (pp_c_parameter_type_list): Likewise.
154 (pp_c_function_definition): Likewise.
155 (pp_c_init_declarator): Likewise.
156 (pp_c_initializer_list): Likewise.
157 (pp_c_constructor_elts): Likewise.
158 (c_pretty_printer::direct_abstract_declarator): Likewise.
159 (c_pretty_printer::declaration_specifiers): Likewise.
160 (c_pretty_printer::primary_expression): Likewise.
161 (c_pretty_printer::postfix_expression): Likewise.
162 (c_pretty_printer::type_id): Rename from pp_c_type_id.
163 (c_pretty_printer::storage_class_specifier): Rename from
164 pp_c_storage_class_specifier.
165 (c_pretty_printer::initializer): Rename from pp_c_initializer.
166 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
167 storage_class_specifier, initializer, offset_list, flags.
168
9e46467d 1692013-08-30 Marek Polacek <polacek@redhat.com>
170
171 * c-ubsan.c: New file.
172 * c-ubsan.h: New file.
173
36a8d9b9 1742013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
175
176 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
177 member function.
178 (c_pretty_printer::declaration_specifiers): Likewise.
179 (c_pretty_printer::declarator): Likewise.
180 (c_pretty_printer::abstract_declarator): Likewise.
181 (c_pretty_printer::direct_abstract_declarator): Likewise.
182 (c_pretty_printer::direct_declarator): Likewise.
183 (c_pretty_printer::function_specifier): Likewise.
184 (pp_declaration): Adjust.
185 (pp_declaration_specifiers): Likewise.
186 (pp_abstract_declarator): Likewise.
187 (pp_direct_declarator): Likewise.
188 (pp_function_specifier): Likewise.
189 (pp_direct_abstract_declarator): Remove as unused.
190 (pp_c_declaration): Remove.
191 (pp_c_declaration_specifiers): Likewise.
192 (pp_c_declarator): Likewise.
193 (pp_c_direct_declarator): Likewise.
194 (pp_c_function_specifier): Likewise.
195 (pp_c_direct_abstract_declarator): Likewise.
196 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
197 from pp_c_abstract_declarator. Adjust.
198 (c_pretty_printer::direct_abstract_declarator): Rename from
199 pp_c_direct_abstract_declarator. Adjust.
200 (c_pretty_printer::function_specifier): Rename from
201 pp_c_function_specifier. Adjust.
202 (c_pretty_printer::declaration_specifiers): Rename from
203 pp_c_declaration_specifiers. Adjust.
204 (c_pretty_printer::direct_declarator): Rename from
205 pp_c_direct_declarator. Adjust.
206 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
207 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
208 (c_pretty_printer::c_pretty_printer): Do not assign to
209 declaration, declaration_specifiers, declarator,
210 direct_declarator, direct_abstract_declarator, function_specifier.
211
30635c2e 2122013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
213
214 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
215 virtual member function.
216 (c_pretty_printer::multiplicative_expression): Likewise.
217 (c_pretty_printer::conditional_expression): Likewise.
218 (c_pretty_printer::assignment_expression): Likewise.
219 (c_pretty_printer::expression): Likewise.
220 (pp_unary_expression): Adjust.
221 (pp_multiplicative_expression): Likewise.
222 (pp_assignment_expression): Likewise.
223 (pp_conditional_expression): Likewise.
224 (pp_expression): Likewise.
225 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
226 from pp_c_unary_expression. Adjust.
227 (c_pretty_printer::multiplicative_expression): Rename from
228 pp_c_multiplicative_expression. Adjust.
229 (c_pretty_printer::conditional_expression): Rename from
230 pp_c_conditional_expression. Adjust.
231 (c_pretty_printer::assignment_expression): Rename from
232 pp_c_assignment_expression. Adjust.
233 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
234 (c_pretty_printer::c_pretty_printer): Do not assign to
235 unary_expression, multiplicative_expression,
236 conditional_expression, expression.
237
027d08ed 2382013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
239
240 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
241 virtual member function.
242 (pp_postfix_expression): Adjust.
243 (pp_c_postfix_expression): Remove.
244 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
245 from pp_c_postfix_expression. Adjust.
246 (c_pretty_printer::c_pretty_printer): Do not assign to
247 postfix_expression.
248
f873303a 2492013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
250
251 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
252 virtua member function.
253 (pp_primary_expression): Adjust.
254 (pp_c_primary_expression): Remove.
255 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
256 from pp_c_primary_expression. Adjust.
257 (pp_c_initializer_list): Use pp_primary_expression.
258 (c_pretty_printer::c_pretty_printer): Do not assign to
259 primary_expression.
260
08e3e481 2612013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
262
263 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
264 * c-pretty-print.c (M_): Remove.
265 (c_pretty_printer::translate_string): Define.
266 (pp_c_type_specifier): Use it.
267 (pp_c_primary_expression): Likewise.
268 (pp_c_expression): Likewise.
269
1fc4a87f 2702013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
271
272 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
273 virtual function.
274 (pp_c_id_expression): Remove.
275 (pp_id_expression): Adjust.
276 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
277 pp_c_id_expression. Adjust.
278 (pp_c_postfix_expression): Use pp_id_expression.
279 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
280
a6cb161b 2812013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
282
283 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
284 member function.
285 (pp_constant): Adjust.
286 (pp_c_constant): Remove.
287 * c-pretty-print.c (c_pretty_printer::constant): Rename from
288 pp_c_constant. Adjust.
289 (pp_c_constant)
290 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
291 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
292
eed6bc21 2932013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
294
295 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
296 (c_pretty_printer::c_pretty_printer): Declare.
297 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
298 c_pretty_printer_init. Adjust.
299 (print_c_tree): Do not call c_pretty_printer_init.
300 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
301
df558d2e 3022013-08-09 Arnaud Charlet <charlet@adacore.com>
303
304 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
305
42f9a786 3062013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
307
308 PR c++/58080
309 * c-common.c (pointer_int_sum): Add bool parameter.
310 * c-common.h (pointer_int_sum): Adjust declaration.
311
f874ddad 3122013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
313
314 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
315 c_pretty_printer variable.
316
a94db6b0 3172013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
318
319 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
320 (pp_base): Remove.
321 (pp_c_base): Likewise. Adjust users.
322 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
323 (pp_c_whitespace): Do not call pp_base.
324 (pp_c_left_paren): Likewise.
325 (pp_c_right_paren): Likewise.
326 (pp_c_left_brace): Likewise.
327 (pp_c_right_brace): Likewise.
328 (pp_c_left_bracket): Likewise.
329 (pp_c_right_bracket): Likewise.
330 (pp_c_dot): Likewise.
331 (pp_c_ampersand): Likewise.
332 (pp_c_star): Likewise.
333 (pp_c_arrow): Likewise.
334 (pp_c_semicolon): Likewise.
335 (pp_c_complement): Likewise.
336 (pp_c_exclamation): Likewise.
337 (pp_c_direct_declarator): Likewise.
338 (pp_c_ws_string): Likewise.
339 (pp_c_identifier): Likewise.
340 (pp_c_statement): Likewise.
341 (print_c_tree): Likewise.
342
1898176c 3432013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
344
345 PR c++/58072
346 * c-common.c (c_parse_error): Catch user-defined literal tokens and
347 provide useful error strings.
348
70d60d1d 3492013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
350
351 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
352 printer functions instead of pp_string or operators and punctuators.
353 (dump_generic_ada_node): Likewise.
354 * c-pretty-print.c (pp_c_type_specifier): Likewise.
355 (pp_c_relational_expression): Likewise.
356 (pp_c_logical_or_expression): Likewise.
357
dda4f0ec 3582013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
359
360 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
361 functions instead of pp_character.
362 (pp_ada_tree_identifier): Likewise.
363 (dump_ada_double_name): Likewise.
364 (dump_ada_function_declaration): Likewise.
365 (dump_ada_array_domains): Likewise.
366 (dump_template_types): Likewise.
367 (dump_generic_ada_node): Likewise.
368 (print_ada_declaration): Likewise.
369 (print_ada_struct_decl): Likewise.
370 * c-pretty-print.c (pp_c_integer_constant): Likewise.
371
7aa04c8d 3722013-07-23 Tom Tromey <tromey@redhat.com>
373
374 * c-common.h (enum rid) <RID_GENERIC>: New constant.
375 * c-common.c (c_common_reswords): Add _Generic.
376
a04e8d62 3772013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
378
379 * c-common.c: Fix typos.
380 * c-common.h: Likewise.
381
a96c3cc1 3822013-07-13 Lubos Lunak <l.lunak@suse.cz>
383
384 PR c++/55203
385 * c-common.c (c_common_attribute_table): Add warn_unused.
386 (handle_warn_unused_attribute): New.
387
da31536d 3882013-07-10 Jakub Jelinek <jakub@redhat.com>
389
390 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
391 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
392
839f2f70 3932013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
394
395 PR c++/57869
396 * c.opt: Add Wconditionally-supported.
397
73f353d0 3982013-07-08 Graham Stott <graham.stott@btinternet.com>
399
400 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
401 unused variables l_length and l_node.
402
21ebaa24 4032013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
f5298614 404
405 PR c/57821
406 * c-common.c (complete_array_type): Delay folding first index
407 like other indices. When folding, check for index overflow.
408
68ea4406 4092013-06-27 Marc Glisse <marc.glisse@inria.fr>
410
411 PR c++/57509
412 * c-common.h (c_build_vec_perm_expr): New complain argument.
413 * c-common.c (c_build_vec_perm_expr): Likewise.
414 Use save_expr also in C++.
415
60777f69 4162013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
417
418 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
419 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
420 * c-opts.c (c_common_post_options): Likewise.
421
839f2f70 4222013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
50acebe0 423
424 * array-notation-common.c (length_mismatch_in_expr): Changed the
425 parameter type's from a dynamic array to a vec_tree. Also removed
426 the size parameters.
427 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
428 the change above.
429
e9331eab 4302013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
431
432 * c-common.h (struct cilkplus_an_parts): New structure.
433 (struct cilkplus_an_loop_parts): Likewise.
434 (cilkplus_extract_an_triplets): New prototype.
435 (fix_sec_implicit_args): Likewise.
436 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
437 (fix_sec_implicit_args): Likewise.
60777f69 438
a9c99fc4 4392013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
440
441 * array-notation-common.c (find_inv_trees): Removed an unwanted
442 typecasting.
443 * c-common.h (struct inv_list::additional_tcodes): Changed type from
444 enum rid to enum tree_code.
445
f2526cce 4462013-06-11 Jan Hubicka <jh@suse.cz>
447
448 * c-common.c (handle_alias_ifunc_attribute): Do not set
449 DECL_EXTERNAL for weakref variables.
450 * c-pragma.c (handle_pragma_weak): Make sure aliases
451 are not declared as external.
452
09970d67 4532013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
454
455 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
456 function from c/c-array-notation.c.
457 (is_cilkplus_reduce_builtin): Likewise.
458 (find_rank): Likewise.
459 (extract_array_notation_exprs): Likewise.
460 (replace_array_notations): Likewise.
461 (find_inv_trees): Likewise.
462 (replace_inv_trees): Likewise.
463 (contains_array_notation_expr): Likewise.
464 (find_correct_array_notation_type): Likewise.
465 * c-common.h (struct inv_list): Moved this struct from the file
466 c/c-array-notation.c and added a new field called additional tcodes.
467 (length_mismatch_in_expr_p): New prototype.
468 (is_cilkplus_reduce_builtin): Likewise.
469 (find_rank): Likewise.
470 (extract_array_notation_exprs): Likewise.
471 (replace_array_notation): Likewise.
472 (find_inv_trees): Likewise.
473 (replace_inv_trees): Likewise.
474 (find_correct_array_notation_type): Likewise.
839f2f70 475
3c6d4197 4762013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
477
478 * c-common.c (c_define_builtins): When cilkplus is enabled, the
479 function array_notation_init_builtins is called.
480 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
481 * c-common.def (ARRAY_NOTATION_REF): New tree.
482 * c-common.h (build_array_notation_expr): New function declaration.
483 (build_array_notation_ref): Likewise.
484 (extract_sec_implicit_index_arg): New extern declaration.
485 (is_sec_implicit_index_fn): Likewise.
486 (ARRAY_NOTATION_CHECK): New define.
487 (ARRAY_NOTATION_ARRAY): Likewise.
488 (ARRAY_NOTATION_START): Likewise.
489 (ARRAY_NOTATION_LENGTH): Likewise.
490 (ARRAY_NOTATION_STRIDE): Likewise.
491 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
492 ARRAY_NOTATION_REF.
493 (pp_c_expression): Likewise.
494 * c.opt (flag_enable_cilkplus): New flag.
495 * array-notation-common.c: New file.
496
8e71dad2 4972013-05-14 Jakub Jelinek <jakub@redhat.com>
498
499 PR c++/57274
500 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
501
432dd330 5022013-05-10 Marc Glisse <marc.glisse@inria.fr>
503
504 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
505 vectors.
506
b156ec37 5072013-05-07 Han Shen <shenhan@google.com>
508
509 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
510
1a087624 5112013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
512
513 * c-common.c (check_user_alignment): Emit error for negative values.
514
1638c736 5152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
516
517 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
518
949dbf93 5192013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
520
521 * c-cppbuiltin.c (c_cpp_builtins): Do not define
522 __GXX_EXPERIMENTAL_CXX1Y__.
523
9205a6cc 5242013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
525 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
526
527 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
528 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
529 to simply use OPT_Wpointer_arith.
530 (c_sizeof_or_alignof_type): Likewise.
531
05d0bce1 5322013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
533
534 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
535
41609f8b 5362013-04-12 Jakub Jelinek <jakub@redhat.com>
537
538 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
539 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
540 specifiers.
541
c671dc4f 5422013-04-07 Steven Bosscher <steven@gcc.gnu.org>
543
544 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
545
ba125576 5462013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
547
548 * c-common.c (pointer_int_sum): Remove dead code.
549
9d3fa937 5502013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
551
552 PR middle-end/56524
553 * c-common.c (handle_optimize_attribute): Don't call
554 save_optabs_if_changed.
555
5ceebb21 5562013-03-05 Jakub Jelinek <jakub@redhat.com>
557
558 PR middle-end/56461
559 * c-pch.c (pch_init): Free target_validity at the end.
560
18eeed2b 5612013-03-04 Jakub Jelinek <jakub@redhat.com>
562
563 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
564
a9196da9 5652013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
566 Jakub Jelinek <jakub@redhat.com>
567
568 PR sanitizer/56454
569 * c-common.c (handle_no_sanitize_address_attribute): New function.
570 (c_common_attribute_table): Add no_sanitize_address attribute.
571 (handle_no_address_safety_analysis_attribute): Add
572 no_sanitize_address attribute, not no_address_safety_analysis
573 attribute.
574
15c27dda 5752013-02-18 Aldy Hernandez <aldyh@redhat.com>
08c7d04b 576
577 PR target/52555
578 * c-common.c (handle_optimize_attribute): Call
579 save_optabs_if_changed.
580
19426fe1 5812013-02-18 Jakub Jelinek <jakub@redhat.com>
582 Steven Bosscher <steven@gcc.gnu.org>
583
584 PR pch/54117
585 * c-opts.c (c_common_post_options): If debug info is enabled
586 and non-dwarf*, refuse to load PCH files and when writing PCH
587 file warn.
588
df936998 5892013-02-05 Jakub Jelinek <jakub@redhat.com>
590
591 PR middle-end/56167
592 * c-common.c (handle_error_attribute): Fix condition.
593
ae0c3984 5942013-01-30 Jakub Jelinek <jakub@redhat.com>
595
596 PR c++/55742
597 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
598
1c4973d7 5992013-01-18 Jason Merrill <jason@redhat.com>
600
601 PR target/54908
602 * c.opt (-fextern-tls-init): New.
603 * c-opts.c (c_common_post_options): Handle it.
604
7c834436 6052013-01-09 Jakub Jelinek <jakub@redhat.com>
606
607 PR c/48418
608 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
609 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
610 and is either negative or bigger or equal to type precision
611 of the first operand.
612
5abaa10a 6132012-12-03 Marek Polacek <polacek@redhat.com>
614
615 PR c/55570
616 * c-common.c (check_user_alignment): Swap order of tests,
617 check TREE_CODE first.
618
324ca377 6192012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
620
621 PR c++/52654
622 * c-common.h (overflow_type): New enum.
623 (build_userdef_literal): Add overflow_type argument.
624 (tree_userdef_literal): Add overflow_type.
625 (USERDEF_LITERAL_OVERFLOW): New access macro.
626 * c-common.c (build_userdef_literal): Add overflow_type
627 argument.
628 * c-lex.c (c_lex_with_flags): Add overflow_type to
629 build_userdef_literal calls.
630 (interpret_integer, interpret_float): Add overflow_type argument.
631
b4c4a429 6322012-11-28 Richard Biener <rguenther@suse.de>
633
634 PR c/35634
635 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
636 here and use a type with proper overflow behavior for types that would
637 need to be promoted for the arithmetic.
638
d413ffdd 6392012-11-23 Jakub Jelinek <jakub@redhat.com>
640
641 PR sanitizer/55435
642 * c-common.c (handle_no_address_safety_analysis_attribute): New
643 function.
644 (c_common_attribute_table): Add no_address_safety_analysis.
645
52bc861d 6462012-11-16 Simon Baldwin <simonb@google.com>
647
648 * c.opt: Add f[no-]canonical-system-headers.
649 * c-opts.c (c_common_handle_option): Handle
650 OPT_fcanonical_system_headers.
651
2dd00636 6522012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
653
654 PR c++/54413
655 * c-opts.c (c_common_handle_option): Set new flags.
656 * c.opt: Describe new flags.
657
d4701f6c 6582012-11-09 Jason Merrill <jason@redhat.com>
659
660 * c.opt (Wabi-tag): New.
661
72d65da9 6622012-11-09 Andi Kleen <ak@linux.intel.com>
663
664 PR 55139
665 * c-common.c (get_atomic_generic_size): Mask with
666 MEMMODEL_MASK
667
77a357e3 6682012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
669
670 PR c/53063
671 * c.opt (Wformat): Make it Alias Wformat=1.
672 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
673 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
674 LangEnabledBy.
675 (Wformat=): RejectNegative. Use LangEnabledBy.
676 (Wnonnull): Use LangEnabledBy.
677 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
678 * c-format.c (set_Wformat): Delete.
679 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
680 (maybe_read_dollar_number): Likewise.
681 (avoid_dollar_number): Likewise.
682 (finish_dollar_format_checking): Likewise.
683 (check_format_info): Likewise.
684 (check_format_info_main): Likewise.
685 (check_format_types): Likewise.
686 (format_type_warning): Likewise.
687 * c-common.c (int): Likewise.
688 (check_function_sentinel): Likewise.
689 * c-common.h (warn_format,set_Wformat): Do not declare here.
690
45efa6b9 6912012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
692
693 PR c/53063
694 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
695 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
696 Use LangEnabledBy.
697 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
698 common.opt.
699 (Wvariadic-macros): Init(1).
700 * c-opts.c (c_common_handle_option): Do not handle them
701 explicitly.
702 (c_common_post_options): Likewise.
703 (sanitize_cpp_opts): warn_unused_macros is now
704 cpp_warn_unused_macros.
705 (push_command_line_include): Likewise.
706 * c-common.c (warn_unknown_pragmas): Do not define.
707 * c-common.h (warn_unknown_pragmas): Do not declare.
708
0e4e775a 7092012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
710
711 PR c/51294
712 * c-common.c (conversion_warning): Handle conditional expressions.
713
8b447d3f 7142012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
715
716 PR c++/54930
717 * c.opt (Wreturn_local_addr): Define new option.
718
f4a61754 7192012-10-25 Jason Merrill <jason@redhat.com>
720
ecb10e6a 721 * c.opt (Wvirtual-move-assign): New.
722
f4a61754 723 * c.opt (Winherited-variadic-ctor): New.
724
7b463b19 7252012-10-25 Marc Glisse <marc.glisse@inria.fr>
726
727 PR c++/54427
728 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
729
6adc88f8 7302012-10-23 Joseph Myers <joseph@codesourcery.com>
731
732 * c-common.h (pch_cpp_save_state): Declare.
733 * c-target.def (c_preinclude): New hook.
734 * c-opts.c (done_preinclude): New.
735 (push_command_line_include): Handle default preincluded header.
736 (cb_file_change): Call pch_cpp_save_state when calling
737 push_command_line_include.
738 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
739 (pch_cpp_save_state): New.
740 (pch_init): Call pch_cpp_save_state conditionally, instead of
741 calling cpp_save_state.
742
fa816b0b 7432012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
744
745 PR c/53063
746 PR c/40989
747 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
748 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
749 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
750 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
751 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
752 * c-opts.c (c_common_handle_option): Remove explicit handling from
753 here.
754 (c_common_post_options): Likewise.
755
d214ccee 7562012-10-18 Eric Botcazou <ebotcazou@adacore.com>
757
758 * c-ada-spec.c (LOCATION_COL): Delete.
759 (compare_location): New function.
760 (compare_node): Use it.
761 (compare_comment): Likewise.
762
77b27208 7632012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
764
765 PR c/53063
766 PR c/40989
767 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
768 * c-opts.c (c_common_handle_option): Do not set them here. Add
769 comment.
770 (c_common_post_options): Likewise.
771
cc02ca4d 7722012-10-16 Eric Botcazou <ebotcazou@adacore.com>
773
774 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
775 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
776 Remove POINTER_TYPE handling, add large unsigned handling and use
777 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
778
57f872a2 7792012-10-12 Jakub Jelinek <jakub@redhat.com>
780
781 PR c/54381
782 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
783 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
784 locs and array of 3 trees instead of just single loc and single
785 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
786 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
787 For *cmp* builtins that take two sources strings report warnings
788 about first and second source, not about destination and source.
789
7354ad2e 7902012-10-12 Marc Glisse <marc.glisse@inria.fr>
791
792 PR c++/53055
793 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
794
1ac7f120 7952012-10-11 Eric Botcazou <ebotcazou@adacore.com>
796
797 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
798 declaring something coming from another file.
799
1e0cc9e3 8002012-10-10 Arnaud Charlet <charlet@adacore.com>
801
1ac7f120 802 PR ada/54845
1e0cc9e3 803 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
804
b0e7825e 8052012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
806
807 PR c++/54194
808 * c-common.c (warn_about_parentheses): Add location_t parameter;
809 use EXPR_LOC_OR_LOC.
810 * c-common.h: Update declaration.
811
41ed701a 8122012-10-09 Marc Glisse <marc.glisse@inria.fr>
813
814 PR c++/54427
815 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
816 more operations. Make error messages optional.
817 * c-common.h (enum stv_conv): Moved from c-typeck.c.
818 (scalar_to_vector): Declare.
819
3740094c 8202012-10-08 Jason Merrill <jason@redhat.com>
821
822 * c-common.c (c_common_reswords): Add thread_local.
823
ffcdbf9c 8242012-10-08 Dodji Seketeli <dodji@redhat.com>
825
826 PR c++/53528 C++11 attribute support
827 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
828 new functions.
829 * c-common.c (check_cxx_fundamental_alignment_constraints): New
830 static function.
831 (handle_aligned_attribute): In choose strictest alignment
832 among many. Use new check_cxx_fundamental_alignment_constraints.
833 (handle_transparent_union_attribute): In c++11 attribute syntax,
834 don't look through typedefs.
835
ef34afc1 8362012-10-04 Arnaud Charlet <charlet@adacore.com>
837
838 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
839 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
840 out of dumpfile.h.
841
f1ff4562 8422012-09-25 Dehao Chen <dehao@google.com>
843
844 PR middle-end/54645
ef34afc1 845 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
f1ff4562 846 map when read in the pch.
847
735538a1 8482012-09-18 Arnaud Charlet <charlet@adacore.com>
849
850 * c-ada-spec.c: Style fixes.
851
9120cdc8 8522012-09-18 Thomas Quinot <quinot@adacore.com>
853
854 * c.opt (-fada-spec-parent): Define new command line switch.
855 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
856 is specified, generate binding spec as a child of the specified unit.
857
8eba82c2 8582012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
859 Manuel López-Ibáñez <manu@gcc.gnu.org>
860
861 PR c++/53210
862 * c.opt ([Winit-self]): Enabled by -Wall in C++.
863
38682990 8642012-08-23 Arnaud Charlet <charlet@adacore.com>
865
866 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
867 for pointers, and add missing Convention C pragma.
868 (print_ada_struct_decl): Add missing aliased keyword.
869 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
870
f003f5dc 8712012-08-17 Jakub Jelinek <jakub@redhat.com>
872
873 * c-common.c (sizeof_pointer_memaccess_warning): New function.
874 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
875 * c-opts.c (c_common_handle_option): Enable it for -Wall.
876 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
877 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
878
ec11736b 8792012-08-10 Richard Guenther <rguenther@suse.de>
880
881 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
882
5f7f600e 8832012-08-07 Steven Bosscher <steven@gcc.gnu.org>
884
885 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
886 instead of separate pp_newline and pp_flush.
887 (print_c_tree): Likewise.
888
758a38ab 8892012-07-26 Richard Henderson <rth@redhat.com>
890
891 * c-common.c (handle_hot_attribute): Allow labels.
892 (handle_cold_attribute): Likewise.
893
9ca77b08 8942012-07-20 Jakub Jelinek <jakub@redhat.com>
895
896 PR c++/28656
897 * c-common.c (check_function_nonnull): Handle multiple nonnull
898 attributes properly.
899
b9ed1410 9002012-07-16 Steven Bosscher <steven@gcc.gnu.org>
901
902 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
903 * c-ada-spec.c: Likewise.
904 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
905
c2a65b90 9062012-07-14 Steven Bosscher <steven@gcc.gnu.org>
907
908 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
909 Remove code conditional on it.
910
88c5a1d1 9112012-07-11 Steven Bosscher <steven@gcc.gnu.org>
912
913 * c-gimplify.c: Do not include basic-block.h.
914 * c-common.c: Do not include linfuncs.h.
915
4a020a8c 9162012-07-08 Steven Bosscher <steven@gcc.gnu.org>
917
918 * c-common.h: Include tree.h.
919
c28ddc97 9202012-07-02 Jason Merrill <jason@redhat.com>
921
922 PR c++/53524
923 * c-common.c (get_priority): Call default_conversion.
924
405ed67f 9252012-07-01 Uros Bizjak <ubizjak@gmail.com>
926
927 * c-pch.c (c_common_write_pch): Remove unused variables.
928
e53d55e7 9292012-06-29 Steven Bosscher <steven@gcc.gnu.org>
930
931 * cppspec.c: Moved from gcc/ to here.
932
3d9c25ec 9332012-06-27 Kai Tietz <ktietz@redhat.com>
934
935 PR preprocessor/37215
936 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
937
3169c57a 9382012-06-21 Steven Bosscher <steven@gcc.gnu.org>
939
940 * c-common.h (c_common_print_pch_checksum): Remove.
941 * c-pch.c: Do not include output.h.
942 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
943 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
944 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
945 (struct c_pch_header): Remove.
946 (get_ident): Update gpch version.
947 (pch_init): Do not print executable_checksum to asm_out_file.
948 Do not fail if there is no asm_out_file to read back from. Set
949 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
950 (c_common_write_pch): Verify that nothing was written to asm_out_file
951 since pch_init was called. Do not write a c_pch_header, and do not
952 copy from asm_out_file to the PCH.
953 (c_common_read_pch): Do not read a c_pch_header, and do not restore
954 the content of asm_out_file from the PCH.
955 (c_common_print_pch_checksum): Remove.
956 * c-opts.c (c_common_init): Print out executable_checksum directly.
957
ff6624bc 9582012-06-19 Steven Bosscher <steven@gcc.gnu.org>
959
960 * c-target.def (objc_declare_unresolved_class_reference,
961 objc_declare_class_definition): Add new hooks.
962
367b1459 9632012-06-19 Steven Bosscher <steven@gcc.gnu.org>
964
965 * c-lex.c: Do not include output.h.
966 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
967 Remove uses of ASM_OUTPUT_IDENT.
968
bf0cb017 9692012-06-15 Marc Glisse <marc.glisse@inria.fr>
970
971 PR c++/51033
972 * c-common.h (c_build_vec_perm_expr): Move decl here.
973 * c-common.c (c_build_vec_perm_expr): Move definition
974 here.
975
b37a3600 9762012-06-06 Steven Bosscher <steven@gcc.gnu.org>
977
978 * c.opt (fconserve-space): Turn into a no-op.
979
19931eea 9802012-06-04 Sterling Augustine <saugustine@google.com>
5f9e7dd5 981
982 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
983 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
984 both the start and end of the function.
985
dff12c10 9862012-06-04 Steven Bosscher <steven@gcc.gnu.org>
987
988 * c-common.c: Do not include output.h.
989 * c-pragma.c: Likewise.
990
5f9e7dd5 9912012-06-04 Steven Bosscher <steven@gcc.gnu.org>
992
993 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
994 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
995 (lang_decl_name): Handle namespace decls.
996
b5369b7d 9972012-05-31 Steven Bosscher <steven@gcc.gnu.org>
998
999 * c-ada-spec.c: Do not include output.h.
1000 * c-semantics.c: Likewise.
1001
8032877c 10022012-05-29 Joseph Myers <joseph@codesourcery.com>
1003
1004 * c-common.c: Fix typo.
1005
7843e4bc 10062012-05-29 Michael Matz <matz@suse.de>
1007
1008 * c-common.h (c_expand_decl): Remove prototype.
1009
8cf857d4 10102012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
1011
1012 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
1013 * c-opts.c (c_common_handle_option): Remove code handling
1014 warn_missing_braces.
1015
8b64dc3c 10162012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
1017
1018 PR c++/25137
1019 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
1020 -Wmissing_braces.
1021
43cbde16 10222012-05-22 Dodji Seketeli <dodji@redhat.com>
1023
1024 PR c++/53322
1025 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1026
db490cb6 10272012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
1028
1029 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
1030 * c-opts.c (c_common_handle_option): Do not handle explicitly
1031 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
1032
a60f3e81 10332012-05-16 Dodji Seketeli <dodji@redhat.com>
1034
1035 PR preprocessor/7263
1036 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
1037 to cpp_classify_number. For diagnostics, use the precise location
1038 instead of the global input_location.
1039
82e6ef7c 10402012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1041
cd4797ff 1042 PR c++/11856
82e6ef7c 1043 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1044
258a168d 10452012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1046
82e6ef7c 1047 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
258a168d 1048
d3b7ee7c 10492012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
1050
1051 PR 53063
1052 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
1053 Wreorder): Use LangEnabledBy.
1054 * c-opts.c (c_common_handle_option): Do not enable them
1055 explicitly. Call lang-specific generated functions.
1056 (c_common_post_options): Do not set them here.
1057
70059cea 10582012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
1059
1060 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
1061 Wmissing-field-initializers,Wmissing-parameter-type,
1062 Wold-style-declaration,Woverride-init): Use EnabledBy.
1063 * c-opts.c (c_common_post_options): Do not set here explicitly.
1064
fbb6fbd8 10652012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
1066
1067 PR 53063
1068 * c-opts.c (c_common_handle_option): Use handle_generated_option
1069 to enable sub-options.
1070
61f69bc9 10712012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
1072
1073 PR c++/53158
1074 * c-common.c (warnings_for_convert_and_check): Use warning_at.
1075
5a1fe2db 10762012-05-10 Richard Guenther <rguenther@suse.de>
1077
1078 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
1079 adjust commentary about TYPE_IS_SIZETYPE types.
1080
d42e7c5a 10812012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
1082
1083 PR c++/53261
1084 * c-common.c (warn_logical_operator): Check that argument of
1085 integer_zerop is not NULL.
1086
686369e8 10872012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
1088
1089 PR c/43772
1090 * c-common.c (warn_logical_operator): Do not warn if either side
1091 is already true or false.
1092
03fe1dc2 10932012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1094
1095 PR c/51712
1096 * c-common.c (expr_original_type): New.
1097 (shorten_compare): Do not warn for enumeration types.
1098
bba5a206 10992012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1100
1101 * c.opt (fpermissive): Add Var(flag_permissive).
1102
7059d45d 11032012-04-30 Marc Glisse <marc.glisse@inria.fr>
1104
1105 PR c++/51033
1106 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1107 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1108
7edb1062 11092012-04-30 Dodji Seketeli <dodji@redhat.com>
1110
1111 Add -Wvarargs option
1112 * c.opt (Wvarargs): Define new option.
1113
068bea1e 11142012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1115
1116 * c-common.c (check_function_arguments): Replace
1117 Wmissing-format-attribute with Wsuggest-attribute=format.
1118
b86527d8 11192012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1120
1121 * c.opt (Wsuggest-attribute=format): New. Alias of
1122 Wmissing-format-attribute.
1123 * c-format.c (decode_format_type): Replace
1124 Wmissing-format-attribute with Wsuggest-attribute=format.
1125 (check_function_format): Likewise.
1126
19931eea 11272012-04-27 Ollie Wild <aaw@google.com>
76d340ac 1128
1129 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1130 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1131 * c.opt: Add Wliteral-suffix.
1132
29438999 11332012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1134
1135 PR c/44774
1136 * c.opt (Wpedantic): New.
1137 (pedantic): Alias Wpedantic.
1138 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1139 (c_common_post_options): Likewise.
1140 (sanitize_cpp_opts): Likewise.
1141 * c-lex.c (interpret_float): Likewise.
1142 * c-format.c (check_format_types): Likewise.
1143 * c-common.c (pointer_int_sum): Likewise.
1144 (c_sizeof_or_alignof_type): Likewise.
1145 (c_add_case_label): Likewise.
1146 (c_do_switch_warnings): Likewise.
1147 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1148
4f9d6b8b 11492012-04-15 Jason Merrill <jason@redhat.com>
1150
1151 PR c++/52818
1152 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1153 (C_STD_NAME): Distinguish between C++98 and C++11.
1154
74bdbe96 11552012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1156
1157 PR target/52624
1158 * c-common.h (uint16_type_node): Rename into...
1159 (c_uint16_type_node): ...this.
1160 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1161 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1162
3d177e8c 11632012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1164
1165 * c-common.c (warn_if_unused_value): Move definition to here.
1166 * c-common.h (warn_if_unused_value): Move declaration to here.
1167
6a9a958f 11682012-03-23 William Bader <williambader@hotmail.com>
1169
1170 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1171
543efdbe 11722012-03-20 Jason Merrill <jason@redhat.com>
1173
1174 * c-common.h (enum cxx_dialect): Add cxx1y.
1175 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1176 test.
1177 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1178 * c-opts.c (c_common_post_options): Likewise.
1179 (set_std_cxx1y): New.
1180 (c_common_handle_option): Call it.
1181 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1182
62206d34 11832012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1184
1185 PR c++/14710
1186 * c.opt ([Wuseless-cast]): Add.
1187
fadf62f4 11882012-03-16 Richard Guenther <rguenther@suse.de>
1189
1190 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1191
249faa35 11922012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1193
1194 PR c++/44783
1195 * c.opt (ftemplate-backtrace-limit) Add.
1196
126b6848 11972012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1198
1199 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1200 handling.
1201 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1202 (init_pragma): Don't register extern_prefix.
1203
a51edb4c 12042012-03-12 Richard Guenther <rguenther@suse.de>
1205
1206 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1207 (builtin_type_for_size): Likewise.
1208
0f6a7cb7 12092012-02-13 Jakub Jelinek <jakub@redhat.com>
1210
1211 PR c++/52215
1212 * c-common.c (sync_resolve_params): Don't decide whether to convert
1213 or not based on TYPE_SIZE comparison, convert whenever arg_type
1214 is unsigned INTEGER_TYPE.
1215
0779e32c 12162012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1217
1218 PR c/52118
1219 * c.opt ([Wunused-local-typedefs]): Fix description.
1220
baec58e1 12212012-01-24 Mike Stump <mikestump@comcast.net>
1222
1223 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1224 exactly.
1225
c779d8cc 12262012-01-18 Richard Guenther <rguenther@suse.de>
1227
1228 * c-opts.c (c_common_post_options): Reset LTO flags if
1229 we are about to generate a PCH.
1230
ee917d24 12312012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1232
1233 PR c++/51777
1234 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1235 use pp_unsigned_wide_integer.
1236
90e2341f 12372012-01-10 Richard Guenther <rguenther@suse.de>
1238
1239 PR middle-end/51806
1240 * c-opts.c (c_common_handle_option): Move -Werror handling
1241 to language independent code.
1242
9ea022ce 12432012-01-05 Richard Guenther <rguenther@suse.de>
1244
1245 PR middle-end/51764
1246 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1247 from common.opt.
1248
3df19e1b 12492011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1250
1251 PR c++/51316
1252 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1253 of array types with an unknown bound.
1254
32074525 12552011-12-20 Joseph Myers <joseph@codesourcery.com>
1256
1257 * c-common.c (flag_isoc99): Update comment to refer to C11.
1258 (flag_isoc1x): Change to flag_isoc11.
1259 * c-common.h (flag_isoc99): Update comment to refer to C11.
1260 (flag_isoc1x): Change to flag_isoc11.
1261 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1262 C11.
1263 * c-opts.c (set_std_c1x): Change to set_std_c11.
1264 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1265 Call set_std_c11.
1266 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1267 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1268 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1269 standard.
1270 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1271 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1272 (std=gnu1x): Make alias of std=gnu11.
1273
fca86134 12742011-12-19 Jason Merrill <jason@redhat.com>
1275
1276 PR c++/51228
1277 * c-common.c (handle_transparent_union_attribute): Check the first
1278 field if the type is complete.
1279
aa4313eb 12802011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1281
1282 PR libstdc++/51365
1283 * c-common.c (RID_IS_FINAL): Add.
1284 * c-common.h (RID_IS_FINAL): Add.
1285
3f3d5ad4 12862011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1287
1288 * c.opt (fgnu-runtime): Provide full description.
1289 (fnext-runtime): Likewise.
1290 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1291
c4606d19 12922011-11-28 Andrew MacLeod <amacleod@redhat.com>
1293
1294 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1295 predefines in one place. Add LOCK_FREE predefines.
1296 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1297 new func.
1298
1d581089 12992011-11-24 Andrew MacLeod <amacleod@redhat.com>
1300
1301 PR c/51256
19931eea 1302 * c-common.c (get_atomic_generic_size): Check for various error
1d581089 1303 conditions
19931eea 1304 (resolve_overloaded_atomic_exchange,
1305 resolve_overloaded_atomic_compare_exchange,
1d581089 1306 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1307 error_mark_node for error conditions.
19931eea 1308
6aa221fa 13092011-11-08 Richard Guenther <rguenther@suse.de>
1310
1311 PR middle-end/51010
1312 c-family/
1313
4c0315d0 13142011-11-07 Richard Henderson <rth@redhat.com>
1315 Aldy Hernandez <aldyh@redhat.com>
1316 Torvald Riegel <triegel@redhat.com>
1317
1318 Merged from transactional-memory.
1319
1320 * c-common.c (handle_tm_wrap_attribute,
1321 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1322 (struct c_common_reswords): Added __transaction* keywords.
1323 (struct c_common_attribute_table): Added transaction* and tm_regparm
1324 attributes.
1325 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1326 masks.
1327 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1328 find_tm_attribute): Declare.
1329
920f5a70 13302011-11-07 Jason Merrill <jason@redhat.com>
1331
1332 PR c++/35688
1333 * c-common.c, c-common.h: Revert yesterday's changes.
1334
b4f861b4 13352011-11-06 Jason Merrill <jason@redhat.com>
1336
1337 PR c++/35688
1338 * c-common.c (decl_has_visibility_attr): Split out from...
1339 (c_determine_visibility): ...here.
1340 * c-common.h: Declare it.
1341
83e25171 13422011-11-06 Joseph Myers <joseph@codesourcery.com>
1343
1344 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1345 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1346 type.
1347 (check_user_alignment): New. Split out of
1348 handle_aligned_attribute. Disallow integer constants with
1349 noninteger types. Conditionally allow zero.
1350 (handle_aligned_attribute): Use check_user_alignment.
1351 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1352
1cd6e20d 13532011-11-06 Andrew MacLeod <amacleod@redhat.com>
1354 Richard Henderson <rth@redhat.com>
1355
1356 Merged from cxx-mem-model.
1357
1358 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
19931eea 1359 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
1cd6e20d 1360 parameters that are the same type size.
1361 (get_atomic_generic_size): New. Find size of generic
1362 atomic function parameters and do typechecking.
1363 (add_atomic_size_parameter): New. Insert size into parameter list.
1364 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1365 either __atomic_exchange_n or external library call.
19931eea 1366 (resolve_overloaded_atomic_compare_exchange): Restructure
1cd6e20d 1367 __atomic_compare_exchange to either _n variant or external library call.
19931eea 1368 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
1cd6e20d 1369 __atomic_load_n or an external library call.
1370 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1371 __atomic_store_n or an external library call.
1372 (resolve_overloaded_builtin): Handle new __atomic builtins.
1373
7549df0d 13742011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1375
1376 PR c++/50608
1377 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1378 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1379 <INDIRECT_REF>: Return the argument.
1380 <ARRAY_REF>: Remove special code for negative offset.
1381 Call fold_build_pointer_plus instead of size_binop.
1382 (fold_offsetof): Remove STOP_REF argument and adjust.
1383 * c-common.h (fold_offsetof_1): Declare.
1384 (fold_offsetof): Remove STOP_REF argument.
1385
7e783eb3 13862011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1387
1388 PR c++/50810
1389 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1390 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1391 Wnarrowing for C++0x and C++98.
1392 * c.opt ([Wnarrowing]): Update.
1393
8fe701f5 13942011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1395
1396 PR c++/44277
1397 * c.opt: Add Wzero-as-null-pointer-constant.
1398
0d84dc2d 13992011-10-31 Jason Merrill <jason@redhat.com>
1400
67031f52 1401 * c.opt (-fdeduce-init-list): Off by default.
1402
0d84dc2d 1403 PR c++/50920
1404 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1405 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1406 and -Wc++11-compat.
1407 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1408
66f24c41 14092011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1410
1411 PR c++/30066
1412 * c.opt (fvisibility-inlines-hidden): Description change.
1413
244db24d 14142011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1415
1416 Implement C++11 user-defined literals.
1417 * c-common.c (build_userdef_literal): New.
1418 * c-common.def: New tree code.
1419 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1420 * c-lex.c (interpret_float): Add suffix parm.
1421 (c_lex_with_flags): Build literal tokens.
1422
235be70f 14232011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1424
1425 PR c++/50841
1426 Revert:
1427 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1428
1429 PR c++/50810
1430 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1431 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1432 Wnarrowing for C++0x and C++98.
1433 * c.opt ([Wnarrowing]): Update.
1434
4fe0fb1c 14352011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1436
1437 PR c++/50810
1438 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1439 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1440 Wnarrowing for C++0x and C++98.
1441 * c.opt ([Wnarrowing]): Update.
1442
5f7504f9 14432011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1444
1445 PR c++/45385
1446 * c-common.c (conversion_warning): Remove code looking for
1447 artificial operands.
1448
2a688977 14492011-10-18 Dodji Seketeli <dodji@redhat.com>
1450
1451 PR bootstrap/50760
1452 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
19931eea 1453 !NO_IMPLICIT_EXTERN_C.
2a688977 1454
326e3391 14552011-10-17 Michael Spertus <mike_spertus@symantec.com>
1456
1457 * c-common.c (c_common_reswords): Add __bases,
1458 __direct_bases.
1459 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1460
14612011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1462
1463 PR c++/50757
1464 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1465
62db153a 14662011-10-15 Tom Tromey <tromey@redhat.com>
1467 Dodji Seketeli <dodji@redhat.com>
1468
1469 * c.opt (fdebug-cpp): New option.
1470 * c-opts.c (c_common_handle_option): Handle the option.
1471 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1472 output stream in parameter. Factorized from ...
1473 (maybe_print_line): ... this. Dump location debug information when
1474 -fdebug-cpp is in effect.
1475 (print_line_1): New static function. Takes an output stream in
1476 parameter. Factorized from ...
1477 (print_line): ... here. Dump location information when -fdebug-cpp
1478 is in effect.
1479 (scan_translation_unit): Dump location information when
1480 -fdebug-cpp is in effect.
1481
ce70f433 14822011-10-15 Tom Tromey <tromey@redhat.com>
1483 Dodji Seketeli <dodji@redhat.com>
1484
1485 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1486 without argument.
1487 * c-opts.c (c_common_handle_option)<case
1488 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1489 cases. Handle -ftrack-macro-expansion with and without argument.
1490
97bfb9ef 14912011-10-15 Tom Tromey <tromey@redhat.com>
1492 Dodji Seketeli <dodji@redhat.com>
1493
1494 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1495 (print_line, cb_define, do_line_change): Adjust to avoid touching
1496 the internals of struct line_map. Use the public API instead.
1497 * c-pch.c (c_common_read_pch): Likewise.
1498 * c-lex.c (fe_file_change): Likewise.
1499
326e3391 15002011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1501
1502 PR c++/17212
1503 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1504
15052011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1506
1507 PR c++/33067
1508 * c-pretty-print.c (pp_c_floating_constant): Output
1509 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1510
b9a16870 15112011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1512
1513 * c-common.c (def_builtin_1): Delete old interface with two
1514 parallel arrays to hold standard builtin declarations, and replace
1515 it with a function based interface that can support creating
1516 builtins on the fly in the future. Change all uses, and poison
1517 the old names. Make sure 0 is not a legitimate builtin index.
1518 * c-omp.c (c_finish_omp_barrier): Ditto.
1519 (c_finish_omp_taskwait): Ditto.
1520 (c_finish_omp_flush): Ditto.
1521
c7964868 15222011-10-11 Tristan Gingold <gingold@adacore.com>
1523
1524 * c.opt: (fallow-parameterless-variadic-functions): New.
1525
a4e3ffad 15262011-09-08 Dodji Seketeli <dodji@redhat.com>
1527
1528 PR c++/33255 - Support -Wunused-local-typedefs warning
1529 * c-common.h (struct c_language_function::local_typedefs): New
1530 field.
19931eea 1531 (record_locally_defined_typedef, maybe_record_typedef_use)
1532 (maybe_warn_unused_local_typedefs): Declare new functions.
a4e3ffad 1533 * c-common.c (record_locally_defined_typedef)
19931eea 1534 (maybe_record_typedef_use)
1535 (maybe_warn_unused_local_typedefs): Define new functions.
a4e3ffad 1536 * c.opt: Declare new -Wunused-local-typedefs flag.
1537
737a23cc 15382011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1539
1540 PR middle-end/50266
1541 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1542 computations.
1543
7542c3b4 15442011-09-05 Richard Guenther <rguenther@suse.de>
1545
1546 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1547 of integer_minus_one_node for empty array upper bounds.
1548
1dc92c59 15492011-08-28 Dodji Seketeli <dodji@redhat.com>
1550
1551 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1552 it's the first time it's being called on this main TU.
1553
2bdf2b6e 15542011-08-24 Richard Guenther <rguenther@suse.de>
1555
1556 PR c/49396
1557 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1558
15592011-08-22 Gabriel Charette <gchare@google.com>
6ea2c7a3 1560
1561 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1562 defined in cpp_init_builtins and c_cpp_builtins.
1563
bff4ad11 15642011-08-19 Joseph Myers <joseph@codesourcery.com>
1565
1566 * c-common.c (c_common_reswords): Add __builtin_complex.
1567 * c-common.h (RID_BUILTIN_COMPLEX): New.
1568
985c6e3a 15692011-08-18 Joseph Myers <joseph@codesourcery.com>
1570
1571 * c-common.c (c_common_reswords): Add _Noreturn.
1572 (keyword_is_function_specifier): Handle RID_NORETURN.
1573 * c-common.h (RID_NORETURN): New.
1574
7dfa155b 15752011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1576
1577 * c-common.c (unsafe_conversion_p): New function. Check if it is
1578 unsafe to convert an expression to the type.
1579 (conversion_warning): Adjust, use unsafe_conversion_p.
1580 * c-common.h (unsafe_conversion_p): New function declaration.
1581
2169f33b 15822011-08-02 Jakub Jelinek <jakub@redhat.com>
1583
1584 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1585 (c_finish_omp_taskyield): New prototype.
1586 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1587 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1588 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1589 or RHS1 have side-effects, evaluate those too in the right spot,
1590 if it is a decl and LHS is also a decl, error out if they
1591 aren't the same.
1592 (c_finish_omp_taskyield): New function.
1593 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1594 * c-pragma.c (omp_pragmas): Add taskyield.
1595 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1596 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1597 PRAGMA_OMP_CLAUSE_MERGEABLE.
1598
ab77850e 15992011-07-25 Dodji Seketeli <dodji@redhat.com>
1600
1601 * c-common.h (set_underlying_type): Remove parm name from
1602 declaration.
1603
6ee97920 16042011-07-25 Romain Geissler <romain.geissler@gmail.com>
1605
1606 * c-pretty-print.h: Search c-common.h in c-family.
19931eea 1607
dc251364 16082011-07-22 Jason Merrill <jason@redhat.com>
1609
1a2a35f0 1610 PR c++/49793
1611 * c.opt (Wnarrowing): New.
1612
27282252 1613 PR c++/30112
1614 * c-common.h: Declare c_linkage_bindings.
1615 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1616
dc251364 1617 PR c++/49813
1618 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1619 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1620 as flag_isoc99 for 'restrict'.
1621 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1622
fc501191 16232011-07-21 Ian Lance Taylor <iant@google.com>
1624
1625 PR middle-end/49705
1626 * c-common.c (c_disable_warnings): New static function.
1627 (c_enable_warnings): New static function.
1628 (c_fully_fold_internal): Change local unused_p to bool. Call
1629 c_disable_warnings and c_enable_warnings rather than change
1630 c_inhibit_evaluation_warnings.
1631
07b8f133 16322011-07-20 Jason Merrill <jason@redhat.com>
1633
1634 PR c++/6709 (DR 743)
1635 PR c++/42603 (DR 950)
1636 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1637 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1638 (CPP_DECLTYPE): New.
1639 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1640
2cc66f2a 16412011-07-19 Richard Guenther <rguenther@suse.de>
1642
1643 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1644 * c-omp.c (c_finish_omp_for): Likewise.
1645
3c802a1e 16462011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1647
1648 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1649 body on the next line.
1650
98a33d9f 16512011-07-08 Jason Merrill <jason@redhat.com>
1652
3115bda0 1653 PR c++/45437
1654 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1655
98a33d9f 1656 PR c++/49673
1657 * c-common.c (c_apply_type_quals_to_decl): Don't check
1658 TYPE_NEEDS_CONSTRUCTING.
1659
c38a75b7 16602011-07-06 Richard Guenther <rguenther@suse.de>
1661
1662 * c-common.c (c_common_nodes_and_builtins):
1663 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1664
e593356b 16652011-07-05 Richard Guenther <rguenther@suse.de>
1666
1667 * c-common.c (c_common_nodes_and_builtins): Build all common
1668 tree nodes first.
1669
fca0886c 16702011-06-27 Jakub Jelinek <jakub@redhat.com>
1671
a68f7a8d 1672 * c-common.h (c_tree_chain_next): New static inline function.
1673
fca0886c 1674 * c-common.c (check_builtin_function_arguments): Handle
1675 BUILT_IN_ASSUME_ALIGNED.
1676
2797f13a 16772011-06-21 Andrew MacLeod <amacleod@redhat.com>
1678
1679 * c-common.c: Add sync_ or SYNC__ to builtin names.
1680 * c-omp.c: Add sync_ or SYNC__ to builtin names.
9cad95b7 1681
16822011-06-20 Pierre Vittet <piervit@pvittet.com>
1683
1684 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1685 handler.
1686 (gen_pragma_handler): New union.
1687 (internal_pragma_handler): New type.
1688 (c_register_pragma_with_data)
1689 (c_register_pragma_with_expansion_and_data): New functions.
1690
1691 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1692 (c_register_pragma, c_register_pragma_with_expansion)
1693 (c_invoke_pragma_handler): Changed to work with
1694 internal_pragma_handler.
1695 (c_register_pragma_with_data)
1696 (c_register_pragma_with_expansion_and_data): New functions.
1697
218e3e4e 16982011-06-14 Joseph Myers <joseph@codesourcery.com>
1699
1700 * c-common.c: Include common/common-target.h.
1701 (handle_section_attribute): Use
1702 targetm_common.have_named_sections.
1703 * c-cppbuiltin.c: Include common/common-target.h.
1704 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1705
41e53ed2 17062011-06-10 Richard Guenther <rguenther@suse.de>
1707
1708 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1709 to print a IDENTIFIER_NODE.
1710
a6f06169 17112011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1712 Joseph Myers <joseph@codesourcery.com>
1713
1714 * c.opt (fbuilding-libgcc): New option.
1715 * c-cppbuiltin.c (c_cpp_builtins): Define
1716 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1717
1ea9269b 17182011-06-07 Jason Merrill <jason@redhat.com>
1719
8ce59854 1720 * c-common.c (max_tinst_depth): Lower default to 900.
1721
1ea9269b 1722 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1723
1af0124d 17242011-06-07 Richard Guenther <rguenther@suse.de>
1725
1726 * c-common.c (c_common_nodes_and_builtins): Do not set
1727 size_type_node or call set_sizetype.
1728
0e9a4c01 17292011-06-07 Dodji Seketeli <dodji@redhat.com>
1730
1731 PR debug/49130
1732 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
19931eea 1733 type when using pointer comparison to compare types.
0e9a4c01 1734
90b40725 17352011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1736
1737 * c.opt: Add -Wdelete-non-virtual-dtor.
1738 * c-opts.c (c_common_handle_option): Include it in -Wall.
1739
fc9c9e87 17402011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1741
1742 PR bootstrap/49190
1743
1744 Revert:
1745 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1746
1747 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1748 not tree_common.
1749
d0389adc 17502011-05-27 Jakub Jelinek <jakub@redhat.com>
1751
1752 PR c++/49165
1753 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1754 C++ don't call c_common_truthvalue_conversion on void type arms.
1755
cacfdc02 17562011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1757
1758 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1759 (stmt_list_stack): Define.
1760 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1761 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1762
027fc6ef 17632011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1764
1765 * c-common.c (warning_candidate_p): Check for BLOCKs.
1766
f21317a1 17672011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1768
1769 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1770 not tree_common.
1771
789e953d 17722011-05-25 Jakub Jelinek <jakub@redhat.com>
1773
1774 * c-common.c (def_fn_type): Remove extra va_end.
1775
7f506bca 17762011-05-23 Jason Merrill <jason@redhat.com>
1777
1778 PR c++/48106
1779 * c-common.c (c_common_get_narrower): New.
1780 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1781
774e9d58 17822011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1783
1784 * c-common.h (check_function_arguments): Tweak prototype of
1785 check_function_arguments.
1786 * c-common.c (check_function_arguments): Likewise. Adjust
1787 calls to check_function_nonnull, check_function_format, and
1788 check_function_sentinel.
1789 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1790 separate attributes and typelist arguments. Use
1791 FOREACH_FUNCTION_ARGS to iterate over argument types.
1792
23407dc9 17932011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1794
1795 * c-common.c (c_common_reswords): Reorder.
1796 * c-common.h (rid): Likewise.
1797
3a939d12 17982011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1799
1800 * c-common.c (def_fn_type): Don't call build_function_type, call
1801 build_function_type_array or build_varargs_function_type_array
1802 instead.
1803 (c_common_nodes_and_builtins): Likewise.
1804
b6e3dd65 18052011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1806
1807 * c-common.c (c_add_case_label): Omit the loc argument to
1808 build_case_label.
1809 * c-common.h (build_case_label): Remove.
1810 * c-semantics.c (build_case_label): Remove.
1811
4232a958 18122011-05-05 Joseph Myers <joseph@codesourcery.com>
1813
1814 * c-objc.h (objc_start_method_definition): Update prototype.
1815 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1816
d0af78c5 18172011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1818
1819 * c-common.c (check_main_parameter_types): Reindent. Don't use
1820 TYPE_ARG_TYPES directly.
1821 (handle_nonnull_attribute): Likewise.
1822 (sync_resolve_params): Likewise.
1823 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1824 to check_format_string.
1825 (handle_format_attribute): Likewise.
1826 (check_format_string): Take a function type to examine instead of
1827 a type list. Use a function_arg_iterator to step through argument
1828 types.
1829
ceb7b692 18302011-05-04 Richard Guenther <rguenther@suse.de>
1831
1832 * c-common.c (fix_string_type): Use size_int for index type bounds.
1833 (start_fname_decls): Do not pass NULL to build_int_cst.
1834 (c_init_attributes): Likewise.
1835 * c-lex.c (c_lex_with_flags): Likewise.
1836
c66c81be 18372011-04-27 Jason Merrill <jason@redhat.com>
1838
1839 * c-common.c (make_tree_vector_from_list): New.
1840 * c-common.h: Declare it.
1841
16930c72 18422011-04-26 Richard Guenther <rguenther@suse.de>
1843
1844 PR preprocessor/48248
1845 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1846 for output size with -P.
1847
23407dc9 18482011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1849
1850 * c-common.c (struct c_common_resword): Add __underlying_type.
1851 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1852
dd045aee 18532011-04-20 Jim Meyering <meyering@redhat.com>
1854
1855 * c-format.c (init_dollar_format_checking): Remove useless
1856 if-before-free.
1857
394dd737 18582011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1859
1860 * c-objc.h (objc_get_interface_ivars): Removed.
23407dc9 1861 (objc_detect_field_duplicates): New.
394dd737 1862 * stub-objc.c: Likewise.
23407dc9 1863
a758bf7d 18642011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1865
1866 * stub-objc.c (objc_declare_protocols): Renamed to
1867 objc_declare_protocol.
1868 * c-objc.h: Likewise.
23407dc9 1869
29d7200d 18702011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1871
1872 * stub-objc.c (objc_declare_class): Updated argument name.
1873
9b88d08d 18742011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1875
1876 * c-common.h (c_common_init_ts): Declare.
1877 * c-common.c (c_common_init_ts): Define.
1878
4185cf58 18792011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1880
1881 * c-objc.h (objc_build_message_expr): Updated prototype.
1882 * stub-objc.c (objc_build_message_expr): Likewise.
19931eea 1883
5a90471f 18842011-04-12 Martin Jambor <mjambor@suse.cz>
1885
1886 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1887 of cgraph_node.
1888
783bb57e 18892011-04-11 Richard Guenther <rguenther@suse.de>
1890
1891 * c-common.c (complete_array_type): Build a range type of
1892 proper type.
1893
c33080b9 18942011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1895
1896 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1897 (handle_type_generic_attribute): Likewise.
1898
f8913d47 18992011-04-07 Jason Merrill <jason@redhat.com>
1900
1901 PR c++/48450
1902 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1903 conversion from C++0x scoped enum.
1904
c94b1d0e 19052011-04-06 Joseph Myers <joseph@codesourcery.com>
1906
1907 * c-target-def.h: New file.
1908 * c-target.def: New file.
1909 * c-target.h: New file.
1910 * c-common.c (targetcm): Don't define here.
1911 * c-common.h (default_handle_c_option): Declare.
1912 * c-format.c: Include c-target.h instead of target.h.
1913 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1914 include tm.h.
1915 (default_handle_c_option): Move from targhooks.c.
1916
acb10f41 19172011-03-29 Jakub Jelinek <jakub@redhat.com>
1918
1919 PR preprocessor/48248
1920 * c-ppoutput.c (print): Add src_file field.
1921 (init_pp_output): Initialize it.
1922 (maybe_print_line): Don't optimize by adding up to 8 newlines
1923 if map->to_file and print.src_file are different file.
1924 (print_line): Update print.src_file.
1925
82715bcd 19262011-03-25 Kai Tietz <ktietz@redhat.com>
1927
1928 * c-ada-spec.c (compare_comment): Use filename_cmp
1929 instead of strcmp for filename.
1930
451c8e2f 19312011-03-25 Jeff Law <law@redhat.com>
1932
1933 * c-family/c-common.c (def_fn_type): Add missing va_end.
1934
3c47771c 19352011-03-25 Jason Merrill <jason@redhat.com>
1936
1937 * c.opt: Add -std=c++03.
1938
97e6200f 19392011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1940
1941 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1942
ac86af5d 19432011-03-17 Kai Tietz
1944
1945 PR target/12171
ee212425 1946 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1947 Display allowed attributes for function pointer types.
1948 (pp_c_attributes_display): New function to display
1949 attributes having affects_type_identity flag set to true.
1950 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1951
ac86af5d 1952 * c-common.c (c_common_attribute_table):
1953 Add new element.
1954 (c_common_format_attribute_table): Likewise.
1955
914d1151 19562011-03-18 Jason Merrill <jason@redhat.com>
1957
69788bdf 1958 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1959 * c-common.h: Don't declare it here.
1960 * c-common.c: Or define it here.
1961 * c-opts.c (c_common_handle_option): Or set it here.
1962
914d1151 1963 PR c++/35315
1964 * c-common.c (handle_transparent_union_attribute): Don't
1965 make a duplicate type in C++.
1966
54cf6eed 19672011-03-15 Jason Merrill <jason@redhat.com>
1968
1969 * c-common.c (max_constexpr_depth): New.
1970 * c-common.h: Declare it.
1971 * c-opts.c (c_common_handle_option): Set it.
1972 * c.opt (fconstexpr-depth): New option.
1973
02cb1060 19742011-03-11 Jason Merrill <jason@redhat.com>
1975
9bf1c74e 1976 * c-common.c (attribute_takes_identifier_p): Add missing const.
1977
02cb1060 1978 PR c++/46803
1979 * c-common.c (attribute_takes_identifier_p): Assume that an
1980 unknown attribute takes an identifier.
1981
ecf2703d 19822011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1983
1984 PR c/47786
1985 * c-common.c (c_type_hash): Call list_length instead of iterating
1986 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1987
2b19dfe4 19882011-02-19 Jakub Jelinek <jakub@redhat.com>
1989
1990 PR c/47809
1991 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1992
29cf2335 19932011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1994
1995 * c.opt (fobjc-abi-version=) New.
1996 (fobjc-nilcheck): New.
1997
fad3f658 19982011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1999
2000 PR c++/46890
2001 * c-common.h (keyword_is_decl_specifier): Declare.
2002 * c-common.c (keyword_is_decl_specifier): Define.
2003 (keyword_is_function_specifier): New function.
2004
a12319b3 20052011-01-26 Jakub Jelinek <jakub@redhat.com>
2006
2007 PR c/47473
2008 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
2009 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
2010 REAL_TYPE.
2011
5c128dc8 20122011-01-26 Arnaud Charlet <charlet@adacore.com>
2013
2014 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2015
8d67b0c7 20162011-01-26 Jakub Jelinek <jakub@redhat.com>
2017
2018 PR pch/47430
2019 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
2020 after init_c_lex if pch_file is set.
2021
0675168d 20222011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2023
e8911163 2024 PR c++/43601
0675168d 2025 * c.opt (-fkeep-inline-dllexport): New switch.
2026
0725e25c 20272011-01-12 Richard Guenther <rguenther@suse.de>
2028
2029 PR middle-end/32511
2030 * c-common.c (handle_weak_attribute): Warn instead of error
2031 on declaring an inline function weak.
2032
fdd84b77 20332011-01-05 Tom Tromey <tromey@redhat.com>
2034
2035 * c-common.h (lvalue_error): Update.
2036 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
2037 not error.
2038
e6e73d14 20392010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
19931eea 2040
d67e8485 2041 PR objc/47075
2042 * c-objc.h (objc_finish_message_expr): Added argument to
2043 prototype.
2044
a36cf284 20452010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2046
2047 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2048 Use prototype_p.
2049
33b3681f 20502010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2051
2052 * c-objc.h (objc_maybe_warn_exceptions): New.
19931eea 2053 * stub-objc.c (objc_maybe_warn_exceptions): New.
33b3681f 2054
a1f90215 20552010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2056
2057 * c-common.h (readonly_error): Declare.
2058 * c-common.c (readonly_error): Define.
2059
b1bbc8e5 20602010-12-09 Nathan Froyd <froydnj@codesourcery.com>
2061
2062 * c-common.h (invalid_indirection_error): Declare.
2063 * c-common.c (invalid_indirection_error): Define.
2064
b0d55af9 20652010-12-03 Richard Guenther <rguenther@suse.de>
2066
2067 PR c/46745
2068 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
2069 (pp_c_unary_expression): Likewise.
2070 (pp_c_expression): Likewise.
2071
d7489d8d 20722010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
2073
2074 * c-common.h (objc_finish_function): New.
2075 (objc_non_volatilized_type): Removed.
2076 (objc_type_quals_match): Removed.
2077 * stub-objc.c (objc_finish_function): New.
2078 (objc_non_volatilized_type): Removed.
2079 (objc_type_quals_match): Removed.
19931eea 2080
92468061 20812010-11-30 Joseph Myers <joseph@codesourcery.com>
2082
2083 * c-common.h (parse_optimize_options): Declare.
2084 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
2085 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
2086
967958e4 20872010-11-29 Joseph Myers <joseph@codesourcery.com>
2088
2089 * c-opts.c (check_deps_environment_vars): Use getenv instead of
2090 GET_ENVIRONMENT.
2091 * c-pch.c (O_BINARY): Don't define here.
2092 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
2093
b213bf24 20942010-11-25 Joseph Myers <joseph@codesourcery.com>
2095
2096 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
2097 targetm.except_unwind_info.
2098
9faf44d6 20992010-11-23 Joseph Myers <joseph@codesourcery.com>
2100
2101 * c-opts.c (c_common_handle_option): Pass location to
2102 set_struct_debug_option.
2103
79396169 21042010-11-23 Joseph Myers <joseph@codesourcery.com>
2105
2106 * c-common.c (visibility_options): Move from ../opts.c.
2107 * c-common.h (struct visibility_flags, visibility_options):
2108 Declare here.
2109 * c-opts.c (finish_options): Rename to c_finish_options.
2110 (c_common_init): Update call to finish_options.
2111
b4aa4123 21122010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2113
2114 PR objc/34033
2115 * c-lex.c (lex_string): Check that each string in an Objective-C
2116 string concat sequence starts with either one or zero '@', and
2117 that there are no spurious '@' signs at the end.
2118
3e0e49f2 21192010-11-20 Joseph Myers <joseph@codesourcery.com>
2120
2121 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2122 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2123 HANDLE_PRAGMA_VISIBILITY.
2124 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2125 HANDLE_PRAGMA_VISIBILITY): Don't define.
2126 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2127
a9ffdd35 21282010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2129
2130 PR c++/16189
2131 PR c++/36888
2132 PR c++/45331
2133 * c-common.h (keyword_begins_type_specifier): Declare.
2134 (keyword_is_storage_class_specifier): Declare.
2135 (keyword_is_type_qualifier): Declare.
2136 * c-common.c (keyword_begins_type_specifier): New function.
2137 (keyword_is_storage_class_specifier): New function.
2138 (keyword_is_type_qualifier): Declare.
2139
93be21c0 21402010-11-19 Joseph Myers <joseph@codesourcery.com>
2141
2142 PR c/46547
2143 * c-common.c (in_late_binary_op): Define.
2144 (c_common_truthvalue_conversion): Check in_late_binary_op before
2145 calling c_save_expr.
2146 * c-common.h (in_late_binary_op): Declare.
2147
d7175aef 21482010-11-19 Joseph Myers <joseph@codesourcery.com>
2149
2150 * c-opts.c (c_common_handle_option): Update calls to
2151 set_struct_debug_option.
2152
c213e196 21532010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2154
2155 * c-common.h (objc_declare_protocols): Added additional argument.
2156 * stub-objc.c (objc_declare_protocol): Same change.
19931eea 2157
0b5fc5d6 21582010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2159
2160 PR c/33193
2161 * c-common.h (build_real_imag_expr): Declare.
2162 * c-semantics.c (build_real_imag_expr): Define.
2163
b8ba44e7 21642010-11-17 Joseph Myers <joseph@codesourcery.com>
2165
2166 * c-opts.c (c_common_parse_file): Take no arguments.
2167 * c-common.h (c_common_parse_file): Update prototype.
2168
6ef8d12f 21692010-11-16 Jakub Jelinek <jakub@redhat.com>
2170
2171 PR c++/46401
2172 * c-common.c (warning_candidate_p): Don't track non-const calls
2173 or STRING_CSTs.
2174
929d2a90 21752010-11-15 Ian Lance Taylor <iant@google.com>
2176
2177 * c-lex.c (init_c_lex): Set macro debug callbacks if
2178 flag_dump_go_spec is set.
2179
e4a7640a 21802010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2181
2182 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2183 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2184
597d2d81 21852010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2186
2187 PR preprocessor/45038
2188 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2189 dialects.
2190
c123f04d 21912010-11-12 Joseph Myers <joseph@codesourcery.com>
2192
2193 * c-common.h (c_family_lang_mask): Declare.
2194 * c-opts.c (c_family_lang_mask): Make extern.
2195 * c-pragma.c (handle_pragma_diagnostic): Use
2196 control_warning_option.
2197
3c6c0e40 21982010-11-12 Joseph Myers <joseph@codesourcery.com>
2199
2200 * c-common.c (parse_optimize_options): Update call to
2201 decode_options.
2202 * c-common.h (c_common_handle_option): Update prototype.
2203 * c-opts.c (c_common_handle_option): Take location_t parameter and
2204 pass it to other functions.
2205
19ec5c9e 22062010-11-11 Joseph Myers <joseph@codesourcery.com>
2207
2208 * c-opts.c (warning_as_error_callback): Remove.
2209 (c_common_initialize_diagnostics): Don't call
2210 register_warning_as_error_callback.
2211 (c_common_handle_option): Handle -Werror=normalized= here.
2212
bf776685 22132010-11-10 Joseph Myers <joseph@codesourcery.com>
2214
2215 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2216 in diagnostic.
2217 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2218 letter.
2219 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2220 Remove trailing '.' from diagnostics.
2221 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2222
6bd9d862 22232010-11-10 Joseph Myers <joseph@codesourcery.com>
2224
2225 * c-common.c (parse_optimize_options): Pass global_dc to
2226 decode_options.
2227 * c-opts.c (c_common_handle_option): Pass &global_options to
2228 set_Wstrict_aliasing.
2229 * c.opt (v): Don't mark Common or document here.
2230
1f6616ee 22312010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2232
2233 PR target/44981
2234 * c-format.c (format_type): New type gcc_objc_string_format_type.
2235 (valid_stringptr_type_p): New.
2236 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
19931eea 2237 (check_format_string): Pass expected type, use
1f6616ee 2238 valid_stringptr_type_p (), check that the format string types are
2239 consistent with the format specification.
2240 (decode_format_attr): Warn if NSString is used outside objective-c.
2241 (format_types_orig): Add NSString.
2242 (format_name): New.
2243 (format_flags): New.
2244 (check_format_arg): Handle format strings requiring an external parser.
2245 first_target_format_type: New variable.
2246 (handle_format_attribute): Set up first_target_format_type, pass the
2247 expected format arg string type to check_format_string().
2248 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2249 * stub-objc.c (objc_string_ref_type_p): New.
2250 (objc_check_format_arg): New.
2251
b0d0931f 22522010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2253
19931eea 2254 Fixed using the Objective-C 2.0 dot-syntax with class names.
b0d0931f 2255 * c-common.h (objc_build_class_component_ref): New.
2256 * stub-objc.c (objc_build_class_component_ref): New.
2257
f26877d5 22582010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2259
2260 * c.opt (Wproperty-assign-default): New option.
2261
1ef143b6 22622010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2263
2264 Implemented -fobjc-std=objc1 flag.
2265 * c.opt (fobjc-std=objc1): New option.
2266
8c582e4f 22672010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2268
2269 Implemented format and noreturn attributes for Objective-C methods.
2270 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2271 attribute for Objective-C methods.
2272
8637f1db 22732010-10-31 Jason Merrill <jason@redhat.com>
2274
2275 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2276 EXPR_LOC_OR_HERE.
2277
9d9f5bb3 22782010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2279
2280 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2281 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2282 (objc_add_property_declaration): Removed arguments for copies and
2283 ivar.
2284 (objc_build_getter_call): Renamed to
2285 objc_maybe_build_component_ref.
2286 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2287 (objc_is_property_ref): New.
2288 * c-common.c (c_common_reswords): Removed copies and ivar.
2289 * stub-objc.c (objc_add_property_declaration): Removed arguments
2290 for copies and ivar.
2291 (objc_build_getter_call): Renamed to
2292 objc_maybe_build_component_ref.
2293 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2294 (objc_is_property_ref): New.
19931eea 2295
56f907a0 22962010-10-29 Arnaud Charlet <charlet@adacore.com>
2297 Matthew Gingell <gingell@adacore.com>
2298
2299 * c-ada-spec.c (separate_class_package): New function.
2300 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2301 name of their enclosing package.
2302 (print_ada_declaration): Use separate_class_package.
2303
b5fa273e 23042010-10-27 Jason Merrill <jason@redhat.com>
2305
5290e253 2306 * c-common.c (c_common_reswords): Add __is_literal_type.
2307 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2308
b5fa273e 2309 * c-common.c (check_case_value): Remove special C++ code.
2310
7590f0e5 23112010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2312
2313 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2314 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2315 and RID_LAST_PATTR.
2316 (objc_add_property_declaration): Added additional arguments.
2317 (objc_property_attribute_kind): Removed.
2318 (objc_set_property_attr): Removed.
2319 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2320 copy and nonatomic.
2321 * stub-objc.c (objc_add_property_declaration): Added additional
2322 arguments.
2323 (objc_set_property_attr): Removed.
19931eea 2324
1d894bcf 23252010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2326
2327 * c-common.h (objc_add_property_variable): Renamed to
2328 objc_add_property_declaration. Added location argument.
2329 * stub-objc.c (objc_add_property_variable): Same change.
2330
e23bf1fb 23312010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2332
2333 * c-common.h (objc_maybe_printable_name): New.
2334 * stub-objc.c (objc_maybe_printable_name): New.
2335
93426222 23362010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2337 Andrew Pinski <pinskia@gmail.com>
2338
2339 * c-common.h (c_common_mark_addressable_vec): Declare.
2340 * c-common.c (c_common_mark_addressable_vec): New function.
2341
45b2b110 23422010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2343
2344 * c-common.h (objc_set_method_type): Removed.
2345 (objc_add_method_declaration): Added boolean argument.
2346 (objc_start_method_definition): Same change.
2347 (objc_build_method_signature): Same change.
2348 * stub-objc.c (objc_set_method_type): Removed.
2349 (objc_add_method_declaration): Added boolean argument.
2350 (objc_start_method_definition): Same change.
2351 (objc_build_method_signature): Same change.
2352
64cd9619 23532010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2354
2355 * c-common.h (finish_file): Removed.
2356 (objc_write_global_declarations): New.
2357 * c-opts.c (c_common_parse_file): Do not call finish_file.
2358 * stub-objc.c (objc_write_global_declarations): New.
19931eea 2359
e1f293c0 23602010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2361
2362 Implemented parsing @synthesize and @dynamic for
2363 Objective-C/Objective-C++.
2364 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2365 (objc_add_synthesize_declaration): New.
2366 (objc_add_dynamic_declaration): New.
2367 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2368 * stub-objc.c (objc_add_synthesize_declaration): New.
2369 (objc_add_dynamic_declaration): New.
19931eea 2370
ef97a312 23712010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2372
2373 PR target/46041
2374 * c-cppbuiltin.c (mode_has_fma): Move function here from
2375 builtins.c. Don't use the fma optab, instead just use the
2376 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2377 using -save-temps.
2378
69b07042 23792010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2380
2381 Merge from 'apple/trunk' branch on FSF servers.
ef97a312 2382
69b07042 2383 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2384
19931eea 2385 Radar 4330422
69b07042 2386 * c-common.h (objc_non_volatilized_type): New declaration
2387 * stub-objc.c (objc_non_volatilized_type): New stub.
2388
f15f2e56 23892010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2390
69b07042 2391 Merge from 'apple/trunk' branch on FSF servers.
f15f2e56 2392
2393 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2394
19931eea 2395 Radar 4133425
f15f2e56 2396 * c-common.h (objc_diagnose_private_ivar): New decl.
ef97a312 2397 * stub-objc.c (objc_diagnose_private_ivar): New stub.
f15f2e56 2398
4a8875ed 23992010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2400
2401 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2402 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2403 (objc_ivar_visibility_kind): New enum.
2404 (objc_set_visibility): Adjust prototype to use visibility enum.
ef97a312 2405 * stub-objc.c (objc_set_visibility): Adjust stub to use
4a8875ed 2406 visibility enum.
2407
7e0713b1 24082010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2409
2410 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2411 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2412 has the appropriate fma builtins.
2413 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2414
86c110ac 24152010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2416
7e0713b1 2417 merge from FSF apple 'trunk' branch.
86c110ac 2418 2006 Fariborz Jahanian <fjahanian@apple.com>
7e0713b1 2419
86c110ac 2420 Radars 4436866, 4505126, 4506903, 4517826
2421 * c-common.c (c_common_resword): Define @property and its attributes.
2422 * c-common.h: Define property attribute enum entries.
2423 (OBJC_IS_PATTR_KEYWORD): New.
2424 (objc_property_attribute_kind): New enum.
2425 Declare objc_set_property_attr (), objc_add_property_variable (),
2426 objc_build_getter_call () and objc_build_setter_call ().
2427 * stub-objc.c (objc_set_property_attr): New stub.
2428 (objc_add_property_variable): Likewise.
2429 (objc_build_getter_call): Likewise.
2430 (objc_build_setter_call) Likewise.
7e0713b1 2431
40c8d1dd 24322010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2433
7e0713b1 2434 merge from FSF apple 'trunk' branch.
40c8d1dd 2435 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2436
2437 Radar 3803157 (method attributes)
2438 * c-common.c (handle_deprecated_attribute): Recognize
2439 objc methods as valid declarations.
2440 * c-common.h: Declare objc_method_decl ().
7e0713b1 2441 * stub-objc.c (objc_method_decl): New stub.
40c8d1dd 2442
f3f006ad 24432010-10-08 Joseph Myers <joseph@codesourcery.com>
2444
2445 * c-common.c (parse_optimize_options): Call
2446 decode_cmdline_options_to_array_default_mask before
2447 decode_options. Update arguments to decode_options.
2448 * c-common.h (c_common_init_options_struct): Declare.
2449 * c-opts.c (c_common_init_options_struct): New. Split out from
2450 c_common_init_options.
2451
0a65c3bb 24522010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2453
2454 Implemented fast enumeration for Objective-C.
2455 * c-common.h (objc_finish_foreach_loop): New.
2456 * stub-objc.c (objc_finish_foreach_loop): New.
2457
24ca3b4e 24582010-10-05 Joseph Myers <joseph@codesourcery.com>
2459
2460 * c-common.h (struct diagnostic_context): Don't declare here.
2461 (c_common_initialize_diagnostics): Declare using
2462 diagnostic_context typedef.
2463 * c-opts.c (c_common_handle_option): Pass global_dc to
2464 handle_generated_option.
2465
f83b64ca 24662010-10-04 Joseph Myers <joseph@codesourcery.com>
2467
2468 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2469 handle_generated_option.
2470
2fdec027 24712010-10-03 Ian Lance Taylor <iant@google.com>
2472
2473 * c.opt (-fplan9-extensions): New option.
2474
41acdfa4 24752010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2476
2477 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2478 Remove.
2479 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2480 of duplicating code.
2481
069761fb 24822010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2483
2484 * c-common.c: Add two new entries for @optional
2485 and @required keywords.
2486
2487 merge from FSF 'apple/trunk' branch.
2488 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2489
2490 Radar 4386773
2491 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2492 objective-c keywords.
2493 (objc_set_method_opt): New declaration.
2494 * stub-objc.c (objc_set_method_opt): New stub.
19931eea 2495
2c5d2e39 24962010-09-30 Joseph Myers <joseph@codesourcery.com>
2497
2498 * c-common.c (handle_optimize_attribute): Pass &global_options to
2499 cl_optimization_save and cl_optimization_restore.
2500 * c-opts.c (c_common_handle_option): Pass &global_options to
2501 handle_generated_option.
2502 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2503 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2504 &global_options to cl_optimization_restore.
2505
e5c75ac3 25062010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2507
2508 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2509 Objective-C/Objective-C++ keywords.
2510
3511333e 25112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
e147d6aa 2512
19931eea 2513 Merge from 'apple/trunk' branch on FSF servers.
2514
e147d6aa 2515 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2516
2517 Radar 4281748
2518 * c-common.h (objc_check_global_decl): New declaration.
2519 * stub-objc.c (objc_check_global_decl): New stub.
2520
5461e683 25212010-09-29 Joseph Myers <joseph@codesourcery.com>
2522
2523 * c.opt: Don't use VarExists.
2524
5ae82d58 25252010-09-29 Joseph Myers <joseph@codesourcery.com>
2526
2527 * c-common.c (c_cpp_error): Update names of diagnostic_context
2528 members.
2529 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2530 cl_optimization members.
2531 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2532 sanitize_cpp_opts, finish_options): Update names of cpp_options
2533 members.
2534
b27e241e 25352010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2536
2537 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2538 (objc_is_reserved_word): Removed.
2539 * c-common.c: Updated comments.
2540 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2541 objc_is_reserved_word.
2542 * stub-objc.c (objc_is_reserved_word): Removed.
2543
03fc2271 25442010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2545
19931eea 2546 * c-common.h (objc_add_method_declaration): Adjust prototype to
03fc2271 2547 include attributes.
2548 (objc_start_method_definition): Likewise.
2549 (objc_build_keyword_decl): Likewise.
2550 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2551 (objc_start_method_definition): Likewise.
2552 (objc_build_keyword_decl): Likewise.
2553
a336eb4b 25542010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2555
2556 * c-common.h (objc_start_class_interface): Adjust prototype.
2557 (objc_start_category_interface): Likewise.
2558 (objc_start_protocol): Likewise.
2559 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2560 (objc_start_class_interface): Likewise.
2561 (objc_start_category_interface): Likewise.
2562
48b14f50 25632010-09-27 Ian Lance Taylor <iant@google.com>
2564
2565 * c-common.c (c_common_attribute_table): Add no_split_stack.
2566 (handle_no_split_stack_attribute): New static function.
2567
4abfc532 25682010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2569
19931eea 2570 Merge from 'apple/trunk' branch on FSF servers.
4abfc532 2571
2572 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2573
19931eea 2574 Radar 4229905
4abfc532 2575 * c-common.h (objc_have_common_type): New declaration.
2576 * stub-objc.c (objc_have_common_type): New stub.
2577
2578 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2579
2580 Radar 4154928
2581 * c-common.h (objc_common_type): New prototype.
19931eea 2582 * stub-objc.c (objc_common_type): New stub.
4abfc532 2583
7bd95dfd 25842010-09-24 Jan Hubicka <jh@suse.cz>
2585
2586 * c-common.c (handle_leaf_attribute): New function.
2587 (struct attribute_spec c_common_att): Add leaf.
2588
5789e05b 25892010-09-22 Joseph Myers <joseph@codesourcery.com>
2590
2591 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2592 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2593 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2594 -include-barrier, -include-directory, -include-directory=,
2595 -include-directory-after, -include-directory-after=,
2596 -include-prefix, -include-prefix=, -include-with-prefix,
2597 -include-with-prefix=, -include-with-prefix-after,
2598 -include-with-prefix-after=, -include-with-prefix-before,
2599 -include-with-prefix-before=, -no-integrated-cpp,
2600 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2601 -output=, -pedantic, -pedantic-errors, -preprocess,
2602 -print-missing-file-dependencies, -trace-includes, -traditional,
2603 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2604 -user-dependencies, -verbose, -write-dependencies,
2605 -write-user-dependencies, no-integrated-cpp, traditional): New.
2606
e6fb54ba 26072010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2608
2609 PR objc/23710
9b60f3b0 2610 * c-common.h (objc_start_method_definition): Return bool instead
2611 of void.
2612 * stub-objc.c (objc_start_method_definition): Return bool instead
2613 of void.
2614
26152010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2616
2617 PR objc/25965
2618 * c-common.h (objc_get_interface_ivars): New declaration.
2619 * stub-objc.c (objc_get_interface_ivars): New stub.
e6fb54ba 2620
e44b0a1f 26212010-09-15 Ian Lance Taylor <iant@google.com>
2622
2623 * c-common.c (parse_optimize_options): Do not capitalize warning
ebd7c4c1 2624 messages. Remove period at end of warning message.
e44b0a1f 2625
85c0a25c 26262010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2627
2628 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2629 (handle_alias_attribute): ... here.
2630 (handle_ifunc_attribute): New.
2631
5ba33bf4 26322010-09-06 Mark Mitchell <mark@codesourcery.com>
2633
2634 * c-common.h (do_warn_double_promotion): Declare.
2635 * c-common.c (do_warn_double_promotion): Define.
2636
c920faa3 26372010-09-05 Mark Mitchell <mark@codesourcery.com>
2638
2639 * c.opt (Wdouble-promotion): New.
2640
9604e070 26412010-09-02 Joseph Myers <joseph@codesourcery.com>
2642
2643 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2644 fvtable-thunks, fxref): Mark no longer supported in help text.
2645
3b0273a1 26462010-09-02 Joseph Myers <joseph@codesourcery.com>
2647
2648 * c.opt (Wimport, fall-virtual, falt-external-templates,
2649 fdefault-inline, fenum-int-equiv, fexternal-templates,
2650 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2651 fname-mangling-version-, fnew-abi, fnonnull-objects,
2652 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2653 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2654 applicable.
2655 (fhandle-exceptions): Mark with Alias and Warn.
2656 * c-opts.c (c_common_handle_option): Don't handle options marked
2657 as ignored.
2658
67089c6b 26592010-09-02 Joseph Myers <joseph@codesourcery.com>
2660
2661 * c.opt (Wcomments, Werror-implicit-function-declaration,
2662 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2663 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2664 aliases.
2665 * c-common.c (option_codes): Use OPT_Wcomment instead of
2666 OPT_Wcomments.
2667 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2668 Don't handle options marked as aliases.
2669
2af087f2 26702010-08-25 Richard Guenther <rguenther@suse.de>
2671
2672 * c-common.c (c_common_get_alias_set): Remove special
2673 handling for pointers.
2674
48148244 26752010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2676
2677 * c-common.c: Use FOR_EACH_VEC_ELT.
2678 * c-gimplify.c: Likewise.
2679 * c-pragma.c: Likewise.
2680
89c69892 26812010-08-16 Joseph Myers <joseph@codesourcery.com>
2682
2683 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2684 RejectDriver.
2685 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2686 RejectDriver.
2687 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2688 instead of OPT_MDX and OPT_MMDX.
2689
e28aa114 26902010-08-16 Joseph Myers <joseph@codesourcery.com>
2691
2692 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2693
99b66d21 26942010-08-12 Joseph Myers <joseph@codesourcery.com>
2695
2696 * c.opt (MD, MMD): Change to MDX and MMDX.
2697 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2698
666f4bf0 26992010-08-11 Joseph Myers <joseph@codesourcery.com>
2700
2701 * c-opts.c (c_common_handle_option): Call handle_generated_option
2702 instead of handle_option.
2703
5ec815f6 27042010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2705
2706 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2707 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2708
d13143cf 27092010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2710
2711 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2712 (pending_redefine_extname): Change type to a VEC.
2713 (add_to_renaming_pragma_list): Update for new type of
2714 pending_redefine_extname.
5ec815f6 2715 (maybe_apply_renaming_pragma): Likewise.
d13143cf 2716
2008c983 27172010-08-04 Arnaud Charlet <charlet@adacore.com>
2718
2719 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2720 visited.
2721 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2722 decide whether a type has already been declared/seen.
2723 Do not go to the original type.
2724 (dump_nested_types): New parameter forward.
2725 Generate forward declaration if needed and mark type as visited.
2726 (print_ada_declaration): Call dump_nested_types if not already done.
2727 Mark types as visited.
2728
9b091a73 27292010-08-03 Joseph Myers <joseph@codesourcery.com>
2730
2731 * c.opt (-print-pch-checksum): Remove option.
2732 * c-opts.c (c_common_handle_option): Don't handle
2733 OPT_print_pch_checksum.
2734
b78351e5 27352010-07-27 Joseph Myers <joseph@codesourcery.com>
2736
2737 * c-common.h (c_common_handle_option): Update prototype and return
2738 value type.
2739 * c-opts.c (c_common_handle_option): Update prototype and return
2740 value type. Update calls to handle_option and
2741 enable_warning_as_error.
2742
34416a90 27432010-07-27 Jakub Jelinek <jakub@redhat.com>
2744
2745 PR c/45079
2746 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2747
fecf9011 27482010-07-27 Joseph Myers <joseph@codesourcery.com>
2749
2750 * c-common.h (c_common_missing_argument): Remove.
2751 * c-opts.c (c_common_missing_argument): Remove.
2752 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2753 idirafter, imacros, include, isysroot, isystem, iquote): Add
2754 MissingArgError.
2755 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2756
e88d34f6 27572010-07-27 Joseph Myers <joseph@codesourcery.com>
2758
2759 * c-common.h (c_common_option_lang_mask,
2760 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2761 New.
2762 (c_common_init_options): Update prototype.
2763 * c-opts.c (c_common_option_lang_mask): New.
2764 (c_common_initialize_diagnostics): Split out of
2765 c_common_init_options.
2766 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2767 New.
2768 (c_common_init_options): Update prototype. Use decoded options in
2769 search for -lang-asm.
2770
1767a056 27712010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2772
2773 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2774 * c-format.c: Likewise.
2775
0b205f4c 27762010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2777
2778 * c-common.h: Include diagnostic-core.h. Error if already
2779 included.
2780 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2781
1c58e3f1 27822010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2783
2784 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2785 Do not include expr.h
2786 (vector_mode_valid_p): Move here.
2787
33cc157c 27882010-06-21 DJ Delorie <dj@redhat.com>
2789
2790 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2791 allow these pragmas anywhere.
2792
27932010-06-14 Jakub Jelinek <jakub@redhat.com>
2794
2795 PR bootstrap/44509
2796 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2797 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2798 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2799 ggc_strdup instead of xstrdup.
2800
28012010-06-10 Jakub Jelinek <jakub@redhat.com>
2802
2803 * c-cppbuiltin.c: Include cpp-id-data.h.
2804 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2805 (lazy_hex_fp_value): New function.
2806 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2807
9b40bfbf 28082010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2809
2810 * c-gimplify.c: Do not include tree-flow.h
2811
202d6e5f 28122010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2813
2814 PR other/44034
2815 * c-common.c: Rename targetm member:
2816 targetm.enum_va_list -> targetm.enum_va_list_p
2817
d3237426 28182010-06-28 Anatoly Sokolov <aesok@post.ru>
2819
2820 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2821
596981c8 28222010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2823
2824 * c-cppbuiltin.c: Do not include except.h.
2825
b9bdfa0b 28262010-06-24 Andi Kleen <ak@linux.intel.com>
2827
19931eea 2828 * c-common.c (warn_for_omitted_condop): New.
2829 * c-common.h (warn_for_omitted_condop): Add prototype.
b9bdfa0b 2830
55ad092d 28312010-06-21 Joseph Myers <joseph@codesourcery.com>
2832
2833 * c.opt (lang-objc): Remove.
2834 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2835
9e7c2572 28362010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2837
2838 * c-opts.c: Include "tm_p.h".
2839
615ef0bb 28402010-06-20 Joseph Myers <joseph@codesourcery.com>
2841
2842 * c-common.c (parse_optimize_options): Update call to
2843 decode_options.
2844
aef48c9a 28452010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2846
2847 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2848 new type of types_used_by_cur_var_decl.
2849
d74003b4 28502010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2851
2852 PR bootstrap/44512
2853 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2854 for C++ standard compliance.
2855
1194d077 28562010-06-16 Jason Merrill <jason@redhat.com>
2857
2858 * c.opt: Add -Wnoexcept.
2859
d473d901 28602010-06-16 Richard Guenther <rguenther@suse.de>
2861
2862 PR c/44555
2863 * c-common.c (c_common_truthvalue_conversion): Remove
2864 premature and wrong optimization concering ADDR_EXPRs.
2865
b62dbfd3 28662010-06-15 Arnaud Charlet <charlet@adacore.com>
2867
2868 * c-ada-spec.c (dump_sloc): Remove column info.
2869 (is_simple_enum): New function.
2870 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2871 enum types when relevant.
2872
200dd99c 28732010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2874
19931eea 2875 * c-common.c (conversion_warning): Warn at expression
200dd99c 2876 location.
2877
abf6a617 28782010-06-10 Joseph Myers <joseph@codesourcery.com>
2879
2880 * c-opts.c (c_common_handle_option): Don't handle
2881 OPT_fshow_column.
2882
ba72912a 28832010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2884
2885 * c-pragma.c (push_alignment): Use typed GC allocation.
2886 (handle_pragma_push_options): Likewise.
2887
2888 * c-common.c (parse_optimize_options): Likewise.
2889
2890 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2891 option.
2892
4aafe913 28932010-06-07 Joseph Myers <joseph@codesourcery.com>
2894
2895 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2896 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2897 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2898 flag_signed_bitfields, warn_strict_null_sentinel,
2899 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2900 flag_gen_declaration, flag_no_gnu_keywords,
2901 flag_implement_inlines, flag_implicit_templates,
2902 flag_implicit_inline_templates, flag_optional_diags,
2903 flag_elide_constructors, flag_default_inline, flag_rtti,
2904 flag_conserve_space, flag_access_control, flag_check_new,
2905 flag_new_for_scope, flag_weak, flag_working_directory,
2906 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2907 flag_enforce_eh_specs, flag_threadsafe_statics,
2908 flag_pretty_templates): Remove.
2909 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2910 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2911 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2912 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2913 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2914 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2915 flag_no_gnu_keywords, flag_implement_inlines,
2916 flag_implicit_templates, flag_implicit_inline_templates,
2917 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2918 flag_rtti, flag_conserve_space, flag_access_control,
2919 flag_check_new, flag_new_for_scope, flag_weak,
2920 flag_working_directory, flag_use_cxa_atexit,
2921 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2922 flag_threadsafe_statics, flag_pretty_templates,
2923 warn_strict_null_sentinel): Remove.
2924 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2925 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2926 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2927 fimplicit-inline-templates, fimplicit-templates,
2928 flax-vector-conversions, fms-extensions, fnil-receivers,
2929 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2930 frtti, fshort-double, fshort-enums, fshort-wchar,
2931 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2932 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2933 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2934 gen-decls, undef): Use Var.
2935 (fdefault-inline, foptional-diags): Document as doing nothing.
2936 * c-opts.c (c_common_handle_option): Remove cases for options now
2937 using Var. Mark ignored options as such.
2938
7bedc3a0 29392010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2940
19931eea 2941 * c-common.c: Moved to here from parent directory.
7bedc3a0 2942 * c-common.def: Likewise.
2943 * c-common.h: Likewise.
2944 * c-cppbuiltin.c: Likewise.
2945 * c-dump.c: Likewise.
2946 * c-format.c: Likewise.
2947 * c-format.h : Likewise.
2948 * c-gimplify.c: Likewise.
2949 * c-lex.c: Likewise.
2950 * c-omp.c: Likewise.
2951 * c.opt: Likewise.
2952 * c-opts.c: Likewise.
2953 * c-pch.c: Likewise.
2954 * c-ppoutput.c: Likewise.
2955 * c-pragma.c: Likewise.
2956 * c-pragma.h: Likewise.
2957 * c-pretty-print.c: Likewise.
2958 * c-pretty-print.h: Likewise.
2959 * c-semantics.c: Likewise.
2960 * stub-objc.c: Likewise.
2961
2962 * c-common.c: Include gt-c-family-c-common.h.
2963 * c-pragma.c: Include gt-c-family-c-pragma.h.
2964\f
711789cc 2965Copyright (C) 2010-2013 Free Software Foundation, Inc.
7bedc3a0 2966
2967Copying and distribution of this file, with or without modification,
2968are permitted in any medium without royalty provided the copyright
2969notice and this notice are preserved.