]> gcc.gnu.org Git - gcc.git/blame - gcc/c-family/ChangeLog
arm_neon.h (__AARCH64_UINT64_C, [...]): New arm_neon.h's internal macros to specify...
[gcc.git] / gcc / c-family / ChangeLog
CommitLineData
00d34d3a
GDR
12013-08-26 Gabriel Dos Reis <gdre@integrable-solutions.net>
2
3 * c-pretty-print.h (c_pretty_printer::unary_expression): Now a
4 virtual member function.
5 (c_pretty_printer::multiplicative_expression): Likewise.
6 (c_pretty_printer::conditional_expression): Likewise.
7 (c_pretty_printer::assignment_expression): Likewise.
8 (c_pretty_printer::expression): Likewise.
9 (pp_unary_expression): Adjust.
10 (pp_multiplicative_expression): Likewise.
11 (pp_assignment_expression): Likewise.
12 (pp_conditional_expression): Likewise.
13 (pp_expression): Likewise.
14 * c-pretty-print.c (c_pretty_printer::unary_expression): Rename
15 from pp_c_unary_expression. Adjust.
16 (c_pretty_printer::multiplicative_expression): Rename from
17 pp_c_multiplicative_expression. Adjust.
18 (c_pretty_printer::conditional_expression): Rename from
19 pp_c_conditional_expression. Adjust.
20 (c_pretty_printer::assignment_expression): Rename from
21 pp_c_assignment_expression. Adjust.
22 (c_pretty_printer::expression): Rename from pp_c_expression. Adjust.
23 (c_pretty_printer::c_pretty_printer): Do not assign to
24 unary_expression, multiplicative_expression,
25 conditional_expression, expression.
26
fb22178f
GDR
272013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
28
29 * c-pretty-print.h (c_pretty_printer::postfix_expression): Now a
30 virtual member function.
31 (pp_postfix_expression): Adjust.
32 (pp_c_postfix_expression): Remove.
33 * c-pretty-print.c (c_pretty_printer::postfix_expression): Rename
34 from pp_c_postfix_expression. Adjust.
35 (c_pretty_printer::c_pretty_printer): Do not assign to
36 postfix_expression.
37
7ecc2600
GDR
382013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
39
40 * c-pretty-print.h (c_pretty_printer::primary_expression): Now a
41 virtua member function.
42 (pp_primary_expression): Adjust.
43 (pp_c_primary_expression): Remove.
44 * c-pretty-print.c (c_pretty_printer::primary_expression): Rename
45 from pp_c_primary_expression. Adjust.
46 (pp_c_initializer_list): Use pp_primary_expression.
47 (c_pretty_printer::c_pretty_printer): Do not assign to
48 primary_expression.
49
0691175f
GDR
502013-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
51
52 * c-pretty-print.h (c_pretty_printer::translate_string): Declare.
53 * c-pretty-print.c (M_): Remove.
54 (c_pretty_printer::translate_string): Define.
55 (pp_c_type_specifier): Use it.
56 (pp_c_primary_expression): Likewise.
57 (pp_c_expression): Likewise.
58
66dfe4c4
GDR
592013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
60
61 * c-pretty-print.h (c_pretty_printer::id_expression): Now a
62 virtual function.
63 (pp_c_id_expression): Remove.
64 (pp_id_expression): Adjust.
65 * c-pretty-print.c (c_pretty_printer::id_expression): Rename from
66 pp_c_id_expression. Adjust.
67 (pp_c_postfix_expression): Use pp_id_expression.
68 (c_pretty_printer::c_pretty_printer): Do not assign to id_expression.
69
ca43e9d5
GDR
702013-08-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
71
72 * c-pretty-print.h (c_pretty_printer::constant): Now a virtual
73 member function.
74 (pp_constant): Adjust.
75 (pp_c_constant): Remove.
76 * c-pretty-print.c (c_pretty_printer::constant): Rename from
77 pp_c_constant. Adjust.
78 (pp_c_constant)
79 (pp_c_primary_expression): Call pp_constant in lieu of pp_c_constant.
80 (c_pretty_printer::c_pretty_printer): Remove assignment to constant.
81
da6ca2b5
GDR
822013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
83
84 * c-pretty-print.h (pp_c_pretty_printer_init): Remove.
85 (c_pretty_printer::c_pretty_printer): Declare.
86 * c-pretty-print.c (pretty_printer::c_pretty_printer): Rename from
87 c_pretty_printer_init. Adjust.
88 (print_c_tree): Do not call c_pretty_printer_init.
89 * c-ada-spec.c (dump_ads): Remove call to pp_construct.
90
65a372f4
AC
912013-08-09 Arnaud Charlet <charlet@adacore.com>
92
93 * c-ada-spec.c (print_ada_declaration): Prevent accessing null asm name
94
fd9b0f32
PC
952013-08-05 Paolo Carlini <paolo.carlini@oracle.com>
96
97 PR c++/58080
98 * c-common.c (pointer_int_sum): Add bool parameter.
99 * c-common.h (pointer_int_sum): Adjust declaration.
100
e0aec1e9
GDR
1012013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
102
103 * c-pretty-print.c (print_c_tree): Simplify. Use non-static local
104 c_pretty_printer variable.
105
b066401f
GDR
1062013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
107
108 * c-pretty-print.h (c_pretty_printer): Derive from pretty_printer.
109 (pp_base): Remove.
110 (pp_c_base): Likewise. Adjust users.
111 * c-pretty-print.c (pp_c_maybe_whitespace): Adjust.
112 (pp_c_whitespace): Do not call pp_base.
113 (pp_c_left_paren): Likewise.
114 (pp_c_right_paren): Likewise.
115 (pp_c_left_brace): Likewise.
116 (pp_c_right_brace): Likewise.
117 (pp_c_left_bracket): Likewise.
118 (pp_c_right_bracket): Likewise.
119 (pp_c_dot): Likewise.
120 (pp_c_ampersand): Likewise.
121 (pp_c_star): Likewise.
122 (pp_c_arrow): Likewise.
123 (pp_c_semicolon): Likewise.
124 (pp_c_complement): Likewise.
125 (pp_c_exclamation): Likewise.
126 (pp_c_direct_declarator): Likewise.
127 (pp_c_ws_string): Likewise.
128 (pp_c_identifier): Likewise.
129 (pp_c_statement): Likewise.
130 (print_c_tree): Likewise.
131
65e5a578
ESR
1322013-08-04 Ed Smith-Rowland <3dw4rd@verizon.net>
133
134 PR c++/58072
135 * c-common.c (c_parse_error): Catch user-defined literal tokens and
136 provide useful error strings.
137
137a1a27
GDR
1382013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
139
140 * c-ada-spec.c (pp_ada_tree_identifier): Use specialized pretty
141 printer functions instead of pp_string or operators and punctuators.
142 (dump_generic_ada_node): Likewise.
143 * c-pretty-print.c (pp_c_type_specifier): Likewise.
144 (pp_c_relational_expression): Likewise.
145 (pp_c_logical_or_expression): Likewise.
146
07838b13
GDR
1472013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
148
149 * c-ada-spec.c (print_ada_macros): Use specialized pretty printer
150 functions instead of pp_character.
151 (pp_ada_tree_identifier): Likewise.
152 (dump_ada_double_name): Likewise.
153 (dump_ada_function_declaration): Likewise.
154 (dump_ada_array_domains): Likewise.
155 (dump_template_types): Likewise.
156 (dump_generic_ada_node): Likewise.
157 (print_ada_declaration): Likewise.
158 (print_ada_struct_decl): Likewise.
159 * c-pretty-print.c (pp_c_integer_constant): Likewise.
160
433cc7b0
TT
1612013-07-23 Tom Tromey <tromey@redhat.com>
162
163 * c-common.h (enum rid) <RID_GENERIC>: New constant.
164 * c-common.c (c_common_reswords): Add _Generic.
165
688010ba
OB
1662013-07-21 OndÅ\99ej Bílka <neleai@seznam.cz>
167
168 * c-common.c: Fix typos.
169 * c-common.h: Likewise.
170
2a99e5e6
LL
1712013-07-13 Lubos Lunak <l.lunak@suse.cz>
172
173 PR c++/55203
174 * c-common.c (c_common_attribute_table): Add warn_unused.
175 (handle_warn_unused_attribute): New.
176
c26302d5
JJ
1772013-07-10 Jakub Jelinek <jakub@redhat.com>
178
179 * c-ppoutput.c (scan_translation_unit): Call account_for_newlines
180 for all CPP_TOKEN_FLD_STR tokens, not just CPP_COMMENT.
181
dfeadaa0
PC
1822013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
183
184 PR c++/57869
185 * c.opt: Add Wconditionally-supported.
186
6a2fa4b2
GS
1872013-07-08 Graham Stott <graham.stott@btinternet.com>
188
189 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
190 unused variables l_length and l_node.
191
40d3d530
JR
1922013-07-04 Joern Rennecke <joern.rennecke@embecosm.com>
193
194 PR c/57821
195 * c-common.c (complete_array_type): Delay folding first index
196 like other indices. When folding, check for index overflow.
197
bedc293e
MG
1982013-06-27 Marc Glisse <marc.glisse@inria.fr>
199
200 PR c++/57509
201 * c-common.h (c_build_vec_perm_expr): New complain argument.
202 * c-common.c (c_build_vec_perm_expr): Likewise.
203 Use save_expr also in C++.
204
604b2bfc
GDR
2052013-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
206
207 * c-common.c (c_common_nodes_and_builtins): Use cxx11 in lieu of cxx0x.
208 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
209 * c-opts.c (c_common_post_options): Likewise.
210
dfeadaa0 2112013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
713b46fa
BI
212
213 * array-notation-common.c (length_mismatch_in_expr): Changed the
214 parameter type's from a dynamic array to a vec_tree. Also removed
215 the size parameters.
216 * c-common.h (length_mismatch_in_expr_p): Fixed prototype's as per
217 the change above.
218
2ce86d2e
BI
2192013-06-21 Balaji V. Iyer <balaji.v.iyer@intel.com>
220
221 * c-common.h (struct cilkplus_an_parts): New structure.
222 (struct cilkplus_an_loop_parts): Likewise.
223 (cilkplus_extract_an_triplets): New prototype.
224 (fix_sec_implicit_args): Likewise.
225 * array-notation-common.c (cilkplus_extract_an_triplets): New function.
226 (fix_sec_implicit_args): Likewise.
604b2bfc 227
07a6825b
BI
2282013-06-20 Balaji V. Iyer <balaji.v.iyer@intel.com>
229
230 * array-notation-common.c (find_inv_trees): Removed an unwanted
231 typecasting.
232 * c-common.h (struct inv_list::additional_tcodes): Changed type from
233 enum rid to enum tree_code.
234
08346abd
JH
2352013-06-11 Jan Hubicka <jh@suse.cz>
236
237 * c-common.c (handle_alias_ifunc_attribute): Do not set
238 DECL_EXTERNAL for weakref variables.
239 * c-pragma.c (handle_pragma_weak): Make sure aliases
240 are not declared as external.
241
d60f1706
BI
2422013-06-07 Balaji V. Iyer <balaji.v.iyer@intel.com>
243
244 * array-notation-common.c (length_mismatch_in_expr_p): Moved this
245 function from c/c-array-notation.c.
246 (is_cilkplus_reduce_builtin): Likewise.
247 (find_rank): Likewise.
248 (extract_array_notation_exprs): Likewise.
249 (replace_array_notations): Likewise.
250 (find_inv_trees): Likewise.
251 (replace_inv_trees): Likewise.
252 (contains_array_notation_expr): Likewise.
253 (find_correct_array_notation_type): Likewise.
254 * c-common.h (struct inv_list): Moved this struct from the file
255 c/c-array-notation.c and added a new field called additional tcodes.
256 (length_mismatch_in_expr_p): New prototype.
257 (is_cilkplus_reduce_builtin): Likewise.
258 (find_rank): Likewise.
259 (extract_array_notation_exprs): Likewise.
260 (replace_array_notation): Likewise.
261 (find_inv_trees): Likewise.
262 (replace_inv_trees): Likewise.
263 (find_correct_array_notation_type): Likewise.
dfeadaa0 264
36536d79
BI
2652013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
266
267 * c-common.c (c_define_builtins): When cilkplus is enabled, the
268 function array_notation_init_builtins is called.
269 (c_common_init_ts): Added ARRAY_NOTATION_REF as typed.
270 * c-common.def (ARRAY_NOTATION_REF): New tree.
271 * c-common.h (build_array_notation_expr): New function declaration.
272 (build_array_notation_ref): Likewise.
273 (extract_sec_implicit_index_arg): New extern declaration.
274 (is_sec_implicit_index_fn): Likewise.
275 (ARRAY_NOTATION_CHECK): New define.
276 (ARRAY_NOTATION_ARRAY): Likewise.
277 (ARRAY_NOTATION_START): Likewise.
278 (ARRAY_NOTATION_LENGTH): Likewise.
279 (ARRAY_NOTATION_STRIDE): Likewise.
280 * c-pretty-print.c (pp_c_postifix_expression): Added a new case for
281 ARRAY_NOTATION_REF.
282 (pp_c_expression): Likewise.
283 * c.opt (flag_enable_cilkplus): New flag.
284 * array-notation-common.c: New file.
285
f7716d57
JJ
2862013-05-14 Jakub Jelinek <jakub@redhat.com>
287
288 PR c++/57274
289 * c-common.c (verify_tree): Don't recurse into SIZEOF_EXPR.
290
a5e0cd1d
MG
2912013-05-10 Marc Glisse <marc.glisse@inria.fr>
292
293 * c-common.c (vector_types_convertible_p): No TYPE_PRECISION for
294 vectors.
295
f6bc1c4a
HS
2962013-05-07 Han Shen <shenhan@google.com>
297
298 * c-cppbuiltin.c (c_cpp_builtins): Added "__SSP_STRONG__=3".
299
3f12f6e9
SKS
3002013-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
301
302 * c-common.c (check_user_alignment): Emit error for negative values.
303
61949153
PC
3042013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
305
306 * c-opts.c (set_std_cxx11): Use CLK_CXX1Y and CLK_GNUCXX1Y.
307
e93e18e9
PC
3082013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
309
310 * c-cppbuiltin.c (c_cpp_builtins): Do not define
311 __GXX_EXPERIMENTAL_CXX1Y__.
312
44d90fe1
PC
3132013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
314 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
315
316 * c.opt ([Wpointer-arith]): Enabled by -Wpedantic, as documented.
317 * c-common.c (pointer_int_sum): Change -Wpointer-arith pedwarns
318 to simply use OPT_Wpointer_arith.
319 (c_sizeof_or_alignof_type): Likewise.
320
13f39b2e
PC
3212013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
322
323 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_EXPERIMENTAL_CXX1Y__.
324
4b84d650
JJ
3252013-04-12 Jakub Jelinek <jakub@redhat.com>
326
327 * c-format.c (gcc_diag_char_table, gcc_tdiag_char_table,
328 gcc_cdiag_char_table, gcc_cxxdiag_char_table): Add %r and %R format
329 specifiers.
330
fb037b5d
SB
3312013-04-07 Steven Bosscher <steven@gcc.gnu.org>
332
333 * c-pragma.c (add_to_renaming_pragma_list): Fix leading comment.
334
4e856798
PC
3352013-04-03 Paolo Carlini <paolo.carlini@oracle.com>
336
337 * c-common.c (pointer_int_sum): Remove dead code.
338
4b1baac8
RS
3392013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
340
341 PR middle-end/56524
342 * c-common.c (handle_optimize_attribute): Don't call
343 save_optabs_if_changed.
344
0b50e654
JJ
3452013-03-05 Jakub Jelinek <jakub@redhat.com>
346
347 PR middle-end/56461
348 * c-pch.c (pch_init): Free target_validity at the end.
349
48c41403
JJ
3502013-03-04 Jakub Jelinek <jakub@redhat.com>
351
352 * c-pretty-print.c (pp_c_pretty_printer_init): Clear pp->flags.
353
e664c61c
KS
3542013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
355 Jakub Jelinek <jakub@redhat.com>
356
357 PR sanitizer/56454
358 * c-common.c (handle_no_sanitize_address_attribute): New function.
359 (c_common_attribute_table): Add no_sanitize_address attribute.
360 (handle_no_address_safety_analysis_attribute): Add
361 no_sanitize_address attribute, not no_address_safety_analysis
362 attribute.
363
a475fd3d 3642013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
365
366 PR target/52555
367 * c-common.c (handle_optimize_attribute): Call
368 save_optabs_if_changed.
369
f6007d99
JJ
3702013-02-18 Jakub Jelinek <jakub@redhat.com>
371 Steven Bosscher <steven@gcc.gnu.org>
372
373 PR pch/54117
374 * c-opts.c (c_common_post_options): If debug info is enabled
375 and non-dwarf*, refuse to load PCH files and when writing PCH
376 file warn.
377
cf35e2b1
JJ
3782013-02-05 Jakub Jelinek <jakub@redhat.com>
379
380 PR middle-end/56167
381 * c-common.c (handle_error_attribute): Fix condition.
382
32887460
JJ
3832013-01-30 Jakub Jelinek <jakub@redhat.com>
384
385 PR c++/55742
386 * c-common.c (handle_target_attribute): Revert 2012-12-26 change.
387
5af057d8
JM
3882013-01-18 Jason Merrill <jason@redhat.com>
389
390 PR target/54908
391 * c.opt (-fextern-tls-init): New.
392 * c-opts.c (c_common_post_options): Handle it.
393
cc83c823
JJ
3942013-01-09 Jakub Jelinek <jakub@redhat.com>
395
396 PR c/48418
397 * c-common.c (c_fully_fold_internal): Warn for LSHIFT_EXPR and
398 RSHIFT_EXPR, if orig_op1 isn't INTEGER_CST, op1 is INTEGER_CST
399 and is either negative or bigger or equal to type precision
400 of the first operand.
401
a859517f
MP
4022012-12-03 Marek Polacek <polacek@redhat.com>
403
404 PR c/55570
405 * c-common.c (check_user_alignment): Swap order of tests,
406 check TREE_CODE first.
407
2d7aa578
ESR
4082012-11-29 Ed Smith-Rowland <3dw4rd@verizon.net>
409
410 PR c++/52654
411 * c-common.h (overflow_type): New enum.
412 (build_userdef_literal): Add overflow_type argument.
413 (tree_userdef_literal): Add overflow_type.
414 (USERDEF_LITERAL_OVERFLOW): New access macro.
415 * c-common.c (build_userdef_literal): Add overflow_type
416 argument.
417 * c-lex.c (c_lex_with_flags): Add overflow_type to
418 build_userdef_literal calls.
419 (interpret_integer, interpret_float): Add overflow_type argument.
420
cc3c4f62
RB
4212012-11-28 Richard Biener <rguenther@suse.de>
422
423 PR c/35634
424 * c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
425 here and use a type with proper overflow behavior for types that would
426 need to be promoted for the arithmetic.
427
77bc5132
JJ
4282012-11-23 Jakub Jelinek <jakub@redhat.com>
429
430 PR sanitizer/55435
431 * c-common.c (handle_no_address_safety_analysis_attribute): New
432 function.
433 (c_common_attribute_table): Add no_address_safety_analysis.
434
5dc99c46
SB
4352012-11-16 Simon Baldwin <simonb@google.com>
436
437 * c.opt: Add f[no-]canonical-system-headers.
438 * c-opts.c (c_common_handle_option): Handle
439 OPT_fcanonical_system_headers.
440
a4a0016d
ESR
4412012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
442
443 PR c++/54413
444 * c-opts.c (c_common_handle_option): Set new flags.
445 * c.opt: Describe new flags.
446
7dbb85a7
JM
4472012-11-09 Jason Merrill <jason@redhat.com>
448
449 * c.opt (Wabi-tag): New.
450
ad7bac31
AK
4512012-11-09 Andi Kleen <ak@linux.intel.com>
452
453 PR 55139
454 * c-common.c (get_atomic_generic_size): Mask with
455 MEMMODEL_MASK
456
7332899a
MLI
4572012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
458
459 PR c/53063
460 * c.opt (Wformat): Make it Alias Wformat=1.
461 (Wformat-contains-nul,Wformat-extra-args,Wformat-nonliteral,
462 Wformat-security,Wformat-y2k,Wformat-zero-length): Use
463 LangEnabledBy.
464 (Wformat=): RejectNegative. Use LangEnabledBy.
465 (Wnonnull): Use LangEnabledBy.
466 * c-opts.c (c_common_handle_option): Do not handle Wformat here.
467 * c-format.c (set_Wformat): Delete.
468 (decode_format_attr): Replace OPT_Wformat with OPT_Wformat_.
469 (maybe_read_dollar_number): Likewise.
470 (avoid_dollar_number): Likewise.
471 (finish_dollar_format_checking): Likewise.
472 (check_format_info): Likewise.
473 (check_format_info_main): Likewise.
474 (check_format_types): Likewise.
475 (format_type_warning): Likewise.
476 * c-common.c (int): Likewise.
477 (check_function_sentinel): Likewise.
478 * c-common.h (warn_format,set_Wformat): Do not declare here.
479
34a180a6
MLI
4802012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
481
482 PR c/53063
483 * c.opt(Warray-bounds,Wdelete-non-virtual-dtor,Wenum-compare,
484 Wmain,Woverlength-strings, Wunknown-pragmas,Wunused-macros):
485 Use LangEnabledBy.
486 (Wswitch,Wswitch-default,Wswitch-enum): Likewise. Move here from
487 common.opt.
488 (Wvariadic-macros): Init(1).
489 * c-opts.c (c_common_handle_option): Do not handle them
490 explicitly.
491 (c_common_post_options): Likewise.
492 (sanitize_cpp_opts): warn_unused_macros is now
493 cpp_warn_unused_macros.
494 (push_command_line_include): Likewise.
495 * c-common.c (warn_unknown_pragmas): Do not define.
496 * c-common.h (warn_unknown_pragmas): Do not declare.
497
3f46d6a5
MLI
4982012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
499
500 PR c/51294
501 * c-common.c (conversion_warning): Handle conditional expressions.
502
880661a4
JW
5032012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
504
505 PR c++/54930
506 * c.opt (Wreturn_local_addr): Define new option.
507
4514a96b
JM
5082012-10-25 Jason Merrill <jason@redhat.com>
509
f14edc1a
JM
510 * c.opt (Wvirtual-move-assign): New.
511
4514a96b
JM
512 * c.opt (Winherited-variadic-ctor): New.
513
93100c6b
MG
5142012-10-25 Marc Glisse <marc.glisse@inria.fr>
515
516 PR c++/54427
517 * c-common.c (scalar_to_vector): Handle VEC_COND_EXPR.
518
1efcb8c6
JM
5192012-10-23 Joseph Myers <joseph@codesourcery.com>
520
521 * c-common.h (pch_cpp_save_state): Declare.
522 * c-target.def (c_preinclude): New hook.
523 * c-opts.c (done_preinclude): New.
524 (push_command_line_include): Handle default preincluded header.
525 (cb_file_change): Call pch_cpp_save_state when calling
526 push_command_line_include.
527 * c-pch.c (pch_ready_to_save_cpp_state, pch_cpp_state_saved)
528 (pch_cpp_save_state): New.
529 (pch_init): Call pch_cpp_save_state conditionally, instead of
530 calling cpp_save_state.
531
4a0ae68e
MLI
5322012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
533
534 PR c/53063
535 PR c/40989
536 * c.opt (Waddress,Wchar-subscripts,Wsign-conversion,Wimplicit,
537 Wimplicit-function-declaration,Wimplicit-int,Wsizeof-pointer-memaccess,
538 Wnarrowing,Wparentheses,Wpointer-sign,Wreturn-type,Wsequence-point,
539 Wsign-compare,Wuninitialized,Wmaybe-uninitialized,Wunused,
540 Wvolatile-register-var): Add LangEnabledBy or EnabledBy.
541 * c-opts.c (c_common_handle_option): Remove explicit handling from
542 here.
543 (c_common_post_options): Likewise.
544
67e4210b
EB
5452012-10-18 Eric Botcazou <ebotcazou@adacore.com>
546
547 * c-ada-spec.c (LOCATION_COL): Delete.
548 (compare_location): New function.
549 (compare_node): Use it.
550 (compare_comment): Likewise.
551
65d4f2cd
MLI
5522012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
553
554 PR c/53063
555 PR c/40989
556 * c.opt (Wstrict-aliasing=,Wstrict-overflow=): Use LangEnabledBy.
557 * c-opts.c (c_common_handle_option): Do not set them here. Add
558 comment.
559 (c_common_post_options): Likewise.
560
909881cb
EB
5612012-10-16 Eric Botcazou <ebotcazou@adacore.com>
562
563 * c-ada-spec.c (ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX): Define.
564 (dump_generic_ada_node) <INTEGER_CST>: Deal with sizetype specially.
565 Remove POINTER_TYPE handling, add large unsigned handling and use
566 ADA_HOST_WIDE_INT_PRINT_DOUBLE_HEX for big numbers.
567
3a785c97
JJ
5682012-10-12 Jakub Jelinek <jakub@redhat.com>
569
570 PR c/54381
571 * c-common.h (sizeof_pointer_memaccess_warning): Adjust prototype.
572 * c-common.c (sizeof_pointer_memaccess_warning): Take array of 3
573 locs and array of 3 trees instead of just single loc and single
574 sizeof_arg tree. Handle __builtin___*_chk builtins too, and
575 also stpncpy, bcopy, bcmp, bzero, snprintf and vsnprintf builtins.
576 For *cmp* builtins that take two sources strings report warnings
577 about first and second source, not about destination and source.
578
5e54f81d
MG
5792012-10-12 Marc Glisse <marc.glisse@inria.fr>
580
581 PR c++/53055
582 * c-common.h (enum ref_operator) [RO_ARROW_STAR]: New.
583
f5b02f1e
EB
5842012-10-11 Eric Botcazou <ebotcazou@adacore.com>
585
586 * c-ada-spec.c (dump_ada_template): Bail out for template declarations
587 declaring something coming from another file.
588
b46dbc6c
AC
5892012-10-10 Arnaud Charlet <charlet@adacore.com>
590
f5b02f1e 591 PR ada/54845
b46dbc6c
AC
592 * c-ada-spec.c (print_ada_struct_decl): Increase buf size.
593
5d9de0d0
PC
5942012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
595
596 PR c++/54194
597 * c-common.c (warn_about_parentheses): Add location_t parameter;
598 use EXPR_LOC_OR_LOC.
599 * c-common.h: Update declaration.
600
a212e43f
MG
6012012-10-09 Marc Glisse <marc.glisse@inria.fr>
602
603 PR c++/54427
604 * c-common.c (scalar_to_vector): Moved from c-typeck.c. Support
605 more operations. Make error messages optional.
606 * c-common.h (enum stv_conv): Moved from c-typeck.c.
607 (scalar_to_vector): Declare.
608
b1db7f91
JM
6092012-10-08 Jason Merrill <jason@redhat.com>
610
611 * c-common.c (c_common_reswords): Add thread_local.
612
e28d52cf
DS
6132012-10-08 Dodji Seketeli <dodji@redhat.com>
614
615 PR c++/53528 C++11 attribute support
616 * c-common.h (bitfield_p, cxx_fundamental_alignment_p): Declare
617 new functions.
618 * c-common.c (check_cxx_fundamental_alignment_constraints): New
619 static function.
620 (handle_aligned_attribute): In choose strictest alignment
621 among many. Use new check_cxx_fundamental_alignment_constraints.
622 (handle_transparent_union_attribute): In c++11 attribute syntax,
623 don't look through typedefs.
624
3b78de56
AC
6252012-10-04 Arnaud Charlet <charlet@adacore.com>
626
627 * c-ada-spec.c (print_ada_declaration): Remove handling of TDF_RAW.
628 * c.opt (-fdump-ada-spec, -fdump-ada-spec-slim): Move switch definition
629 out of dumpfile.h.
630
6040bb5f
DC
6312012-09-25 Dehao Chen <dehao@google.com>
632
633 PR middle-end/54645
3b78de56 634 * c-pch.c (c_common_read_pch): Rebuild the location_adhoc_data
6040bb5f
DC
635 map when read in the pch.
636
0b07a57e
AC
6372012-09-18 Arnaud Charlet <charlet@adacore.com>
638
639 * c-ada-spec.c: Style fixes.
640
da5182be
TQ
6412012-09-18 Thomas Quinot <quinot@adacore.com>
642
643 * c.opt (-fada-spec-parent): Define new command line switch.
644 * c-ada-spec.c (get_ada_package): When -fada-spec-parent
645 is specified, generate binding spec as a child of the specified unit.
646
0ccb505d
PC
6472012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
648 Manuel López-Ibáñez <manu@gcc.gnu.org>
649
650 PR c++/53210
651 * c.opt ([Winit-self]): Enabled by -Wall in C++.
652
c583af79
AC
6532012-08-23 Arnaud Charlet <charlet@adacore.com>
654
655 * c-ada-spec.c (dump_generic_ada_node): Fix handling of name_only
656 for pointers, and add missing Convention C pragma.
657 (print_ada_struct_decl): Add missing aliased keyword.
658 (dump_ads): Add pragma Ada_2005 and Style_Checks (Off).
659
1a4049e7
JJ
6602012-08-17 Jakub Jelinek <jakub@redhat.com>
661
662 * c-common.c (sizeof_pointer_memaccess_warning): New function.
663 * c.opt (-Wsizeof-pointer-memaccess): Add new option.
664 * c-opts.c (c_common_handle_option): Enable it for -Wall.
665 * c-common.h (sizeof_pointer_memaccess_warning): Add prototype.
666 * c-common.def (SIZEOF_EXPR): Moved here from cp-tree.def.
667
70b5e7dc
RG
6682012-08-10 Richard Guenther <rguenther@suse.de>
669
670 * c-pretty-print.c (pp_c_expression): Handle anonymous SSA names.
671
f8923f7e
SB
6722012-08-07 Steven Bosscher <steven@gcc.gnu.org>
673
674 * c-pretty-print.c (pp_c_function_definition): Use pp_newline_and_flush
675 instead of separate pp_newline and pp_flush.
676 (print_c_tree): Likewise.
677
e45abe1f
RH
6782012-07-26 Richard Henderson <rth@redhat.com>
679
680 * c-common.c (handle_hot_attribute): Allow labels.
681 (handle_cold_attribute): Likewise.
682
332f1d24
JJ
6832012-07-20 Jakub Jelinek <jakub@redhat.com>
684
685 PR c++/28656
686 * c-common.c (check_function_nonnull): Handle multiple nonnull
687 attributes properly.
688
7ee2468b
SB
6892012-07-16 Steven Bosscher <steven@gcc.gnu.org>
690
691 * c-gimplify.c: Include dumpfile.h instead of tree-dump.h.
692 * c-ada-spec.c: Likewise.
693 * c-dump.c (dump_stmt): Move to cp/dump.c, the only user.
694
ee7b28eb
SB
6952012-07-14 Steven Bosscher <steven@gcc.gnu.org>
696
697 * c-pch.c (CHECK_NO_ASM_OUT_DURING_PCH): Do not define.
698 Remove code conditional on it.
699
6bdf3519
SB
7002012-07-11 Steven Bosscher <steven@gcc.gnu.org>
701
702 * c-gimplify.c: Do not include basic-block.h.
703 * c-common.c: Do not include linfuncs.h.
704
532aafad
SB
7052012-07-08 Steven Bosscher <steven@gcc.gnu.org>
706
707 * c-common.h: Include tree.h.
708
8d0d1915
JM
7092012-07-02 Jason Merrill <jason@redhat.com>
710
711 PR c++/53524
712 * c-common.c (get_priority): Call default_conversion.
713
fbc873ad
UB
7142012-07-01 Uros Bizjak <ubizjak@gmail.com>
715
716 * c-pch.c (c_common_write_pch): Remove unused variables.
717
d4a10d0a
SB
7182012-06-29 Steven Bosscher <steven@gcc.gnu.org>
719
720 * cppspec.c: Moved from gcc/ to here.
721
6f3a2e23
KT
7222012-06-27 Kai Tietz <ktietz@redhat.com>
723
724 PR preprocessor/37215
725 * c-ppoutput.c (preprocess_file): Check for nonempty buffer.
726
8ca92d04
SB
7272012-06-21 Steven Bosscher <steven@gcc.gnu.org>
728
729 * c-common.h (c_common_print_pch_checksum): Remove.
730 * c-pch.c: Do not include output.h.
731 (CHECK_NO_ASM_OUT_DURING_PCH): Define and add FIXME.
732 (asm_out_file): Define iff CHECK_NO_ASM_OUT_DURING_PCH isdefined.
733 (asm_file_startpos): Define iff CHECK_NO_ASM_OUT_DURING_PCH is defined.
734 (struct c_pch_header): Remove.
735 (get_ident): Update gpch version.
736 (pch_init): Do not print executable_checksum to asm_out_file.
737 Do not fail if there is no asm_out_file to read back from. Set
738 asm_file_startpos only if CHECK_NO_ASM_OUT_DURING_PCH is defined.
739 (c_common_write_pch): Verify that nothing was written to asm_out_file
740 since pch_init was called. Do not write a c_pch_header, and do not
741 copy from asm_out_file to the PCH.
742 (c_common_read_pch): Do not read a c_pch_header, and do not restore
743 the content of asm_out_file from the PCH.
744 (c_common_print_pch_checksum): Remove.
745 * c-opts.c (c_common_init): Print out executable_checksum directly.
746
70f42967
SB
7472012-06-19 Steven Bosscher <steven@gcc.gnu.org>
748
749 * c-target.def (objc_declare_unresolved_class_reference,
750 objc_declare_class_definition): Add new hooks.
751
a8781821
SB
7522012-06-19 Steven Bosscher <steven@gcc.gnu.org>
753
754 * c-lex.c: Do not include output.h.
755 (cb_ident): Try to put out .ident with targetm.asm_out.output_ident.
756 Remove uses of ASM_OUTPUT_IDENT.
757
9e1a8dd1
RR
7582012-06-15 Marc Glisse <marc.glisse@inria.fr>
759
760 PR c++/51033
761 * c-common.h (c_build_vec_perm_expr): Move decl here.
762 * c-common.c (c_build_vec_perm_expr): Move definition
763 here.
764
6f07a821
SB
7652012-06-06 Steven Bosscher <steven@gcc.gnu.org>
766
767 * c.opt (fconserve-space): Turn into a no-op.
768
9faeb493 7692012-06-04 Sterling Augustine <saugustine@google.com>
c265f413
SA
770
771 * c-pretty-print.h (pp_c_flag_gnu_v3): New enumerator.
772 * c-pretty-print.c (pp_c_specifier_qualifier_list): Check it at
773 both the start and end of the function.
774
a4b7d13c
SB
7752012-06-04 Steven Bosscher <steven@gcc.gnu.org>
776
777 * c-common.c: Do not include output.h.
778 * c-pragma.c: Likewise.
779
c265f413
SA
7802012-06-04 Steven Bosscher <steven@gcc.gnu.org>
781
782 * error.c (dump_decl): Check pp_c_flag_gnu_v3.
783 (decl_as_dwarf_string, lang_decl_dwarf_name): New functions.
784 (lang_decl_name): Handle namespace decls.
785
be7a421e
SB
7862012-05-31 Steven Bosscher <steven@gcc.gnu.org>
787
788 * c-ada-spec.c: Do not include output.h.
789 * c-semantics.c: Likewise.
790
65de6659
JM
7912012-05-29 Joseph Myers <joseph@codesourcery.com>
792
793 * c-common.c: Fix typo.
794
ca5f4331
MM
7952012-05-29 Michael Matz <matz@suse.de>
796
797 * c-common.h (c_expand_decl): Remove prototype.
798
4f7f7aca
MLI
7992012-05-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
800
801 * c.opt (Wmissing-braces): Use LangEnabledBy(C ObjC,Wall).
802 * c-opts.c (c_common_handle_option): Remove code handling
803 warn_missing_braces.
804
4a792f9b
PC
8052012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
806
807 PR c++/25137
808 * c-opts.c (c_common_handle_option): For C++ -Wall doesn't enable
809 -Wmissing_braces.
810
650dc14a
DS
8112012-05-22 Dodji Seketeli <dodji@redhat.com>
812
813 PR c++/53322
814 * c.opt (Wunused-local-typedefs): Use EnabledBy(Wunused).
815
9b095bf1
MLI
8162012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
817
818 * c.opt (--pedantic-errors,-pedantic-errors): Do not handle here.
819 * c-opts.c (c_common_handle_option): Do not handle explicitly
820 Wreturn-type, Wwrite-strings, warn_ecpp, and -pedantic-errors.
821
0b2c4be5
DS
8222012-05-16 Dodji Seketeli <dodji@redhat.com>
823
824 PR preprocessor/7263
825 * c-lex.c (c_lex_with_flags): Pass a virtual location to the call
826 to cpp_classify_number. For diagnostics, use the precise location
827 instead of the global input_location.
828
a1bde5af
PC
8292012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
830
d02924ef 831 PR c++/11856
a1bde5af
PC
832 * c-common.c (shorten_compare): Check c_inhibit_evaluation_warnings.
833
d1ede5f4
BS
8342012-05-14 Bernd Schmidt <bernds@codesourcery.com>
835
a1bde5af 836 * c-common.c (DEF_ATTR_STRING): Define and undefine as necessary.
d1ede5f4 837
f2bc201f
MLI
8382012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
839
840 PR 53063
841 * c.opt (Wc++0X-compat,Wdelete-non-virtual-dtor,Wjump-misses-init,
842 Wreorder): Use LangEnabledBy.
843 * c-opts.c (c_common_handle_option): Do not enable them
844 explicitly. Call lang-specific generated functions.
845 (c_common_post_options): Do not set them here.
846
95744782
MLI
8472012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
848
849 * c.opt (Wclobbered,Wempty-body,Wignored-qualifiers,
850 Wmissing-field-initializers,Wmissing-parameter-type,
851 Wold-style-declaration,Woverride-init): Use EnabledBy.
852 * c-opts.c (c_common_post_options): Do not set here explicitly.
853
7d5a5747
MLI
8542012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
855
856 PR 53063
857 * c-opts.c (c_common_handle_option): Use handle_generated_option
858 to enable sub-options.
859
5a3c9cf2
PC
8602012-05-10 Paolo Carlini <paolo.carlini@oracle.com>
861
862 PR c++/53158
863 * c-common.c (warnings_for_convert_and_check): Use warning_at.
864
3ac8781c
RG
8652012-05-10 Richard Guenther <rguenther@suse.de>
866
867 * c-common.c (c_sizeof_or_alignof_type): Remove assert and
868 adjust commentary about TYPE_IS_SIZETYPE types.
869
1e537948
MLI
8702012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
871
872 PR c++/53261
873 * c-common.c (warn_logical_operator): Check that argument of
874 integer_zerop is not NULL.
875
f2c4a785
MLI
8762012-05-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
877
878 PR c/43772
879 * c-common.c (warn_logical_operator): Do not warn if either side
880 is already true or false.
881
50f305ca
MLI
8822012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
883
884 PR c/51712
885 * c-common.c (expr_original_type): New.
886 (shorten_compare): Do not warn for enumeration types.
887
0c3641b0
MLI
8882012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
889
890 * c.opt (fpermissive): Add Var(flag_permissive).
891
7edaa4d2
MG
8922012-04-30 Marc Glisse <marc.glisse@inria.fr>
893
894 PR c++/51033
895 * c-common.c (convert_vector_to_pointer_for_subscript): New function.
896 * c-common.h (convert_vector_to_pointer_for_subscript): Declare it.
897
b9c8da34
DS
8982012-04-30 Dodji Seketeli <dodji@redhat.com>
899
900 Add -Wvarargs option
901 * c.opt (Wvarargs): Define new option.
902
e6c69da0
MLI
9032012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
904
905 * c-common.c (check_function_arguments): Replace
906 Wmissing-format-attribute with Wsuggest-attribute=format.
907
90137d8f
MLI
9082012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
909
910 * c.opt (Wsuggest-attribute=format): New. Alias of
911 Wmissing-format-attribute.
912 * c-format.c (decode_format_type): Replace
913 Wmissing-format-attribute with Wsuggest-attribute=format.
914 (check_function_format): Likewise.
915
9faeb493 9162012-04-27 Ollie Wild <aaw@google.com>
7f5f5f98
OW
917
918 * c-common.c: Add CPP_W_LITERAL_SUFFIX mapping.
919 * c-opts.c (c_common_handle_option): Handle OPT_Wliteral_suffix.
920 * c.opt: Add Wliteral-suffix.
921
c1771a20
MLI
9222012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
923
924 PR c/44774
925 * c.opt (Wpedantic): New.
926 (pedantic): Alias Wpedantic.
927 * c-opts.c (c_common_handle_option): Replace -pedantic with -Wpedantic.
928 (c_common_post_options): Likewise.
929 (sanitize_cpp_opts): Likewise.
930 * c-lex.c (interpret_float): Likewise.
931 * c-format.c (check_format_types): Likewise.
932 * c-common.c (pointer_int_sum): Likewise.
933 (c_sizeof_or_alignof_type): Likewise.
934 (c_add_case_label): Likewise.
935 (c_do_switch_warnings): Likewise.
936 * c-pragma.c (handle_pragma_float_const_decimal64): Likewise.
937
04b391c1
JM
9382012-04-15 Jason Merrill <jason@redhat.com>
939
940 PR c++/52818
941 * c-format.c (CPLUSPLUS_STD_VER): C++11 inherits from C99.
942 (C_STD_NAME): Distinguish between C++98 and C++11.
943
ac868f29
EB
9442012-04-11 Eric Botcazou <ebotcazou@adacore.com>
945
946 PR target/52624
947 * c-common.h (uint16_type_node): Rename into...
948 (c_uint16_type_node): ...this.
949 * c-common.c (c_common_nodes_and_builtins): Adjust for above renaming.
950 * c-cppbuiltin.c (builtin_define_stdint_macros): Likewise.
951
fd4116f4
MLI
9522012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
953
954 * c-common.c (warn_if_unused_value): Move definition to here.
955 * c-common.h (warn_if_unused_value): Move declaration to here.
956
573ac65e
WB
9572012-03-23 William Bader <williambader@hotmail.com>
958
959 * c-lex.c (c_lex_with_flags): Avoid declarations after stmts.
960
552b8185
JM
9612012-03-20 Jason Merrill <jason@redhat.com>
962
963 * c-common.h (enum cxx_dialect): Add cxx1y.
964 * c-common.c (c_common_nodes_and_builtins): Use >= for cxx_dialect
965 test.
966 * c-cppbuiltin.c (c_cpp_builtins): Likewise.
967 * c-opts.c (c_common_post_options): Likewise.
968 (set_std_cxx1y): New.
969 (c_common_handle_option): Call it.
970 * c.opt (-std=c++1y, -std=gnu++1y): New flags.
971
04398fa8
PC
9722012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
973
974 PR c++/14710
975 * c.opt ([Wuseless-cast]): Add.
976
d2a12ae7
RG
9772012-03-16 Richard Guenther <rguenther@suse.de>
978
979 * c-pretty-print.c (pp_c_initializer_list): Adjust.
980
a12bf402
MLI
9812012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
982
983 PR c++/44783
984 * c.opt (ftemplate-backtrace-limit) Add.
985
5c30094f
RO
9862012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
987
988 * c-cppbuiltin.c (c_cpp_builtins): Remove #pragma extern_prefix
989 handling.
990 * c-pragma.c (handle_pragma_extern_prefix): Remove.
991 (init_pragma): Don't register extern_prefix.
992
21fa2faf
RG
9932012-03-12 Richard Guenther <rguenther@suse.de>
994
995 * c-common.c (c_common_get_narrower): Use c_common_type_for_size.
996 (builtin_type_for_size): Likewise.
997
e3793c6f
JJ
9982012-02-13 Jakub Jelinek <jakub@redhat.com>
999
1000 PR c++/52215
1001 * c-common.c (sync_resolve_params): Don't decide whether to convert
1002 or not based on TYPE_SIZE comparison, convert whenever arg_type
1003 is unsigned INTEGER_TYPE.
1004
93286335
PC
10052012-02-06 Paolo Carlini <paolo.carlini@oracle.com>
1006
1007 PR c/52118
1008 * c.opt ([Wunused-local-typedefs]): Fix description.
1009
7a421706
MS
10102012-01-24 Mike Stump <mikestump@comcast.net>
1011
1012 * c-common.c (c_common_type_for_mode): Match signed/unsigned types
1013 exactly.
1014
ba9b1f11
RG
10152012-01-18 Richard Guenther <rguenther@suse.de>
1016
1017 * c-opts.c (c_common_post_options): Reset LTO flags if
1018 we are about to generate a PCH.
1019
465406be
PC
10202012-01-17 Paolo Carlini <paolo.carlini@oracle.com>
1021
1022 PR c++/51777
1023 * c-pretty-print.c (pp_c_integer_constant): For unsigned constants
1024 use pp_unsigned_wide_integer.
1025
aee15221
RG
10262012-01-10 Richard Guenther <rguenther@suse.de>
1027
1028 PR middle-end/51806
1029 * c-opts.c (c_common_handle_option): Move -Werror handling
1030 to language independent code.
1031
5720c0dc
RG
10322012-01-05 Richard Guenther <rguenther@suse.de>
1033
1034 PR middle-end/51764
1035 * c.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move here
1036 from common.opt.
1037
73ac190a
PC
10382011-12-30 Paolo Carlini <paolo.carlini@oracle.com>
1039
1040 PR c++/51316
1041 * c-common.c (c_sizeof_or_alignof_type): In C++ allow for alignof
1042 of array types with an unknown bound.
1043
48b0b196
JM
10442011-12-20 Joseph Myers <joseph@codesourcery.com>
1045
1046 * c-common.c (flag_isoc99): Update comment to refer to C11.
1047 (flag_isoc1x): Change to flag_isoc11.
1048 * c-common.h (flag_isoc99): Update comment to refer to C11.
1049 (flag_isoc1x): Change to flag_isoc11.
1050 * c-cppbuiltin.c (cpp_atomic_builtins): Change comment to refer to
1051 C11.
1052 * c-opts.c (set_std_c1x): Change to set_std_c11.
1053 (c_common_handle_option): Handle OPT_std_c11 and OPT_std_gnu11.
1054 Call set_std_c11.
1055 (set_std_c89, set_std_c99, set_std_c11): Use flag_isoc11.
1056 (set_std_c1): Use CLK_STDC11 and CLK_GNUC11.
1057 * c.opt (std=c1x): Change to std=c11. Document as non-draft
1058 standard.
1059 (std=c1x, std=iso9899:2011): Add as aliases of std=c11.
1060 (std=gnu1x): Change to std=gnu11. Refer to non-draft standard.
1061 (std=gnu1x): Make alias of std=gnu11.
1062
d58d6eb5
JM
10632011-12-19 Jason Merrill <jason@redhat.com>
1064
1065 PR c++/51228
1066 * c-common.c (handle_transparent_union_attribute): Check the first
1067 field if the type is complete.
1068
b3908fcc
JW
10692011-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
1070
1071 PR libstdc++/51365
1072 * c-common.c (RID_IS_FINAL): Add.
1073 * c-common.h (RID_IS_FINAL): Add.
1074
fea3ca91
IS
10752011-11-30 Iain Sandoe <iains@gcc.gnu.org>
1076
1077 * c.opt (fgnu-runtime): Provide full description.
1078 (fnext-runtime): Likewise.
1079 * c-opts.c (OPT_fgnu_runtime, OPT_fnext_runtime) Remove.
1080
62bad7cd
AM
10812011-11-28 Andrew MacLeod <amacleod@redhat.com>
1082
1083 * c-cpp-builtin.c (cpp_atomic_builtins):New. Emit all atomic
1084 predefines in one place. Add LOCK_FREE predefines.
1085 (c_cpp_builtins): Move Legacy HAVE_SYNC predefines to
1086 new func.
1087
c466c4ff
AM
10882011-11-24 Andrew MacLeod <amacleod@redhat.com>
1089
1090 PR c/51256
9faeb493 1091 * c-common.c (get_atomic_generic_size): Check for various error
c466c4ff 1092 conditions
9faeb493
UB
1093 (resolve_overloaded_atomic_exchange,
1094 resolve_overloaded_atomic_compare_exchange,
c466c4ff
AM
1095 resolve_overloaded_atomic_load, resolve_overloaded_atomic_store): Return
1096 error_mark_node for error conditions.
9faeb493 1097
a5952633
RG
10982011-11-08 Richard Guenther <rguenther@suse.de>
1099
1100 PR middle-end/51010
1101 c-family/
1102
0a35513e
AH
11032011-11-07 Richard Henderson <rth@redhat.com>
1104 Aldy Hernandez <aldyh@redhat.com>
1105 Torvald Riegel <triegel@redhat.com>
1106
1107 Merged from transactional-memory.
1108
1109 * c-common.c (handle_tm_wrap_attribute,
1110 handle_tm_attribute, ignore_attribute, parse_tm_stmt_attr): New.
1111 (struct c_common_reswords): Added __transaction* keywords.
1112 (struct c_common_attribute_table): Added transaction* and tm_regparm
1113 attributes.
1114 * c-common.h: Added RID_TRANSACTION*. Added TM_ATTR* and TM_STMT*
1115 masks.
1116 (parse_tm_stmt_attr, tm_attr_to_mask, tm_mask_to_attr,
1117 find_tm_attribute): Declare.
1118
6d87092d
JM
11192011-11-07 Jason Merrill <jason@redhat.com>
1120
1121 PR c++/35688
1122 * c-common.c, c-common.h: Revert yesterday's changes.
1123
8e7860a1
JM
11242011-11-06 Jason Merrill <jason@redhat.com>
1125
1126 PR c++/35688
1127 * c-common.c (decl_has_visibility_attr): Split out from...
1128 (c_determine_visibility): ...here.
1129 * c-common.h: Declare it.
1130
d19fa6b5
JM
11312011-11-06 Joseph Myers <joseph@codesourcery.com>
1132
1133 * c-common.c (c_common_reswords): Add _Alignas and _Alignof.
1134 (c_sizeof_or_alignof_type): Diagnose alignof applied to a function
1135 type.
1136 (check_user_alignment): New. Split out of
1137 handle_aligned_attribute. Disallow integer constants with
1138 noninteger types. Conditionally allow zero.
1139 (handle_aligned_attribute): Use check_user_alignment.
1140 * c-common.h (RID_ALIGNAS, check_user_alignment): New.
1141
86951993
AM
11422011-11-06 Andrew MacLeod <amacleod@redhat.com>
1143 Richard Henderson <rth@redhat.com>
1144
1145 Merged from cxx-mem-model.
1146
1147 * c-cppbuiltin.c (c_cpp_builtins): Test both atomic and sync patterns.
9faeb493 1148 * c-common.c (sync_resolve_params, sync_resolve_return): Only tweak
86951993
AM
1149 parameters that are the same type size.
1150 (get_atomic_generic_size): New. Find size of generic
1151 atomic function parameters and do typechecking.
1152 (add_atomic_size_parameter): New. Insert size into parameter list.
1153 (resolve_overloaded_atomic_exchange): Restructure __atomic_exchange to
1154 either __atomic_exchange_n or external library call.
9faeb493 1155 (resolve_overloaded_atomic_compare_exchange): Restructure
86951993 1156 __atomic_compare_exchange to either _n variant or external library call.
9faeb493 1157 (resolve_overloaded_atomic_load): Restructure __atomic_load to either
86951993
AM
1158 __atomic_load_n or an external library call.
1159 (resolve_overloaded_atomic_store): Restructure __atomic_store to either
1160 __atomic_store_n or an external library call.
1161 (resolve_overloaded_builtin): Handle new __atomic builtins.
1162
cf9e9959
EB
11632011-11-04 Eric Botcazou <ebotcazou@adacore.com>
1164
1165 PR c++/50608
1166 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Call fold_offsetof_1.
1167 (fold_offsetof_1): Make global. Remove STOP_REF argument and adjust.
1168 <INDIRECT_REF>: Return the argument.
1169 <ARRAY_REF>: Remove special code for negative offset.
1170 Call fold_build_pointer_plus instead of size_binop.
1171 (fold_offsetof): Remove STOP_REF argument and adjust.
1172 * c-common.h (fold_offsetof_1): Declare.
1173 (fold_offsetof): Remove STOP_REF argument.
1174
25339f10
JM
11752011-11-02 Paolo Carlini <paolo.carlini@oracle.com>
1176
1177 PR c++/50810
1178 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1179 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1180 Wnarrowing for C++0x and C++98.
1181 * c.opt ([Wnarrowing]): Update.
1182
89401152
PC
11832011-11-01 Paolo Carlini <paolo.carlini@oracle.com>
1184
1185 PR c++/44277
1186 * c.opt: Add Wzero-as-null-pointer-constant.
1187
97e3ad20
JM
11882011-10-31 Jason Merrill <jason@redhat.com>
1189
15694fdd
JM
1190 * c.opt (-fdeduce-init-list): Off by default.
1191
97e3ad20
JM
1192 PR c++/50920
1193 * c-common.h (cxx_dialect): Add cxx11 and cxx03.
1194 * c.opt: Add -std=c++11, -std=gnu++11, -std=gnu++03,
1195 and -Wc++11-compat.
1196 * c-opts.c (set_std_cxx11): Rename from set_std_cxx0x.
1197
fb9120e3
RAV
11982011-10-27 Roberto Agostino Vitillo <ravitillo@lbl.gov>
1199
1200 PR c++/30066
1201 * c.opt (fvisibility-inlines-hidden): Description change.
1202
3ce4f9e4
ESR
12032011-10-26 Ed Smith-Rowland <3dw4rd@verizon.net>
1204
1205 Implement C++11 user-defined literals.
1206 * c-common.c (build_userdef_literal): New.
1207 * c-common.def: New tree code.
1208 * c-common.h (tree_userdef_literal): New tree struct and accessors.
1209 * c-lex.c (interpret_float): Add suffix parm.
1210 (c_lex_with_flags): Build literal tokens.
1211
5f53c243
PC
12122011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1213
1214 PR c++/50841
1215 Revert:
1216 2011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1217
1218 PR c++/50810
1219 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1220 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1221 Wnarrowing for C++0x and C++98.
1222 * c.opt ([Wnarrowing]): Update.
1223
263734e1
PC
12242011-10-23 Paolo Carlini <paolo.carlini@oracle.com>
1225
1226 PR c++/50810
1227 * c-opts.c (c_common_handle_option): Enable -Wnarrowing as part
1228 of -Wall; include -Wnarrowing in -Wc++0x-compat; adjust default
1229 Wnarrowing for C++0x and C++98.
1230 * c.opt ([Wnarrowing]): Update.
1231
d2e312d7
PC
12322011-10-21 Paolo Carlini <paolo.carlini@oracle.com>
1233
1234 PR c++/45385
1235 * c-common.c (conversion_warning): Remove code looking for
1236 artificial operands.
1237
d17687f6
DS
12382011-10-18 Dodji Seketeli <dodji@redhat.com>
1239
1240 PR bootstrap/50760
1241 * c-lex.c (fe_file_change): Use LINEMAP_SYSP when
9faeb493 1242 !NO_IMPLICIT_EXTERN_C.
d17687f6 1243
fc8396e9
PC
12442011-10-17 Michael Spertus <mike_spertus@symantec.com>
1245
1246 * c-common.c (c_common_reswords): Add __bases,
1247 __direct_bases.
1248 * c-common.h: Add RID_BASES and RID_DIRECT_BASES.
1249
12502011-10-17 Paolo Carlini <paolo.carlini@oracle.com>
1251
1252 PR c++/50757
1253 * c.opt ([Wnonnull]): Add C++ and Objective-C++.
1254
847e697a
TT
12552011-10-15 Tom Tromey <tromey@redhat.com>
1256 Dodji Seketeli <dodji@redhat.com>
1257
1258 * c.opt (fdebug-cpp): New option.
1259 * c-opts.c (c_common_handle_option): Handle the option.
1260 * c-ppoutput.c (maybe_print_line_1): New static function. Takes an
1261 output stream in parameter. Factorized from ...
1262 (maybe_print_line): ... this. Dump location debug information when
1263 -fdebug-cpp is in effect.
1264 (print_line_1): New static function. Takes an output stream in
1265 parameter. Factorized from ...
1266 (print_line): ... here. Dump location information when -fdebug-cpp
1267 is in effect.
1268 (scan_translation_unit): Dump location information when
1269 -fdebug-cpp is in effect.
1270
92582b75
TT
12712011-10-15 Tom Tromey <tromey@redhat.com>
1272 Dodji Seketeli <dodji@redhat.com>
1273
1274 * c.opt (ftrack-macro-expansion): New option. Handle it with and
1275 without argument.
1276 * c-opts.c (c_common_handle_option)<case
1277 OPT_ftrack_macro_expansion_, case OPT_ftrack_macro_expansion>: New
1278 cases. Handle -ftrack-macro-expansion with and without argument.
1279
46427374
TT
12802011-10-15 Tom Tromey <tromey@redhat.com>
1281 Dodji Seketeli <dodji@redhat.com>
1282
1283 * c-ppoutput.c (scan_translation_unit, maybe_print_line)
1284 (print_line, cb_define, do_line_change): Adjust to avoid touching
1285 the internals of struct line_map. Use the public API instead.
1286 * c-pch.c (c_common_read_pch): Likewise.
1287 * c-lex.c (fe_file_change): Likewise.
1288
fc8396e9
PC
12892011-10-14 Paolo Carlini <paolo.carlini@oracle.com>
1290
1291 PR c++/17212
1292 * c.opt ([Wformat-zero-length]): Add C++ and Objective-C++.
1293
12942011-10-11 Paolo Carlini <paolo.carlini@oracle.com>
1295
1296 PR c++/33067
1297 * c-pretty-print.c (pp_c_floating_constant): Output
1298 max_digits10 (in the ISO C++ WG N1822 sense) decimal digits.
1299
e79983f4
MM
13002011-10-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1301
1302 * c-common.c (def_builtin_1): Delete old interface with two
1303 parallel arrays to hold standard builtin declarations, and replace
1304 it with a function based interface that can support creating
1305 builtins on the fly in the future. Change all uses, and poison
1306 the old names. Make sure 0 is not a legitimate builtin index.
1307 * c-omp.c (c_finish_omp_barrier): Ditto.
1308 (c_finish_omp_taskwait): Ditto.
1309 (c_finish_omp_flush): Ditto.
1310
6637388f
TG
13112011-10-11 Tristan Gingold <gingold@adacore.com>
1312
1313 * c.opt: (fallow-parameterless-variadic-functions): New.
1314
3797cb21
DS
13152011-09-08 Dodji Seketeli <dodji@redhat.com>
1316
1317 PR c++/33255 - Support -Wunused-local-typedefs warning
1318 * c-common.h (struct c_language_function::local_typedefs): New
1319 field.
9faeb493
UB
1320 (record_locally_defined_typedef, maybe_record_typedef_use)
1321 (maybe_warn_unused_local_typedefs): Declare new functions.
3797cb21 1322 * c-common.c (record_locally_defined_typedef)
9faeb493
UB
1323 (maybe_record_typedef_use)
1324 (maybe_warn_unused_local_typedefs): Define new functions.
3797cb21
DS
1325 * c.opt: Declare new -Wunused-local-typedefs flag.
1326
693ddb1b
EB
13272011-09-06 Eric Botcazou <ebotcazou@adacore.com>
1328
1329 PR middle-end/50266
1330 * c-common.c (c_fully_fold_internal) <ADDR_EXPR>: Fold offsetof-like
1331 computations.
1332
830c740f
RG
13332011-09-05 Richard Guenther <rguenther@suse.de>
1334
1335 * c-common.c (complete_array_type): Use ssize_int (-1) instead
1336 of integer_minus_one_node for empty array upper bounds.
1337
892a371f
DS
13382011-08-28 Dodji Seketeli <dodji@redhat.com>
1339
1340 * c-pch.c (c_common_read_pch): Call linemap_add with LC_ENTER as
1341 it's the first time it's being called on this main TU.
1342
0e3fdb48
RB
13432011-08-24 Richard Guenther <rguenther@suse.de>
1344
1345 PR c/49396
1346 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Fix conditional.
1347
13482011-08-22 Gabriel Charette <gchare@google.com>
e3dfef44
GC
1349
1350 * c-opts.c (c_finish_options): Force BUILTINS_LOCATION for tokens
1351 defined in cpp_init_builtins and c_cpp_builtins.
1352
d4a83c10
JM
13532011-08-19 Joseph Myers <joseph@codesourcery.com>
1354
1355 * c-common.c (c_common_reswords): Add __builtin_complex.
1356 * c-common.h (RID_BUILTIN_COMPLEX): New.
1357
bbceee64
JM
13582011-08-18 Joseph Myers <joseph@codesourcery.com>
1359
1360 * c-common.c (c_common_reswords): Add _Noreturn.
1361 (keyword_is_function_specifier): Handle RID_NORETURN.
1362 * c-common.h (RID_NORETURN): New.
1363
0e3a99ae
AS
13642011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1365
1366 * c-common.c (unsafe_conversion_p): New function. Check if it is
1367 unsafe to convert an expression to the type.
1368 (conversion_warning): Adjust, use unsafe_conversion_p.
1369 * c-common.h (unsafe_conversion_p): New function declaration.
1370
20906c66
JJ
13712011-08-02 Jakub Jelinek <jakub@redhat.com>
1372
1373 * c-common.h (c_finish_omp_atomic): Adjust prototype.
1374 (c_finish_omp_taskyield): New prototype.
1375 * c-omp.c (c_finish_omp_atomic): Add OPCODE, V, LHS1 and RHS1
1376 arguments. Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and
1377 OMP_ATOMIC_CAPTURE_NEW in addition to OMP_ATOMIC. If LHS1
1378 or RHS1 have side-effects, evaluate those too in the right spot,
1379 if it is a decl and LHS is also a decl, error out if they
1380 aren't the same.
1381 (c_finish_omp_taskyield): New function.
1382 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP to 201107.
1383 * c-pragma.c (omp_pragmas): Add taskyield.
1384 * c-pragma.h (enum pragma_kind): Add PRAGMA_OMP_TASKYIELD.
1385 (enum pragma_omp_clause): Add PRAGMA_OMP_CLAUSE_FINAL and
1386 PRAGMA_OMP_CLAUSE_MERGEABLE.
1387
770e5a2e
DS
13882011-07-25 Dodji Seketeli <dodji@redhat.com>
1389
1390 * c-common.h (set_underlying_type): Remove parm name from
1391 declaration.
1392
1baae426
RG
13932011-07-25 Romain Geissler <romain.geissler@gmail.com>
1394
1395 * c-pretty-print.h: Search c-common.h in c-family.
9faeb493 1396
fcb21722
JM
13972011-07-22 Jason Merrill <jason@redhat.com>
1398
76f86d00
JM
1399 PR c++/49793
1400 * c.opt (Wnarrowing): New.
1401
3a636414
JM
1402 PR c++/30112
1403 * c-common.h: Declare c_linkage_bindings.
1404 * c-pragma.c (handle_pragma_redefine_extname): Use it.
1405
fcb21722
JM
1406 PR c++/49813
1407 * c-opts.c (set_std_cxx0x): Set flag_isoc94 and flag_isoc99.
1408 * c-pretty-print.c (pp_c_cv_qualifiers): Check c_dialect_cxx as well
1409 as flag_isoc99 for 'restrict'.
1410 (pp_c_specifier_qualifier_list): Likewise for _Complex.
1411
02614448
ILT
14122011-07-21 Ian Lance Taylor <iant@google.com>
1413
1414 PR middle-end/49705
1415 * c-common.c (c_disable_warnings): New static function.
1416 (c_enable_warnings): New static function.
1417 (c_fully_fold_internal): Change local unused_p to bool. Call
1418 c_disable_warnings and c_enable_warnings rather than change
1419 c_inhibit_evaluation_warnings.
1420
34429675
JM
14212011-07-20 Jason Merrill <jason@redhat.com>
1422
1423 PR c++/6709 (DR 743)
1424 PR c++/42603 (DR 950)
1425 * c-common.h (CPP_KEYWORD, CPP_TEMPLATE_ID): Move from cp/parser.h.
1426 (CPP_NESTED_NAME_SPECIFIER, N_CP_TTYPES): Likewise.
1427 (CPP_DECLTYPE): New.
1428 * c-common.c (c_parse_error): Handle CPP_DECLTYPE.
1429
5d49b6a7
RG
14302011-07-19 Richard Guenther <rguenther@suse.de>
1431
1432 * c-common.c (pointer_int_sum): Use fold_build_pointer_plus.
1433 * c-omp.c (c_finish_omp_for): Likewise.
1434
e84a58ff
EB
14352011-07-12 Eric Botcazou <ebotcazou@adacore.com>
1436
1437 * c-ada-spec.c (dump_nested_types): Put semi-colon after empty loop
1438 body on the next line.
1439
329af3c7
JM
14402011-07-08 Jason Merrill <jason@redhat.com>
1441
4063e61b
JM
1442 PR c++/45437
1443 * c-omp.c (check_omp_for_incr_expr): Handle preevaluation.
1444
329af3c7
JM
1445 PR c++/49673
1446 * c-common.c (c_apply_type_quals_to_decl): Don't check
1447 TYPE_NEEDS_CONSTRUCTING.
1448
1a072294
RG
14492011-07-06 Richard Guenther <rguenther@suse.de>
1450
1451 * c-common.c (c_common_nodes_and_builtins):
1452 Merge calls to build_common_tree_nodes and build_common_tree_nodes_2.
1453
fce5dddd
RG
14542011-07-05 Richard Guenther <rguenther@suse.de>
1455
1456 * c-common.c (c_common_nodes_and_builtins): Build all common
1457 tree nodes first.
1458
45d439ac
JJ
14592011-06-27 Jakub Jelinek <jakub@redhat.com>
1460
56300785
JJ
1461 * c-common.h (c_tree_chain_next): New static inline function.
1462
45d439ac
JJ
1463 * c-common.c (check_builtin_function_arguments): Handle
1464 BUILT_IN_ASSUME_ALIGNED.
1465
e0a8ecf2
AM
14662011-06-21 Andrew MacLeod <amacleod@redhat.com>
1467
1468 * c-common.c: Add sync_ or SYNC__ to builtin names.
1469 * c-omp.c: Add sync_ or SYNC__ to builtin names.
dfb43cd5
PV
1470
14712011-06-20 Pierre Vittet <piervit@pvittet.com>
1472
1473 * c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
1474 handler.
1475 (gen_pragma_handler): New union.
1476 (internal_pragma_handler): New type.
1477 (c_register_pragma_with_data)
1478 (c_register_pragma_with_expansion_and_data): New functions.
1479
1480 * c-pragma.c (registered_pragmas, c_register_pragma_1)
1481 (c_register_pragma, c_register_pragma_with_expansion)
1482 (c_invoke_pragma_handler): Changed to work with
1483 internal_pragma_handler.
1484 (c_register_pragma_with_data)
1485 (c_register_pragma_with_expansion_and_data): New functions.
1486
677f3fa8
JM
14872011-06-14 Joseph Myers <joseph@codesourcery.com>
1488
1489 * c-common.c: Include common/common-target.h.
1490 (handle_section_attribute): Use
1491 targetm_common.have_named_sections.
1492 * c-cppbuiltin.c: Include common/common-target.h.
1493 (c_cpp_builtins): Use targetm_common.except_unwind_info.
1494
d7fc8c14
RG
14952011-06-10 Richard Guenther <rguenther@suse.de>
1496
1497 * c-pretty-print.c (pp_c_type_specifier): Use pp_c_identifier
1498 to print a IDENTIFIER_NODE.
1499
10e48e39
RO
15002011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1501 Joseph Myers <joseph@codesourcery.com>
1502
1503 * c.opt (fbuilding-libgcc): New option.
1504 * c-cppbuiltin.c (c_cpp_builtins): Define
1505 __LIBGCC_TRAMPOLINE_SIZE__ if flag_building_libgcc.
1506
6976ae51
JM
15072011-06-07 Jason Merrill <jason@redhat.com>
1508
3ff60975
JM
1509 * c-common.c (max_tinst_depth): Lower default to 900.
1510
6976ae51
JM
1511 * c-format.c (gcc_cxxdiag_char_table): Add 'S' format.
1512
009db074
RG
15132011-06-07 Richard Guenther <rguenther@suse.de>
1514
1515 * c-common.c (c_common_nodes_and_builtins): Do not set
1516 size_type_node or call set_sizetype.
1517
b4592b92
DS
15182011-06-07 Dodji Seketeli <dodji@redhat.com>
1519
1520 PR debug/49130
1521 * c-pretty-print.c (pp_c_integer_constant): Consider the canonical
9faeb493 1522 type when using pointer comparison to compare types.
b4592b92 1523
014ab419
JW
15242011-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
1525
1526 * c.opt: Add -Wdelete-non-virtual-dtor.
1527 * c-opts.c (c_common_handle_option): Include it in -Wall.
1528
4f60111f
NF
15292011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1530
1531 PR bootstrap/49190
1532
1533 Revert:
1534 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1535
1536 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1537 not tree_common.
1538
4cc4f2f4
JJ
15392011-05-27 Jakub Jelinek <jakub@redhat.com>
1540
1541 PR c++/49165
1542 * c-common.c (c_common_truthvalue_conversion) <case COND_EXPR>: For
1543 C++ don't call c_common_truthvalue_conversion on void type arms.
1544
38e01f9e
NF
15452011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1546
1547 * c-common.h (struct stmt_tree_s) [x_cur_stmt_list]: Change to a VEC.
1548 (stmt_list_stack): Define.
1549 (cur_stmt_list): Adjust for new type of x_cur_stmt_list.
1550 * c-semantics.c (push_stmt_list, pop_stmt_list): Likewise.
1551
92e948a8
NF
15522011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1553
1554 * c-common.c (warning_candidate_p): Check for BLOCKs.
1555
a2fc3e63
NF
15562011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1557
1558 * c-common.h (struct c_common_identifier): Inherit from tree_typed,
1559 not tree_common.
1560
0957c029
JJ
15612011-05-25 Jakub Jelinek <jakub@redhat.com>
1562
1563 * c-common.c (def_fn_type): Remove extra va_end.
1564
828fb3ba
JM
15652011-05-23 Jason Merrill <jason@redhat.com>
1566
1567 PR c++/48106
1568 * c-common.c (c_common_get_narrower): New.
1569 (shorten_binary_op, shorten_compare, warn_for_sign_compare): Use it.
1570
dde05067
NF
15712011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1572
1573 * c-common.h (check_function_arguments): Tweak prototype of
1574 check_function_arguments.
1575 * c-common.c (check_function_arguments): Likewise. Adjust
1576 calls to check_function_nonnull, check_function_format, and
1577 check_function_sentinel.
1578 (check_function_sentinel): Take a FUNCTION_TYPE rather than
1579 separate attributes and typelist arguments. Use
1580 FOREACH_FUNCTION_ARGS to iterate over argument types.
1581
3c0d13bf
PC
15822011-05-15 Paolo Carlini <paolo.carlini@oracle.com>
1583
1584 * c-common.c (c_common_reswords): Reorder.
1585 * c-common.h (rid): Likewise.
1586
8242dd04
NF
15872011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1588
1589 * c-common.c (def_fn_type): Don't call build_function_type, call
1590 build_function_type_array or build_varargs_function_type_array
1591 instead.
1592 (c_common_nodes_and_builtins): Likewise.
1593
3d528853
NF
15942011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1595
1596 * c-common.c (c_add_case_label): Omit the loc argument to
1597 build_case_label.
1598 * c-common.h (build_case_label): Remove.
1599 * c-semantics.c (build_case_label): Remove.
1600
a04a722b
JM
16012011-05-05 Joseph Myers <joseph@codesourcery.com>
1602
1603 * c-objc.h (objc_start_method_definition): Update prototype.
1604 * stub-objc.c (objc_start_method_definition): Add extra parameter.
1605
e19a18d4
NF
16062011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1607
1608 * c-common.c (check_main_parameter_types): Reindent. Don't use
1609 TYPE_ARG_TYPES directly.
1610 (handle_nonnull_attribute): Likewise.
1611 (sync_resolve_params): Likewise.
1612 * c-format.c (handle_format_arg_attribute): Likewise. Adjust call
1613 to check_format_string.
1614 (handle_format_attribute): Likewise.
1615 (check_format_string): Take a function type to examine instead of
1616 a type list. Use a function_arg_iterator to step through argument
1617 types.
1618
c62c040f
RG
16192011-05-04 Richard Guenther <rguenther@suse.de>
1620
1621 * c-common.c (fix_string_type): Use size_int for index type bounds.
1622 (start_fname_decls): Do not pass NULL to build_int_cst.
1623 (c_init_attributes): Likewise.
1624 * c-lex.c (c_lex_with_flags): Likewise.
1625
c12ff9d8
JM
16262011-04-27 Jason Merrill <jason@redhat.com>
1627
1628 * c-common.c (make_tree_vector_from_list): New.
1629 * c-common.h: Declare it.
1630
304dfbe3
RG
16312011-04-26 Richard Guenther <rguenther@suse.de>
1632
1633 PR preprocessor/48248
1634 * c-ppoutput.c (maybe_print_line): Always optimize newlines
1635 for output size with -P.
1636
3c0d13bf
PC
16372011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
1638
1639 * c-common.c (struct c_common_resword): Add __underlying_type.
1640 * c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
1641
04695783
JM
16422011-04-20 Jim Meyering <meyering@redhat.com>
1643
1644 * c-format.c (init_dollar_format_checking): Remove useless
1645 if-before-free.
1646
0dc33c3c
NP
16472011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
1648
1649 * c-objc.h (objc_get_interface_ivars): Removed.
3c0d13bf 1650 (objc_detect_field_duplicates): New.
0dc33c3c 1651 * stub-objc.c: Likewise.
3c0d13bf 1652
c59633d9
NP
16532011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1654
1655 * stub-objc.c (objc_declare_protocols): Renamed to
1656 objc_declare_protocol.
1657 * c-objc.h: Likewise.
3c0d13bf 1658
32dabdaf
NP
16592011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
1660
1661 * stub-objc.c (objc_declare_class): Updated argument name.
1662
81f653d6
NF
16632011-04-12 Nathan Froyd <froydnj@codesourcery.com>
1664
1665 * c-common.h (c_common_init_ts): Declare.
1666 * c-common.c (c_common_init_ts): Define.
1667
eb345401
NP
16682011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
1669
1670 * c-objc.h (objc_build_message_expr): Updated prototype.
1671 * stub-objc.c (objc_build_message_expr): Likewise.
9faeb493 1672
a358e188
MJ
16732011-04-12 Martin Jambor <mjambor@suse.cz>
1674
1675 * c-gimplify.c (c_genericize): Call cgraph_get_create_node instead
1676 of cgraph_node.
1677
e6313a78
RG
16782011-04-11 Richard Guenther <rguenther@suse.de>
1679
1680 * c-common.c (complete_array_type): Build a range type of
1681 proper type.
1682
dcf0c47e
NF
16832011-04-08 Nathan Froyd <froydnj@codesourcery.com>
1684
1685 * c-common.c (handle_sentinel_attribute): Don't use TYPE_ARG_TYPES.
1686 (handle_type_generic_attribute): Likewise.
1687
1ee44b26
JM
16882011-04-07 Jason Merrill <jason@redhat.com>
1689
1690 PR c++/48450
1691 * c-common.c (c_common_truthvalue_conversion): Don't ignore
1692 conversion from C++0x scoped enum.
1693
acce4e77
JM
16942011-04-06 Joseph Myers <joseph@codesourcery.com>
1695
1696 * c-target-def.h: New file.
1697 * c-target.def: New file.
1698 * c-target.h: New file.
1699 * c-common.c (targetcm): Don't define here.
1700 * c-common.h (default_handle_c_option): Declare.
1701 * c-format.c: Include c-target.h instead of target.h.
1702 * c-opts.c: Include c-target.h instead of target.h. Explicitly
1703 include tm.h.
1704 (default_handle_c_option): Move from targhooks.c.
1705
e2eefb55
JJ
17062011-03-29 Jakub Jelinek <jakub@redhat.com>
1707
1708 PR preprocessor/48248
1709 * c-ppoutput.c (print): Add src_file field.
1710 (init_pp_output): Initialize it.
1711 (maybe_print_line): Don't optimize by adding up to 8 newlines
1712 if map->to_file and print.src_file are different file.
1713 (print_line): Update print.src_file.
1714
ba78087b
KT
17152011-03-25 Kai Tietz <ktietz@redhat.com>
1716
1717 * c-ada-spec.c (compare_comment): Use filename_cmp
1718 instead of strcmp for filename.
1719
0edf1bb2
JL
17202011-03-25 Jeff Law <law@redhat.com>
1721
1722 * c-family/c-common.c (def_fn_type): Add missing va_end.
1723
c7dc8804
JM
17242011-03-25 Jason Merrill <jason@redhat.com>
1725
1726 * c.opt: Add -std=c++03.
1727
d1d879b1
EB
17282011-03-22 Eric Botcazou <ebotcazou@adacore.com>
1729
1730 * c-ada-spec.c (dump_ada_template): Skip non-class instances.
1731
62d784f7
KT
17322011-03-17 Kai Tietz
1733
1734 PR target/12171
5050afdf
KT
1735 * c-pretty-print.c (pp_c_specifier_qualifier_list):
1736 Display allowed attributes for function pointer types.
1737 (pp_c_attributes_display): New function to display
1738 attributes having affects_type_identity flag set to true.
1739 * c-pretty-print.h (pp_c_attributes_display): New prototype.
1740
62d784f7
KT
1741 * c-common.c (c_common_attribute_table):
1742 Add new element.
1743 (c_common_format_attribute_table): Likewise.
1744
82d37118
JM
17452011-03-18 Jason Merrill <jason@redhat.com>
1746
49a000c3
JM
1747 * c.opt (fconstexpr-depth): Add Var(max_constexpr_depth).
1748 * c-common.h: Don't declare it here.
1749 * c-common.c: Or define it here.
1750 * c-opts.c (c_common_handle_option): Or set it here.
1751
82d37118
JM
1752 PR c++/35315
1753 * c-common.c (handle_transparent_union_attribute): Don't
1754 make a duplicate type in C++.
1755
17bc631c
JM
17562011-03-15 Jason Merrill <jason@redhat.com>
1757
1758 * c-common.c (max_constexpr_depth): New.
1759 * c-common.h: Declare it.
1760 * c-opts.c (c_common_handle_option): Set it.
1761 * c.opt (fconstexpr-depth): New option.
1762
1b9b91a6
JM
17632011-03-11 Jason Merrill <jason@redhat.com>
1764
f231b5ff
JM
1765 * c-common.c (attribute_takes_identifier_p): Add missing const.
1766
1b9b91a6
JM
1767 PR c++/46803
1768 * c-common.c (attribute_takes_identifier_p): Assume that an
1769 unknown attribute takes an identifier.
1770
a19e4d44
NF
17712011-03-07 Nathan Froyd <froydnj@codesourcery.com>
1772
1773 PR c/47786
1774 * c-common.c (c_type_hash): Call list_length instead of iterating
1775 through DECL_CHAIN. Rename 'i' to 'n_elements'.
1776
982d62f6
JJ
17772011-02-19 Jakub Jelinek <jakub@redhat.com>
1778
1779 PR c/47809
1780 * c-common.c (c_fully_fold_internal): Handle VIEW_CONVERT_EXPR.
1781
0a256240
NP
17822011-02-17 Iain Sandoe <iains@gcc.gnu.org>
1783
1784 * c.opt (fobjc-abi-version=) New.
1785 (fobjc-nilcheck): New.
1786
ba9e6dd5
NF
17872011-02-03 Nathan Froyd <froydnj@codesourcery.com>
1788
1789 PR c++/46890
1790 * c-common.h (keyword_is_decl_specifier): Declare.
1791 * c-common.c (keyword_is_decl_specifier): Define.
1792 (keyword_is_function_specifier): New function.
1793
7273813a
JJ
17942011-01-26 Jakub Jelinek <jakub@redhat.com>
1795
1796 PR c/47473
1797 * c-lex.c (interpret_float): If CPP_N_IMAGINARY, ensure
1798 EXCESS_PRECISION_EXPR is created with COMPLEX_TYPE instead of
1799 REAL_TYPE.
1800
908ef79b
AC
18012011-01-26 Arnaud Charlet <charlet@adacore.com>
1802
1803 * c-ada-spec.c (dump_generic_ada_node): Avoid dereferencing null type.
1804
237e9384
JJ
18052011-01-26 Jakub Jelinek <jakub@redhat.com>
1806
1807 PR pch/47430
1808 * c-opts.c (c_common_post_options): Call c_common_no_more_pch
1809 after init_c_lex if pch_file is set.
1810
47ea1edf
DK
18112011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
1812
d4dba752 1813 PR c++/43601
47ea1edf
DK
1814 * c.opt (-fkeep-inline-dllexport): New switch.
1815
2aa9c6ae
RG
18162011-01-12 Richard Guenther <rguenther@suse.de>
1817
1818 PR middle-end/32511
1819 * c-common.c (handle_weak_attribute): Warn instead of error
1820 on declaring an inline function weak.
1821
7bd11157
TT
18222011-01-05 Tom Tromey <tromey@redhat.com>
1823
1824 * c-common.h (lvalue_error): Update.
1825 * c-common.c (lvalue_error): Add 'loc' argument. Call error_at,
1826 not error.
1827
0e66e494 18282010-12-29 Nicola Pero <nicola.pero@meta-innovation.com>
9faeb493 1829
b4f588c4
NP
1830 PR objc/47075
1831 * c-objc.h (objc_finish_message_expr): Added argument to
1832 prototype.
1833
f4da8dce
NF
18342010-12-22 Nathan Froyd <froydnj@codesourcery.com>
1835
1836 * c-common.c (handle_nonnull_attribute, handle_sentinel_attribute):
1837 Use prototype_p.
1838
46270f14
NP
18392010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
1840
1841 * c-objc.h (objc_maybe_warn_exceptions): New.
9faeb493 1842 * stub-objc.c (objc_maybe_warn_exceptions): New.
46270f14 1843
4816c593
NF
18442010-12-10 Nathan Froyd <froydnj@codesourcery.com>
1845
1846 * c-common.h (readonly_error): Declare.
1847 * c-common.c (readonly_error): Define.
1848
7a6daeb0
NF
18492010-12-09 Nathan Froyd <froydnj@codesourcery.com>
1850
1851 * c-common.h (invalid_indirection_error): Declare.
1852 * c-common.c (invalid_indirection_error): Define.
1853
892f6119
RG
18542010-12-03 Richard Guenther <rguenther@suse.de>
1855
1856 PR c/46745
1857 * c-pretty-print.c (pp_c_postfix_expression): Handle MEM_REF.
1858 (pp_c_unary_expression): Likewise.
1859 (pp_c_expression): Likewise.
1860
6c39e757
NP
18612010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
1862
1863 * c-common.h (objc_finish_function): New.
1864 (objc_non_volatilized_type): Removed.
1865 (objc_type_quals_match): Removed.
1866 * stub-objc.c (objc_finish_function): New.
1867 (objc_non_volatilized_type): Removed.
1868 (objc_type_quals_match): Removed.
9faeb493 1869
7c475d11
JM
18702010-11-30 Joseph Myers <joseph@codesourcery.com>
1871
1872 * c-common.h (parse_optimize_options): Declare.
1873 * c-cppbuiltin.c, c-format.c, c-gimplify.c, c-lex.c, c-omp.c,
1874 c-pch.c, c-pragma.c, c-semantics.c: Don't include toplev.h.
1875
71f3e391
JM
18762010-11-29 Joseph Myers <joseph@codesourcery.com>
1877
1878 * c-opts.c (check_deps_environment_vars): Use getenv instead of
1879 GET_ENVIRONMENT.
1880 * c-pch.c (O_BINARY): Don't define here.
1881 * c-pragma.h: Include "cpplib.h" instead of <cpplib.h>.
1882
d5fabb58
JM
18832010-11-25 Joseph Myers <joseph@codesourcery.com>
1884
1885 * c-cppbuiltin.c (c_cpp_builtins): Pass &global_options to
1886 targetm.except_unwind_info.
1887
299404a1
JM
18882010-11-23 Joseph Myers <joseph@codesourcery.com>
1889
1890 * c-opts.c (c_common_handle_option): Pass location to
1891 set_struct_debug_option.
1892
c98cd5bf
JM
18932010-11-23 Joseph Myers <joseph@codesourcery.com>
1894
1895 * c-common.c (visibility_options): Move from ../opts.c.
1896 * c-common.h (struct visibility_flags, visibility_options):
1897 Declare here.
1898 * c-opts.c (finish_options): Rename to c_finish_options.
1899 (c_common_init): Update call to finish_options.
1900
a9546771
NP
19012010-11-22 Nicola Pero <nicola.pero@meta-innovation.com>
1902
1903 PR objc/34033
1904 * c-lex.c (lex_string): Check that each string in an Objective-C
1905 string concat sequence starts with either one or zero '@', and
1906 that there are no spurious '@' signs at the end.
1907
24a57808
JM
19082010-11-20 Joseph Myers <joseph@codesourcery.com>
1909
1910 * c-pragma.c: Remove conditionals on HANDLE_PRAGMA_PACK,
1911 HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_PRAGMA_WEAK and
1912 HANDLE_PRAGMA_VISIBILITY.
1913 * c-pragma.h (HANDLE_PRAGMA_WEAK, HANDLE_PRAGMA_PACK,
1914 HANDLE_PRAGMA_VISIBILITY): Don't define.
1915 (HANDLE_SYSV_PRAGMA, HANDLE_PRAGMA_PACK_PUSH_POP): Don't test.
1916
a9aa2c3a
NF
19172010-11-20 Nathan Froyd <froydnj@codesourcery.com>
1918
1919 PR c++/16189
1920 PR c++/36888
1921 PR c++/45331
1922 * c-common.h (keyword_begins_type_specifier): Declare.
1923 (keyword_is_storage_class_specifier): Declare.
1924 (keyword_is_type_qualifier): Declare.
1925 * c-common.c (keyword_begins_type_specifier): New function.
1926 (keyword_is_storage_class_specifier): New function.
1927 (keyword_is_type_qualifier): Declare.
1928
5386338c
JM
19292010-11-19 Joseph Myers <joseph@codesourcery.com>
1930
1931 PR c/46547
1932 * c-common.c (in_late_binary_op): Define.
1933 (c_common_truthvalue_conversion): Check in_late_binary_op before
1934 calling c_save_expr.
1935 * c-common.h (in_late_binary_op): Declare.
1936
69ccdddb
JM
19372010-11-19 Joseph Myers <joseph@codesourcery.com>
1938
1939 * c-opts.c (c_common_handle_option): Update calls to
1940 set_struct_debug_option.
1941
6b192a09
NP
19422010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1943
1944 * c-common.h (objc_declare_protocols): Added additional argument.
1945 * stub-objc.c (objc_declare_protocol): Same change.
9faeb493 1946
fb52b50a
NF
19472010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1948
1949 PR c/33193
1950 * c-common.h (build_real_imag_expr): Declare.
1951 * c-semantics.c (build_real_imag_expr): Define.
1952
b37421c6
JM
19532010-11-17 Joseph Myers <joseph@codesourcery.com>
1954
1955 * c-opts.c (c_common_parse_file): Take no arguments.
1956 * c-common.h (c_common_parse_file): Update prototype.
1957
07078664
JJ
19582010-11-16 Jakub Jelinek <jakub@redhat.com>
1959
1960 PR c++/46401
1961 * c-common.c (warning_candidate_p): Don't track non-const calls
1962 or STRING_CSTs.
1963
c6a13190
ILT
19642010-11-15 Ian Lance Taylor <iant@google.com>
1965
1966 * c-lex.c (init_c_lex): Set macro debug callbacks if
1967 flag_dump_go_spec is set.
1968
925e8657
NP
19692010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1970
1971 * c-common.h (objc_build_incr_expr_for_property_ref): New.
1972 * stub-objc.c (objc_build_incr_expr_for_property_ref): New.
1973
bb0a9581
NF
19742010-11-15 Nathan Froyd <froydnj@codesourcery.com>
1975
1976 PR preprocessor/45038
1977 * c-cppbuiltin.c (c_cpp_builtins): Use different format for C++
1978 dialects.
1979
c5fa0890
JM
19802010-11-12 Joseph Myers <joseph@codesourcery.com>
1981
1982 * c-common.h (c_family_lang_mask): Declare.
1983 * c-opts.c (c_family_lang_mask): Make extern.
1984 * c-pragma.c (handle_pragma_diagnostic): Use
1985 control_warning_option.
1986
a4d8c676
JM
19872010-11-12 Joseph Myers <joseph@codesourcery.com>
1988
1989 * c-common.c (parse_optimize_options): Update call to
1990 decode_options.
1991 * c-common.h (c_common_handle_option): Update prototype.
1992 * c-opts.c (c_common_handle_option): Take location_t parameter and
1993 pass it to other functions.
1994
f954bd2c
JM
19952010-11-11 Joseph Myers <joseph@codesourcery.com>
1996
1997 * c-opts.c (warning_as_error_callback): Remove.
1998 (c_common_initialize_diagnostics): Don't call
1999 register_warning_as_error_callback.
2000 (c_common_handle_option): Handle -Werror=normalized= here.
2001
d8a07487
JM
20022010-11-10 Joseph Myers <joseph@codesourcery.com>
2003
2004 * c-common.c (handle_mode_attribute): Use %' and word "signedness"
2005 in diagnostic.
2006 * c-opts.c (c_common_parse_file): Start diagnostics with lowercase
2007 letter.
2008 * c-pragma.c (handle_pragma_target, handle_pragma_optimize):
2009 Remove trailing '.' from diagnostics.
2010 * c.opt (Wwrite-strings_: Avoid '`' in help text.
2011
d5478783
JM
20122010-11-10 Joseph Myers <joseph@codesourcery.com>
2013
2014 * c-common.c (parse_optimize_options): Pass global_dc to
2015 decode_options.
2016 * c-opts.c (c_common_handle_option): Pass &global_options to
2017 set_Wstrict_aliasing.
2018 * c.opt (v): Don't mark Common or document here.
2019
91ebb981
IS
20202010-11-06 Iain Sandoe <iains@gcc.gnu.org>
2021
2022 PR target/44981
2023 * c-format.c (format_type): New type gcc_objc_string_format_type.
2024 (valid_stringptr_type_p): New.
2025 (handle_format_arg_attribute): Use valid_stringptr_type_p ().
9faeb493 2026 (check_format_string): Pass expected type, use
91ebb981
IS
2027 valid_stringptr_type_p (), check that the format string types are
2028 consistent with the format specification.
2029 (decode_format_attr): Warn if NSString is used outside objective-c.
2030 (format_types_orig): Add NSString.
2031 (format_name): New.
2032 (format_flags): New.
2033 (check_format_arg): Handle format strings requiring an external parser.
2034 first_target_format_type: New variable.
2035 (handle_format_attribute): Set up first_target_format_type, pass the
2036 expected format arg string type to check_format_string().
2037 * c-common.h (FMT_FLAG_PARSE_ARG_CONVERT_EXTERNAL): New flag.
2038 * stub-objc.c (objc_string_ref_type_p): New.
2039 (objc_check_format_arg): New.
2040
bede2adc
NP
20412010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
2042
9faeb493 2043 Fixed using the Objective-C 2.0 dot-syntax with class names.
bede2adc
NP
2044 * c-common.h (objc_build_class_component_ref): New.
2045 * stub-objc.c (objc_build_class_component_ref): New.
2046
9a179d01
NP
20472010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2048
2049 * c.opt (Wproperty-assign-default): New option.
2050
22d8d616
NP
20512010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
2052
2053 Implemented -fobjc-std=objc1 flag.
2054 * c.opt (fobjc-std=objc1): New option.
2055
2debdb4f
NP
20562010-11-01 Nicola Pero <nicola.pero@meta-innovation.com>
2057
2058 Implemented format and noreturn attributes for Objective-C methods.
2059 * c-common.c (handle_noreturn_attribute): Recognize 'noreturn'
2060 attribute for Objective-C methods.
2061
ec52b111
JM
20622010-10-31 Jason Merrill <jason@redhat.com>
2063
2064 * c-common.c (conversion_warning, warn_for_collisions_1): Use
2065 EXPR_LOC_OR_HERE.
2066
46a88c12
NP
20672010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
2068
2069 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
2070 * c-common.h (enum rid): Removed RID_COPIES and RID_IVAR.
2071 (objc_add_property_declaration): Removed arguments for copies and
2072 ivar.
2073 (objc_build_getter_call): Renamed to
2074 objc_maybe_build_component_ref.
2075 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2076 (objc_is_property_ref): New.
2077 * c-common.c (c_common_reswords): Removed copies and ivar.
2078 * stub-objc.c (objc_add_property_declaration): Removed arguments
2079 for copies and ivar.
2080 (objc_build_getter_call): Renamed to
2081 objc_maybe_build_component_ref.
2082 (objc_build_setter_call): Renamed to objc_maybe_build_modify_expr.
2083 (objc_is_property_ref): New.
9faeb493 2084
1e4bf85b
AC
20852010-10-29 Arnaud Charlet <charlet@adacore.com>
2086 Matthew Gingell <gingell@adacore.com>
2087
2088 * c-ada-spec.c (separate_class_package): New function.
2089 (pp_ada_tree_identifier): Prefix references to C++ classes with the
2090 name of their enclosing package.
2091 (print_ada_declaration): Use separate_class_package.
2092
81f0bab2
JM
20932010-10-27 Jason Merrill <jason@redhat.com>
2094
2b08f2c5
JM
2095 * c-common.c (c_common_reswords): Add __is_literal_type.
2096 * c-common.h (enum rid): Add RID_IS_LITERAL_TYPE.
2097
81f0bab2
JM
2098 * c-common.c (check_case_value): Remove special C++ code.
2099
200290f2
NP
21002010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2101
2102 * c-common.h (enum rid): Added RID_READWRITE, RID_ASSIGN,
2103 RID_RETAIN, RID_COPY and RID_NONATOMIC. Updated RID_FIRST_PATTR
2104 and RID_LAST_PATTR.
2105 (objc_add_property_declaration): Added additional arguments.
2106 (objc_property_attribute_kind): Removed.
2107 (objc_set_property_attr): Removed.
2108 * c-common.c (c_common_reswords): Added readwrite, assign, retain,
2109 copy and nonatomic.
2110 * stub-objc.c (objc_add_property_declaration): Added additional
2111 arguments.
2112 (objc_set_property_attr): Removed.
9faeb493 2113
f614132b
NP
21142010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
2115
2116 * c-common.h (objc_add_property_variable): Renamed to
2117 objc_add_property_declaration. Added location argument.
2118 * stub-objc.c (objc_add_property_variable): Same change.
2119
b8a18805
NP
21202010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
2121
2122 * c-common.h (objc_maybe_printable_name): New.
2123 * stub-objc.c (objc_maybe_printable_name): New.
2124
30cd1c5d
AS
21252010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2126 Andrew Pinski <pinskia@gmail.com>
2127
2128 * c-common.h (c_common_mark_addressable_vec): Declare.
2129 * c-common.c (c_common_mark_addressable_vec): New function.
2130
249a82c4
NP
21312010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2132
2133 * c-common.h (objc_set_method_type): Removed.
2134 (objc_add_method_declaration): Added boolean argument.
2135 (objc_start_method_definition): Same change.
2136 (objc_build_method_signature): Same change.
2137 * stub-objc.c (objc_set_method_type): Removed.
2138 (objc_add_method_declaration): Added boolean argument.
2139 (objc_start_method_definition): Same change.
2140 (objc_build_method_signature): Same change.
2141
977e30bc
NP
21422010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2143
2144 * c-common.h (finish_file): Removed.
2145 (objc_write_global_declarations): New.
2146 * c-opts.c (c_common_parse_file): Do not call finish_file.
2147 * stub-objc.c (objc_write_global_declarations): New.
9faeb493 2148
da57d1b9
NP
21492010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2150
2151 Implemented parsing @synthesize and @dynamic for
2152 Objective-C/Objective-C++.
2153 * c-common.h (enum rid): Add RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2154 (objc_add_synthesize_declaration): New.
2155 (objc_add_dynamic_declaration): New.
2156 * c-common.c (c_common_reswords): Add synthesize and dynamic.
2157 * stub-objc.c (objc_add_synthesize_declaration): New.
2158 (objc_add_dynamic_declaration): New.
9faeb493 2159
0069111f
MM
21602010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2161
2162 PR target/46041
2163 * c-cppbuiltin.c (mode_has_fma): Move function here from
2164 builtins.c. Don't use the fma optab, instead just use the
2165 HAVE_fma* macros, so that __FP_FAST_FMA* will be defined when
2166 using -save-temps.
2167
e426b47b
NP
21682010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2169
2170 Merge from 'apple/trunk' branch on FSF servers.
0069111f 2171
e426b47b
NP
2172 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
2173
9faeb493 2174 Radar 4330422
e426b47b
NP
2175 * c-common.h (objc_non_volatilized_type): New declaration
2176 * stub-objc.c (objc_non_volatilized_type): New stub.
2177
90fbfdc3
NP
21782010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2179
e426b47b 2180 Merge from 'apple/trunk' branch on FSF servers.
90fbfdc3
NP
2181
2182 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2183
9faeb493 2184 Radar 4133425
90fbfdc3 2185 * c-common.h (objc_diagnose_private_ivar): New decl.
0069111f 2186 * stub-objc.c (objc_diagnose_private_ivar): New stub.
90fbfdc3 2187
c37d8c30
IS
21882010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2189
2190 * c-common.c (c_common_reswords): Add package, RID_AT_PACKAGE.
2191 * c-common.h (enum rid): Add RID_AT_PACKAGE.
2192 (objc_ivar_visibility_kind): New enum.
2193 (objc_set_visibility): Adjust prototype to use visibility enum.
0069111f 2194 * stub-objc.c (objc_set_visibility): Adjust stub to use
c37d8c30
IS
2195 visibility enum.
2196
1b1562a5
MM
21972010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2198
2199 * c-cppbuiltin.c (builtin_define_float_constants): Emit
2200 __FP_FAST_FMA, __FP_FAST_FMAF, and __FP_FAST_FMAL if the machine
2201 has the appropriate fma builtins.
2202 (c_cpp_builtins): Adjust call to builtin_define_float_constants.
2203
668ea4b1
IS
22042010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2205
1b1562a5 2206 merge from FSF apple 'trunk' branch.
668ea4b1 2207 2006 Fariborz Jahanian <fjahanian@apple.com>
1b1562a5 2208
668ea4b1
IS
2209 Radars 4436866, 4505126, 4506903, 4517826
2210 * c-common.c (c_common_resword): Define @property and its attributes.
2211 * c-common.h: Define property attribute enum entries.
2212 (OBJC_IS_PATTR_KEYWORD): New.
2213 (objc_property_attribute_kind): New enum.
2214 Declare objc_set_property_attr (), objc_add_property_variable (),
2215 objc_build_getter_call () and objc_build_setter_call ().
2216 * stub-objc.c (objc_set_property_attr): New stub.
2217 (objc_add_property_variable): Likewise.
2218 (objc_build_getter_call): Likewise.
2219 (objc_build_setter_call) Likewise.
1b1562a5 2220
a1178b30
IS
22212010-10-13 Iain Sandoe <iains@gcc.gnu.org>
2222
1b1562a5 2223 merge from FSF apple 'trunk' branch.
a1178b30
IS
2224 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
2225
2226 Radar 3803157 (method attributes)
2227 * c-common.c (handle_deprecated_attribute): Recognize
2228 objc methods as valid declarations.
2229 * c-common.h: Declare objc_method_decl ().
1b1562a5 2230 * stub-objc.c (objc_method_decl): New stub.
a1178b30 2231
a75bfaa6
JM
22322010-10-08 Joseph Myers <joseph@codesourcery.com>
2233
2234 * c-common.c (parse_optimize_options): Call
2235 decode_cmdline_options_to_array_default_mask before
2236 decode_options. Update arguments to decode_options.
2237 * c-common.h (c_common_init_options_struct): Declare.
2238 * c-opts.c (c_common_init_options_struct): New. Split out from
2239 c_common_init_options.
2240
f05b9d93
NP
22412010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
2242
2243 Implemented fast enumeration for Objective-C.
2244 * c-common.h (objc_finish_foreach_loop): New.
2245 * stub-objc.c (objc_finish_foreach_loop): New.
2246
1ebe4b4f
JM
22472010-10-05 Joseph Myers <joseph@codesourcery.com>
2248
2249 * c-common.h (struct diagnostic_context): Don't declare here.
2250 (c_common_initialize_diagnostics): Declare using
2251 diagnostic_context typedef.
2252 * c-opts.c (c_common_handle_option): Pass global_dc to
2253 handle_generated_option.
2254
d4d24ba4
JM
22552010-10-04 Joseph Myers <joseph@codesourcery.com>
2256
2257 * c-opts.c (c_common_handle_option): Pass &global_options_set to
2258 handle_generated_option.
2259
478a1c5b
ILT
22602010-10-03 Ian Lance Taylor <iant@google.com>
2261
2262 * c.opt (-fplan9-extensions): New option.
2263
82a1c2fe
FXC
22642010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
2265
2266 * c-cppbuiltin.c (define__GNUC__, builtin_define_type_precision):
2267 Remove.
2268 (c_cpp_builtins): Call functions from cppbuiltin.c instead
2269 of duplicating code.
2270
92902b1b
IS
22712010-09-30 Iain Sandoe <iains@gcc.gnu.org>
2272
2273 * c-common.c: Add two new entries for @optional
2274 and @required keywords.
2275
2276 merge from FSF 'apple/trunk' branch.
2277 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
2278
2279 Radar 4386773
2280 * c-common.h (RID_AT_OPTIONAL, RID_AT_REQUIRED): Two new
2281 objective-c keywords.
2282 (objc_set_method_opt): New declaration.
2283 * stub-objc.c (objc_set_method_opt): New stub.
9faeb493 2284
46625112
JM
22852010-09-30 Joseph Myers <joseph@codesourcery.com>
2286
2287 * c-common.c (handle_optimize_attribute): Pass &global_options to
2288 cl_optimization_save and cl_optimization_restore.
2289 * c-opts.c (c_common_handle_option): Pass &global_options to
2290 handle_generated_option.
2291 * c-pragma.c (handle_pragma_diagnostic): Use option_flag_var.
2292 (handle_pragma_pop_options, handle_pragma_reset_options): Pass
2293 &global_options to cl_optimization_restore.
2294
49b91f05
NP
22952010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
2296
2297 * c-lex.c (c_lex_with_flags): Updated comments for CPP_AT_NAME
2298 Objective-C/Objective-C++ keywords.
2299
13ed556f 23002010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
a6341d57 2301
9faeb493
UB
2302 Merge from 'apple/trunk' branch on FSF servers.
2303
a6341d57
NP
2304 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
2305
2306 Radar 4281748
2307 * c-common.h (objc_check_global_decl): New declaration.
2308 * stub-objc.c (objc_check_global_decl): New stub.
2309
f0036cca
JM
23102010-09-29 Joseph Myers <joseph@codesourcery.com>
2311
2312 * c.opt: Don't use VarExists.
2313
e3339d0f
JM
23142010-09-29 Joseph Myers <joseph@codesourcery.com>
2315
2316 * c-common.c (c_cpp_error): Update names of diagnostic_context
2317 members.
2318 * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): Update names of
2319 cl_optimization members.
2320 * c-opts.c (warning_as_error_callback, c_common_handle_option,
2321 sanitize_cpp_opts, finish_options): Update names of cpp_options
2322 members.
2323
1973201f
NP
23242010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
2325
2326 * c-common.h (OBJC_IS_CXX_KEYWORD): New macro. Updated comments.
2327 (objc_is_reserved_word): Removed.
2328 * c-common.c: Updated comments.
2329 * c-lex.c (c_lex_with_flags): Use OBJC_IS_CXX_KEYWORD instead of
2330 objc_is_reserved_word.
2331 * stub-objc.c (objc_is_reserved_word): Removed.
2332
f7e71da5
IS
23332010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2334
9faeb493 2335 * c-common.h (objc_add_method_declaration): Adjust prototype to
f7e71da5
IS
2336 include attributes.
2337 (objc_start_method_definition): Likewise.
2338 (objc_build_keyword_decl): Likewise.
2339 * stub-objc.c:(objc_add_method_declaration): Handle attributes.
2340 (objc_start_method_definition): Likewise.
2341 (objc_build_keyword_decl): Likewise.
2342
c165dca7
IS
23432010-09-28 Iain Sandoe <iains@gcc.gnu.org>
2344
2345 * c-common.h (objc_start_class_interface): Adjust prototype.
2346 (objc_start_category_interface): Likewise.
2347 (objc_start_protocol): Likewise.
2348 * stub-objc.c (objc_start_protocol): Adjust for extra argument.
2349 (objc_start_class_interface): Likewise.
2350 (objc_start_category_interface): Likewise.
2351
7458026b
ILT
23522010-09-27 Ian Lance Taylor <iant@google.com>
2353
2354 * c-common.c (c_common_attribute_table): Add no_split_stack.
2355 (handle_no_split_stack_attribute): New static function.
2356
b581b85b
NP
23572010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
2358
9faeb493 2359 Merge from 'apple/trunk' branch on FSF servers.
b581b85b
NP
2360
2361 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
2362
9faeb493 2363 Radar 4229905
b581b85b
NP
2364 * c-common.h (objc_have_common_type): New declaration.
2365 * stub-objc.c (objc_have_common_type): New stub.
2366
2367 2005-06-22 Ziemowit Laski <zlaski@apple.com>
2368
2369 Radar 4154928
2370 * c-common.h (objc_common_type): New prototype.
9faeb493 2371 * stub-objc.c (objc_common_type): New stub.
b581b85b 2372
46a4da10
JH
23732010-09-24 Jan Hubicka <jh@suse.cz>
2374
2375 * c-common.c (handle_leaf_attribute): New function.
2376 (struct attribute_spec c_common_att): Add leaf.
2377
e200444e
JM
23782010-09-22 Joseph Myers <joseph@codesourcery.com>
2379
2380 * c.opt (-all-warnings, -ansi, -assert, -assert=, -comments,
2381 -comments-in-macros, -define-macro, -define-macro=, -dependencies,
2382 -dump, -dump=, -imacros, -imacros=, -include, -include=,
2383 -include-barrier, -include-directory, -include-directory=,
2384 -include-directory-after, -include-directory-after=,
2385 -include-prefix, -include-prefix=, -include-with-prefix,
2386 -include-with-prefix=, -include-with-prefix-after,
2387 -include-with-prefix-after=, -include-with-prefix-before,
2388 -include-with-prefix-before=, -no-integrated-cpp,
2389 -no-line-commands, -no-standard-includes, -no-warnings, -output,
2390 -output=, -pedantic, -pedantic-errors, -preprocess,
2391 -print-missing-file-dependencies, -trace-includes, -traditional,
2392 -traditional-cpp, -trigraphs, -undefine-macro, -undefine-macro=,
2393 -user-dependencies, -verbose, -write-dependencies,
2394 -write-user-dependencies, no-integrated-cpp, traditional): New.
2395
29a80ea6
NP
23962010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2397
2398 PR objc/23710
ac1fc2fc
NP
2399 * c-common.h (objc_start_method_definition): Return bool instead
2400 of void.
2401 * stub-objc.c (objc_start_method_definition): Return bool instead
2402 of void.
2403
24042010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
2405
2406 PR objc/25965
2407 * c-common.h (objc_get_interface_ivars): New declaration.
2408 * stub-objc.c (objc_get_interface_ivars): New stub.
29a80ea6 2409
de621752
ILT
24102010-09-15 Ian Lance Taylor <iant@google.com>
2411
2412 * c-common.c (parse_optimize_options): Do not capitalize warning
06730c5d 2413 messages. Remove period at end of warning message.
de621752 2414
ba885ec5
NS
24152010-09-09 Nathan Sidwell <nathan@codesourcery.com>
2416
2417 * c-common.c (handle_alias_ifunc_attribute): New, broken out of ...
2418 (handle_alias_attribute): ... here.
2419 (handle_ifunc_attribute): New.
2420
c5ee1358
MM
24212010-09-06 Mark Mitchell <mark@codesourcery.com>
2422
2423 * c-common.h (do_warn_double_promotion): Declare.
2424 * c-common.c (do_warn_double_promotion): Define.
2425
0a0b3574
MM
24262010-09-05 Mark Mitchell <mark@codesourcery.com>
2427
2428 * c.opt (Wdouble-promotion): New.
2429
d1779886
JM
24302010-09-02 Joseph Myers <joseph@codesourcery.com>
2431
2432 * c.opt (falt-external-templates, fhuge-objects, fvtable-gc,
2433 fvtable-thunks, fxref): Mark no longer supported in help text.
2434
2d2bd949
JM
24352010-09-02 Joseph Myers <joseph@codesourcery.com>
2436
2437 * c.opt (Wimport, fall-virtual, falt-external-templates,
2438 fdefault-inline, fenum-int-equiv, fexternal-templates,
2439 fguiding-decls, fhonor-std, fhuge-objects, flabels-ok,
2440 fname-mangling-version-, fnew-abi, fnonnull-objects,
2441 foptional-diags, fsquangle, fstrict-prototype, fthis-is-variable,
2442 fvtable-gc, fvtable-thunks, fxref): Mark with Ignore and Warn as
2443 applicable.
2444 (fhandle-exceptions): Mark with Alias and Warn.
2445 * c-opts.c (c_common_handle_option): Don't handle options marked
2446 as ignored.
2447
5de8299c
JM
24482010-09-02 Joseph Myers <joseph@codesourcery.com>
2449
2450 * c.opt (Wcomments, Werror-implicit-function-declaration,
2451 ftemplate-depth-, std=c89, std=c9x, std=gnu89, std=gnu9x,
2452 std=iso9899:1990, std=iso9899:1999, std=iso9899:199x): Mark as
2453 aliases.
2454 * c-common.c (option_codes): Use OPT_Wcomment instead of
2455 OPT_Wcomments.
2456 * c-opts.c (warning_as_error_callback, c_common_handle_option):
2457 Don't handle options marked as aliases.
2458
0ceb0201
RG
24592010-08-25 Richard Guenther <rguenther@suse.de>
2460
2461 * c-common.c (c_common_get_alias_set): Remove special
2462 handling for pointers.
2463
ac47786e
NF
24642010-08-20 Nathan Froyd <froydnj@codesourcery.com>
2465
2466 * c-common.c: Use FOR_EACH_VEC_ELT.
2467 * c-gimplify.c: Likewise.
2468 * c-pragma.c: Likewise.
2469
c878765b
JM
24702010-08-16 Joseph Myers <joseph@codesourcery.com>
2471
2472 * c.opt (MDX): Change back to MD. Mark NoDriverArg instead of
2473 RejectDriver.
2474 (MMDX): Change back to MMD. Mark NoDriverArg instead of
2475 RejectDriver.
2476 * c-opts.c (c_common_handle_option): Use OPT_MD and OPT_MMD
2477 instead of OPT_MDX and OPT_MMDX.
2478
603349bf
JM
24792010-08-16 Joseph Myers <joseph@codesourcery.com>
2480
2481 * c.opt (MDX, MMDX, lang-asm): Mark RejectDriver.
2482
644fa7ac
JM
24832010-08-12 Joseph Myers <joseph@codesourcery.com>
2484
2485 * c.opt (MD, MMD): Change to MDX and MMDX.
2486 * c-opts.c (c_common_handle_option): Use OPT_MMD and OPT_MMDX.
2487
481e1176
JM
24882010-08-11 Joseph Myers <joseph@codesourcery.com>
2489
2490 * c-opts.c (c_common_handle_option): Call handle_generated_option
2491 instead of handle_option.
2492
ac8dc9f7
NF
24932010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2494
2495 * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
2496 (maybe_apply_renaming_pragma): Delete unneeded declarations.
2497
4f8c876d
NF
24982010-08-08 Nathan Froyd <froydnj@codesourcery.com>
2499
2500 * c-pragma.c (pending_redefinition): Declare. Declare a VEC of it.
2501 (pending_redefine_extname): Change type to a VEC.
2502 (add_to_renaming_pragma_list): Update for new type of
2503 pending_redefine_extname.
ac8dc9f7 2504 (maybe_apply_renaming_pragma): Likewise.
4f8c876d 2505
3b0c690e
AC
25062010-08-04 Arnaud Charlet <charlet@adacore.com>
2507
2508 * c-ada-spec.c (dump_ada_template): Mark underlying instance type as
2509 visited.
2510 (dump_generic_ada_node): Code clean up. Use TREE_VISITED flag to
2511 decide whether a type has already been declared/seen.
2512 Do not go to the original type.
2513 (dump_nested_types): New parameter forward.
2514 Generate forward declaration if needed and mark type as visited.
2515 (print_ada_declaration): Call dump_nested_types if not already done.
2516 Mark types as visited.
2517
1890bccc
JM
25182010-08-03 Joseph Myers <joseph@codesourcery.com>
2519
2520 * c.opt (-print-pch-checksum): Remove option.
2521 * c-opts.c (c_common_handle_option): Don't handle
2522 OPT_print_pch_checksum.
2523
5f20c657
JM
25242010-07-27 Joseph Myers <joseph@codesourcery.com>
2525
2526 * c-common.h (c_common_handle_option): Update prototype and return
2527 value type.
2528 * c-opts.c (c_common_handle_option): Update prototype and return
2529 value type. Update calls to handle_option and
2530 enable_warning_as_error.
2531
f551f80c
JJ
25322010-07-27 Jakub Jelinek <jakub@redhat.com>
2533
2534 PR c/45079
2535 * c-pretty-print.c (pp_c_expression): Handle C_MAYBE_CONST_EXPR.
2536
61ff2bdc
JM
25372010-07-27 Joseph Myers <joseph@codesourcery.com>
2538
2539 * c-common.h (c_common_missing_argument): Remove.
2540 * c-opts.c (c_common_missing_argument): Remove.
2541 * c.opt (A, D, F, I, MD, MMD, MQ, MT, U, fconstant-string-class=,
2542 idirafter, imacros, include, isysroot, isystem, iquote): Add
2543 MissingArgError.
2544 * c-objc-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
2545
7a9bf9a4
JM
25462010-07-27 Joseph Myers <joseph@codesourcery.com>
2547
2548 * c-common.h (c_common_option_lang_mask,
2549 c_common_initialize_diagnostics, c_common_complain_wrong_lang_p):
2550 New.
2551 (c_common_init_options): Update prototype.
2552 * c-opts.c (c_common_option_lang_mask): New.
2553 (c_common_initialize_diagnostics): Split out of
2554 c_common_init_options.
2555 (accept_all_c_family_options, c_common_complain_wrong_lang_p):
2556 New.
2557 (c_common_init_options): Update prototype. Use decoded options in
2558 search for -lang-asm.
2559
910ad8de
NF
25602010-07-15 Nathan Froyd <froydnj@codesourcery.com>
2561
2562 * c-common.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
2563 * c-format.c: Likewise.
2564
718f9c0f
MLI
25652010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
2566
2567 * c-common.h: Include diagnostic-core.h. Error if already
2568 included.
2569 * c-semantics.c: Do not define GCC_DIAG_STYLE here.
2570
4d451982
MLI
25712010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2572
2573 * c-family/c-common.c (IN_GCC_FRONTEND): Do not undef.
2574 Do not include expr.h
2575 (vector_mode_valid_p): Move here.
2576
119fe915
SB
25772010-06-21 DJ Delorie <dj@redhat.com>
2578
2579 * c-pragma.c (handle_pragma_diagnostic): Add push/pop,
2580 allow these pragmas anywhere.
2581
25822010-06-14 Jakub Jelinek <jakub@redhat.com>
2583
2584 PR bootstrap/44509
2585 * c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
2586 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
2587 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
2588 ggc_strdup instead of xstrdup.
2589
25902010-06-10 Jakub Jelinek <jakub@redhat.com>
2591
2592 * c-cppbuiltin.c: Include cpp-id-data.h.
2593 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2594 (lazy_hex_fp_value): New function.
2595 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2596
6662d794
MLI
25972010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2598
2599 * c-gimplify.c: Do not include tree-flow.h
2600
38f8b050
JR
26012010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2602
2603 PR other/44034
2604 * c-common.c: Rename targetm member:
2605 targetm.enum_va_list -> targetm.enum_va_list_p
2606
9589f23e
AS
26072010-06-28 Anatoly Sokolov <aesok@post.ru>
2608
2609 * c-common.c (shorten_compare): Adjust call to force_fit_type_double.
2610
3b06d379
SB
26112010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2612
2613 * c-cppbuiltin.c: Do not include except.h.
2614
d166d4c3
AK
26152010-06-24 Andi Kleen <ak@linux.intel.com>
2616
9faeb493
UB
2617 * c-common.c (warn_for_omitted_condop): New.
2618 * c-common.h (warn_for_omitted_condop): Add prototype.
d166d4c3 2619
70cb8be6
JM
26202010-06-21 Joseph Myers <joseph@codesourcery.com>
2621
2622 * c.opt (lang-objc): Remove.
2623 * c-opts.c (c_common_handle_option): Don't handle OPT_lang_objc.
2624
a4c97feb
JR
26252010-06-21 Joern Rennecke <joern.rennecke@embecosm.com>
2626
2627 * c-opts.c: Include "tm_p.h".
2628
6e2f1956
JM
26292010-06-20 Joseph Myers <joseph@codesourcery.com>
2630
2631 * c-common.c (parse_optimize_options): Update call to
2632 decode_options.
2633
bc87224e
NF
26342010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2635
2636 * c-common.c (record_types_used_by_current_var_decl): Adjust for
2637 new type of types_used_by_cur_var_decl.
2638
b49cf425
JR
26392010-06-17 Joern Rennecke <joern.rennecke@embecosm.com>
2640
2641 PR bootstrap/44512
2642 * c-cppbuiltin.c (builtin_define_with_hex_fp_value): Add cast
2643 for C++ standard compliance.
2644
59f9c2ed
JM
26452010-06-16 Jason Merrill <jason@redhat.com>
2646
2647 * c.opt: Add -Wnoexcept.
2648
33766b66
RG
26492010-06-16 Richard Guenther <rguenther@suse.de>
2650
2651 PR c/44555
2652 * c-common.c (c_common_truthvalue_conversion): Remove
2653 premature and wrong optimization concering ADDR_EXPRs.
2654
eff7e30c
AC
26552010-06-15 Arnaud Charlet <charlet@adacore.com>
2656
2657 * c-ada-spec.c (dump_sloc): Remove column info.
2658 (is_simple_enum): New function.
2659 (dump_generic_ada_node, print_ada_declaration): Map C enum types to Ada
2660 enum types when relevant.
2661
6312e84d
MLI
26622010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2663
9faeb493 2664 * c-common.c (conversion_warning): Warn at expression
6312e84d
MLI
2665 location.
2666
1cb42611
JM
26672010-06-10 Joseph Myers <joseph@codesourcery.com>
2668
2669 * c-opts.c (c_common_handle_option): Don't handle
2670 OPT_fshow_column.
2671
a9429e29
LB
26722010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2673
2674 * c-pragma.c (push_alignment): Use typed GC allocation.
2675 (handle_pragma_push_options): Likewise.
2676
2677 * c-common.c (parse_optimize_options): Likewise.
2678
2679 * c-common.h (struct sorted_fields_type): Add variable_size GTY
2680 option.
2681
5498f011
JM
26822010-06-07 Joseph Myers <joseph@codesourcery.com>
2683
2684 * c-common.c (flag_preprocess_only, flag_undef, flag_no_builtin,
2685 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2686 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2687 flag_signed_bitfields, warn_strict_null_sentinel,
2688 flag_nil_receivers, flag_zero_link, flag_replace_objc_classes,
2689 flag_gen_declaration, flag_no_gnu_keywords,
2690 flag_implement_inlines, flag_implicit_templates,
2691 flag_implicit_inline_templates, flag_optional_diags,
2692 flag_elide_constructors, flag_default_inline, flag_rtti,
2693 flag_conserve_space, flag_access_control, flag_check_new,
2694 flag_new_for_scope, flag_weak, flag_working_directory,
2695 flag_use_cxa_atexit, flag_use_cxa_get_exception_ptr,
2696 flag_enforce_eh_specs, flag_threadsafe_statics,
2697 flag_pretty_templates): Remove.
2698 * c-common.h (flag_preprocess_only, flag_nil_receivers,
2699 flag_objc_exceptions, flag_objc_sjlj_exceptions, flag_zero_link,
2700 flag_replace_objc_classes, flag_undef, flag_no_builtin,
2701 flag_no_nonansi_builtin, flag_short_double, flag_short_wchar,
2702 flag_lax_vector_conversions, flag_ms_extensions, flag_no_asm,
2703 flag_const_strings, flag_signed_bitfields, flag_gen_declaration,
2704 flag_no_gnu_keywords, flag_implement_inlines,
2705 flag_implicit_templates, flag_implicit_inline_templates,
2706 flag_optional_diags, flag_elide_constructors, flag_default_inline,
2707 flag_rtti, flag_conserve_space, flag_access_control,
2708 flag_check_new, flag_new_for_scope, flag_weak,
2709 flag_working_directory, flag_use_cxa_atexit,
2710 flag_use_cxa_get_exception_ptr, flag_enforce_eh_specs,
2711 flag_threadsafe_statics, flag_pretty_templates,
2712 warn_strict_null_sentinel): Remove.
2713 * c.opt (E, Wstrict-null-sentinel, faccess-control, fasm,
2714 fbuiltin, fcheck-new, fconserve-space, felide-constructors,
2715 fenforce-eh-specs, ffor-scope, fgnu-keywords, fimplement-inlines,
2716 fimplicit-inline-templates, fimplicit-templates,
2717 flax-vector-conversions, fms-extensions, fnil-receivers,
2718 fnonansi-builtins, fpretty-templates, freplace-objc-classes,
2719 frtti, fshort-double, fshort-enums, fshort-wchar,
2720 fsigned-bitfields, fsigned-char, fstats, fthreadsafe-statics,
2721 funsigned-bitfields, funsigned-char, fuse-cxa-atexit,
2722 fuse-cxa-get-exception-ptr, fweak, fworking-directory, fzero-link,
2723 gen-decls, undef): Use Var.
2724 (fdefault-inline, foptional-diags): Document as doing nothing.
2725 * c-opts.c (c_common_handle_option): Remove cases for options now
2726 using Var. Mark ignored options as such.
2727
39dabefd
SB
27282010-06-05 Steven Bosscher <steven@gcc.gnu.org>
2729
9faeb493 2730 * c-common.c: Moved to here from parent directory.
39dabefd
SB
2731 * c-common.def: Likewise.
2732 * c-common.h: Likewise.
2733 * c-cppbuiltin.c: Likewise.
2734 * c-dump.c: Likewise.
2735 * c-format.c: Likewise.
2736 * c-format.h : Likewise.
2737 * c-gimplify.c: Likewise.
2738 * c-lex.c: Likewise.
2739 * c-omp.c: Likewise.
2740 * c.opt: Likewise.
2741 * c-opts.c: Likewise.
2742 * c-pch.c: Likewise.
2743 * c-ppoutput.c: Likewise.
2744 * c-pragma.c: Likewise.
2745 * c-pragma.h: Likewise.
2746 * c-pretty-print.c: Likewise.
2747 * c-pretty-print.h: Likewise.
2748 * c-semantics.c: Likewise.
2749 * stub-objc.c: Likewise.
2750
2751 * c-common.c: Include gt-c-family-c-common.h.
2752 * c-pragma.c: Include gt-c-family-c-pragma.h.
2753\f
d1e082c2 2754Copyright (C) 2010-2013 Free Software Foundation, Inc.
39dabefd
SB
2755
2756Copying and distribution of this file, with or without modification,
2757are permitted in any medium without royalty provided the copyright
2758notice and this notice are preserved.
This page took 1.107791 seconds and 5 git commands to generate.