]> 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
8170608b
TB
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
3f04b1bb
JM
72013-10-23 Jason Merrill <jason@redhat.com>
8
9 * c-format.c (gcc_cxxdiag_char_table): Add %X.
10
acf0174b
JJ
112013-10-11 Jakub Jelinek <jakub@redhat.com>
12
acd15a28
JJ
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
acf0174b
JJ
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
826cacfe
MG
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
2284b034
MG
732013-10-03 Marc Glisse <marc.glisse@inria.fr>
74
75 PR c++/19476
76 * c.opt (fcheck-new): Move to common.opt.
77
b56e9788
MP
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
ce6923c5
MP
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
fb5610fb
IS
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
88b0e79e
JC
1002013-09-13 Jacek Caban <jacek@codeweavers.com>
101
102 * c-target.def: New hook
103
c9b0866a
PC
1042013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
105
106 PR c++/43452
107 * c.opt (Wdelete-incomplete): Add.
108
0af94e6f
JR
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
7c26172c
GDR
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
20059c8b
GDR
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
de5a5fa1
MP
1692013-08-30 Marek Polacek <polacek@redhat.com>
170
171 * c-ubsan.c: New file.
172 * c-ubsan.h: New file.
173
8f0e4d72
GDR
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
00d34d3a
GDR
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
fb22178f
GDR
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
7ecc2600
GDR
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
0691175f
GDR
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
66dfe4c4
GDR
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
ca43e9d5
GDR
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
da6ca2b5
GDR
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
65a372f4
AC
3022013-08-09 Arnaud Charlet <charlet@adacore.com>
303
304 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
305
fd9b0f32
PC
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
e0aec1e9
GDR
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
b066401f
GDR
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
65e5a578
ESR
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
137a1a27
GDR
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
07838b13
GDR
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
433cc7b0
TT
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
688010ba
OB
3772013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
378
379 * c-common.c: Fix typos.
380 * c-common.h: Likewise.
381
2a99e5e6
LL
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
c26302d5
JJ
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
dfeadaa0
PC
3932013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
394
395 PR c++/57869
396 * c.opt: Add Wconditionally-supported.
397
6a2fa4b2
GS
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
ecdbd01a 4032013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
40d3d530
JR
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
bedc293e
MG
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
604b2bfc
GDR
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
dfeadaa0 4222013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
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
2ce86d2e
BI
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.
604b2bfc 438
07a6825b
BI
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
08346abd
JH
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
d60f1706
BI
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.
dfeadaa0 475
36536d79
BI
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
f7716d57
JJ
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
a5e0cd1d
MG
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
f6bc1c4a
HS
5072013-05-07 Han Shen <shenhan@google.com>
508
509 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
510
3f12f6e9
SKS
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
61949153
PC
5152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
516
517 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
518
e93e18e9
PC
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
44d90fe1
PC
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
13f39b2e
PC
5322013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
533
534 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
535
4b84d650
JJ
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
fb037b5d
SB
5422013-04-07 Steven Bosscher <steven@gcc.gnu.org>
543
544 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
545
4e856798
PC
5462013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
547
548 * c-common.c (pointer_int_sum): Remove dead code.
549
4b1baac8
RS
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
0b50e654
JJ
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
48c41403
JJ
5612013-03-04 Jakub Jelinek <jakub@redhat.com>
562
563 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
564
e664c61c
KS
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
a475fd3d 5752013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
576
577 PR target/52555
578 * c-common.c (handle_optimize_attribute): Call
579 save_optabs_if_changed.
580
f6007d99
JJ
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
cf35e2b1
JJ
5892013-02-05 Jakub Jelinek <jakub@redhat.com>
590
591 PR middle-end/56167
592 * c-common.c (handle_error_attribute): Fix condition.
593
32887460
JJ
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
5af057d8
JM
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
cc83c823
JJ
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
a859517f
MP
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
2d7aa578
ESR
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
cc3c4f62
RB
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
77bc5132
JJ
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
5dc99c46
SB
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
a4a0016d
ESR
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
7dbb85a7
JM
6582012-11-09 Jason Merrill <jason@redhat.com>
659
660 * c.opt (Wabi-tag): New.
661
ad7bac31
AK
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
7332899a
MLI
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
34a180a6
MLI
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
3f46d6a5
MLI
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
880661a4
JW
7142012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
715
716 PR c++/54930
717 * c.opt (Wreturn_local_addr): Define new option.
718
4514a96b
JM
7192012-10-25 Jason Merrill <jason@redhat.com>
720
f14edc1a
JM
721 * c.opt (Wvirtual-move-assign): New.
722
4514a96b
JM
723 * c.opt (Winherited-variadic-ctor): New.
724
93100c6b
MG
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
1efcb8c6
JM
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
4a0ae68e
MLI
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
67e4210b
EB
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
65d4f2cd
MLI
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
909881cb
EB
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
3a785c97
JJ
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
5e54f81d
MG
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
f5b02f1e
EB
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
b46dbc6c
AC
8002012-10-10 Arnaud Charlet <charlet@adacore.com>
801
f5b02f1e 802 PR ada/54845
b46dbc6c
AC
803 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
804
5d9de0d0
PC
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
a212e43f
MG
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
b1db7f91
JM
8202012-10-08 Jason Merrill <jason@redhat.com>
821
822 * c-common.c (c_common_reswords): Add thread_local.
823
e28d52cf
DS
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
3b78de56
AC
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
6040bb5f
DC
8422012-09-25 Dehao Chen <dehao@google.com>
843
844 PR middle-end/54645
3b78de56 845 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
846 map when read in the pch.
847
0b07a57e
AC
8482012-09-18 Arnaud Charlet <charlet@adacore.com>
849
850 * c-ada-spec.c: Style fixes.
851
da5182be
TQ
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
0ccb505d
PC
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
c583af79
AC
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
1a4049e7
JJ
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
70b5e7dc
RG
8792012-08-10 Richard Guenther <rguenther@suse.de>
880
881 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
882
f8923f7e
SB
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
e45abe1f
RH
8892012-07-26 Richard Henderson <rth@redhat.com>
890
891 * c-common.c (handle_hot_attribute): Allow labels.
892 (handle_cold_attribute): Likewise.
893
332f1d24
JJ
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
7ee2468b
SB
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
ee7b28eb
SB
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
6bdf3519
SB
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
532aafad
SB
9162012-07-08 Steven Bosscher <steven@gcc.gnu.org>
917
918 * c-common.h: Include tree.h.
919
8d0d1915
JM
9202012-07-02 Jason Merrill <jason@redhat.com>
921
922 PR c++/53524
923 * c-common.c (get_priority): Call default_conversion.
924
fbc873ad
UB
9252012-07-01 Uros Bizjak <ubizjak@gmail.com>
926
927 * c-pch.c (c_common_write_pch): Remove unused variables.
928
d4a10d0a
SB
9292012-06-29 Steven Bosscher <steven@gcc.gnu.org>
930
931 * cppspec.c: Moved from gcc/ to here.
932
6f3a2e23
KT
9332012-06-27 Kai Tietz <ktietz@redhat.com>
934
935 PR preprocessor/37215
936 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
937
8ca92d04
SB
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
70f42967
SB
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
a8781821
SB
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
9e1a8dd1
RR
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
6f07a821
SB
9762012-06-06 Steven Bosscher <steven@gcc.gnu.org>
977
978 * c.opt (fconserve-space): Turn into a no-op.
979
9faeb493 9802012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
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
a4b7d13c
SB
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
c265f413
SA
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
be7a421e
SB
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
65de6659
JM
10022012-05-29 Joseph Myers <joseph@codesourcery.com>
1003
1004 * c-common.c: Fix typo.
1005
ca5f4331
MM
10062012-05-29 Michael Matz <matz@suse.de>
1007
1008 * c-common.h (c_expand_decl): Remove prototype.
1009
4f7f7aca
MLI
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
4a792f9b
PC
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
650dc14a
DS
10222012-05-22 Dodji Seketeli <dodji@redhat.com>
1023
1024 PR c++/53322
1025 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
1026
9b095bf1
MLI
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
0b2c4be5
DS
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
a1bde5af
PC
10402012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1041
d02924ef 1042 PR c++/11856
a1bde5af
PC
1043 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
1044
d1ede5f4
BS
10452012-05-14 Bernd Schmidt <bernds@codesourcery.com>
1046
a1bde5af 1047 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 1048
f2bc201f
MLI
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
95744782
MLI
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
7d5a5747
MLI
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
5a3c9cf2
PC
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
3ac8781c
RG
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
1e537948
MLI
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
f2c4a785
MLI
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
50f305ca
MLI
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
0c3641b0
MLI
10992012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1100
1101 * c.opt (fpermissive): Add Var(flag_permissive).
1102
7edaa4d2
MG
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
b9c8da34
DS
11092012-04-30 Dodji Seketeli <dodji@redhat.com>
1110
1111 Add -Wvarargs option
1112 * c.opt (Wvarargs): Define new option.
1113
e6c69da0
MLI
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
90137d8f
MLI
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
9faeb493 11272012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
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
c1771a20
MLI
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
04b391c1
JM
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
ac868f29
EB
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
fd4116f4
MLI
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
573ac65e
WB
11682012-03-23 William Bader <williambader@hotmail.com>
1169
1170 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1171
552b8185
JM
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
04398fa8
PC
11832012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1184
1185 PR c++/14710
1186 * c.opt ([Wuseless-cast]): Add.
1187
d2a12ae7
RG
11882012-03-16 Richard Guenther <rguenther@suse.de>
1189
1190 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1191
a12bf402
MLI
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
5c30094f
RO
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
21fa2faf
RG
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
e3793c6f
JJ
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
93286335
PC
12162012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1217
1218 PR c/52118
1219 * c.opt ([Wunused-local-typedefs]): Fix description.
1220
7a421706
MS
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
ba9b1f11
RG
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
465406be
PC
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
aee15221
RG
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
5720c0dc
RG
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
73ac190a
PC
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
48b0b196
JM
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
d58d6eb5
JM
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
b3908fcc
JW
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
fea3ca91
IS
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
62bad7cd
AM
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
c466c4ff
AM
12992011-11-24 Andrew MacLeod <amacleod@redhat.com>
1300
1301 PR c/51256
9faeb493 1302 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1303 conditions
9faeb493
UB
1304 (resolve_overloaded_atomic_exchange,
1305 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1306 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1307 error_mark_node for error conditions.
9faeb493 1308
a5952633
RG
13092011-11-08 Richard Guenther <rguenther@suse.de>
1310
1311 PR middle-end/51010
1312 c-family/
1313
0a35513e
AH
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
6d87092d
JM
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
8e7860a1
JM
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
d19fa6b5
JM
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
86951993
AM
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.
9faeb493 1359 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
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.
9faeb493 1366 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1367 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1368 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
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
cf9e9959
EB
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
25339f10
JM
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
89401152
PC
13942011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1395
1396 PR c++/44277
1397 * c.opt: Add Wzero-as-null-pointer-constant.
1398
97e3ad20
JM
13992011-10-31 Jason Merrill <jason@redhat.com>
1400
15694fdd
JM
1401 * c.opt (-fdeduce-init-list): Off by default.
1402
97e3ad20
JM
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
fb9120e3
RAV
14092011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1410
1411 PR c++/30066
1412 * c.opt (fvisibility-inlines-hidden): Description change.
1413
3ce4f9e4
ESR
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
5f53c243
PC
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
263734e1
PC
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
d2e312d7
PC
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
d17687f6
DS
14492011-10-18 Dodji Seketeli <dodji@redhat.com>
1450
1451 PR bootstrap/50760
1452 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1453 !NO_IMPLICIT_EXTERN_C.
d17687f6 1454
fc8396e9
PC
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
847e697a
TT
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
92582b75
TT
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
46427374
TT
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
fc8396e9
PC
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
e79983f4
MM
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
6637388f
TG
15222011-10-11 Tristan Gingold <gingold@adacore.com>
1523
1524 * c.opt: (fallow-parameterless-variadic-functions): New.
1525
3797cb21
DS
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.
9faeb493
UB
1531 (record_locally_defined_typedef, maybe_record_typedef_use)
1532 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1533 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1534 (maybe_record_typedef_use)
1535 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1536 * c.opt: Declare new -Wunused-local-typedefs flag.
1537
693ddb1b
EB
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
830c740f
RG
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
892a371f
DS
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
0e3fdb48
RB
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>
e3dfef44
GC
1560
1561 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1562 defined in cpp_init_builtins and c_cpp_builtins.
1563
d4a83c10
JM
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
bbceee64
JM
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
0e3a99ae
AS
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
20906c66
JJ
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
770e5a2e
DS
15992011-07-25 Dodji Seketeli <dodji@redhat.com>
1600
1601 * c-common.h (set_underlying_type): Remove parm name from
1602 declaration.
1603
1baae426
RG
16042011-07-25 Romain Geissler <romain.geissler@gmail.com>
1605
1606 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 1607
fcb21722
JM
16082011-07-22 Jason Merrill <jason@redhat.com>
1609
76f86d00
JM
1610 PR c++/49793
1611 * c.opt (Wnarrowing): New.
1612
3a636414
JM
1613 PR c++/30112
1614 * c-common.h: Declare c_linkage_bindings.
1615 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1616
fcb21722
JM
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
02614448
ILT
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
34429675
JM
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
5d49b6a7
RG
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
e84a58ff
EB
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
329af3c7
JM
16512011-07-08 Jason Merrill <jason@redhat.com>
1652
4063e61b
JM
1653 PR c++/45437
1654 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1655
329af3c7
JM
1656 PR c++/49673
1657 * c-common.c (c_apply_type_quals_to_decl): Don't check
1658 TYPE_NEEDS_CONSTRUCTING.
1659
1a072294
RG
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
fce5dddd
RG
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
45d439ac
JJ
16702011-06-27 Jakub Jelinek <jakub@redhat.com>
1671
56300785
JJ
1672 * c-common.h (c_tree_chain_next): New static inline function.
1673
45d439ac
JJ
1674 * c-common.c (check_builtin_function_arguments): Handle
1675 BUILT_IN_ASSUME_ALIGNED.
1676
e0a8ecf2
AM
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.
dfb43cd5
PV
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
677f3fa8
JM
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
d7fc8c14
RG
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
10e48e39
RO
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
6976ae51
JM
17182011-06-07 Jason Merrill <jason@redhat.com>
1719
3ff60975
JM
1720 * c-common.c (max_tinst_depth): Lower default to 900.
1721
6976ae51
JM
1722 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1723
009db074
RG
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
b4592b92
DS
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
9faeb493 1733 type when using pointer comparison to compare types.
b4592b92 1734
014ab419
JW
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
4f60111f
NF
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
4cc4f2f4
JJ
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
38e01f9e
NF
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
92e948a8
NF
17632011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1764
1765 * c-common.c (warning_candidate_p): Check for BLOCKs.
1766
a2fc3e63
NF
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
0957c029
JJ
17722011-05-25 Jakub Jelinek <jakub@redhat.com>
1773
1774 * c-common.c (def_fn_type): Remove extra va_end.
1775
828fb3ba
JM
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
dde05067
NF
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
3c0d13bf
PC
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
8242dd04
NF
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
3d528853
NF
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
a04a722b
JM
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
e19a18d4
NF
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
c62c040f
RG
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
c12ff9d8
JM
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
304dfbe3
RG
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
3c0d13bf
PC
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
04695783
JM
18532011-04-20 Jim Meyering <meyering@redhat.com>
1854
1855 * c-format.c (init_dollar_format_checking): Remove useless
1856 if-before-free.
1857
0dc33c3c
NP
18582011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1859
1860 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 1861 (objc_detect_field_duplicates): New.
0dc33c3c 1862 * stub-objc.c: Likewise.
3c0d13bf 1863
c59633d9
NP
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.
3c0d13bf 1869
32dabdaf
NP
18702011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1871
1872 * stub-objc.c (objc_declare_class): Updated argument name.
1873
81f653d6
NF
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
eb345401
NP
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.
9faeb493 1883
a358e188
MJ
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
e6313a78
RG
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
dcf0c47e
NF
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
1ee44b26
JM
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
acce4e77
JM
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
e2eefb55
JJ
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
ba78087b
KT
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
0edf1bb2
JL
19312011-03-25 Jeff Law <law@redhat.com>
1932
1933 * c-family/c-common.c (def_fn_type): Add missing va_end.
1934
c7dc8804
JM
19352011-03-25 Jason Merrill <jason@redhat.com>
1936
1937 * c.opt: Add -std=c++03.
1938
d1d879b1
EB
19392011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1940
1941 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1942
62d784f7
KT
19432011-03-17 Kai Tietz
1944
1945 PR target/12171
5050afdf
KT
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
62d784f7
KT
1952 * c-common.c (c_common_attribute_table):
1953 Add new element.
1954 (c_common_format_attribute_table): Likewise.
1955
82d37118
JM
19562011-03-18 Jason Merrill <jason@redhat.com>
1957
49a000c3
JM
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
82d37118
JM
1963 PR c++/35315
1964 * c-common.c (handle_transparent_union_attribute): Don't
1965 make a duplicate type in C++.
1966
17bc631c
JM
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
1b9b91a6
JM
19742011-03-11 Jason Merrill <jason@redhat.com>
1975
f231b5ff
JM
1976 * c-common.c (attribute_takes_identifier_p): Add missing const.
1977
1b9b91a6
JM
1978 PR c++/46803
1979 * c-common.c (attribute_takes_identifier_p): Assume that an
1980 unknown attribute takes an identifier.
1981
a19e4d44
NF
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
982d62f6
JJ
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
0a256240
NP
19932011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1994
1995 * c.opt (fobjc-abi-version=) New.
1996 (fobjc-nilcheck): New.
1997
ba9e6dd5
NF
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
7273813a
JJ
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
908ef79b
AC
20122011-01-26 Arnaud Charlet <charlet@adacore.com>
2013
2014 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
2015
237e9384
JJ
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
47ea1edf
DK
20222011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
2023
d4dba752 2024 PR c++/43601
47ea1edf
DK
2025 * c.opt (-fkeep-inline-dllexport): New switch.
2026
2aa9c6ae
RG
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
7bd11157
TT
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
0e66e494 20392010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 2040
b4f588c4
NP
2041 PR objc/47075
2042 * c-objc.h (objc_finish_message_expr): Added argument to
2043 prototype.
2044
f4da8dce
NF
20452010-12-22 Nathan Froyd <froydnj@codesourcery.com>
2046
2047 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
2048 Use prototype_p.
2049
46270f14
NP
20502010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
2051
2052 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 2053 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 2054
4816c593
NF
20552010-12-10 Nathan Froyd <froydnj@codesourcery.com>
2056
2057 * c-common.h (readonly_error): Declare.
2058 * c-common.c (readonly_error): Define.
2059
7a6daeb0
NF
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
892f6119
RG
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
6c39e757
NP
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.
9faeb493 2080
7c475d11
JM
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
71f3e391
JM
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
d5fabb58
JM
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
299404a1
JM
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
c98cd5bf
JM
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
a9546771
NP
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
24a57808
JM
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
a9aa2c3a
NF
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
5386338c
JM
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
69ccdddb
JM
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
6b192a09
NP
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.
9faeb493 2157
fb52b50a
NF
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
b37421c6
JM
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
07078664
JJ
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
c6a13190
ILT
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
925e8657
NP
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
bb0a9581
NF
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
c5fa0890
JM
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
a4d8c676
JM
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
f954bd2c
JM
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
d8a07487
JM
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
d5478783
JM
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
91ebb981
IS
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 ().
9faeb493 2237 (check_format_string): Pass expected type, use
91ebb981
IS
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
bede2adc
NP
22522010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2253
9faeb493 2254 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2255 * c-common.h (objc_build_class_component_ref): New.
2256 * stub-objc.c (objc_build_class_component_ref): New.
2257
9a179d01
NP
22582010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2259
2260 * c.opt (Wproperty-assign-default): New option.
2261
22d8d616
NP
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
2debdb4f
NP
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
ec52b111
JM
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
46a88c12
NP
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.
9faeb493 2295
1e4bf85b
AC
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
81f0bab2
JM
23042010-10-27 Jason Merrill <jason@redhat.com>
2305
2b08f2c5
JM
2306 * c-common.c (c_common_reswords): Add __is_literal_type.
2307 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2308
81f0bab2
JM
2309 * c-common.c (check_case_value): Remove special C++ code.
2310
200290f2
NP
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.
9faeb493 2324
f614132b
NP
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
b8a18805
NP
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
30cd1c5d
AS
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
249a82c4
NP
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
977e30bc
NP
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.
9faeb493 2359
da57d1b9
NP
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.
9faeb493 2370
0069111f
MM
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
e426b47b
NP
23792010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2380
2381 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2382
e426b47b
NP
2383 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2384
9faeb493 2385 Radar 4330422
e426b47b
NP
2386 * c-common.h (objc_non_volatilized_type): New declaration
2387 * stub-objc.c (objc_non_volatilized_type): New stub.
2388
90fbfdc3
NP
23892010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2390
e426b47b 2391 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2392
2393 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2394
9faeb493 2395 Radar 4133425
90fbfdc3 2396 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2397 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2398
c37d8c30
IS
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.
0069111f 2405 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2406 visibility enum.
2407
1b1562a5
MM
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
668ea4b1
IS
24152010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2416
1b1562a5 2417 merge from FSF apple 'trunk' branch.
668ea4b1 2418 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2419
668ea4b1
IS
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.
1b1562a5 2431
a1178b30
IS
24322010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2433
1b1562a5 2434 merge from FSF apple 'trunk' branch.
a1178b30
IS
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 ().
1b1562a5 2441 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2442
a75bfaa6
JM
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
f05b9d93
NP
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
1ebe4b4f
JM
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
d4d24ba4
JM
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
478a1c5b
ILT
24712010-10-03 Ian Lance Taylor <iant@google.com>
2472
2473 * c.opt (-fplan9-extensions): New option.
2474
82a1c2fe
FXC
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
92902b1b
IS
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.
9faeb493 2495
46625112
JM
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
49b91f05
NP
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
13ed556f 25112010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2512
9faeb493
UB
2513 Merge from 'apple/trunk' branch on FSF servers.
2514
a6341d57
NP
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
f0036cca
JM
25212010-09-29 Joseph Myers <joseph@codesourcery.com>
2522
2523 * c.opt: Don't use VarExists.
2524
e3339d0f
JM
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
1973201f
NP
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
f7e71da5
IS
25442010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2545
9faeb493 2546 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
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
c165dca7
IS
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
7458026b
ILT
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
b581b85b
NP
25682010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2569
9faeb493 2570 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
2571
2572 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2573
9faeb493 2574 Radar 4229905
b581b85b
NP
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.
9faeb493 2582 * stub-objc.c (objc_common_type): New stub.
b581b85b 2583
46a4da10
JH
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
e200444e
JM
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
29a80ea6
NP
26072010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2608
2609 PR objc/23710
ac1fc2fc
NP
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.
29a80ea6 2620
de621752
ILT
26212010-09-15 Ian Lance Taylor <iant@google.com>
2622
2623 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 2624 messages. Remove period at end of warning message.
de621752 2625
ba885ec5
NS
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
c5ee1358
MM
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
0a0b3574
MM
26372010-09-05 Mark Mitchell <mark@codesourcery.com>
2638
2639 * c.opt (Wdouble-promotion): New.
2640
d1779886
JM
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
2d2bd949
JM
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
5de8299c
JM
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
0ceb0201
RG
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
ac47786e
NF
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
c878765b
JM
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
603349bf
JM
26902010-08-16 Joseph Myers <joseph@codesourcery.com>
2691
2692 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2693
644fa7ac
JM
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
481e1176
JM
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
ac8dc9f7
NF
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
4f8c876d
NF
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.
ac8dc9f7 2715 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 2716
3b0c690e
AC
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
1890bccc
JM
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
5f20c657
JM
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
f551f80c
JJ
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
61ff2bdc
JM
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
7a9bf9a4
JM
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
910ad8de
NF
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
718f9c0f
MLI
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
4d451982
MLI
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
119fe915
SB
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
6662d794
MLI
28082010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2809
2810 * c-gimplify.c: Do not include tree-flow.h
2811
38f8b050
JR
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
9589f23e
AS
28182010-06-28 Anatoly Sokolov <aesok@post.ru>
2819
2820 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2821
3b06d379
SB
28222010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2823
2824 * c-cppbuiltin.c: Do not include except.h.
2825
d166d4c3
AK
28262010-06-24 Andi Kleen <ak@linux.intel.com>
2827
9faeb493
UB
2828 * c-common.c (warn_for_omitted_condop): New.
2829 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 2830
70cb8be6
JM
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
a4c97feb
JR
28362010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2837
2838 * c-opts.c: Include "tm_p.h".
2839
6e2f1956
JM
28402010-06-20 Joseph Myers <joseph@codesourcery.com>
2841
2842 * c-common.c (parse_optimize_options): Update call to
2843 decode_options.
2844
bc87224e
NF
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
b49cf425
JR
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
59f9c2ed
JM
28562010-06-16 Jason Merrill <jason@redhat.com>
2857
2858 * c.opt: Add -Wnoexcept.
2859
33766b66
RG
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
eff7e30c
AC
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
6312e84d
MLI
28732010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2874
9faeb493 2875 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
2876 location.
2877
1cb42611
JM
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
a9429e29
LB
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
5498f011
JM
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
39dabefd
SB
29392010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2940
9faeb493 2941 * c-common.c: Moved to here from parent directory.
39dabefd
SB
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
d1e082c2 2965Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
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.