]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
re PR target/57848 (internal compiler error on builtin and '#pragma GCC target()...
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
c9b0866a
PC
12013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
2
3 PR c++/43452
4 * c.opt (Wdelete-incomplete): Add.
5
0af94e6f
JR
62013-09-08 Joern Rennecke <joern.rennecke@embecosm.com>
7
8 * c-common.c (same_scalar_type_ignoring_signedness): Delete.
9 (vector_types_compatible_elements_p): New function.
10 * c-common.h: (same_scalar_type_ignoring_signedness): Delete
11 declaration.
12 (vector_types_compatible_elements_p): Declare.
13
7c26172c
GDR
142013-09-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
15
16 * c-pretty-print.h (c_pretty_printer::simple_type_specifier): Now
17 a virtual member function.
18 (pp_simple_type_specifier): Remove.
19 (pp_c_type_specifier): Likewise.
20 * c-pretty-print.c (c_pretty_printer::simple_type_specifier):
21 Rename from pp_c_type_specifier. Adjust.
22 (c_pretty_printer::c_pretty_printer): Do not assign to
23 simple_type_specifier.
24
20059c8b
GDR
252013-09-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
26
27 * c-pretty-print.h (c_pretty_printer::type_id): Now a virtual
28 member function.
29 (c_pretty_printer::storage_class_specifier): Likewise.
30 (c_pretty_printer::initializer): Likewise.
31 (pp_declaration): Remove.
32 (pp_declaration_specifiers): Likewise.
33 (pp_abstract_declarator): Likewise.
34 (pp_declarator): Likewise.
35 (pp_type_id): Likewise.
36 (pp_statement): Likewise.
37 (pp_constant): Likewise.
38 (pp_id_expression): Likewise.
39 (pp_primary_expression): Likewise.
40 (pp_unary_expression): Likewise.
41 (pp_multiplicative_expression): Likewise.
42 (pp_conditional_expression): Likewise.
43 (pp_assignment_expression): Likewise.
44 (pp_expression): Likewise.
45 (pp_c_type_id): Likewise.
46 (pp_c_storage_class_specifier): Likewise.
47 * c-pretty-print.c (pp_c_type_cast): Tidy.
48 (pp_c_pointer): Likewise.
49 (pp_c_type_specifier): Likewise.
50 (pp_c_parameter_type_list): Likewise.
51 (pp_c_function_definition): Likewise.
52 (pp_c_init_declarator): Likewise.
53 (pp_c_initializer_list): Likewise.
54 (pp_c_constructor_elts): Likewise.
55 (c_pretty_printer::direct_abstract_declarator): Likewise.
56 (c_pretty_printer::declaration_specifiers): Likewise.
57 (c_pretty_printer::primary_expression): Likewise.
58 (c_pretty_printer::postfix_expression): Likewise.
59 (c_pretty_printer::type_id): Rename from pp_c_type_id.
60 (c_pretty_printer::storage_class_specifier): Rename from
61 pp_c_storage_class_specifier.
62 (c_pretty_printer::initializer): Rename from pp_c_initializer.
63 (c_pretty_printer::c_pretty_printer): Do not assign to type_id,
64 storage_class_specifier, initializer, offset_list, flags.
65
de5a5fa1
MP
662013-08-30 Marek Polacek <polacek@redhat.com>
67
68 * c-ubsan.c: New file.
69 * c-ubsan.h: New file.
70
8f0e4d72
GDR
712013-08-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
72
73 * c-pretty-print.h (c_pretty_printer::declaration): Now a virtual
74 member function.
75 (c_pretty_printer::declaration_specifiers): Likewise.
76 (c_pretty_printer::declarator): Likewise.
77 (c_pretty_printer::abstract_declarator): Likewise.
78 (c_pretty_printer::direct_abstract_declarator): Likewise.
79 (c_pretty_printer::direct_declarator): Likewise.
80 (c_pretty_printer::function_specifier): Likewise.
81 (pp_declaration): Adjust.
82 (pp_declaration_specifiers): Likewise.
83 (pp_abstract_declarator): Likewise.
84 (pp_direct_declarator): Likewise.
85 (pp_function_specifier): Likewise.
86 (pp_direct_abstract_declarator): Remove as unused.
87 (pp_c_declaration): Remove.
88 (pp_c_declaration_specifiers): Likewise.
89 (pp_c_declarator): Likewise.
90 (pp_c_direct_declarator): Likewise.
91 (pp_c_function_specifier): Likewise.
92 (pp_c_direct_abstract_declarator): Likewise.
93 * c-pretty-print.c (c_pretty_printer::abstract_declarator): Rename
94 from pp_c_abstract_declarator. Adjust.
95 (c_pretty_printer::direct_abstract_declarator): Rename from
96 pp_c_direct_abstract_declarator. Adjust.
97 (c_pretty_printer::function_specifier): Rename from
98 pp_c_function_specifier. Adjust.
99 (c_pretty_printer::declaration_specifiers): Rename from
100 pp_c_declaration_specifiers. Adjust.
101 (c_pretty_printer::direct_declarator): Rename from
102 pp_c_direct_declarator. Adjust.
103 (c_pretty_printer::declarator): Rename from pp_c_declarator. Adjust.
104 (c_pretty_printer::declaration): Rename from pp_c_declaration. Adjust.
105 (c_pretty_printer::c_pretty_printer): Do not assign to
106 declaration, declaration_specifiers, declarator,
107 direct_declarator, direct_abstract_declarator, function_specifier.
108
00d34d3a
GDR
1092013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
110
111 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
112 virtual member function.
113 (c_pretty_printer::multiplicative_expression): Likewise.
114 (c_pretty_printer::conditional_expression): Likewise.
115 (c_pretty_printer::assignment_expression): Likewise.
116 (c_pretty_printer::expression): Likewise.
117 (pp_unary_expression): Adjust.
118 (pp_multiplicative_expression): Likewise.
119 (pp_assignment_expression): Likewise.
120 (pp_conditional_expression): Likewise.
121 (pp_expression): Likewise.
122 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
123 from pp_c_unary_expression. Adjust.
124 (c_pretty_printer::multiplicative_expression): Rename from
125 pp_c_multiplicative_expression. Adjust.
126 (c_pretty_printer::conditional_expression): Rename from
127 pp_c_conditional_expression. Adjust.
128 (c_pretty_printer::assignment_expression): Rename from
129 pp_c_assignment_expression. Adjust.
130 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
131 (c_pretty_printer::c_pretty_printer): Do not assign to
132 unary_expression, multiplicative_expression,
133 conditional_expression, expression.
134
fb22178f
GDR
1352013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
136
137 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
138 virtual member function.
139 (pp_postfix_expression): Adjust.
140 (pp_c_postfix_expression): Remove.
141 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
142 from pp_c_postfix_expression. Adjust.
143 (c_pretty_printer::c_pretty_printer): Do not assign to
144 postfix_expression.
145
7ecc2600
GDR
1462013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
147
148 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
149 virtua member function.
150 (pp_primary_expression): Adjust.
151 (pp_c_primary_expression): Remove.
152 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
153 from pp_c_primary_expression. Adjust.
154 (pp_c_initializer_list): Use pp_primary_expression.
155 (c_pretty_printer::c_pretty_printer): Do not assign to
156 primary_expression.
157
0691175f
GDR
1582013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
159
160 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
161 * c-pretty-print.c (M_): Remove.
162 (c_pretty_printer::translate_string): Define.
163 (pp_c_type_specifier): Use it.
164 (pp_c_primary_expression): Likewise.
165 (pp_c_expression): Likewise.
166
66dfe4c4
GDR
1672013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
168
169 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
170 virtual function.
171 (pp_c_id_expression): Remove.
172 (pp_id_expression): Adjust.
173 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
174 pp_c_id_expression. Adjust.
175 (pp_c_postfix_expression): Use pp_id_expression.
176 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
177
ca43e9d5
GDR
1782013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
179
180 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
181 member function.
182 (pp_constant): Adjust.
183 (pp_c_constant): Remove.
184 * c-pretty-print.c (c_pretty_printer::constant): Rename from
185 pp_c_constant. Adjust.
186 (pp_c_constant)
187 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
188 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
189
da6ca2b5
GDR
1902013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
191
192 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
193 (c_pretty_printer::c_pretty_printer): Declare.
194 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
195 c_pretty_printer_init. Adjust.
196 (print_c_tree): Do not call c_pretty_printer_init.
197 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
198
65a372f4
AC
1992013-08-09 Arnaud Charlet <charlet@adacore.com>
200
201 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
202
fd9b0f32
PC
2032013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
204
205 PR c++/58080
206 * c-common.c (pointer_int_sum): Add bool parameter.
207 * c-common.h (pointer_int_sum): Adjust declaration.
208
e0aec1e9
GDR
2092013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
210
211 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
212 c_pretty_printer variable.
213
b066401f
GDR
2142013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
215
216 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
217 (pp_base): Remove.
218 (pp_c_base): Likewise. Adjust users.
219 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
220 (pp_c_whitespace): Do not call pp_base.
221 (pp_c_left_paren): Likewise.
222 (pp_c_right_paren): Likewise.
223 (pp_c_left_brace): Likewise.
224 (pp_c_right_brace): Likewise.
225 (pp_c_left_bracket): Likewise.
226 (pp_c_right_bracket): Likewise.
227 (pp_c_dot): Likewise.
228 (pp_c_ampersand): Likewise.
229 (pp_c_star): Likewise.
230 (pp_c_arrow): Likewise.
231 (pp_c_semicolon): Likewise.
232 (pp_c_complement): Likewise.
233 (pp_c_exclamation): Likewise.
234 (pp_c_direct_declarator): Likewise.
235 (pp_c_ws_string): Likewise.
236 (pp_c_identifier): Likewise.
237 (pp_c_statement): Likewise.
238 (print_c_tree): Likewise.
239
65e5a578
ESR
2402013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
241
242 PR c++/58072
243 * c-common.c (c_parse_error): Catch user-defined literal tokens and
244 provide useful error strings.
245
137a1a27
GDR
2462013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
247
248 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
249 printer functions instead of pp_string or operators and punctuators.
250 (dump_generic_ada_node): Likewise.
251 * c-pretty-print.c (pp_c_type_specifier): Likewise.
252 (pp_c_relational_expression): Likewise.
253 (pp_c_logical_or_expression): Likewise.
254
07838b13
GDR
2552013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
256
257 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
258 functions instead of pp_character.
259 (pp_ada_tree_identifier): Likewise.
260 (dump_ada_double_name): Likewise.
261 (dump_ada_function_declaration): Likewise.
262 (dump_ada_array_domains): Likewise.
263 (dump_template_types): Likewise.
264 (dump_generic_ada_node): Likewise.
265 (print_ada_declaration): Likewise.
266 (print_ada_struct_decl): Likewise.
267 * c-pretty-print.c (pp_c_integer_constant): Likewise.
268
433cc7b0
TT
2692013-07-23 Tom Tromey <tromey@redhat.com>
270
271 * c-common.h (enum rid) <RID_GENERIC>: New constant.
272 * c-common.c (c_common_reswords): Add _Generic.
273
688010ba
OB
2742013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
275
276 * c-common.c: Fix typos.
277 * c-common.h: Likewise.
278
2a99e5e6
LL
2792013-07-13 Lubos Lunak <l.lunak@suse.cz>
280
281 PR c++/55203
282 * c-common.c (c_common_attribute_table): Add warn_unused.
283 (handle_warn_unused_attribute): New.
284
c26302d5
JJ
2852013-07-10 Jakub Jelinek <jakub@redhat.com>
286
287 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
288 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
289
dfeadaa0
PC
2902013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
291
292 PR c++/57869
293 * c.opt: Add Wconditionally-supported.
294
6a2fa4b2
GS
2952013-07-08 Graham Stott <graham.stott@btinternet.com>
296
297 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
298 unused variables l_length and l_node.
299
40d3d530
JR
3002013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
301
302 PR c/57821
303 * c-common.c (complete_array_type): Delay folding first index
304 like other indices. When folding, check for index overflow.
305
bedc293e
MG
3062013-06-27 Marc Glisse <marc.glisse@inria.fr>
307
308 PR c++/57509
309 * c-common.h (c_build_vec_perm_expr): New complain argument.
310 * c-common.c (c_build_vec_perm_expr): Likewise.
311 Use save_expr also in C++.
312
604b2bfc
GDR
3132013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
314
315 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
316 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
317 * c-opts.c (c_common_post_options): Likewise.
318
dfeadaa0 3192013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
320
321 * array-notation-common.c (length_mismatch_in_expr): Changed the
322 parameter type's from a dynamic array to a vec_tree. Also removed
323 the size parameters.
324 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
325 the change above.
326
2ce86d2e
BI
3272013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
328
329 * c-common.h (struct cilkplus_an_parts): New structure.
330 (struct cilkplus_an_loop_parts): Likewise.
331 (cilkplus_extract_an_triplets): New prototype.
332 (fix_sec_implicit_args): Likewise.
333 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
334 (fix_sec_implicit_args): Likewise.
604b2bfc 335
07a6825b
BI
3362013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
337
338 * array-notation-common.c (find_inv_trees): Removed an unwanted
339 typecasting.
340 * c-common.h (struct inv_list::additional_tcodes): Changed type from
341 enum rid to enum tree_code.
342
08346abd
JH
3432013-06-11 Jan Hubicka <jh@suse.cz>
344
345 * c-common.c (handle_alias_ifunc_attribute): Do not set
346 DECL_EXTERNAL for weakref variables.
347 * c-pragma.c (handle_pragma_weak): Make sure aliases
348 are not declared as external.
349
d60f1706
BI
3502013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
351
352 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
353 function from c/c-array-notation.c.
354 (is_cilkplus_reduce_builtin): Likewise.
355 (find_rank): Likewise.
356 (extract_array_notation_exprs): Likewise.
357 (replace_array_notations): Likewise.
358 (find_inv_trees): Likewise.
359 (replace_inv_trees): Likewise.
360 (contains_array_notation_expr): Likewise.
361 (find_correct_array_notation_type): Likewise.
362 * c-common.h (struct inv_list): Moved this struct from the file
363 c/c-array-notation.c and added a new field called additional tcodes.
364 (length_mismatch_in_expr_p): New prototype.
365 (is_cilkplus_reduce_builtin): Likewise.
366 (find_rank): Likewise.
367 (extract_array_notation_exprs): Likewise.
368 (replace_array_notation): Likewise.
369 (find_inv_trees): Likewise.
370 (replace_inv_trees): Likewise.
371 (find_correct_array_notation_type): Likewise.
dfeadaa0 372
36536d79
BI
3732013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
374
375 * c-common.c (c_define_builtins): When cilkplus is enabled, the
376 function array_notation_init_builtins is called.
377 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
378 * c-common.def (ARRAY_NOTATION_REF): New tree.
379 * c-common.h (build_array_notation_expr): New function declaration.
380 (build_array_notation_ref): Likewise.
381 (extract_sec_implicit_index_arg): New extern declaration.
382 (is_sec_implicit_index_fn): Likewise.
383 (ARRAY_NOTATION_CHECK): New define.
384 (ARRAY_NOTATION_ARRAY): Likewise.
385 (ARRAY_NOTATION_START): Likewise.
386 (ARRAY_NOTATION_LENGTH): Likewise.
387 (ARRAY_NOTATION_STRIDE): Likewise.
388 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
389 ARRAY_NOTATION_REF.
390 (pp_c_expression): Likewise.
391 * c.opt (flag_enable_cilkplus): New flag.
392 * array-notation-common.c: New file.
393
f7716d57
JJ
3942013-05-14 Jakub Jelinek <jakub@redhat.com>
395
396 PR c++/57274
397 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
398
a5e0cd1d
MG
3992013-05-10 Marc Glisse <marc.glisse@inria.fr>
400
401 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
402 vectors.
403
f6bc1c4a
HS
4042013-05-07 Han Shen <shenhan@google.com>
405
406 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
407
3f12f6e9
SKS
4082013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
409
410 * c-common.c (check_user_alignment): Emit error for negative values.
411
61949153
PC
4122013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
413
414 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
415
e93e18e9
PC
4162013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
417
418 * c-cppbuiltin.c (c_cpp_builtins): Do not define
419 __GXX_EXPERIMENTAL_CXX1Y__.
420
44d90fe1
PC
4212013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
422 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
423
424 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
425 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
426 to simply use OPT_Wpointer_arith.
427 (c_sizeof_or_alignof_type): Likewise.
428
13f39b2e
PC
4292013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
430
431 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
432
4b84d650
JJ
4332013-04-12 Jakub Jelinek <jakub@redhat.com>
434
435 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
436 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
437 specifiers.
438
fb037b5d
SB
4392013-04-07 Steven Bosscher <steven@gcc.gnu.org>
440
441 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
442
4e856798
PC
4432013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
444
445 * c-common.c (pointer_int_sum): Remove dead code.
446
4b1baac8
RS
4472013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
448
449 PR middle-end/56524
450 * c-common.c (handle_optimize_attribute): Don't call
451 save_optabs_if_changed.
452
0b50e654
JJ
4532013-03-05 Jakub Jelinek <jakub@redhat.com>
454
455 PR middle-end/56461
456 * c-pch.c (pch_init): Free target_validity at the end.
457
48c41403
JJ
4582013-03-04 Jakub Jelinek <jakub@redhat.com>
459
460 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
461
e664c61c
KS
4622013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
463 Jakub Jelinek <jakub@redhat.com>
464
465 PR sanitizer/56454
466 * c-common.c (handle_no_sanitize_address_attribute): New function.
467 (c_common_attribute_table): Add no_sanitize_address attribute.
468 (handle_no_address_safety_analysis_attribute): Add
469 no_sanitize_address attribute, not no_address_safety_analysis
470 attribute.
471
a475fd3d 4722013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
473
474 PR target/52555
475 * c-common.c (handle_optimize_attribute): Call
476 save_optabs_if_changed.
477
f6007d99
JJ
4782013-02-18 Jakub Jelinek <jakub@redhat.com>
479 Steven Bosscher <steven@gcc.gnu.org>
480
481 PR pch/54117
482 * c-opts.c (c_common_post_options): If debug info is enabled
483 and non-dwarf*, refuse to load PCH files and when writing PCH
484 file warn.
485
cf35e2b1
JJ
4862013-02-05 Jakub Jelinek <jakub@redhat.com>
487
488 PR middle-end/56167
489 * c-common.c (handle_error_attribute): Fix condition.
490
32887460
JJ
4912013-01-30 Jakub Jelinek <jakub@redhat.com>
492
493 PR c++/55742
494 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
495
5af057d8
JM
4962013-01-18 Jason Merrill <jason@redhat.com>
497
498 PR target/54908
499 * c.opt (-fextern-tls-init): New.
500 * c-opts.c (c_common_post_options): Handle it.
501
cc83c823
JJ
5022013-01-09 Jakub Jelinek <jakub@redhat.com>
503
504 PR c/48418
505 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
506 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
507 and is either negative or bigger or equal to type precision
508 of the first operand.
509
a859517f
MP
5102012-12-03 Marek Polacek <polacek@redhat.com>
511
512 PR c/55570
513 * c-common.c (check_user_alignment): Swap order of tests,
514 check TREE_CODE first.
515
2d7aa578
ESR
5162012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
517
518 PR c++/52654
519 * c-common.h (overflow_type): New enum.
520 (build_userdef_literal): Add overflow_type argument.
521 (tree_userdef_literal): Add overflow_type.
522 (USERDEF_LITERAL_OVERFLOW): New access macro.
523 * c-common.c (build_userdef_literal): Add overflow_type
524 argument.
525 * c-lex.c (c_lex_with_flags): Add overflow_type to
526 build_userdef_literal calls.
527 (interpret_integer, interpret_float): Add overflow_type argument.
528
cc3c4f62
RB
5292012-11-28 Richard Biener <rguenther@suse.de>
530
531 PR c/35634
532 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
533 here and use a type with proper overflow behavior for types that would
534 need to be promoted for the arithmetic.
535
77bc5132
JJ
5362012-11-23 Jakub Jelinek <jakub@redhat.com>
537
538 PR sanitizer/55435
539 * c-common.c (handle_no_address_safety_analysis_attribute): New
540 function.
541 (c_common_attribute_table): Add no_address_safety_analysis.
542
5dc99c46
SB
5432012-11-16 Simon Baldwin <simonb@google.com>
544
545 * c.opt: Add f[no-]canonical-system-headers.
546 * c-opts.c (c_common_handle_option): Handle
547 OPT_fcanonical_system_headers.
548
a4a0016d
ESR
5492012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
550
551 PR c++/54413
552 * c-opts.c (c_common_handle_option): Set new flags.
553 * c.opt: Describe new flags.
554
7dbb85a7
JM
5552012-11-09 Jason Merrill <jason@redhat.com>
556
557 * c.opt (Wabi-tag): New.
558
ad7bac31
AK
5592012-11-09 Andi Kleen <ak@linux.intel.com>
560
561 PR 55139
562 * c-common.c (get_atomic_generic_size): Mask with
563 MEMMODEL_MASK
564
7332899a
MLI
5652012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
566
567 PR c/53063
568 * c.opt (Wformat): Make it Alias Wformat=1.
569 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
570 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
571 LangEnabledBy.
572 (Wformat=): RejectNegative. Use LangEnabledBy.
573 (Wnonnull): Use LangEnabledBy.
574 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
575 * c-format.c (set_Wformat): Delete.
576 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
577 (maybe_read_dollar_number): Likewise.
578 (avoid_dollar_number): Likewise.
579 (finish_dollar_format_checking): Likewise.
580 (check_format_info): Likewise.
581 (check_format_info_main): Likewise.
582 (check_format_types): Likewise.
583 (format_type_warning): Likewise.
584 * c-common.c (int): Likewise.
585 (check_function_sentinel): Likewise.
586 * c-common.h (warn_format,set_Wformat): Do not declare here.
587
34a180a6
MLI
5882012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
589
590 PR c/53063
591 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
592 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
593 Use LangEnabledBy.
594 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
595 common.opt.
596 (Wvariadic-macros): Init(1).
597 * c-opts.c (c_common_handle_option): Do not handle them
598 explicitly.
599 (c_common_post_options): Likewise.
600 (sanitize_cpp_opts): warn_unused_macros is now
601 cpp_warn_unused_macros.
602 (push_command_line_include): Likewise.
603 * c-common.c (warn_unknown_pragmas): Do not define.
604 * c-common.h (warn_unknown_pragmas): Do not declare.
605
3f46d6a5
MLI
6062012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
607
608 PR c/51294
609 * c-common.c (conversion_warning): Handle conditional expressions.
610
880661a4
JW
6112012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
612
613 PR c++/54930
614 * c.opt (Wreturn_local_addr): Define new option.
615
4514a96b
JM
6162012-10-25 Jason Merrill <jason@redhat.com>
617
f14edc1a
JM
618 * c.opt (Wvirtual-move-assign): New.
619
4514a96b
JM
620 * c.opt (Winherited-variadic-ctor): New.
621
93100c6b
MG
6222012-10-25 Marc Glisse <marc.glisse@inria.fr>
623
624 PR c++/54427
625 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
626
1efcb8c6
JM
6272012-10-23 Joseph Myers <joseph@codesourcery.com>
628
629 * c-common.h (pch_cpp_save_state): Declare.
630 * c-target.def (c_preinclude): New hook.
631 * c-opts.c (done_preinclude): New.
632 (push_command_line_include): Handle default preincluded header.
633 (cb_file_change): Call pch_cpp_save_state when calling
634 push_command_line_include.
635 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
636 (pch_cpp_save_state): New.
637 (pch_init): Call pch_cpp_save_state conditionally, instead of
638 calling cpp_save_state.
639
4a0ae68e
MLI
6402012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
641
642 PR c/53063
643 PR c/40989
644 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
645 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
646 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
647 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
648 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
649 * c-opts.c (c_common_handle_option): Remove explicit handling from
650 here.
651 (c_common_post_options): Likewise.
652
67e4210b
EB
6532012-10-18 Eric Botcazou <ebotcazou@adacore.com>
654
655 * c-ada-spec.c (LOCATION_COL): Delete.
656 (compare_location): New function.
657 (compare_node): Use it.
658 (compare_comment): Likewise.
659
65d4f2cd
MLI
6602012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
661
662 PR c/53063
663 PR c/40989
664 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
665 * c-opts.c (c_common_handle_option): Do not set them here. Add
666 comment.
667 (c_common_post_options): Likewise.
668
909881cb
EB
6692012-10-16 Eric Botcazou <ebotcazou@adacore.com>
670
671 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
672 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
673 Remove POINTER_TYPE handling, add large unsigned handling and use
674 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
675
3a785c97
JJ
6762012-10-12 Jakub Jelinek <jakub@redhat.com>
677
678 PR c/54381
679 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
680 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
681 locs and array of 3 trees instead of just single loc and single
682 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
683 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
684 For *cmp* builtins that take two sources strings report warnings
685 about first and second source, not about destination and source.
686
5e54f81d
MG
6872012-10-12 Marc Glisse <marc.glisse@inria.fr>
688
689 PR c++/53055
690 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
691
f5b02f1e
EB
6922012-10-11 Eric Botcazou <ebotcazou@adacore.com>
693
694 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
695 declaring something coming from another file.
696
b46dbc6c
AC
6972012-10-10 Arnaud Charlet <charlet@adacore.com>
698
f5b02f1e 699 PR ada/54845
b46dbc6c
AC
700 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
701
5d9de0d0
PC
7022012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
703
704 PR c++/54194
705 * c-common.c (warn_about_parentheses): Add location_t parameter;
706 use EXPR_LOC_OR_LOC.
707 * c-common.h: Update declaration.
708
a212e43f
MG
7092012-10-09 Marc Glisse <marc.glisse@inria.fr>
710
711 PR c++/54427
712 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
713 more operations. Make error messages optional.
714 * c-common.h (enum stv_conv): Moved from c-typeck.c.
715 (scalar_to_vector): Declare.
716
b1db7f91
JM
7172012-10-08 Jason Merrill <jason@redhat.com>
718
719 * c-common.c (c_common_reswords): Add thread_local.
720
e28d52cf
DS
7212012-10-08 Dodji Seketeli <dodji@redhat.com>
722
723 PR c++/53528 C++11 attribute support
724 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
725 new functions.
726 * c-common.c (check_cxx_fundamental_alignment_constraints): New
727 static function.
728 (handle_aligned_attribute): In choose strictest alignment
729 among many. Use new check_cxx_fundamental_alignment_constraints.
730 (handle_transparent_union_attribute): In c++11 attribute syntax,
731 don't look through typedefs.
732
3b78de56
AC
7332012-10-04 Arnaud Charlet <charlet@adacore.com>
734
735 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
736 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
737 out of dumpfile.h.
738
6040bb5f
DC
7392012-09-25 Dehao Chen <dehao@google.com>
740
741 PR middle-end/54645
3b78de56 742 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
743 map when read in the pch.
744
0b07a57e
AC
7452012-09-18 Arnaud Charlet <charlet@adacore.com>
746
747 * c-ada-spec.c: Style fixes.
748
da5182be
TQ
7492012-09-18 Thomas Quinot <quinot@adacore.com>
750
751 * c.opt (-fada-spec-parent): Define new command line switch.
752 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
753 is specified, generate binding spec as a child of the specified unit.
754
0ccb505d
PC
7552012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
756 Manuel López-Ibáñez <manu@gcc.gnu.org>
757
758 PR c++/53210
759 * c.opt ([Winit-self]): Enabled by -Wall in C++.
760
c583af79
AC
7612012-08-23 Arnaud Charlet <charlet@adacore.com>
762
763 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
764 for pointers, and add missing Convention C pragma.
765 (print_ada_struct_decl): Add missing aliased keyword.
766 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
767
1a4049e7
JJ
7682012-08-17 Jakub Jelinek <jakub@redhat.com>
769
770 * c-common.c (sizeof_pointer_memaccess_warning): New function.
771 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
772 * c-opts.c (c_common_handle_option): Enable it for -Wall.
773 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
774 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
775
70b5e7dc
RG
7762012-08-10 Richard Guenther <rguenther@suse.de>
777
778 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
779
f8923f7e
SB
7802012-08-07 Steven Bosscher <steven@gcc.gnu.org>
781
782 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
783 instead of separate pp_newline and pp_flush.
784 (print_c_tree): Likewise.
785
e45abe1f
RH
7862012-07-26 Richard Henderson <rth@redhat.com>
787
788 * c-common.c (handle_hot_attribute): Allow labels.
789 (handle_cold_attribute): Likewise.
790
332f1d24
JJ
7912012-07-20 Jakub Jelinek <jakub@redhat.com>
792
793 PR c++/28656
794 * c-common.c (check_function_nonnull): Handle multiple nonnull
795 attributes properly.
796
7ee2468b
SB
7972012-07-16 Steven Bosscher <steven@gcc.gnu.org>
798
799 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
800 * c-ada-spec.c: Likewise.
801 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
802
ee7b28eb
SB
8032012-07-14 Steven Bosscher <steven@gcc.gnu.org>
804
805 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
806 Remove code conditional on it.
807
6bdf3519
SB
8082012-07-11 Steven Bosscher <steven@gcc.gnu.org>
809
810 * c-gimplify.c: Do not include basic-block.h.
811 * c-common.c: Do not include linfuncs.h.
812
532aafad
SB
8132012-07-08 Steven Bosscher <steven@gcc.gnu.org>
814
815 * c-common.h: Include tree.h.
816
8d0d1915
JM
8172012-07-02 Jason Merrill <jason@redhat.com>
818
819 PR c++/53524
820 * c-common.c (get_priority): Call default_conversion.
821
fbc873ad
UB
8222012-07-01 Uros Bizjak <ubizjak@gmail.com>
823
824 * c-pch.c (c_common_write_pch): Remove unused variables.
825
d4a10d0a
SB
8262012-06-29 Steven Bosscher <steven@gcc.gnu.org>
827
828 * cppspec.c: Moved from gcc/ to here.
829
6f3a2e23
KT
8302012-06-27 Kai Tietz <ktietz@redhat.com>
831
832 PR preprocessor/37215
833 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
834
8ca92d04
SB
8352012-06-21 Steven Bosscher <steven@gcc.gnu.org>
836
837 * c-common.h (c_common_print_pch_checksum): Remove.
838 * c-pch.c: Do not include output.h.
839 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
840 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
841 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
842 (struct c_pch_header): Remove.
843 (get_ident): Update gpch version.
844 (pch_init): Do not print executable_checksum to asm_out_file.
845 Do not fail if there is no asm_out_file to read back from. Set
846 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
847 (c_common_write_pch): Verify that nothing was written to asm_out_file
848 since pch_init was called. Do not write a c_pch_header, and do not
849 copy from asm_out_file to the PCH.
850 (c_common_read_pch): Do not read a c_pch_header, and do not restore
851 the content of asm_out_file from the PCH.
852 (c_common_print_pch_checksum): Remove.
853 * c-opts.c (c_common_init): Print out executable_checksum directly.
854
70f42967
SB
8552012-06-19 Steven Bosscher <steven@gcc.gnu.org>
856
857 * c-target.def (objc_declare_unresolved_class_reference,
858 objc_declare_class_definition): Add new hooks.
859
a8781821
SB
8602012-06-19 Steven Bosscher <steven@gcc.gnu.org>
861
862 * c-lex.c: Do not include output.h.
863 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
864 Remove uses of ASM_OUTPUT_IDENT.
865
9e1a8dd1
RR
8662012-06-15 Marc Glisse <marc.glisse@inria.fr>
867
868 PR c++/51033
869 * c-common.h (c_build_vec_perm_expr): Move decl here.
870 * c-common.c (c_build_vec_perm_expr): Move definition
871 here.
872
6f07a821
SB
8732012-06-06 Steven Bosscher <steven@gcc.gnu.org>
874
875 * c.opt (fconserve-space): Turn into a no-op.
876
9faeb493 8772012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
878
879 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
880 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
881 both the start and end of the function.
882
a4b7d13c
SB
8832012-06-04 Steven Bosscher <steven@gcc.gnu.org>
884
885 * c-common.c: Do not include output.h.
886 * c-pragma.c: Likewise.
887
c265f413
SA
8882012-06-04 Steven Bosscher <steven@gcc.gnu.org>
889
890 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
891 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
892 (lang_decl_name): Handle namespace decls.
893
be7a421e
SB
8942012-05-31 Steven Bosscher <steven@gcc.gnu.org>
895
896 * c-ada-spec.c: Do not include output.h.
897 * c-semantics.c: Likewise.
898
65de6659
JM
8992012-05-29 Joseph Myers <joseph@codesourcery.com>
900
901 * c-common.c: Fix typo.
902
ca5f4331
MM
9032012-05-29 Michael Matz <matz@suse.de>
904
905 * c-common.h (c_expand_decl): Remove prototype.
906
4f7f7aca
MLI
9072012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
908
909 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
910 * c-opts.c (c_common_handle_option): Remove code handling
911 warn_missing_braces.
912
4a792f9b
PC
9132012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
914
915 PR c++/25137
916 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
917 -Wmissing_braces.
918
650dc14a
DS
9192012-05-22 Dodji Seketeli <dodji@redhat.com>
920
921 PR c++/53322
922 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
923
9b095bf1
MLI
9242012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
925
926 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
927 * c-opts.c (c_common_handle_option): Do not handle explicitly
928 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
929
0b2c4be5
DS
9302012-05-16 Dodji Seketeli <dodji@redhat.com>
931
932 PR preprocessor/7263
933 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
934 to cpp_classify_number. For diagnostics, use the precise location
935 instead of the global input_location.
936
a1bde5af
PC
9372012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
938
d02924ef 939 PR c++/11856
a1bde5af
PC
940 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
941
d1ede5f4
BS
9422012-05-14 Bernd Schmidt <bernds@codesourcery.com>
943
a1bde5af 944 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 945
f2bc201f
MLI
9462012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
947
948 PR 53063
949 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
950 Wreorder): Use LangEnabledBy.
951 * c-opts.c (c_common_handle_option): Do not enable them
952 explicitly. Call lang-specific generated functions.
953 (c_common_post_options): Do not set them here.
954
95744782
MLI
9552012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
956
957 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
958 Wmissing-field-initializers,Wmissing-parameter-type,
959 Wold-style-declaration,Woverride-init): Use EnabledBy.
960 * c-opts.c (c_common_post_options): Do not set here explicitly.
961
7d5a5747
MLI
9622012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
963
964 PR 53063
965 * c-opts.c (c_common_handle_option): Use handle_generated_option
966 to enable sub-options.
967
5a3c9cf2
PC
9682012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
969
970 PR c++/53158
971 * c-common.c (warnings_for_convert_and_check): Use warning_at.
972
3ac8781c
RG
9732012-05-10 Richard Guenther <rguenther@suse.de>
974
975 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
976 adjust commentary about TYPE_IS_SIZETYPE types.
977
1e537948
MLI
9782012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
979
980 PR c++/53261
981 * c-common.c (warn_logical_operator): Check that argument of
982 integer_zerop is not NULL.
983
f2c4a785
MLI
9842012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
985
986 PR c/43772
987 * c-common.c (warn_logical_operator): Do not warn if either side
988 is already true or false.
989
50f305ca
MLI
9902012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
991
992 PR c/51712
993 * c-common.c (expr_original_type): New.
994 (shorten_compare): Do not warn for enumeration types.
995
0c3641b0
MLI
9962012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
997
998 * c.opt (fpermissive): Add Var(flag_permissive).
999
7edaa4d2
MG
10002012-04-30 Marc Glisse <marc.glisse@inria.fr>
1001
1002 PR c++/51033
1003 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
1004 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
1005
b9c8da34
DS
10062012-04-30 Dodji Seketeli <dodji@redhat.com>
1007
1008 Add -Wvarargs option
1009 * c.opt (Wvarargs): Define new option.
1010
e6c69da0
MLI
10112012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1012
1013 * c-common.c (check_function_arguments): Replace
1014 Wmissing-format-attribute with Wsuggest-attribute=format.
1015
90137d8f
MLI
10162012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1017
1018 * c.opt (Wsuggest-attribute=format): New. Alias of
1019 Wmissing-format-attribute.
1020 * c-format.c (decode_format_type): Replace
1021 Wmissing-format-attribute with Wsuggest-attribute=format.
1022 (check_function_format): Likewise.
1023
9faeb493 10242012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
1025
1026 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
1027 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
1028 * c.opt: Add Wliteral-suffix.
1029
c1771a20
MLI
10302012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
1031
1032 PR c/44774
1033 * c.opt (Wpedantic): New.
1034 (pedantic): Alias Wpedantic.
1035 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
1036 (c_common_post_options): Likewise.
1037 (sanitize_cpp_opts): Likewise.
1038 * c-lex.c (interpret_float): Likewise.
1039 * c-format.c (check_format_types): Likewise.
1040 * c-common.c (pointer_int_sum): Likewise.
1041 (c_sizeof_or_alignof_type): Likewise.
1042 (c_add_case_label): Likewise.
1043 (c_do_switch_warnings): Likewise.
1044 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
1045
04b391c1
JM
10462012-04-15 Jason Merrill <jason@redhat.com>
1047
1048 PR c++/52818
1049 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
1050 (C_STD_NAME): Distinguish between C++98 and C++11.
1051
ac868f29
EB
10522012-04-11 Eric Botcazou <ebotcazou@adacore.com>
1053
1054 PR target/52624
1055 * c-common.h (uint16_type_node): Rename into...
1056 (c_uint16_type_node): ...this.
1057 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
1058 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
1059
fd4116f4
MLI
10602012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
1061
1062 * c-common.c (warn_if_unused_value): Move definition to here.
1063 * c-common.h (warn_if_unused_value): Move declaration to here.
1064
573ac65e
WB
10652012-03-23 William Bader <williambader@hotmail.com>
1066
1067 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
1068
552b8185
JM
10692012-03-20 Jason Merrill <jason@redhat.com>
1070
1071 * c-common.h (enum cxx_dialect): Add cxx1y.
1072 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
1073 test.
1074 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
1075 * c-opts.c (c_common_post_options): Likewise.
1076 (set_std_cxx1y): New.
1077 (c_common_handle_option): Call it.
1078 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
1079
04398fa8
PC
10802012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
1081
1082 PR c++/14710
1083 * c.opt ([Wuseless-cast]): Add.
1084
d2a12ae7
RG
10852012-03-16 Richard Guenther <rguenther@suse.de>
1086
1087 * c-pretty-print.c (pp_c_initializer_list): Adjust.
1088
a12bf402
MLI
10892012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
1090
1091 PR c++/44783
1092 * c.opt (ftemplate-backtrace-limit) Add.
1093
5c30094f
RO
10942012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1095
1096 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
1097 handling.
1098 * c-pragma.c (handle_pragma_extern_prefix): Remove.
1099 (init_pragma): Don't register extern_prefix.
1100
21fa2faf
RG
11012012-03-12 Richard Guenther <rguenther@suse.de>
1102
1103 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
1104 (builtin_type_for_size): Likewise.
1105
e3793c6f
JJ
11062012-02-13 Jakub Jelinek <jakub@redhat.com>
1107
1108 PR c++/52215
1109 * c-common.c (sync_resolve_params): Don't decide whether to convert
1110 or not based on TYPE_SIZE comparison, convert whenever arg_type
1111 is unsigned INTEGER_TYPE.
1112
93286335
PC
11132012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1114
1115 PR c/52118
1116 * c.opt ([Wunused-local-typedefs]): Fix description.
1117
7a421706
MS
11182012-01-24 Mike Stump <mikestump@comcast.net>
1119
1120 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1121 exactly.
1122
ba9b1f11
RG
11232012-01-18 Richard Guenther <rguenther@suse.de>
1124
1125 * c-opts.c (c_common_post_options): Reset LTO flags if
1126 we are about to generate a PCH.
1127
465406be
PC
11282012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1129
1130 PR c++/51777
1131 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1132 use pp_unsigned_wide_integer.
1133
aee15221
RG
11342012-01-10 Richard Guenther <rguenther@suse.de>
1135
1136 PR middle-end/51806
1137 * c-opts.c (c_common_handle_option): Move -Werror handling
1138 to language independent code.
1139
5720c0dc
RG
11402012-01-05 Richard Guenther <rguenther@suse.de>
1141
1142 PR middle-end/51764
1143 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1144 from common.opt.
1145
73ac190a
PC
11462011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1147
1148 PR c++/51316
1149 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1150 of array types with an unknown bound.
1151
48b0b196
JM
11522011-12-20 Joseph Myers <joseph@codesourcery.com>
1153
1154 * c-common.c (flag_isoc99): Update comment to refer to C11.
1155 (flag_isoc1x): Change to flag_isoc11.
1156 * c-common.h (flag_isoc99): Update comment to refer to C11.
1157 (flag_isoc1x): Change to flag_isoc11.
1158 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1159 C11.
1160 * c-opts.c (set_std_c1x): Change to set_std_c11.
1161 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1162 Call set_std_c11.
1163 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1164 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1165 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1166 standard.
1167 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1168 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1169 (std=gnu1x): Make alias of std=gnu11.
1170
d58d6eb5
JM
11712011-12-19 Jason Merrill <jason@redhat.com>
1172
1173 PR c++/51228
1174 * c-common.c (handle_transparent_union_attribute): Check the first
1175 field if the type is complete.
1176
b3908fcc
JW
11772011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1178
1179 PR libstdc++/51365
1180 * c-common.c (RID_IS_FINAL): Add.
1181 * c-common.h (RID_IS_FINAL): Add.
1182
fea3ca91
IS
11832011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1184
1185 * c.opt (fgnu-runtime): Provide full description.
1186 (fnext-runtime): Likewise.
1187 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1188
62bad7cd
AM
11892011-11-28 Andrew MacLeod <amacleod@redhat.com>
1190
1191 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1192 predefines in one place. Add LOCK_FREE predefines.
1193 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1194 new func.
1195
c466c4ff
AM
11962011-11-24 Andrew MacLeod <amacleod@redhat.com>
1197
1198 PR c/51256
9faeb493 1199 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1200 conditions
9faeb493
UB
1201 (resolve_overloaded_atomic_exchange,
1202 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1203 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1204 error_mark_node for error conditions.
9faeb493 1205
a5952633
RG
12062011-11-08 Richard Guenther <rguenther@suse.de>
1207
1208 PR middle-end/51010
1209 c-family/
1210
0a35513e
AH
12112011-11-07 Richard Henderson <rth@redhat.com>
1212 Aldy Hernandez <aldyh@redhat.com>
1213 Torvald Riegel <triegel@redhat.com>
1214
1215 Merged from transactional-memory.
1216
1217 * c-common.c (handle_tm_wrap_attribute,
1218 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1219 (struct c_common_reswords): Added __transaction* keywords.
1220 (struct c_common_attribute_table): Added transaction* and tm_regparm
1221 attributes.
1222 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1223 masks.
1224 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1225 find_tm_attribute): Declare.
1226
6d87092d
JM
12272011-11-07 Jason Merrill <jason@redhat.com>
1228
1229 PR c++/35688
1230 * c-common.c, c-common.h: Revert yesterday's changes.
1231
8e7860a1
JM
12322011-11-06 Jason Merrill <jason@redhat.com>
1233
1234 PR c++/35688
1235 * c-common.c (decl_has_visibility_attr): Split out from...
1236 (c_determine_visibility): ...here.
1237 * c-common.h: Declare it.
1238
d19fa6b5
JM
12392011-11-06 Joseph Myers <joseph@codesourcery.com>
1240
1241 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1242 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1243 type.
1244 (check_user_alignment): New. Split out of
1245 handle_aligned_attribute. Disallow integer constants with
1246 noninteger types. Conditionally allow zero.
1247 (handle_aligned_attribute): Use check_user_alignment.
1248 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1249
86951993
AM
12502011-11-06 Andrew MacLeod <amacleod@redhat.com>
1251 Richard Henderson <rth@redhat.com>
1252
1253 Merged from cxx-mem-model.
1254
1255 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1256 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1257 parameters that are the same type size.
1258 (get_atomic_generic_size): New. Find size of generic
1259 atomic function parameters and do typechecking.
1260 (add_atomic_size_parameter): New. Insert size into parameter list.
1261 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1262 either __atomic_exchange_n or external library call.
9faeb493 1263 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1264 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1265 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1266 __atomic_load_n or an external library call.
1267 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1268 __atomic_store_n or an external library call.
1269 (resolve_overloaded_builtin): Handle new __atomic builtins.
1270
cf9e9959
EB
12712011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1272
1273 PR c++/50608
1274 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1275 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1276 <INDIRECT_REF>: Return the argument.
1277 <ARRAY_REF>: Remove special code for negative offset.
1278 Call fold_build_pointer_plus instead of size_binop.
1279 (fold_offsetof): Remove STOP_REF argument and adjust.
1280 * c-common.h (fold_offsetof_1): Declare.
1281 (fold_offsetof): Remove STOP_REF argument.
1282
25339f10
JM
12832011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1284
1285 PR c++/50810
1286 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1287 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1288 Wnarrowing for C++0x and C++98.
1289 * c.opt ([Wnarrowing]): Update.
1290
89401152
PC
12912011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1292
1293 PR c++/44277
1294 * c.opt: Add Wzero-as-null-pointer-constant.
1295
97e3ad20
JM
12962011-10-31 Jason Merrill <jason@redhat.com>
1297
15694fdd
JM
1298 * c.opt (-fdeduce-init-list): Off by default.
1299
97e3ad20
JM
1300 PR c++/50920
1301 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1302 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1303 and -Wc++11-compat.
1304 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1305
fb9120e3
RAV
13062011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1307
1308 PR c++/30066
1309 * c.opt (fvisibility-inlines-hidden): Description change.
1310
3ce4f9e4
ESR
13112011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1312
1313 Implement C++11 user-defined literals.
1314 * c-common.c (build_userdef_literal): New.
1315 * c-common.def: New tree code.
1316 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1317 * c-lex.c (interpret_float): Add suffix parm.
1318 (c_lex_with_flags): Build literal tokens.
1319
5f53c243
PC
13202011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1321
1322 PR c++/50841
1323 Revert:
1324 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1325
1326 PR c++/50810
1327 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1328 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1329 Wnarrowing for C++0x and C++98.
1330 * c.opt ([Wnarrowing]): Update.
1331
263734e1
PC
13322011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1333
1334 PR c++/50810
1335 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1336 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1337 Wnarrowing for C++0x and C++98.
1338 * c.opt ([Wnarrowing]): Update.
1339
d2e312d7
PC
13402011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1341
1342 PR c++/45385
1343 * c-common.c (conversion_warning): Remove code looking for
1344 artificial operands.
1345
d17687f6
DS
13462011-10-18 Dodji Seketeli <dodji@redhat.com>
1347
1348 PR bootstrap/50760
1349 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1350 !NO_IMPLICIT_EXTERN_C.
d17687f6 1351
fc8396e9
PC
13522011-10-17 Michael Spertus <mike_spertus@symantec.com>
1353
1354 * c-common.c (c_common_reswords): Add __bases,
1355 __direct_bases.
1356 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1357
13582011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1359
1360 PR c++/50757
1361 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1362
847e697a
TT
13632011-10-15 Tom Tromey <tromey@redhat.com>
1364 Dodji Seketeli <dodji@redhat.com>
1365
1366 * c.opt (fdebug-cpp): New option.
1367 * c-opts.c (c_common_handle_option): Handle the option.
1368 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1369 output stream in parameter. Factorized from ...
1370 (maybe_print_line): ... this. Dump location debug information when
1371 -fdebug-cpp is in effect.
1372 (print_line_1): New static function. Takes an output stream in
1373 parameter. Factorized from ...
1374 (print_line): ... here. Dump location information when -fdebug-cpp
1375 is in effect.
1376 (scan_translation_unit): Dump location information when
1377 -fdebug-cpp is in effect.
1378
92582b75
TT
13792011-10-15 Tom Tromey <tromey@redhat.com>
1380 Dodji Seketeli <dodji@redhat.com>
1381
1382 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1383 without argument.
1384 * c-opts.c (c_common_handle_option)<case
1385 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1386 cases. Handle -ftrack-macro-expansion with and without argument.
1387
46427374
TT
13882011-10-15 Tom Tromey <tromey@redhat.com>
1389 Dodji Seketeli <dodji@redhat.com>
1390
1391 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1392 (print_line, cb_define, do_line_change): Adjust to avoid touching
1393 the internals of struct line_map. Use the public API instead.
1394 * c-pch.c (c_common_read_pch): Likewise.
1395 * c-lex.c (fe_file_change): Likewise.
1396
fc8396e9
PC
13972011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1398
1399 PR c++/17212
1400 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1401
14022011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1403
1404 PR c++/33067
1405 * c-pretty-print.c (pp_c_floating_constant): Output
1406 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1407
e79983f4
MM
14082011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1409
1410 * c-common.c (def_builtin_1): Delete old interface with two
1411 parallel arrays to hold standard builtin declarations, and replace
1412 it with a function based interface that can support creating
1413 builtins on the fly in the future. Change all uses, and poison
1414 the old names. Make sure 0 is not a legitimate builtin index.
1415 * c-omp.c (c_finish_omp_barrier): Ditto.
1416 (c_finish_omp_taskwait): Ditto.
1417 (c_finish_omp_flush): Ditto.
1418
6637388f
TG
14192011-10-11 Tristan Gingold <gingold@adacore.com>
1420
1421 * c.opt: (fallow-parameterless-variadic-functions): New.
1422
3797cb21
DS
14232011-09-08 Dodji Seketeli <dodji@redhat.com>
1424
1425 PR c++/33255 - Support -Wunused-local-typedefs warning
1426 * c-common.h (struct c_language_function::local_typedefs): New
1427 field.
9faeb493
UB
1428 (record_locally_defined_typedef, maybe_record_typedef_use)
1429 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1430 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1431 (maybe_record_typedef_use)
1432 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1433 * c.opt: Declare new -Wunused-local-typedefs flag.
1434
693ddb1b
EB
14352011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1436
1437 PR middle-end/50266
1438 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1439 computations.
1440
830c740f
RG
14412011-09-05 Richard Guenther <rguenther@suse.de>
1442
1443 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1444 of integer_minus_one_node for empty array upper bounds.
1445
892a371f
DS
14462011-08-28 Dodji Seketeli <dodji@redhat.com>
1447
1448 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1449 it's the first time it's being called on this main TU.
1450
0e3fdb48
RB
14512011-08-24 Richard Guenther <rguenther@suse.de>
1452
1453 PR c/49396
1454 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1455
14562011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
1457
1458 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1459 defined in cpp_init_builtins and c_cpp_builtins.
1460
d4a83c10
JM
14612011-08-19 Joseph Myers <joseph@codesourcery.com>
1462
1463 * c-common.c (c_common_reswords): Add __builtin_complex.
1464 * c-common.h (RID_BUILTIN_COMPLEX): New.
1465
bbceee64
JM
14662011-08-18 Joseph Myers <joseph@codesourcery.com>
1467
1468 * c-common.c (c_common_reswords): Add _Noreturn.
1469 (keyword_is_function_specifier): Handle RID_NORETURN.
1470 * c-common.h (RID_NORETURN): New.
1471
0e3a99ae
AS
14722011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1473
1474 * c-common.c (unsafe_conversion_p): New function. Check if it is
1475 unsafe to convert an expression to the type.
1476 (conversion_warning): Adjust, use unsafe_conversion_p.
1477 * c-common.h (unsafe_conversion_p): New function declaration.
1478
20906c66
JJ
14792011-08-02 Jakub Jelinek <jakub@redhat.com>
1480
1481 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1482 (c_finish_omp_taskyield): New prototype.
1483 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1484 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1485 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1486 or RHS1 have side-effects, evaluate those too in the right spot,
1487 if it is a decl and LHS is also a decl, error out if they
1488 aren't the same.
1489 (c_finish_omp_taskyield): New function.
1490 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1491 * c-pragma.c (omp_pragmas): Add taskyield.
1492 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1493 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1494 PRAGMA_OMP_CLAUSE_MERGEABLE.
1495
770e5a2e
DS
14962011-07-25 Dodji Seketeli <dodji@redhat.com>
1497
1498 * c-common.h (set_underlying_type): Remove parm name from
1499 declaration.
1500
1baae426
RG
15012011-07-25 Romain Geissler <romain.geissler@gmail.com>
1502
1503 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 1504
fcb21722
JM
15052011-07-22 Jason Merrill <jason@redhat.com>
1506
76f86d00
JM
1507 PR c++/49793
1508 * c.opt (Wnarrowing): New.
1509
3a636414
JM
1510 PR c++/30112
1511 * c-common.h: Declare c_linkage_bindings.
1512 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1513
fcb21722
JM
1514 PR c++/49813
1515 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1516 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1517 as flag_isoc99 for 'restrict'.
1518 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1519
02614448
ILT
15202011-07-21 Ian Lance Taylor <iant@google.com>
1521
1522 PR middle-end/49705
1523 * c-common.c (c_disable_warnings): New static function.
1524 (c_enable_warnings): New static function.
1525 (c_fully_fold_internal): Change local unused_p to bool. Call
1526 c_disable_warnings and c_enable_warnings rather than change
1527 c_inhibit_evaluation_warnings.
1528
34429675
JM
15292011-07-20 Jason Merrill <jason@redhat.com>
1530
1531 PR c++/6709 (DR 743)
1532 PR c++/42603 (DR 950)
1533 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1534 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1535 (CPP_DECLTYPE): New.
1536 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1537
5d49b6a7
RG
15382011-07-19 Richard Guenther <rguenther@suse.de>
1539
1540 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1541 * c-omp.c (c_finish_omp_for): Likewise.
1542
e84a58ff
EB
15432011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1544
1545 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1546 body on the next line.
1547
329af3c7
JM
15482011-07-08 Jason Merrill <jason@redhat.com>
1549
4063e61b
JM
1550 PR c++/45437
1551 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1552
329af3c7
JM
1553 PR c++/49673
1554 * c-common.c (c_apply_type_quals_to_decl): Don't check
1555 TYPE_NEEDS_CONSTRUCTING.
1556
1a072294
RG
15572011-07-06 Richard Guenther <rguenther@suse.de>
1558
1559 * c-common.c (c_common_nodes_and_builtins):
1560 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1561
fce5dddd
RG
15622011-07-05 Richard Guenther <rguenther@suse.de>
1563
1564 * c-common.c (c_common_nodes_and_builtins): Build all common
1565 tree nodes first.
1566
45d439ac
JJ
15672011-06-27 Jakub Jelinek <jakub@redhat.com>
1568
56300785
JJ
1569 * c-common.h (c_tree_chain_next): New static inline function.
1570
45d439ac
JJ
1571 * c-common.c (check_builtin_function_arguments): Handle
1572 BUILT_IN_ASSUME_ALIGNED.
1573
e0a8ecf2
AM
15742011-06-21 Andrew MacLeod <amacleod@redhat.com>
1575
1576 * c-common.c: Add sync_ or SYNC__ to builtin names.
1577 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
1578
15792011-06-20 Pierre Vittet <piervit@pvittet.com>
1580
1581 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1582 handler.
1583 (gen_pragma_handler): New union.
1584 (internal_pragma_handler): New type.
1585 (c_register_pragma_with_data)
1586 (c_register_pragma_with_expansion_and_data): New functions.
1587
1588 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1589 (c_register_pragma, c_register_pragma_with_expansion)
1590 (c_invoke_pragma_handler): Changed to work with
1591 internal_pragma_handler.
1592 (c_register_pragma_with_data)
1593 (c_register_pragma_with_expansion_and_data): New functions.
1594
677f3fa8
JM
15952011-06-14 Joseph Myers <joseph@codesourcery.com>
1596
1597 * c-common.c: Include common/common-target.h.
1598 (handle_section_attribute): Use
1599 targetm_common.have_named_sections.
1600 * c-cppbuiltin.c: Include common/common-target.h.
1601 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1602
d7fc8c14
RG
16032011-06-10 Richard Guenther <rguenther@suse.de>
1604
1605 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1606 to print a IDENTIFIER_NODE.
1607
10e48e39
RO
16082011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1609 Joseph Myers <joseph@codesourcery.com>
1610
1611 * c.opt (fbuilding-libgcc): New option.
1612 * c-cppbuiltin.c (c_cpp_builtins): Define
1613 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1614
6976ae51
JM
16152011-06-07 Jason Merrill <jason@redhat.com>
1616
3ff60975
JM
1617 * c-common.c (max_tinst_depth): Lower default to 900.
1618
6976ae51
JM
1619 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1620
009db074
RG
16212011-06-07 Richard Guenther <rguenther@suse.de>
1622
1623 * c-common.c (c_common_nodes_and_builtins): Do not set
1624 size_type_node or call set_sizetype.
1625
b4592b92
DS
16262011-06-07 Dodji Seketeli <dodji@redhat.com>
1627
1628 PR debug/49130
1629 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 1630 type when using pointer comparison to compare types.
b4592b92 1631
014ab419
JW
16322011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1633
1634 * c.opt: Add -Wdelete-non-virtual-dtor.
1635 * c-opts.c (c_common_handle_option): Include it in -Wall.
1636
4f60111f
NF
16372011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1638
1639 PR bootstrap/49190
1640
1641 Revert:
1642 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1643
1644 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1645 not tree_common.
1646
4cc4f2f4
JJ
16472011-05-27 Jakub Jelinek <jakub@redhat.com>
1648
1649 PR c++/49165
1650 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1651 C++ don't call c_common_truthvalue_conversion on void type arms.
1652
38e01f9e
NF
16532011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1654
1655 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1656 (stmt_list_stack): Define.
1657 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1658 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1659
92e948a8
NF
16602011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1661
1662 * c-common.c (warning_candidate_p): Check for BLOCKs.
1663
a2fc3e63
NF
16642011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1665
1666 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1667 not tree_common.
1668
0957c029
JJ
16692011-05-25 Jakub Jelinek <jakub@redhat.com>
1670
1671 * c-common.c (def_fn_type): Remove extra va_end.
1672
828fb3ba
JM
16732011-05-23 Jason Merrill <jason@redhat.com>
1674
1675 PR c++/48106
1676 * c-common.c (c_common_get_narrower): New.
1677 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1678
dde05067
NF
16792011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1680
1681 * c-common.h (check_function_arguments): Tweak prototype of
1682 check_function_arguments.
1683 * c-common.c (check_function_arguments): Likewise. Adjust
1684 calls to check_function_nonnull, check_function_format, and
1685 check_function_sentinel.
1686 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1687 separate attributes and typelist arguments. Use
1688 FOREACH_FUNCTION_ARGS to iterate over argument types.
1689
3c0d13bf
PC
16902011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1691
1692 * c-common.c (c_common_reswords): Reorder.
1693 * c-common.h (rid): Likewise.
1694
8242dd04
NF
16952011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1696
1697 * c-common.c (def_fn_type): Don't call build_function_type, call
1698 build_function_type_array or build_varargs_function_type_array
1699 instead.
1700 (c_common_nodes_and_builtins): Likewise.
1701
3d528853
NF
17022011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1703
1704 * c-common.c (c_add_case_label): Omit the loc argument to
1705 build_case_label.
1706 * c-common.h (build_case_label): Remove.
1707 * c-semantics.c (build_case_label): Remove.
1708
a04a722b
JM
17092011-05-05 Joseph Myers <joseph@codesourcery.com>
1710
1711 * c-objc.h (objc_start_method_definition): Update prototype.
1712 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1713
e19a18d4
NF
17142011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1715
1716 * c-common.c (check_main_parameter_types): Reindent. Don't use
1717 TYPE_ARG_TYPES directly.
1718 (handle_nonnull_attribute): Likewise.
1719 (sync_resolve_params): Likewise.
1720 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1721 to check_format_string.
1722 (handle_format_attribute): Likewise.
1723 (check_format_string): Take a function type to examine instead of
1724 a type list. Use a function_arg_iterator to step through argument
1725 types.
1726
c62c040f
RG
17272011-05-04 Richard Guenther <rguenther@suse.de>
1728
1729 * c-common.c (fix_string_type): Use size_int for index type bounds.
1730 (start_fname_decls): Do not pass NULL to build_int_cst.
1731 (c_init_attributes): Likewise.
1732 * c-lex.c (c_lex_with_flags): Likewise.
1733
c12ff9d8
JM
17342011-04-27 Jason Merrill <jason@redhat.com>
1735
1736 * c-common.c (make_tree_vector_from_list): New.
1737 * c-common.h: Declare it.
1738
304dfbe3
RG
17392011-04-26 Richard Guenther <rguenther@suse.de>
1740
1741 PR preprocessor/48248
1742 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1743 for output size with -P.
1744
3c0d13bf
PC
17452011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1746
1747 * c-common.c (struct c_common_resword): Add __underlying_type.
1748 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1749
04695783
JM
17502011-04-20 Jim Meyering <meyering@redhat.com>
1751
1752 * c-format.c (init_dollar_format_checking): Remove useless
1753 if-before-free.
1754
0dc33c3c
NP
17552011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1756
1757 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 1758 (objc_detect_field_duplicates): New.
0dc33c3c 1759 * stub-objc.c: Likewise.
3c0d13bf 1760
c59633d9
NP
17612011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1762
1763 * stub-objc.c (objc_declare_protocols): Renamed to
1764 objc_declare_protocol.
1765 * c-objc.h: Likewise.
3c0d13bf 1766
32dabdaf
NP
17672011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1768
1769 * stub-objc.c (objc_declare_class): Updated argument name.
1770
81f653d6
NF
17712011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1772
1773 * c-common.h (c_common_init_ts): Declare.
1774 * c-common.c (c_common_init_ts): Define.
1775
eb345401
NP
17762011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1777
1778 * c-objc.h (objc_build_message_expr): Updated prototype.
1779 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 1780
a358e188
MJ
17812011-04-12 Martin Jambor <mjambor@suse.cz>
1782
1783 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1784 of cgraph_node.
1785
e6313a78
RG
17862011-04-11 Richard Guenther <rguenther@suse.de>
1787
1788 * c-common.c (complete_array_type): Build a range type of
1789 proper type.
1790
dcf0c47e
NF
17912011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1792
1793 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1794 (handle_type_generic_attribute): Likewise.
1795
1ee44b26
JM
17962011-04-07 Jason Merrill <jason@redhat.com>
1797
1798 PR c++/48450
1799 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1800 conversion from C++0x scoped enum.
1801
acce4e77
JM
18022011-04-06 Joseph Myers <joseph@codesourcery.com>
1803
1804 * c-target-def.h: New file.
1805 * c-target.def: New file.
1806 * c-target.h: New file.
1807 * c-common.c (targetcm): Don't define here.
1808 * c-common.h (default_handle_c_option): Declare.
1809 * c-format.c: Include c-target.h instead of target.h.
1810 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1811 include tm.h.
1812 (default_handle_c_option): Move from targhooks.c.
1813
e2eefb55
JJ
18142011-03-29 Jakub Jelinek <jakub@redhat.com>
1815
1816 PR preprocessor/48248
1817 * c-ppoutput.c (print): Add src_file field.
1818 (init_pp_output): Initialize it.
1819 (maybe_print_line): Don't optimize by adding up to 8 newlines
1820 if map->to_file and print.src_file are different file.
1821 (print_line): Update print.src_file.
1822
ba78087b
KT
18232011-03-25 Kai Tietz <ktietz@redhat.com>
1824
1825 * c-ada-spec.c (compare_comment): Use filename_cmp
1826 instead of strcmp for filename.
1827
0edf1bb2
JL
18282011-03-25 Jeff Law <law@redhat.com>
1829
1830 * c-family/c-common.c (def_fn_type): Add missing va_end.
1831
c7dc8804
JM
18322011-03-25 Jason Merrill <jason@redhat.com>
1833
1834 * c.opt: Add -std=c++03.
1835
d1d879b1
EB
18362011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1837
1838 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1839
62d784f7
KT
18402011-03-17 Kai Tietz
1841
1842 PR target/12171
5050afdf
KT
1843 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1844 Display allowed attributes for function pointer types.
1845 (pp_c_attributes_display): New function to display
1846 attributes having affects_type_identity flag set to true.
1847 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1848
62d784f7
KT
1849 * c-common.c (c_common_attribute_table):
1850 Add new element.
1851 (c_common_format_attribute_table): Likewise.
1852
82d37118
JM
18532011-03-18 Jason Merrill <jason@redhat.com>
1854
49a000c3
JM
1855 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1856 * c-common.h: Don't declare it here.
1857 * c-common.c: Or define it here.
1858 * c-opts.c (c_common_handle_option): Or set it here.
1859
82d37118
JM
1860 PR c++/35315
1861 * c-common.c (handle_transparent_union_attribute): Don't
1862 make a duplicate type in C++.
1863
17bc631c
JM
18642011-03-15 Jason Merrill <jason@redhat.com>
1865
1866 * c-common.c (max_constexpr_depth): New.
1867 * c-common.h: Declare it.
1868 * c-opts.c (c_common_handle_option): Set it.
1869 * c.opt (fconstexpr-depth): New option.
1870
1b9b91a6
JM
18712011-03-11 Jason Merrill <jason@redhat.com>
1872
f231b5ff
JM
1873 * c-common.c (attribute_takes_identifier_p): Add missing const.
1874
1b9b91a6
JM
1875 PR c++/46803
1876 * c-common.c (attribute_takes_identifier_p): Assume that an
1877 unknown attribute takes an identifier.
1878
a19e4d44
NF
18792011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1880
1881 PR c/47786
1882 * c-common.c (c_type_hash): Call list_length instead of iterating
1883 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1884
982d62f6
JJ
18852011-02-19 Jakub Jelinek <jakub@redhat.com>
1886
1887 PR c/47809
1888 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1889
0a256240
NP
18902011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1891
1892 * c.opt (fobjc-abi-version=) New.
1893 (fobjc-nilcheck): New.
1894
ba9e6dd5
NF
18952011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1896
1897 PR c++/46890
1898 * c-common.h (keyword_is_decl_specifier): Declare.
1899 * c-common.c (keyword_is_decl_specifier): Define.
1900 (keyword_is_function_specifier): New function.
1901
7273813a
JJ
19022011-01-26 Jakub Jelinek <jakub@redhat.com>
1903
1904 PR c/47473
1905 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1906 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1907 REAL_TYPE.
1908
908ef79b
AC
19092011-01-26 Arnaud Charlet <charlet@adacore.com>
1910
1911 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1912
237e9384
JJ
19132011-01-26 Jakub Jelinek <jakub@redhat.com>
1914
1915 PR pch/47430
1916 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1917 after init_c_lex if pch_file is set.
1918
47ea1edf
DK
19192011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1920
d4dba752 1921 PR c++/43601
47ea1edf
DK
1922 * c.opt (-fkeep-inline-dllexport): New switch.
1923
2aa9c6ae
RG
19242011-01-12 Richard Guenther <rguenther@suse.de>
1925
1926 PR middle-end/32511
1927 * c-common.c (handle_weak_attribute): Warn instead of error
1928 on declaring an inline function weak.
1929
7bd11157
TT
19302011-01-05 Tom Tromey <tromey@redhat.com>
1931
1932 * c-common.h (lvalue_error): Update.
1933 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1934 not error.
1935
0e66e494 19362010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 1937
b4f588c4
NP
1938 PR objc/47075
1939 * c-objc.h (objc_finish_message_expr): Added argument to
1940 prototype.
1941
f4da8dce
NF
19422010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1943
1944 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1945 Use prototype_p.
1946
46270f14
NP
19472010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1948
1949 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 1950 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 1951
4816c593
NF
19522010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1953
1954 * c-common.h (readonly_error): Declare.
1955 * c-common.c (readonly_error): Define.
1956
7a6daeb0
NF
19572010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1958
1959 * c-common.h (invalid_indirection_error): Declare.
1960 * c-common.c (invalid_indirection_error): Define.
1961
892f6119
RG
19622010-12-03 Richard Guenther <rguenther@suse.de>
1963
1964 PR c/46745
1965 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1966 (pp_c_unary_expression): Likewise.
1967 (pp_c_expression): Likewise.
1968
6c39e757
NP
19692010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1970
1971 * c-common.h (objc_finish_function): New.
1972 (objc_non_volatilized_type): Removed.
1973 (objc_type_quals_match): Removed.
1974 * stub-objc.c (objc_finish_function): New.
1975 (objc_non_volatilized_type): Removed.
1976 (objc_type_quals_match): Removed.
9faeb493 1977
7c475d11
JM
19782010-11-30 Joseph Myers <joseph@codesourcery.com>
1979
1980 * c-common.h (parse_optimize_options): Declare.
1981 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1982 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1983
71f3e391
JM
19842010-11-29 Joseph Myers <joseph@codesourcery.com>
1985
1986 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1987 GET_ENVIRONMENT.
1988 * c-pch.c (O_BINARY): Don't define here.
1989 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1990
d5fabb58
JM
19912010-11-25 Joseph Myers <joseph@codesourcery.com>
1992
1993 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1994 targetm.except_unwind_info.
1995
299404a1
JM
19962010-11-23 Joseph Myers <joseph@codesourcery.com>
1997
1998 * c-opts.c (c_common_handle_option): Pass location to
1999 set_struct_debug_option.
2000
c98cd5bf
JM
20012010-11-23 Joseph Myers <joseph@codesourcery.com>
2002
2003 * c-common.c (visibility_options): Move from ../opts.c.
2004 * c-common.h (struct visibility_flags, visibility_options):
2005 Declare here.
2006 * c-opts.c (finish_options): Rename to c_finish_options.
2007 (c_common_init): Update call to finish_options.
2008
a9546771
NP
20092010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
2010
2011 PR objc/34033
2012 * c-lex.c (lex_string): Check that each string in an Objective-C
2013 string concat sequence starts with either one or zero '@', and
2014 that there are no spurious '@' signs at the end.
2015
24a57808
JM
20162010-11-20 Joseph Myers <joseph@codesourcery.com>
2017
2018 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
2019 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
2020 HANDLE_PRAGMA_VISIBILITY.
2021 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
2022 HANDLE_PRAGMA_VISIBILITY): Don't define.
2023 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
2024
a9aa2c3a
NF
20252010-11-20 Nathan Froyd <froydnj@codesourcery.com>
2026
2027 PR c++/16189
2028 PR c++/36888
2029 PR c++/45331
2030 * c-common.h (keyword_begins_type_specifier): Declare.
2031 (keyword_is_storage_class_specifier): Declare.
2032 (keyword_is_type_qualifier): Declare.
2033 * c-common.c (keyword_begins_type_specifier): New function.
2034 (keyword_is_storage_class_specifier): New function.
2035 (keyword_is_type_qualifier): Declare.
2036
5386338c
JM
20372010-11-19 Joseph Myers <joseph@codesourcery.com>
2038
2039 PR c/46547
2040 * c-common.c (in_late_binary_op): Define.
2041 (c_common_truthvalue_conversion): Check in_late_binary_op before
2042 calling c_save_expr.
2043 * c-common.h (in_late_binary_op): Declare.
2044
69ccdddb
JM
20452010-11-19 Joseph Myers <joseph@codesourcery.com>
2046
2047 * c-opts.c (c_common_handle_option): Update calls to
2048 set_struct_debug_option.
2049
6b192a09
NP
20502010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
2051
2052 * c-common.h (objc_declare_protocols): Added additional argument.
2053 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 2054
fb52b50a
NF
20552010-11-18 Nathan Froyd <froydnj@codesourcery.com>
2056
2057 PR c/33193
2058 * c-common.h (build_real_imag_expr): Declare.
2059 * c-semantics.c (build_real_imag_expr): Define.
2060
b37421c6
JM
20612010-11-17 Joseph Myers <joseph@codesourcery.com>
2062
2063 * c-opts.c (c_common_parse_file): Take no arguments.
2064 * c-common.h (c_common_parse_file): Update prototype.
2065
07078664
JJ
20662010-11-16 Jakub Jelinek <jakub@redhat.com>
2067
2068 PR c++/46401
2069 * c-common.c (warning_candidate_p): Don't track non-const calls
2070 or STRING_CSTs.
2071
c6a13190
ILT
20722010-11-15 Ian Lance Taylor <iant@google.com>
2073
2074 * c-lex.c (init_c_lex): Set macro debug callbacks if
2075 flag_dump_go_spec is set.
2076
925e8657
NP
20772010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
2078
2079 * c-common.h (objc_build_incr_expr_for_property_ref): New.
2080 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
2081
bb0a9581
NF
20822010-11-15 Nathan Froyd <froydnj@codesourcery.com>
2083
2084 PR preprocessor/45038
2085 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
2086 dialects.
2087
c5fa0890
JM
20882010-11-12 Joseph Myers <joseph@codesourcery.com>
2089
2090 * c-common.h (c_family_lang_mask): Declare.
2091 * c-opts.c (c_family_lang_mask): Make extern.
2092 * c-pragma.c (handle_pragma_diagnostic): Use
2093 control_warning_option.
2094
a4d8c676
JM
20952010-11-12 Joseph Myers <joseph@codesourcery.com>
2096
2097 * c-common.c (parse_optimize_options): Update call to
2098 decode_options.
2099 * c-common.h (c_common_handle_option): Update prototype.
2100 * c-opts.c (c_common_handle_option): Take location_t parameter and
2101 pass it to other functions.
2102
f954bd2c
JM
21032010-11-11 Joseph Myers <joseph@codesourcery.com>
2104
2105 * c-opts.c (warning_as_error_callback): Remove.
2106 (c_common_initialize_diagnostics): Don't call
2107 register_warning_as_error_callback.
2108 (c_common_handle_option): Handle -Werror=normalized= here.
2109
d8a07487
JM
21102010-11-10 Joseph Myers <joseph@codesourcery.com>
2111
2112 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2113 in diagnostic.
2114 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2115 letter.
2116 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2117 Remove trailing '.' from diagnostics.
2118 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2119
d5478783
JM
21202010-11-10 Joseph Myers <joseph@codesourcery.com>
2121
2122 * c-common.c (parse_optimize_options): Pass global_dc to
2123 decode_options.
2124 * c-opts.c (c_common_handle_option): Pass &global_options to
2125 set_Wstrict_aliasing.
2126 * c.opt (v): Don't mark Common or document here.
2127
91ebb981
IS
21282010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2129
2130 PR target/44981
2131 * c-format.c (format_type): New type gcc_objc_string_format_type.
2132 (valid_stringptr_type_p): New.
2133 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2134 (check_format_string): Pass expected type, use
91ebb981
IS
2135 valid_stringptr_type_p (), check that the format string types are
2136 consistent with the format specification.
2137 (decode_format_attr): Warn if NSString is used outside objective-c.
2138 (format_types_orig): Add NSString.
2139 (format_name): New.
2140 (format_flags): New.
2141 (check_format_arg): Handle format strings requiring an external parser.
2142 first_target_format_type: New variable.
2143 (handle_format_attribute): Set up first_target_format_type, pass the
2144 expected format arg string type to check_format_string().
2145 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2146 * stub-objc.c (objc_string_ref_type_p): New.
2147 (objc_check_format_arg): New.
2148
bede2adc
NP
21492010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2150
9faeb493 2151 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2152 * c-common.h (objc_build_class_component_ref): New.
2153 * stub-objc.c (objc_build_class_component_ref): New.
2154
9a179d01
NP
21552010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2156
2157 * c.opt (Wproperty-assign-default): New option.
2158
22d8d616
NP
21592010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2160
2161 Implemented -fobjc-std=objc1 flag.
2162 * c.opt (fobjc-std=objc1): New option.
2163
2debdb4f
NP
21642010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2165
2166 Implemented format and noreturn attributes for Objective-C methods.
2167 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2168 attribute for Objective-C methods.
2169
ec52b111
JM
21702010-10-31 Jason Merrill <jason@redhat.com>
2171
2172 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2173 EXPR_LOC_OR_HERE.
2174
46a88c12
NP
21752010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2176
2177 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2178 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2179 (objc_add_property_declaration): Removed arguments for copies and
2180 ivar.
2181 (objc_build_getter_call): Renamed to
2182 objc_maybe_build_component_ref.
2183 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2184 (objc_is_property_ref): New.
2185 * c-common.c (c_common_reswords): Removed copies and ivar.
2186 * stub-objc.c (objc_add_property_declaration): Removed arguments
2187 for copies and ivar.
2188 (objc_build_getter_call): Renamed to
2189 objc_maybe_build_component_ref.
2190 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2191 (objc_is_property_ref): New.
9faeb493 2192
1e4bf85b
AC
21932010-10-29 Arnaud Charlet <charlet@adacore.com>
2194 Matthew Gingell <gingell@adacore.com>
2195
2196 * c-ada-spec.c (separate_class_package): New function.
2197 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2198 name of their enclosing package.
2199 (print_ada_declaration): Use separate_class_package.
2200
81f0bab2
JM
22012010-10-27 Jason Merrill <jason@redhat.com>
2202
2b08f2c5
JM
2203 * c-common.c (c_common_reswords): Add __is_literal_type.
2204 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2205
81f0bab2
JM
2206 * c-common.c (check_case_value): Remove special C++ code.
2207
200290f2
NP
22082010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2209
2210 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2211 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2212 and RID_LAST_PATTR.
2213 (objc_add_property_declaration): Added additional arguments.
2214 (objc_property_attribute_kind): Removed.
2215 (objc_set_property_attr): Removed.
2216 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2217 copy and nonatomic.
2218 * stub-objc.c (objc_add_property_declaration): Added additional
2219 arguments.
2220 (objc_set_property_attr): Removed.
9faeb493 2221
f614132b
NP
22222010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2223
2224 * c-common.h (objc_add_property_variable): Renamed to
2225 objc_add_property_declaration. Added location argument.
2226 * stub-objc.c (objc_add_property_variable): Same change.
2227
b8a18805
NP
22282010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2229
2230 * c-common.h (objc_maybe_printable_name): New.
2231 * stub-objc.c (objc_maybe_printable_name): New.
2232
30cd1c5d
AS
22332010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2234 Andrew Pinski <pinskia@gmail.com>
2235
2236 * c-common.h (c_common_mark_addressable_vec): Declare.
2237 * c-common.c (c_common_mark_addressable_vec): New function.
2238
249a82c4
NP
22392010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2240
2241 * c-common.h (objc_set_method_type): Removed.
2242 (objc_add_method_declaration): Added boolean argument.
2243 (objc_start_method_definition): Same change.
2244 (objc_build_method_signature): Same change.
2245 * stub-objc.c (objc_set_method_type): Removed.
2246 (objc_add_method_declaration): Added boolean argument.
2247 (objc_start_method_definition): Same change.
2248 (objc_build_method_signature): Same change.
2249
977e30bc
NP
22502010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2251
2252 * c-common.h (finish_file): Removed.
2253 (objc_write_global_declarations): New.
2254 * c-opts.c (c_common_parse_file): Do not call finish_file.
2255 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2256
da57d1b9
NP
22572010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2258
2259 Implemented parsing @synthesize and @dynamic for
2260 Objective-C/Objective-C++.
2261 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2262 (objc_add_synthesize_declaration): New.
2263 (objc_add_dynamic_declaration): New.
2264 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2265 * stub-objc.c (objc_add_synthesize_declaration): New.
2266 (objc_add_dynamic_declaration): New.
9faeb493 2267
0069111f
MM
22682010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2269
2270 PR target/46041
2271 * c-cppbuiltin.c (mode_has_fma): Move function here from
2272 builtins.c. Don't use the fma optab, instead just use the
2273 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2274 using -save-temps.
2275
e426b47b
NP
22762010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2277
2278 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2279
e426b47b
NP
2280 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2281
9faeb493 2282 Radar 4330422
e426b47b
NP
2283 * c-common.h (objc_non_volatilized_type): New declaration
2284 * stub-objc.c (objc_non_volatilized_type): New stub.
2285
90fbfdc3
NP
22862010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2287
e426b47b 2288 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2289
2290 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2291
9faeb493 2292 Radar 4133425
90fbfdc3 2293 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2294 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2295
c37d8c30
IS
22962010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2297
2298 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2299 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2300 (objc_ivar_visibility_kind): New enum.
2301 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2302 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2303 visibility enum.
2304
1b1562a5
MM
23052010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2306
2307 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2308 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2309 has the appropriate fma builtins.
2310 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2311
668ea4b1
IS
23122010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2313
1b1562a5 2314 merge from FSF apple 'trunk' branch.
668ea4b1 2315 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2316
668ea4b1
IS
2317 Radars 4436866, 4505126, 4506903, 4517826
2318 * c-common.c (c_common_resword): Define @property and its attributes.
2319 * c-common.h: Define property attribute enum entries.
2320 (OBJC_IS_PATTR_KEYWORD): New.
2321 (objc_property_attribute_kind): New enum.
2322 Declare objc_set_property_attr (), objc_add_property_variable (),
2323 objc_build_getter_call () and objc_build_setter_call ().
2324 * stub-objc.c (objc_set_property_attr): New stub.
2325 (objc_add_property_variable): Likewise.
2326 (objc_build_getter_call): Likewise.
2327 (objc_build_setter_call) Likewise.
1b1562a5 2328
a1178b30
IS
23292010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2330
1b1562a5 2331 merge from FSF apple 'trunk' branch.
a1178b30
IS
2332 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2333
2334 Radar 3803157 (method attributes)
2335 * c-common.c (handle_deprecated_attribute): Recognize
2336 objc methods as valid declarations.
2337 * c-common.h: Declare objc_method_decl ().
1b1562a5 2338 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2339
a75bfaa6
JM
23402010-10-08 Joseph Myers <joseph@codesourcery.com>
2341
2342 * c-common.c (parse_optimize_options): Call
2343 decode_cmdline_options_to_array_default_mask before
2344 decode_options. Update arguments to decode_options.
2345 * c-common.h (c_common_init_options_struct): Declare.
2346 * c-opts.c (c_common_init_options_struct): New. Split out from
2347 c_common_init_options.
2348
f05b9d93
NP
23492010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2350
2351 Implemented fast enumeration for Objective-C.
2352 * c-common.h (objc_finish_foreach_loop): New.
2353 * stub-objc.c (objc_finish_foreach_loop): New.
2354
1ebe4b4f
JM
23552010-10-05 Joseph Myers <joseph@codesourcery.com>
2356
2357 * c-common.h (struct diagnostic_context): Don't declare here.
2358 (c_common_initialize_diagnostics): Declare using
2359 diagnostic_context typedef.
2360 * c-opts.c (c_common_handle_option): Pass global_dc to
2361 handle_generated_option.
2362
d4d24ba4
JM
23632010-10-04 Joseph Myers <joseph@codesourcery.com>
2364
2365 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2366 handle_generated_option.
2367
478a1c5b
ILT
23682010-10-03 Ian Lance Taylor <iant@google.com>
2369
2370 * c.opt (-fplan9-extensions): New option.
2371
82a1c2fe
FXC
23722010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2373
2374 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2375 Remove.
2376 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2377 of duplicating code.
2378
92902b1b
IS
23792010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2380
2381 * c-common.c: Add two new entries for @optional
2382 and @required keywords.
2383
2384 merge from FSF 'apple/trunk' branch.
2385 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2386
2387 Radar 4386773
2388 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2389 objective-c keywords.
2390 (objc_set_method_opt): New declaration.
2391 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2392
46625112
JM
23932010-09-30 Joseph Myers <joseph@codesourcery.com>
2394
2395 * c-common.c (handle_optimize_attribute): Pass &global_options to
2396 cl_optimization_save and cl_optimization_restore.
2397 * c-opts.c (c_common_handle_option): Pass &global_options to
2398 handle_generated_option.
2399 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2400 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2401 &global_options to cl_optimization_restore.
2402
49b91f05
NP
24032010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2404
2405 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2406 Objective-C/Objective-C++ keywords.
2407
13ed556f 24082010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2409
9faeb493
UB
2410 Merge from 'apple/trunk' branch on FSF servers.
2411
a6341d57
NP
2412 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2413
2414 Radar 4281748
2415 * c-common.h (objc_check_global_decl): New declaration.
2416 * stub-objc.c (objc_check_global_decl): New stub.
2417
f0036cca
JM
24182010-09-29 Joseph Myers <joseph@codesourcery.com>
2419
2420 * c.opt: Don't use VarExists.
2421
e3339d0f
JM
24222010-09-29 Joseph Myers <joseph@codesourcery.com>
2423
2424 * c-common.c (c_cpp_error): Update names of diagnostic_context
2425 members.
2426 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2427 cl_optimization members.
2428 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2429 sanitize_cpp_opts, finish_options): Update names of cpp_options
2430 members.
2431
1973201f
NP
24322010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2433
2434 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2435 (objc_is_reserved_word): Removed.
2436 * c-common.c: Updated comments.
2437 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2438 objc_is_reserved_word.
2439 * stub-objc.c (objc_is_reserved_word): Removed.
2440
f7e71da5
IS
24412010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2442
9faeb493 2443 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2444 include attributes.
2445 (objc_start_method_definition): Likewise.
2446 (objc_build_keyword_decl): Likewise.
2447 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2448 (objc_start_method_definition): Likewise.
2449 (objc_build_keyword_decl): Likewise.
2450
c165dca7
IS
24512010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2452
2453 * c-common.h (objc_start_class_interface): Adjust prototype.
2454 (objc_start_category_interface): Likewise.
2455 (objc_start_protocol): Likewise.
2456 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2457 (objc_start_class_interface): Likewise.
2458 (objc_start_category_interface): Likewise.
2459
7458026b
ILT
24602010-09-27 Ian Lance Taylor <iant@google.com>
2461
2462 * c-common.c (c_common_attribute_table): Add no_split_stack.
2463 (handle_no_split_stack_attribute): New static function.
2464
b581b85b
NP
24652010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2466
9faeb493 2467 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
2468
2469 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2470
9faeb493 2471 Radar 4229905
b581b85b
NP
2472 * c-common.h (objc_have_common_type): New declaration.
2473 * stub-objc.c (objc_have_common_type): New stub.
2474
2475 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2476
2477 Radar 4154928
2478 * c-common.h (objc_common_type): New prototype.
9faeb493 2479 * stub-objc.c (objc_common_type): New stub.
b581b85b 2480
46a4da10
JH
24812010-09-24 Jan Hubicka <jh@suse.cz>
2482
2483 * c-common.c (handle_leaf_attribute): New function.
2484 (struct attribute_spec c_common_att): Add leaf.
2485
e200444e
JM
24862010-09-22 Joseph Myers <joseph@codesourcery.com>
2487
2488 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2489 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2490 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2491 -include-barrier, -include-directory, -include-directory=,
2492 -include-directory-after, -include-directory-after=,
2493 -include-prefix, -include-prefix=, -include-with-prefix,
2494 -include-with-prefix=, -include-with-prefix-after,
2495 -include-with-prefix-after=, -include-with-prefix-before,
2496 -include-with-prefix-before=, -no-integrated-cpp,
2497 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2498 -output=, -pedantic, -pedantic-errors, -preprocess,
2499 -print-missing-file-dependencies, -trace-includes, -traditional,
2500 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2501 -user-dependencies, -verbose, -write-dependencies,
2502 -write-user-dependencies, no-integrated-cpp, traditional): New.
2503
29a80ea6
NP
25042010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2505
2506 PR objc/23710
ac1fc2fc
NP
2507 * c-common.h (objc_start_method_definition): Return bool instead
2508 of void.
2509 * stub-objc.c (objc_start_method_definition): Return bool instead
2510 of void.
2511
25122010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2513
2514 PR objc/25965
2515 * c-common.h (objc_get_interface_ivars): New declaration.
2516 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 2517
de621752
ILT
25182010-09-15 Ian Lance Taylor <iant@google.com>
2519
2520 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 2521 messages. Remove period at end of warning message.
de621752 2522
ba885ec5
NS
25232010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2524
2525 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2526 (handle_alias_attribute): ... here.
2527 (handle_ifunc_attribute): New.
2528
c5ee1358
MM
25292010-09-06 Mark Mitchell <mark@codesourcery.com>
2530
2531 * c-common.h (do_warn_double_promotion): Declare.
2532 * c-common.c (do_warn_double_promotion): Define.
2533
0a0b3574
MM
25342010-09-05 Mark Mitchell <mark@codesourcery.com>
2535
2536 * c.opt (Wdouble-promotion): New.
2537
d1779886
JM
25382010-09-02 Joseph Myers <joseph@codesourcery.com>
2539
2540 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2541 fvtable-thunks, fxref): Mark no longer supported in help text.
2542
2d2bd949
JM
25432010-09-02 Joseph Myers <joseph@codesourcery.com>
2544
2545 * c.opt (Wimport, fall-virtual, falt-external-templates,
2546 fdefault-inline, fenum-int-equiv, fexternal-templates,
2547 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2548 fname-mangling-version-, fnew-abi, fnonnull-objects,
2549 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2550 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2551 applicable.
2552 (fhandle-exceptions): Mark with Alias and Warn.
2553 * c-opts.c (c_common_handle_option): Don't handle options marked
2554 as ignored.
2555
5de8299c
JM
25562010-09-02 Joseph Myers <joseph@codesourcery.com>
2557
2558 * c.opt (Wcomments, Werror-implicit-function-declaration,
2559 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2560 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2561 aliases.
2562 * c-common.c (option_codes): Use OPT_Wcomment instead of
2563 OPT_Wcomments.
2564 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2565 Don't handle options marked as aliases.
2566
0ceb0201
RG
25672010-08-25 Richard Guenther <rguenther@suse.de>
2568
2569 * c-common.c (c_common_get_alias_set): Remove special
2570 handling for pointers.
2571
ac47786e
NF
25722010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2573
2574 * c-common.c: Use FOR_EACH_VEC_ELT.
2575 * c-gimplify.c: Likewise.
2576 * c-pragma.c: Likewise.
2577
c878765b
JM
25782010-08-16 Joseph Myers <joseph@codesourcery.com>
2579
2580 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2581 RejectDriver.
2582 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2583 RejectDriver.
2584 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2585 instead of OPT_MDX and OPT_MMDX.
2586
603349bf
JM
25872010-08-16 Joseph Myers <joseph@codesourcery.com>
2588
2589 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2590
644fa7ac
JM
25912010-08-12 Joseph Myers <joseph@codesourcery.com>
2592
2593 * c.opt (MD, MMD): Change to MDX and MMDX.
2594 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2595
481e1176
JM
25962010-08-11 Joseph Myers <joseph@codesourcery.com>
2597
2598 * c-opts.c (c_common_handle_option): Call handle_generated_option
2599 instead of handle_option.
2600
ac8dc9f7
NF
26012010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2602
2603 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2604 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2605
4f8c876d
NF
26062010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2607
2608 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2609 (pending_redefine_extname): Change type to a VEC.
2610 (add_to_renaming_pragma_list): Update for new type of
2611 pending_redefine_extname.
ac8dc9f7 2612 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 2613
3b0c690e
AC
26142010-08-04 Arnaud Charlet <charlet@adacore.com>
2615
2616 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2617 visited.
2618 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2619 decide whether a type has already been declared/seen.
2620 Do not go to the original type.
2621 (dump_nested_types): New parameter forward.
2622 Generate forward declaration if needed and mark type as visited.
2623 (print_ada_declaration): Call dump_nested_types if not already done.
2624 Mark types as visited.
2625
1890bccc
JM
26262010-08-03 Joseph Myers <joseph@codesourcery.com>
2627
2628 * c.opt (-print-pch-checksum): Remove option.
2629 * c-opts.c (c_common_handle_option): Don't handle
2630 OPT_print_pch_checksum.
2631
5f20c657
JM
26322010-07-27 Joseph Myers <joseph@codesourcery.com>
2633
2634 * c-common.h (c_common_handle_option): Update prototype and return
2635 value type.
2636 * c-opts.c (c_common_handle_option): Update prototype and return
2637 value type. Update calls to handle_option and
2638 enable_warning_as_error.
2639
f551f80c
JJ
26402010-07-27 Jakub Jelinek <jakub@redhat.com>
2641
2642 PR c/45079
2643 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2644
61ff2bdc
JM
26452010-07-27 Joseph Myers <joseph@codesourcery.com>
2646
2647 * c-common.h (c_common_missing_argument): Remove.
2648 * c-opts.c (c_common_missing_argument): Remove.
2649 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2650 idirafter, imacros, include, isysroot, isystem, iquote): Add
2651 MissingArgError.
2652 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2653
7a9bf9a4
JM
26542010-07-27 Joseph Myers <joseph@codesourcery.com>
2655
2656 * c-common.h (c_common_option_lang_mask,
2657 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2658 New.
2659 (c_common_init_options): Update prototype.
2660 * c-opts.c (c_common_option_lang_mask): New.
2661 (c_common_initialize_diagnostics): Split out of
2662 c_common_init_options.
2663 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2664 New.
2665 (c_common_init_options): Update prototype. Use decoded options in
2666 search for -lang-asm.
2667
910ad8de
NF
26682010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2669
2670 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2671 * c-format.c: Likewise.
2672
718f9c0f
MLI
26732010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2674
2675 * c-common.h: Include diagnostic-core.h. Error if already
2676 included.
2677 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2678
4d451982
MLI
26792010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2680
2681 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2682 Do not include expr.h
2683 (vector_mode_valid_p): Move here.
2684
119fe915
SB
26852010-06-21 DJ Delorie <dj@redhat.com>
2686
2687 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2688 allow these pragmas anywhere.
2689
26902010-06-14 Jakub Jelinek <jakub@redhat.com>
2691
2692 PR bootstrap/44509
2693 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2694 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2695 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2696 ggc_strdup instead of xstrdup.
2697
26982010-06-10 Jakub Jelinek <jakub@redhat.com>
2699
2700 * c-cppbuiltin.c: Include cpp-id-data.h.
2701 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2702 (lazy_hex_fp_value): New function.
2703 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2704
6662d794
MLI
27052010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2706
2707 * c-gimplify.c: Do not include tree-flow.h
2708
38f8b050
JR
27092010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2710
2711 PR other/44034
2712 * c-common.c: Rename targetm member:
2713 targetm.enum_va_list -> targetm.enum_va_list_p
2714
9589f23e
AS
27152010-06-28 Anatoly Sokolov <aesok@post.ru>
2716
2717 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2718
3b06d379
SB
27192010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2720
2721 * c-cppbuiltin.c: Do not include except.h.
2722
d166d4c3
AK
27232010-06-24 Andi Kleen <ak@linux.intel.com>
2724
9faeb493
UB
2725 * c-common.c (warn_for_omitted_condop): New.
2726 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 2727
70cb8be6
JM
27282010-06-21 Joseph Myers <joseph@codesourcery.com>
2729
2730 * c.opt (lang-objc): Remove.
2731 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2732
a4c97feb
JR
27332010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2734
2735 * c-opts.c: Include "tm_p.h".
2736
6e2f1956
JM
27372010-06-20 Joseph Myers <joseph@codesourcery.com>
2738
2739 * c-common.c (parse_optimize_options): Update call to
2740 decode_options.
2741
bc87224e
NF
27422010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2743
2744 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2745 new type of types_used_by_cur_var_decl.
2746
b49cf425
JR
27472010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2748
2749 PR bootstrap/44512
2750 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2751 for C++ standard compliance.
2752
59f9c2ed
JM
27532010-06-16 Jason Merrill <jason@redhat.com>
2754
2755 * c.opt: Add -Wnoexcept.
2756
33766b66
RG
27572010-06-16 Richard Guenther <rguenther@suse.de>
2758
2759 PR c/44555
2760 * c-common.c (c_common_truthvalue_conversion): Remove
2761 premature and wrong optimization concering ADDR_EXPRs.
2762
eff7e30c
AC
27632010-06-15 Arnaud Charlet <charlet@adacore.com>
2764
2765 * c-ada-spec.c (dump_sloc): Remove column info.
2766 (is_simple_enum): New function.
2767 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2768 enum types when relevant.
2769
6312e84d
MLI
27702010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2771
9faeb493 2772 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
2773 location.
2774
1cb42611
JM
27752010-06-10 Joseph Myers <joseph@codesourcery.com>
2776
2777 * c-opts.c (c_common_handle_option): Don't handle
2778 OPT_fshow_column.
2779
a9429e29
LB
27802010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2781
2782 * c-pragma.c (push_alignment): Use typed GC allocation.
2783 (handle_pragma_push_options): Likewise.
2784
2785 * c-common.c (parse_optimize_options): Likewise.
2786
2787 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2788 option.
2789
5498f011
JM
27902010-06-07 Joseph Myers <joseph@codesourcery.com>
2791
2792 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2793 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2794 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2795 flag_signed_bitfields, warn_strict_null_sentinel,
2796 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2797 flag_gen_declaration, flag_no_gnu_keywords,
2798 flag_implement_inlines, flag_implicit_templates,
2799 flag_implicit_inline_templates, flag_optional_diags,
2800 flag_elide_constructors, flag_default_inline, flag_rtti,
2801 flag_conserve_space, flag_access_control, flag_check_new,
2802 flag_new_for_scope, flag_weak, flag_working_directory,
2803 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2804 flag_enforce_eh_specs, flag_threadsafe_statics,
2805 flag_pretty_templates): Remove.
2806 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2807 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2808 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2809 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2810 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2811 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2812 flag_no_gnu_keywords, flag_implement_inlines,
2813 flag_implicit_templates, flag_implicit_inline_templates,
2814 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2815 flag_rtti, flag_conserve_space, flag_access_control,
2816 flag_check_new, flag_new_for_scope, flag_weak,
2817 flag_working_directory, flag_use_cxa_atexit,
2818 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2819 flag_threadsafe_statics, flag_pretty_templates,
2820 warn_strict_null_sentinel): Remove.
2821 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2822 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2823 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2824 fimplicit-inline-templates, fimplicit-templates,
2825 flax-vector-conversions, fms-extensions, fnil-receivers,
2826 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2827 frtti, fshort-double, fshort-enums, fshort-wchar,
2828 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2829 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2830 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2831 gen-decls, undef): Use Var.
2832 (fdefault-inline, foptional-diags): Document as doing nothing.
2833 * c-opts.c (c_common_handle_option): Remove cases for options now
2834 using Var. Mark ignored options as such.
2835
39dabefd
SB
28362010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2837
9faeb493 2838 * c-common.c: Moved to here from parent directory.
39dabefd
SB
2839 * c-common.def: Likewise.
2840 * c-common.h: Likewise.
2841 * c-cppbuiltin.c: Likewise.
2842 * c-dump.c: Likewise.
2843 * c-format.c: Likewise.
2844 * c-format.h : Likewise.
2845 * c-gimplify.c: Likewise.
2846 * c-lex.c: Likewise.
2847 * c-omp.c: Likewise.
2848 * c.opt: Likewise.
2849 * c-opts.c: Likewise.
2850 * c-pch.c: Likewise.
2851 * c-ppoutput.c: Likewise.
2852 * c-pragma.c: Likewise.
2853 * c-pragma.h: Likewise.
2854 * c-pretty-print.c: Likewise.
2855 * c-pretty-print.h: Likewise.
2856 * c-semantics.c: Likewise.
2857 * stub-objc.c: Likewise.
2858
2859 * c-common.c: Include gt-c-family-c-common.h.
2860 * c-pragma.c: Include gt-c-family-c-pragma.h.
2861\f
d1e082c2 2862Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
2863
2864Copying and distribution of this file, with or without modification,
2865are permitted in any medium without royalty provided the copyright
2866notice and this notice are preserved.
This page took 1.196692 seconds and 5 git commands to generate.